/* =====================================================================
   Homepage (index.html). Shared tokens, header and footer come from site.css.
   ===================================================================== */

.home .content { padding-top: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--burgundy);
  background: var(--burgundy);
  color: var(--white);
  font-size: var(--fs-md);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn svg { width: 16px; height: 16px; transition: transform 0.15s ease; }
.btn:hover { background: var(--burgundy-dark); border-color: var(--burgundy-dark); }
.btn:hover svg { transform: translateX(3px); }

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--hairline);
}

.btn-secondary:hover { background: var(--alabaster); border-color: var(--mist); color: var(--navy); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-size: var(--fs-md);
  font-weight: 600;
  text-decoration: none;
}

.text-link svg { width: 16px; height: 16px; color: var(--burgundy); transition: transform 0.15s ease; }
.text-link:hover { color: var(--burgundy); }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--hairline);
}

.hero-eyebrow {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  color: var(--burgundy);
}

.hero-title {
  font-size: 40px;
  line-height: 1.15;
}

.hero-lede {
  max-width: 520px;
  margin: 20px 0 0;
  font-size: var(--fs-lg);
  line-height: var(--lh-body);
  color: var(--pewter);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-media {
  aspect-ratio: 4 / 3;
  background: var(--alabaster);
}

.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }

.media-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  color: var(--mist);
  font-size: var(--fs-sm);
}

.media-ph svg { width: 32px; height: 32px; }

/* ---------- Key figures strip ---------- */
.figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid var(--hairline);
}

.figure {
  padding: 28px 24px;
  border-left: 1px solid var(--hairline);
}

.figure:first-child { padding-left: 0; border-left: 0; }

.figure dt {
  order: 2;
  margin-top: 6px;
  font-size: var(--fs-sm);
  color: var(--pewter);
}

.figure dd {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.figure { display: flex; flex-direction: column; }

/* ---------- Section heads ---------- */
.home-section { margin-top: 72px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--mist);
}

.section-head .section-title { padding-bottom: 0; border-bottom: 0; }

.section-intro {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--pewter);
}

/* ---------- Featured offerings ---------- */
.featured {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.feat-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--hairline);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.feat-link:hover,
.feat-link:focus-visible {
  border-color: var(--mist);
  box-shadow: 0 6px 18px rgba(43, 48, 58, 0.08);
}

.feat-photo { aspect-ratio: 16 / 9; background: var(--alabaster); }

.feat-body { padding: 16px 18px 18px; }

.feat-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: var(--fs-sm);
  color: var(--pewter);
}

.feat-eyebrow .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.feat-name {
  margin: 0 0 12px;
  font-size: var(--fs-lg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feat-link:hover .feat-name { color: var(--burgundy); }

.feat-facts { width: 100%; border-collapse: collapse; }

.feat-facts tbody {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.feat-facts tr { display: flex; flex-direction: column; gap: 2px; }

.feat-facts th {
  padding: 0;
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--mist);
  text-align: left;
}

.feat-facts td { padding: 0; font-size: var(--fs-base); }

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  padding-top: 16px;
  border-top: 3px solid var(--burgundy);
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--burgundy);
}

.step h3 { font-size: var(--fs-md); }

.step p {
  margin: 8px 0 0;
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--pewter);
}

/* ---------- Approach (three columns) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 28px;
}

.pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  background: var(--alabaster);
  color: var(--burgundy);
}

.pillar-icon svg { width: 20px; height: 20px; }

.pillar h3 { font-size: var(--fs-md); }

.pillar p {
  margin: 8px 0 0;
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--pewter);
}

/* ---------- Research band ---------- */
.band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  margin-top: 72px;
  padding: 36px 40px;
  background: var(--limestone);
  border-left: 4px solid var(--burgundy);
}

.band h2 { font-size: var(--fs-xl); }

.band p {
  max-width: 640px;
  margin: 10px 0 0;
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--pewter);
}

/* ---------- Learn ---------- */
.articles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.article-link {
  display: block;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--hairline);
  color: inherit;
  text-decoration: none;
}

.article-link:hover { border-color: var(--mist); }

.article-kicker {
  margin: 0 0 8px;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
}

.article-link h3 { font-size: var(--fs-md); }
.article-link:hover h3 { color: var(--burgundy); }

.article-link p {
  margin: 8px 0 0;
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--pewter);
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  margin-top: 28px;
}

.contact-person {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-photo {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  background: var(--alabaster);
  color: var(--mist);
}

.contact-photo svg { width: 32px; height: 32px; }

.contact-name { margin: 0; font-size: var(--fs-lg); font-weight: 600; }
.contact-role { margin: 2px 0 0; font-size: var(--fs-base); color: var(--pewter); }

.contact-bio {
  margin: 12px 0 0;
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--pewter);
}

