/* Chapter layouts. Mobile first; the 12-column grid takes over from 900px. */

/* ---------- 1 · Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  background: var(--navy-950); overflow: hidden;
  padding-top: var(--nav-h-top);
}
.hero__visual {
  --m: 132vw;
  position: absolute; z-index: -1;
  width: var(--m); aspect-ratio: 1;
  right: calc(var(--m) * -0.52); top: 34%;
  transform: translateY(-50%);
  opacity: 0.55; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 93%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 93%);
}
.meridian { width: 100%; height: 100%; }
.meridian__dots { fill: var(--ivory); }
.meridian__ring { fill: none; stroke: var(--line-dark-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.meridian__orbit { fill: none; stroke: var(--gold-500); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0.75; }
.meridian__anchors { fill: var(--gold-500); }
.meridian__anchors circle { transform-box: fill-box; transform-origin: center; }
.meridian__traveller { fill: var(--gold-400); transform-box: view-box; transform-origin: 550px 550px; animation: orbit 40s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }

.hero__inner { position: relative; align-self: center; padding-block: 3.5rem 3rem; }
.hero__eyebrow { margin-bottom: 1.75rem; }
.hero__eyebrow-places { display: none; }
@media (min-width: 640px) { .hero__eyebrow-places { display: inline; } }
.hero__title { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: var(--track-display); }
.hero__title em { color: var(--gold-500); }
.hero__line { display: block; overflow: hidden; padding: 0 0.12em 0.1em 0; margin-bottom: -0.1em; }
.hero__line > * { display: inline-block; }

/* Hero entrance runs in CSS from first paint, so it never waits for the animation library to download. */
.motion-ok .hero__line > * { animation: line-up 1.1s var(--ease-expo) 0.3s both; }
.motion-ok .hero__line + .hero__line > * { animation-delay: 0.4s; }
.motion-ok [data-hero] { animation: rise 0.9s var(--ease-out) both; }
.motion-ok .hero__eyebrow { animation-delay: 0.1s; }
.motion-ok .hero__lead { animation-delay: 0.65s; }
.motion-ok .hero__ctas { animation-delay: 0.8s; }
.motion-ok .hero__ctas .btn--draw { animation: wipe 0.8s var(--ease-in-out) 0.9s both; }
.motion-ok .hero__foot { animation-duration: 1s; animation-delay: 1.2s; }
.motion-ok .nav { animation: fade 0.8s var(--ease-out) 1.1s both; }
.motion-ok .meridian__ring { stroke-dasharray: 1; animation: draw 1.6s var(--ease-expo) 0.15s both; }
.motion-ok .meridian__orbit { stroke-dasharray: 1; animation: draw 1.4s var(--ease-expo) 0.3s both; }
.motion-ok .meridian__dots, .motion-ok .meridian__anchors { opacity: 0; }
@keyframes line-up { from { transform: translateY(112%); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.hero__lead { margin-top: 1.75rem; max-width: 38ch; font-size: var(--fs-lead); line-height: 1.5; color: var(--ivory-muted); }
.hero__ctas { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.25rem; }
.hero__foot { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.25rem 1.5rem; }
.hero__foot::before { content: ''; position: absolute; top: 0; left: var(--gutter-x); right: var(--gutter-x); height: 1px; background: var(--line-dark); }
.hero__ticker { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; font-size: 0.8125rem; letter-spacing: 0.06em; color: var(--ivory-muted); }
.hero__place { display: inline-flex; align-items: center; gap: 0.55rem; }
.hero__place::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-500); }
.hero__tel { color: var(--ivory); font-variant-numeric: tabular-nums; padding-block: 0.6rem; }
.hero__scroll { display: none; align-items: center; gap: 0.75rem; font-size: 0.6875rem; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--ivory-muted); }
.hero__scroll i { display: block; width: 1px; height: 36px; background: var(--ivory-muted); transform-origin: top; animation: scrollcue 2.4s var(--ease-in-out) infinite; }
@keyframes scrollcue { 0% { transform: scaleY(0); opacity: 1; } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

@media (min-width: 900px) {
  .hero__visual { --m: clamp(680px, 72vw, 1120px); right: calc(var(--m) * -0.36); top: 50%; opacity: 1; }
  .hero__inner { padding-block: 4rem; }
  .hero__lead { max-width: 40ch; }
  .hero__scroll { display: inline-flex; }
}

/* ---------- 2 · Partners ---------- */
.partners { background: var(--navy-900); border-block: 1px solid var(--line-dark); }
.partners__inner { display: grid; gap: 1.5rem; padding-block: 2rem; }
.partners__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
.partner { display: flex; flex-direction: column; gap: 0.3rem; color: rgba(243, 237, 226, 0.62); transition: color var(--dur-hover) var(--ease-out); }
.partner:hover { color: var(--ivory); }
.partner__name { font-size: 1.0625rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.partner__tier { font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ivory-muted); }
@media (min-width: 900px) {
  .partners__inner { grid-template-columns: 15rem minmax(0, 1fr); align-items: center; padding-block: 2.25rem; }
  .partners__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .partner { padding-left: 1.5rem; border-left: 1px solid var(--line-dark); }
}

/* ---------- 3 · Statement ---------- */
.statement__title {
  margin-top: 2rem; max-width: 21ch;
  font-size: clamp(2.375rem, 1rem + 4.6vw, 5.25rem); line-height: 1.02; letter-spacing: -0.02em;
}
.statement__body { margin-top: clamp(2.5rem, 5vw, 4rem); }
.statement__lead { grid-column: 1 / -1; font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-muted); max-width: 46ch; }
.stats { margin-top: clamp(3.5rem, 7vw, 6rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line-light); }
.stat dd { font-family: var(--font-serif); font-size: var(--fs-stat); line-height: 1; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat dt { font-size: 0.875rem; line-height: 1.45; color: var(--ink-muted); max-width: 22ch; }
@media (min-width: 900px) {
  .statement__lead { grid-column: 6 / span 7; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
}

/* ---------- 4 · Why ---------- */
.why { padding-top: calc(var(--chapter-y) * 0.4); }
.why__grid { row-gap: 3rem; }
.why__head, .why__list { grid-column: 1 / -1; }
.why__title { margin-top: 1.5rem; font-size: var(--fs-h2); }
.why__intro { margin-top: 1.5rem; max-width: 34ch; color: var(--ink-muted); }
.why__counter { display: none; }
@media (min-width: 900px) {
  .why__head { grid-column: 1 / span 5; }
  .why__list { grid-column: 6 / span 7; }
  .why__sticky { position: sticky; top: calc(var(--nav-h) + 3rem); }
  .why__counter {
    display: flex; align-items: baseline; gap: 0.75rem; margin-top: 3rem;
    font-family: var(--font-serif); color: var(--bronze-700);
  }
  .why__current { display: inline-block; font-size: clamp(4.5rem, 7vw, 7rem); line-height: 1; font-variant-numeric: tabular-nums; }
  .why__total { font-family: var(--font-sans); font-size: 0.875rem; letter-spacing: 0.1em; color: var(--ink-muted); }
}

/* ---------- 5 · Services ---------- */
.services__line { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--gold-500); transform-origin: 0 50%; }
.motion-ok .services__line { transform: scaleX(0); }
.services__head { row-gap: 1.75rem; align-items: end; }
.services__heading, .services__intro { grid-column: 1 / -1; }
.services__heading h2 { margin-top: 1.5rem; font-size: var(--fs-h2); }
.services__heading h2 em { color: var(--gold-500); }
.services__intro { color: var(--ivory-muted); max-width: 42ch; }
.feature {
  position: relative; margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid; gap: 1.5rem; padding: clamp(1.75rem, 3.4vw, 3rem);
  background: var(--navy-800); border: 1px solid var(--line-dark);
}
.feature::before { content: ''; position: absolute; top: -1px; left: -1px; width: 56px; height: 1px; background: var(--gold-500); }
.feature__title { font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.875rem); line-height: 1.05; }
.feature__title span { display: block; margin-top: 0.6rem; font-family: var(--font-sans); font-size: 0.8125rem; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--ivory-muted); }
.feature__copy { margin-top: 1rem; max-width: 52ch; color: var(--ivory-muted); }
.groups { margin-top: clamp(3.5rem, 6vw, 5rem); display: grid; gap: 3.5rem; }
.group__numeral { font-family: var(--font-serif); font-size: 1.5rem; line-height: 1; color: var(--gold-500); }
.group__title { margin: 0.75rem 0 1.5rem; font-size: 1.5rem; line-height: 1.15; }
@media (min-width: 900px) {
  .services__heading { grid-column: 1 / span 7; }
  .services__intro { grid-column: 9 / span 4; }
  .feature { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 3rem; }
  .feature > .eyebrow { grid-column: 1 / -1; }
  .groups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.75rem, 3vw, 3rem); }
  .group__title { min-height: 2.3em; }
}

