/* Intercedent Asia site styles
   Layout: white ground, 1296px measure, full-bleed red blocks, thin charcoal rules.
   Edit the tokens below to change the whole site. */

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/InstrumentSans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --fg: #1c2429;
  --fg-muted: #4a4a4a;
  --fg-quiet: #6b7280;
  --fg-faint: #8f8f8f;
  --rule: #e2e2e2;
  --rule-strong: #1c2429;
  --red: #b00010;
  --red-tint: #ffd9d3;
  --on-red: #ffffff;

  --font: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --measure: 1365px;
  --gutter: clamp(19px, 5.88vw, 75px);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 500; }

.wrap { max-width: var(--measure); margin: 0 auto; }
.section { padding-inline: var(--gutter); }
.section--white { background: var(--bg); }
.section--soft { background: var(--bg-soft); }
.section--red { background: var(--red); color: var(--on-red); }
.section--red a:hover { color: var(--red-tint); }

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}
.section--red .eyebrow { color: var(--red-tint); }

.h-display { font-size: clamp(45px, 6.35vw, 85px); line-height: 1.0; letter-spacing: -0.035em; }
.h-xl { font-size: clamp(35px, 4vw, 54px); line-height: 1.04; letter-spacing: -0.035em; }
.h-l { font-size: clamp(31px, 3.18vw, 42px); line-height: 1.1; letter-spacing: -0.03em; }
.h-m { font-size: clamp(26px, 2.59vw, 35px); line-height: 1.15; letter-spacing: -0.025em; }
.h-s { font-size: clamp(24px, 2.24vw, 31px); line-height: 1.15; letter-spacing: -0.025em; }

.lead { font-size: clamp(18px, 1.47vw, 20px); line-height: 1.5; color: var(--fg-muted); max-width: 36em; }
.section--red .lead { color: var(--red-tint); }
.muted { color: var(--fg-quiet); }
.quiet { color: var(--fg-faint); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 26px;
  background: var(--fg);
  color: var(--bg);
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
}
.btn:hover { background: var(--red); color: var(--on-red); }
.btn--on-red { background: var(--bg); color: var(--red); font-weight: 600; }
.btn--on-red:hover { background: var(--red-tint); color: var(--red); }
.btn .arrow { font-size: 21px; line-height: 1; }
.link-underline {
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  align-self: flex-start;
}

/* Header */
.site-header { padding-inline: var(--gutter); background: var(--bg); position: relative; }
.nav { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark { width: 35px; height: 35px; flex: none; }
.brand__name { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); }
.brand__name span { font-weight: 400; color: var(--fg-quiet); }
.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 35px; font-size: 16px; font-weight: 500; }
.nav__links a[aria-current="page"] { border-bottom: 1px solid var(--fg); padding-bottom: 2px; }
.nav__links .nav__contact { color: var(--red); font-weight: 600; }
.nav__toggle {
  display: none;
  min-height: 52px; min-width: 52px;
  border: 1px solid var(--rule); background: transparent;
  font: inherit; font-weight: 500; color: var(--fg); cursor: pointer;
}
@media (max-width: 760px) {
  .nav { min-height: 89px; }
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; }
  .nav__links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 9px var(--gutter) 28px;
    background: var(--bg); border-bottom: 1px solid var(--rule);
    z-index: 10;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 16px 0; width: 100%; border-top: 1px solid var(--rule); }
}

/* Hero */
.hero { padding-block: clamp(66px, 8.82vw, 122px) clamp(56px, 7.65vw, 113px); }
.hero__inner { display: flex; flex-direction: column; gap: 38px; }
.hero__inner h1 { max-width: 12em; }
.hero__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-top: 9px; }