.contact-lines {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-md);
}

.contact-lines a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  text-decoration: none;
}

.contact-lines a:hover { color: var(--burgundy); }
.contact-lines svg { width: 16px; height: 16px; color: var(--burgundy); }

.offices { display: grid; gap: 20px; }

.office {
  padding: 18px 20px;
  border: 1px solid var(--hairline);
  font-style: normal;
}

.office h3 { font-size: var(--fs-base); }

.office p {
  margin: 8px 0 0;
  font-size: var(--fs-md);
  line-height: var(--lh-ui);
  color: var(--pewter);
}

.office a { color: var(--navy); text-decoration: none; }
.office a:hover { color: var(--burgundy); }

.home .detail-note { margin-top: 16px; }

/* =================== Tablet (<=960px) =================== */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 32px 0 48px; }
  .hero-title { font-size: 32px; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure:nth-child(3) { padding-left: 0; border-left: 0; }
  .figure:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .pillars { grid-template-columns: 1fr; gap: 28px; }
  .band { grid-template-columns: 1fr; padding: 28px; }
  .articles { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .home-section { margin-top: 56px; }
}

/* =================== Phone (<=640px) =================== */
@media (max-width: 640px) {
  .hero-title { font-size: 26px; letter-spacing: 0.06em; }
  .hero-lede { font-size: var(--fs-md); }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .figure { padding: 20px 12px; }
  .figure dd { font-size: 22px; }
  .featured { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section-head { flex-wrap: wrap; align-items: flex-start; }
  .contact-person { flex-direction: column; }
  .band { padding: 24px 20px; }
}


/* =====================================================================
   Homepage hero: video placeholder (2/3) + content placeholder (1/3)
   ===================================================================== */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr);
  grid-template-areas:
    "video market"
    "find  find";
  gap: 32px;
  padding-top: 40px;
}
.hero-video { grid-area: video; }
.market { grid-area: market; }
.find-bar { grid-area: find; }

.hero-video { aspect-ratio: 20 / 9; } /* 20% shorter than 16:9 */
.hero-video { position: relative; overflow: hidden; }

/* Dark wash from the bottom-left corner, fading to transparent */
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 110% 150% at 0% 100%,
    rgba(10, 20, 34, 0.95) 0%,
    rgba(10, 20, 34, 0.8) 30%,
    rgba(10, 20, 34, 0.45) 60%,
    rgba(10, 20, 34, 0) 85%);
}

.hero-video-title {
  position: absolute;
  left: 32px;
  bottom: 28px;
  max-width: 60%;
  margin: 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--fs-title);
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Right column: marketplace snapshot */
.market {
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--navy);
  padding: 0;
}
.market-title {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: bold;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}
.market-stats {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin: 0;
}
.market-stat {
  flex: 1;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}
.market-stat dd {
  margin: 0;
  min-width: 86px;
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.market-stat:last-child { border-bottom: 0; }
.market-stat dt {
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
}

.home-hero .ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  min-height: 200px;
  background: var(--alabaster);
  border: 1px dashed var(--hairline);
  color: var(--mist);
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero .ph svg { width: 48px; height: 48px; }

@media (max-width: 960px) {
  /* tablet: video full width; marketplace and search side by side */
  .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "video  video"
      "market find";
    gap: 24px;
    padding-top: 24px;
  }
  .market-stat { padding: 16px 0; }
}

@media (max-width: 640px) {
  .hero-video-title { left: 20px; bottom: 18px; max-width: 80%; font-size: 20px; }
  .home-hero { grid-template-columns: 1fr; grid-template-areas: "video" "market" "find"; }

}

/* ---------- Find bar (under the hero) ---------- */
.find-bar {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px 20px 20px 28px;
  background: #fff;
  border: 1px solid var(--hairline);
}
.find-title {
  flex: none;
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
}
/* One joined control: three segments + button */
.find-form {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  background: #fff;
  border: 1px solid var(--hairline);
}
.find-field {
  position: relative;
  border-left: 1px solid var(--hairline);
}
.find-field:first-child { border-left: 0; }
.find-field label {
  position: absolute;
  top: 10px;
  left: 16px;
  pointer-events: none;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
}
.find-select { position: static; }
.find-select select {
  display: block;
  width: 100%;
  height: 100%;
  padding: 28px 40px 9px 16px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--navy);
  font: inherit;
  font-size: var(--fs-md);
  line-height: 22px;
  cursor: pointer;
}
.find-field:hover { background: var(--alabaster); }
.find-field:focus-within { box-shadow: inset 0 0 0 2px var(--navy); }
.find-select select:focus { outline: none; }
.find-chev {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--mist);
  pointer-events: none;
}
.find-btn {
  height: auto;
  padding: 0 28px;
  border: 0;
}
.find-btn:hover svg { transform: none; }