/* ---------- 6 · Sectors ---------- */
.sectors { display: flex; align-items: center; min-height: 70vh; }
.sectors__list {
  margin-top: 2.5rem; max-width: 22em;
  font-family: var(--font-serif); font-size: clamp(2.125rem, 1rem + 4vw, 4.5rem); line-height: 1.14; letter-spacing: -0.015em;
}
.sectors__list li { display: inline; cursor: default; text-decoration: underline 1px transparent; text-underline-offset: 0.16em; transition: text-decoration-color var(--dur-hover) var(--ease-out); }
.sectors__list li:hover { font-style: italic; text-decoration-color: var(--gold-500); }
.sectors__list li:not(:last-child)::after {
  content: ''; display: inline-block; width: 0.12em; height: 0.12em; margin: 0 0.42em; vertical-align: 0.22em;
  border-radius: 50%; background: var(--gold-500); font-style: normal;
}
.sectors__note { margin-top: clamp(2.5rem, 5vw, 3.5rem); max-width: 46ch; font-size: var(--fs-lead); line-height: 1.5; color: var(--ivory-muted); }

/* ---------- 7a · Work ---------- */
.work__head { row-gap: 1.75rem; align-items: end; }
.work__heading, .work__intro { grid-column: 1 / -1; }
.work__heading h2 { margin-top: 1.5rem; font-size: var(--fs-h2); max-width: 14ch; }
.work__intro { color: var(--ink-muted); max-width: 44ch; }
.projects { margin-top: clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line-light); }
.project { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: 1rem; row-gap: 0.4rem; padding-block: 1.6rem; }
.project__num { grid-row: span 3; font-family: var(--font-serif); font-size: 1.125rem; color: var(--bronze-700); line-height: 1.5; }
.project__client { font-size: 1.5rem; color: var(--ink); line-height: 1.2; }
.project__client span { font-family: var(--font-sans); font-size: 0.875rem; color: var(--ink-muted); }
.project__what { color: var(--ink-muted); max-width: 60ch; }
.project__where { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.project:hover::before { background: var(--bronze-700); }
@media (min-width: 900px) {
  .work__heading { grid-column: 1 / span 7; }
  .work__intro { grid-column: 9 / span 4; }
  .project { grid-template-columns: 3.5rem minmax(0, 3.6fr) minmax(0, 6fr) minmax(0, 2fr); column-gap: var(--gap); align-items: baseline; padding-block: 1.75rem; }
  .project__num { grid-row: auto; }
  .project__where { text-align: right; }
}

/* ---------- 7b · Clients ---------- */
.clients { padding-top: calc(var(--chapter-y) * 0.6); }
.clients__strip { display: grid; gap: 1.5rem; }
.clients__names { display: flex; flex-wrap: wrap; gap: 0.75rem 2.25rem; }
.clients__names li { font-family: var(--font-serif); font-size: clamp(1.375rem, 0.9rem + 1.1vw, 1.875rem); white-space: nowrap; color: rgba(15, 26, 43, 0.58); letter-spacing: -0.01em; }
.reading { margin-top: clamp(3.5rem, 7vw, 5.5rem); display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .clients__strip { grid-template-columns: 17rem minmax(0, 1fr); align-items: center; padding-block: 2rem; border-block: 1px solid var(--line-light); }
  .clients__names { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 0.75rem 2rem; }
  .reading { grid-template-columns: minmax(0, 8fr) minmax(0, 3.4fr); column-gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
  .reading__nav { padding-top: clamp(3.5rem, 6vw, 5rem); }
}

@media (min-width: 1280px) { .clients__names { display: flex; } }

/* ---------- 8 · Locations ---------- */
.locations__grid { row-gap: 3rem; align-items: center; }
.locations__text, .locations__map { grid-column: 1 / -1; }
.locations__text h2 { margin-top: 1.5rem; font-size: var(--fs-h2); }
.locations__text h2 em { color: var(--gold-500); }
.offices { margin-top: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line-dark); }
.office { display: grid; gap: 0.3rem; padding-block: 1.4rem; }
.office__region { font-size: 0.6875rem; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--gold-500); }
.office__city { font-size: var(--fs-h3); }
.office__addr { color: var(--ivory-muted); font-size: 0.9375rem; }
.office__link { justify-self: start; margin-top: 0.5rem; font-size: 0.875rem; }
.office.is-hot::before { background: var(--gold-soft); }
.locations__note { margin-top: 1.75rem; font-size: 0.875rem; color: var(--ivory-muted); }
.map { width: 100%; max-width: 560px; margin-inline: auto; height: auto; }
.map__land { fill: rgba(169, 178, 195, 0.3); }
.map__dot { fill: var(--gold-500); transform-box: fill-box; transform-origin: center; transition: transform var(--dur-hover) var(--ease-out); }
.map__pulse { fill: none; stroke: var(--gold-500); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: pulse 3s var(--ease-out) infinite; opacity: 0; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3.4); opacity: 0; } }
.map__leader { stroke: var(--gold-soft); stroke-width: 1; vector-effect: non-scaling-stroke; }
.map__label { font-family: var(--font-serif); font-size: 21px; fill: var(--ivory); }
.map__pin.is-hot .map__dot { transform: scale(1.5); }
.map__pin.is-hot .map__leader { stroke: var(--gold-500); }
@media (min-width: 900px) {
  .locations__text { grid-column: 1 / span 5; }
  .locations__map { grid-column: 7 / span 6; }
}
@media (max-width: 899px) { .locations__map { order: -1; } .map { max-width: 420px; } }