/* Facts (red block) */
.facts { padding-block: 66px; }
.facts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 38px; }
.fact { display: flex; flex-direction: column; gap: 12px; padding-top: 21px; border-top: 1px solid rgba(255,255,255,0.45); }
.fact__n { font-size: clamp(42px, 4.47vw, 61px); font-weight: 500; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fact__l { font-size: 16px; color: var(--red-tint); }
@media (max-width: 900px) { .facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Two-column section: label left, content right */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 38px; }
.split__aside { grid-column: span 4; display: flex; flex-direction: column; gap: 19px; min-width: 0; }
.split__main { grid-column: span 8; min-width: 0; }
@media (max-width: 900px) {
  .split, .insight, .contact__grid { grid-template-columns: 1fr; gap: 33px; }
  .split__aside, .split__main, .insight__text, .insight__stats, .contact__text, .contact__action { grid-column: auto; }
}

.block { padding-block: clamp(66px, 7.65vw, 113px); }

/* Work list (home) */
.worklist { display: flex; flex-direction: column; }
.worklist__row {
  display: grid; grid-template-columns: 66px minmax(0, 1fr) 235px; gap: 28px;
  align-items: baseline; padding: 26px 0; border-top: 1px solid var(--rule);
}
.worklist__row:first-child { border-top-color: var(--rule-strong); }
.worklist__row:last-child { border-bottom: 1px solid var(--rule-strong); }
.worklist__n { font-size: 16px; color: var(--fg-faint); font-variant-numeric: tabular-nums; }
.worklist__t { display: flex; flex-direction: column; gap: 7px; }
.worklist__title { font-size: clamp(21px, 2vw, 26px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.worklist__sub { font-size: 16px; color: var(--fg-quiet); }
.worklist__meta { font-size: 15px; color: var(--fg-faint); text-align: right; }
@media (max-width: 700px) {
  .worklist__row { grid-template-columns: 47px minmax(0, 1fr); }
  .worklist__meta { grid-column: 2; text-align: left; }
}

/* Services grid */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px 38px; }
.service { display: flex; flex-direction: column; gap: 12px; padding-top: 19px; border-top: 1px solid var(--rule-strong); min-width: 0; }
.service h3 { font-size: 21px; letter-spacing: -0.01em; }
.service p { font-size: 16px; line-height: 1.6; color: var(--fg-quiet); }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; gap: 38px; } }

/* Insight stats */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 28px; }
.stat { padding-top: 16px; border-top: 1px solid var(--rule-strong); }
.stat__n { font-size: clamp(35px, 3.29vw, 45px); font-weight: 500; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat__n--red { color: var(--red); }
.stat__l { margin-top: 9px; font-size: 15px; color: var(--fg-quiet); }
.insight { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 47px; align-items: end; }
.insight__text { grid-column: span 7; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.insight__stats { grid-column: span 5; min-width: 0; }

/* About */
.about__text { font-size: clamp(21px, 2.24vw, 29px); line-height: 1.3; letter-spacing: -0.02em; }
.about__meta { display: flex; flex-wrap: wrap; gap: 14px 47px; font-size: 16px; color: var(--fg-quiet); margin-top: 38px; }
.about__meta a { font-weight: 500; color: var(--fg); border-bottom: 1px solid var(--fg); padding-bottom: 1px; }

/* Contact (red block) */
.contact { padding-block: clamp(66px, 7.65vw, 104px); }
.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 47px; align-items: end; }
.contact__text { grid-column: span 7; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.contact__action { grid-column: span 5; display: flex; flex-direction: column; gap: 21px; align-items: flex-start; min-width: 0; }
.contact__note { font-size: 16px; color: var(--red-tint); }

/* Work page */
.statement { padding-block: clamp(66px, 8.24vw, 113px) clamp(38px, 4.71vw, 66px); }
.statement__inner { display: flex; flex-direction: column; gap: 38px; }
.statement__inner h1 { max-width: 12em; }

.filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px 33px;
  padding: 24px 0; border-top: 1px solid var(--rule-strong); margin-bottom: 28px;
}
.filter {
  min-height: 52px; padding: 0; border: 0; background: transparent;
  color: var(--fg-quiet); font: inherit; font-size: 18px; cursor: pointer;
  border-bottom: 1px solid transparent;
}
.filter:hover { color: var(--fg); }
.filter[aria-pressed="true"] { color: var(--fg); font-weight: 600; border-bottom-color: var(--fg); }

.cases { display: flex; flex-direction: column; padding-bottom: clamp(75px, 9.41vw, 141px); }
.case {
  display: grid; grid-template-columns: 56px minmax(0, 5fr) minmax(0, 7fr); gap: 33px;
  padding: 47px 0; border-top: 1px solid var(--rule);
}
.case:last-child { border-bottom: 1px solid var(--rule-strong); }
.case[hidden] { display: none; }
.case__n { font-size: 16px; color: var(--fg-faint); padding-top: 7px; font-variant-numeric: tabular-nums; }
.case__head { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.case__meta { font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.case__client { font-size: 18px; color: var(--fg-quiet); }
.case__body {
  display: grid; grid-template-columns: 129px minmax(0, 1fr); gap: 16px 28px;
  font-size: 18px; line-height: 1.6; color: var(--fg-muted); padding-top: 7px; min-width: 0;
}
.case__body dt { font-weight: 600; color: var(--fg); }
.case__body dd { margin: 0; }
@media (max-width: 900px) {
  .case { grid-template-columns: 47px minmax(0, 1fr); gap: 24px 19px; padding: 42px 0; }
  .case__body { grid-column: 2; grid-template-columns: 1fr; gap: 7px; }
  .case__body dt { margin-top: 12px; }
}

/* Sector list (red block on Work) */
.sectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 47px; font-size: 18px; line-height: 1.6; color: var(--red-tint); }
.sector { display: flex; flex-direction: column; gap: 7px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.45); min-width: 0; }
.sector h3 { font-size: 19px; font-weight: 600; color: var(--on-red); }
@media (max-width: 640px) { .sectors { grid-template-columns: 1fr; } }

/* CTA row */
.cta { padding-block: clamp(66px, 7.65vw, 104px); }
.cta__row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; }
.cta__row h2 { max-width: 14em; }