@media (max-width: 960px) {
  .find-bar { flex-direction: column; align-items: stretch; gap: 16px; padding: 22px 20px 20px; }
  .find-form { grid-template-columns: 1fr; }
  .find-field { border-left: 0; border-top: 1px solid var(--hairline); }
  .find-field:first-child { border-top: 0; }
  .find-btn { height: 46px; justify-content: center; }
}

/* ---------- Intro: paragraph + key figures ---------- */
.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  margin-top: 48px;
  padding-bottom: 56px;
}
.intro-copy p {
  margin: 0;
  font-size: var(--fs-lg);
  line-height: 1.7;
  color: var(--navy);
}
.intro-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin: 0;
}
.intro-stat {
  display: flex;
  flex-direction: column-reverse;   /* figure above its description */
  justify-content: flex-end;
  gap: 8px;
  padding: 20px 0 24px;
  border-top: 1px solid var(--hairline);
}
.intro-stat dd {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 32px;
  line-height: 1;
  color: var(--burgundy);
  font-variant-numeric: tabular-nums;
}
.intro-stat dt {
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--mist);
}
@media (max-width: 960px) {
  .home-intro { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; padding-bottom: 40px; }
}
@media (max-width: 480px) {
  .intro-stats { grid-template-columns: 1fr; }
  .intro-stat dd { font-size: 28px; }
}

/* ---------- Strategies carousel ---------- */
.strategies { padding: 0 0 64px; }
.strategies-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--mist);   /* same rule as .section-title */
}
/* standard H2 (.section-title); its underline moves to the row so it runs under the arrows */
.strategies-head .strategies-title {
  padding-bottom: 0;
  border-bottom: 0;
}
.carousel-nav { display: flex; gap: 8px; flex: none; }
.carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--hairline);
  color: var(--navy);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.carousel-btn svg { width: 18px; height: 18px; }
.carousel-btn:hover:not(:disabled) { background: var(--navy); border-color: var(--navy); color: #fff; }
.carousel-btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.carousel-btn:disabled { color: var(--hairline); cursor: default; }

.strategies-track {
  --per-view: 4;
  --gap: 20px;
  display: flex;
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.strategies-track::-webkit-scrollbar { display: none; }

.strategy-card {
  position: relative;
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  aspect-ratio: 5 / 6;   /* 10% shorter than 3:4 */
  overflow: hidden;
  scroll-snap-align: start;
  /* photo (if present) over a neutral fallback */
  background-color: var(--navy);
  background-image: var(--img, none), linear-gradient(160deg, #3a4a5f 0%, #162B45 70%);
  background-size: cover;
  background-position: center;
  color: #fff;
  outline: none;
}
/* dark wash toward the bottom */
.strategy-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 20, 34, 0.92) 0%, rgba(10, 20, 34, 0.55) 40%, rgba(10, 20, 34, 0) 70%);
  transition: background 0.3s ease;
}
.strategy-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
}
.strategy-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: bold;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
  color: #fff;
}
.strategy-text {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  font-size: var(--fs-base);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.4s ease;
}
/* hover / keyboard focus: title rises and the paragraph appears */
.strategy-card:hover::before,
.strategy-card:focus-visible::before {
  background: linear-gradient(to top, rgba(10, 20, 34, 0.95) 0%, rgba(10, 20, 34, 0.8) 55%, rgba(10, 20, 34, 0.35) 100%);
}
.strategy-card:hover .strategy-text,
.strategy-card:focus-visible .strategy-text {
  max-height: 240px;
  margin-top: 12px;
  opacity: 1;
}
.strategy-card:focus-visible { box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--navy); }

/* touch screens have no hover: show the paragraph */
@media (hover: none) {
  .strategy-card::before { background: linear-gradient(to top, rgba(10, 20, 34, 0.95) 0%, rgba(10, 20, 34, 0.75) 55%, rgba(10, 20, 34, 0.2) 100%); }
  .strategy-text { max-height: none; margin-top: 12px; opacity: 1; }
}

@media (max-width: 960px) {
  .strategies { padding: 0 0 48px; }
  .strategies-track { --per-view: 2.2; --gap: 16px; }
}
@media (max-width: 640px) {
  .strategies-track { --per-view: 1.2; }
}
@media (prefers-reduced-motion: reduce) {
  .strategies-track { scroll-behavior: auto; }
  .strategy-text, .strategy-card::before { transition: none; }
}