/* ---------- 9 · Contact ---------- */
.contact__grid { row-gap: 3.5rem; }
.contact__text, .contact__direct { grid-column: 1 / -1; }
.contact__title { margin-top: 1.5rem; font-size: clamp(2.5rem, 1.1rem + 4.6vw, 5.25rem); line-height: 1; letter-spacing: -0.02em; }
.contact__lead { margin-top: 1.5rem; max-width: 36ch; font-size: var(--fs-lead); line-height: 1.5; color: var(--ivory-muted); }
.contact__direct { border-bottom: 1px solid var(--line-dark); }
.contact__direct li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); align-items: baseline; padding-block: 1.1rem; border-top: 1px solid var(--line-dark); }
.contact__label { font-size: 0.6875rem; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--ivory-muted); }
.contact__value { justify-self: start; font-family: var(--font-serif); font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem); line-height: 1.25; overflow-wrap: anywhere; }
.contact__value--plain { color: var(--ivory); }
@media (min-width: 900px) {
  .contact__text { grid-column: 1 / span 5; }
  .contact__direct { grid-column: 7 / span 6; align-self: end; }
}

/* ---------- Privacy notice and 404 page ---------- */
.page-head { position: relative; background: var(--navy-950); color: var(--ivory); padding-block: calc(var(--nav-h-top) + clamp(3rem, 8vw, 6rem)) clamp(3rem, 6vw, 5rem); }
.page-head h1 { margin-top: 1.5rem; font-size: var(--fs-h2); }
.page-head__meta { margin-top: 1.25rem; font-size: 0.9375rem; color: var(--ivory-muted); }
.page-head__lead { margin-block: 1.5rem 2.5rem; max-width: 40ch; font-size: var(--fs-lead); line-height: 1.5; color: var(--ivory-muted); }
.page-head--full { min-height: 80vh; min-height: 80svh; display: grid; align-items: center; }
.legal { padding-block: clamp(3.5rem, 8vw, 6rem); }
.legal__body { max-width: 68ch; }
.legal__body h2 { margin-top: 2.75rem; font-size: var(--fs-h3); scroll-margin-top: calc(var(--nav-h) + 1rem); }
.legal__body > h2:first-child { margin-top: 0; }
.legal__body a[href^="tel:"] { white-space: nowrap; }
.legal__body p, .legal__body li { margin-top: 1rem; line-height: var(--lh-body); }
.legal__body ul { padding-left: 1.25rem; list-style: disc; }
.legal__body li::marker { color: var(--bronze-700); }
.legal__body a { text-decoration: underline; text-decoration-color: var(--bronze-700); text-underline-offset: 3px; }