/* Footer */
.site-footer { padding: 47px var(--gutter); border-top: 1px solid var(--rule); color: var(--fg-quiet); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 19px 38px; }
.site-footer__brand { display: flex; align-items: center; gap: 12px; }
.site-footer__brand img { width: 21px; height: 21px; }
.site-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }

/* Narrow-screen overrides (kept last so they win the cascade) */
@media (max-width: 900px) {
  .split, .insight, .contact__grid { grid-template-columns: 1fr; gap: 33px; }
  .split__aside, .split__main, .insight__text, .insight__stats, .contact__text, .contact__action { grid-column: auto; }
}
@media (max-width: 520px) {
  .btn { white-space: normal; max-width: 100%; padding: 16px 24px; line-height: 1.3; }
  .btn--on-red { font-size: 18px; word-break: break-all; }
}

/* ---------- Inner pages ---------- */

/* Page header (short statement) */
.page-head { padding-block: clamp(56px, 7.06vw, 104px) clamp(38px, 4.71vw, 66px); }
.page-head__inner { display: flex; flex-direction: column; gap: 28px; }
.page-head__inner h1 { max-width: 12em; }

/* Prose (legal pages, long text) */
.prose { max-width: 70ch; font-size: 18px; line-height: 1.65; color: var(--fg-muted); }
.prose h2 { font-size: 26px; letter-spacing: -0.015em; color: var(--fg); margin-top: 47px; margin-bottom: 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 16px; }
.prose ul { margin: 14px 0 0; padding-left: 24px; }
.prose li + li { margin-top: 7px; }
.prose a { color: var(--fg); border-bottom: 1px solid var(--rule-strong); }
.prose .meta { font-size: 15px; color: var(--fg-faint); margin-bottom: 28px; }

/* Service detail rows */
.svc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 33px 38px; padding: 47px 0; border-top: 1px solid var(--rule); }
.svc:first-of-type { border-top-color: var(--rule-strong); }
.svc:last-of-type { border-bottom: 1px solid var(--rule-strong); }
.svc__head { grid-column: span 5; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.svc__body { grid-column: span 7; display: flex; flex-direction: column; gap: 21px; min-width: 0; font-size: 18px; line-height: 1.6; color: var(--fg-muted); }
.svc__list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 28px; font-size: 18px; }
.svc__list li { padding-left: 16px; position: relative; }
.svc__list li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 7px; height: 1px; background: var(--red); }
.svc__out { font-size: 16px; color: var(--fg-quiet); padding-top: 16px; border-top: 1px solid var(--rule); }
.svc__out strong { color: var(--fg); font-weight: 600; }
@media (max-width: 900px) { .svc { grid-template-columns: 1fr; gap: 24px; padding: 42px 0; } .svc__head, .svc__body { grid-column: auto; } }
@media (max-width: 560px) { .svc__list { grid-template-columns: 1fr; } }

/* Sector detail */
.sec-nav { display: flex; flex-wrap: wrap; gap: 9px 28px; padding: 24px 0; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); font-size: 18px; }
.sec-nav a { color: var(--fg-quiet); padding: 9px 0; }
.sec-nav a:hover { color: var(--red); }
.sector-detail { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 33px 38px; padding: 52px 0; border-top: 1px solid var(--rule); scroll-margin-top: 28px; }
.sector-detail:last-of-type { border-bottom: 1px solid var(--rule-strong); }
.sector-detail__head { grid-column: span 4; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sector-detail__body { grid-column: span 8; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.sector-detail__areas { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 9px; }
.sector-detail__areas li { font-size: 15px; padding: 7px 12px; border: 1px solid var(--rule); color: var(--fg-muted); }
.sector-detail__examples { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 38px; font-size: 16px; line-height: 1.55; color: var(--fg-muted); }
.sector-detail__examples li { break-inside: avoid; padding: 9px 0; border-top: 1px solid var(--rule); }
.sector-detail__icon { width: 40px; height: 40px; fill: none; stroke: var(--fg); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.sector-detail__label { font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); }
.sector-detail__link { font-size: 16px; color: var(--fg); border-bottom: 1px solid var(--fg); align-self: flex-start; padding-bottom: 1px; }
@media (max-width: 900px) { .sector-detail { grid-template-columns: 1fr; gap: 24px; padding: 47px 0; } .sector-detail__head, .sector-detail__body { grid-column: auto; } }
@media (max-width: 640px) { .sector-detail__examples { columns: 1; } }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px; }
.person { display: flex; flex-direction: column; gap: 12px; padding-top: 19px; border-top: 1px solid var(--rule-strong); min-width: 0; }
.person h3 { font-size: 20px; letter-spacing: -0.01em; }
.person__role { font-size: 15px; color: var(--red); font-weight: 600; letter-spacing: 0.04em; }
.person p { font-size: 16px; line-height: 1.6; color: var(--fg-quiet); }
.person__base { font-size: 15px; color: var(--fg-faint); }
@media (max-width: 900px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 33px; } }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; } }

/* Network / partners list */
.network { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 47px; }
.network__item { display: flex; flex-direction: column; gap: 5px; padding-top: 14px; border-top: 1px solid var(--rule); min-width: 0; font-size: 18px; }
.network__item strong { font-weight: 600; color: var(--fg); }
.network__item span { color: var(--fg-quiet); font-size: 16px; }
@media (max-width: 640px) { .network { grid-template-columns: 1fr; } }

/* Timeline (firm history) */
.timeline { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 38px; }
.timeline li { display: flex; flex-direction: column; gap: 9px; padding-top: 16px; border-top: 1px solid var(--rule-strong); min-width: 0; }
.timeline__year { font-size: 33px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.timeline li p { font-size: 16px; line-height: 1.55; color: var(--fg-quiet); }
.section--red .timeline li p { color: var(--red-tint); }
.section--red .timeline li { border-top-color: rgba(255,255,255,0.45); }
@media (max-width: 900px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .timeline { grid-template-columns: 1fr; } }

/* Insights */
.feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 47px; align-items: end; }
.feature__text { grid-column: span 7; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.feature__stats { grid-column: span 5; min-width: 0; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: 33px; } .feature__text, .feature__stats { grid-column: auto; } }
.pubs { display: flex; flex-direction: column; }
.pub { display: grid; grid-template-columns: 129px minmax(0, 1fr) 176px; gap: 24px; align-items: baseline; padding: 21px 0; border-top: 1px solid var(--rule); }
.pub:first-child { border-top-color: var(--rule-strong); }
.pub:last-child { border-bottom: 1px solid var(--rule-strong); }
.pub__kind { font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.pub__title { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.pub__sub { display: block; font-size: 16px; color: var(--fg-quiet); margin-top: 5px; }
.pub__with { font-size: 15px; color: var(--fg-faint); text-align: right; }
@media (max-width: 700px) { .pub { grid-template-columns: 1fr; gap: 7px; } .pub__with { text-align: left; } }

/* Contact page */
.offices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 33px 38px; }
.office { display: flex; flex-direction: column; gap: 7px; padding-top: 16px; border-top: 1px solid var(--rule-strong); font-size: 16px; line-height: 1.55; color: var(--fg-quiet); min-width: 0; }
.office h3 { font-size: 19px; letter-spacing: 0.02em; color: var(--fg); font-weight: 600; }
.office address { font-style: normal; }
.office a { color: var(--fg); border-bottom: 1px solid var(--rule); word-break: break-word; }
.office--hq { grid-column: span 2; }
@media (max-width: 900px) { .offices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .offices { grid-template-columns: 1fr; } .office--hq { grid-column: auto; } }

.form { display: flex; flex-direction: column; gap: 19px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 15px; font-weight: 600; min-width: 0; }
.field input, .field textarea, .field select {
  min-height: 56px; padding: 12px 14px; border: 1px solid var(--fg-faint); background: var(--bg);
  font: inherit; font-weight: 400; font-size: 18px; color: var(--fg); width: 100%; max-width: 100%;
}
.field textarea { min-height: 165px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--fg); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 19px; }
.form__note { font-size: 15px; color: var(--fg-quiet); max-width: 40ch; }
.form__status { font-size: 16px; color: var(--fg); }
.btn--submit { border: 0; cursor: pointer; font-family: inherit; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

.partners-note { font-size: 16px; color: var(--fg-quiet); max-width: 60ch; }

/* Rotating region word in the hero: all words stacked in one cell, so the box is always as wide as the longest */
.rotate-line { display: inline-block; white-space: nowrap; }
.rotate { display: inline-grid; text-align: left; vertical-align: baseline; }
.rotate__w { grid-area: 1 / 1; color: var(--red); opacity: 0; transform: translateY(0.25em); transition: opacity 0.35s ease, transform 0.35s ease; pointer-events: none; }
.rotate__w.is-on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rotate__w { transition: none; } }
@media (max-width: 520px) { .rotate-line { white-space: normal; } }

/* ---------- Motion: scroll reveals and hover states ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(21px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal--late { transition-delay: 0.12s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Rows: number turns red and the row shifts right a touch */
.worklist__row, .case, .pub, .svc, .sector-detail { transition: transform 0.25s ease; }
.worklist__row:hover { transform: translateX(7px); color: var(--fg); }
.worklist__row:hover .worklist__n, .worklist__row:hover .worklist__title { color: var(--red); }
.worklist__row .worklist__n, .worklist__row .worklist__title { transition: color 0.2s ease; }
.service, .person, .fact, .stat, .sector, .network__item, .office { transition: transform 0.25s ease, border-color 0.25s ease; }
.service:hover, .person:hover, .network__item:hover, .office:hover { transform: translateY(-4px); border-top-color: var(--red); }
.service h3, .person h3 { transition: color 0.2s ease; }
.service:hover h3 { color: var(--red); }

/* Buttons and links */
.btn { transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(5px); }
.btn:active { transform: translateY(1px); }
.link-underline { position: relative; border-bottom: 0; }
.link-underline::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform-origin: left; transition: transform 0.25s ease; }
.link-underline:hover::after { transform: scaleX(0.3); }
.nav__links a { position: relative; padding-bottom: 2px; }
.nav__links a:not([aria-current="page"]):not(.nav__contact)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease; }
.nav__links a:hover::after { transform: scaleX(1); }
.sec-nav a { transition: color 0.2s ease; }
.sector-detail__link, .pub__title { transition: color 0.2s ease; }
.pub:hover .pub__title { color: var(--red); }
.filter { transition: color 0.2s ease, border-color 0.2s ease; }
@media (prefers-reduced-motion: reduce) {
  .worklist__row, .case, .pub, .svc, .sector-detail, .service, .person, .fact, .stat, .sector, .network__item, .office, .btn, .btn .arrow, .link-underline::after, .nav__links a::after { transition: none; }
  .worklist__row:hover, .service:hover, .person:hover, .network__item:hover, .office:hover { transform: none; }
}

/* ---------- World map ---------- */
.map { background: var(--fg); color: var(--bg); padding-block: clamp(56px, 7.06vw, 94px); }
.map .eyebrow { color: #ff8c7a; }
.map__inner { display: flex; flex-direction: column; gap: 33px; }
.map__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 19px 38px; }
.map__head h2 { color: var(--bg); margin-top: 12px; }
.map__legend { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 12px 26px; font-size: 15px; color: #bdcad3; }
.map__legend li { display: flex; align-items: center; gap: 9px; }
.map__swatch { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.map__swatch--office { background: var(--red); box-shadow: 0 0 0 4px rgba(176,0,16,0.35); }
.map__swatch--partner { background: transparent; border: 1.5px solid #ff8c7a; }
.map__swatch--market { background: #6b7d8a; }
.map__frame { position: relative; width: 100%; }
.map__svg { width: 100%; height: auto; display: block; overflow: visible; }
.map__land use { fill: #3a4852; }
.map__market use { fill: #6b7d8a; }
.mk { cursor: pointer; outline: none; }
.mk__dot { fill: var(--red); transition: r 0.2s ease; }
.mk--partner .mk__dot { fill: #1c2429; stroke: #ff8c7a; stroke-width: 1.5; }
.mk__ring { fill: rgba(176,0,16,0.25); transform-origin: center; animation: mk-pulse 2.8s ease-out infinite; }
.mk:hover .mk__dot, .mk.is-active .mk__dot, .mk:focus-visible .mk__dot { r: 5; }
.mk--partner:hover .mk__dot, .mk--partner.is-active .mk__dot { fill: #ff8c7a; }
.mk:focus-visible .mk__dot { stroke: #fff; stroke-width: 2; }
.map__links path { fill: none; stroke-linecap: round; transition: stroke 0.25s ease, opacity 0.25s ease; }
.lk--hub { stroke: #ff8c7a; stroke-width: 1.2; opacity: 0.45; }
.lk--spoke { stroke: #ff8c7a; stroke-width: 0.8; opacity: 0.2; }
.lk.is-lit { opacity: 1; stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 0; animation: lk-draw 0.45s ease-out; }
.map__svg.is-focused .lk:not(.is-lit) { opacity: 0.08; }
.map__svg.is-focused .mk:not(.is-active):not(.is-linked) .mk__dot { opacity: 0.35; }
.mk__dot { transition: r 0.2s ease, opacity 0.25s ease; }
.mk--hub .mk__dot { r: 4.4; }
.mk--hub .mk__ring { r: 11; }
.mk.is-linked .mk__dot { r: 4.6; }
.mk--partner.is-linked .mk__dot { fill: #ff8c7a; }
@keyframes lk-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .lk.is-lit { animation: none; } }
@keyframes mk-pulse { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mk__ring { animation: none; opacity: 0.5; transform: scale(0.8); } }
.map__tip { position: absolute; z-index: 5; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--bg); color: var(--fg); font-size: 15px; line-height: 1.4; box-shadow: 0 9px 28px rgba(0,0,0,0.35); pointer-events: none; max-width: 306px; }
.map__tip[hidden] { display: none; }
.map__note { display: none; margin: 12px 0 0; font-size: 14px; color: #bdcad3; }
.map__frame.is-cropped .map__svg { overflow: hidden; }
.map__frame.is-cropped .map__note { display: block; }
.map__frame.is-cropped .mk__dot { r: 5.5; }
.map__frame.is-cropped .mk--hub .mk__dot { r: 6.5; }
.map__tip-name { font-weight: 600; font-size: 16px; }
.map__tip-kind { color: var(--red); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.map__tip-who { color: var(--fg-quiet); }
@media (max-width: 640px) { .mk__dot { r: 4.5; } .map__legend { gap: 9px 19px; } }
