/* ==========================================================================
   Base — reset, typography primitives, shared utilities
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h3, h4 { letter-spacing: -0.02em; line-height: 1.14; }

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
h4 { font-size: var(--fs-h4); line-height: 1.3; }

/* `pretty` keeps a single word from being stranded on the last line. */
p, li, dd, figcaption { text-wrap: pretty; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.15em; }
li { margin-bottom: .45em; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

::selection { background: var(--ink); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* --- Layout helpers ---------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: calc(var(--maxw-narrow) + var(--gutter) * 2); }
.wrap--wide   { max-width: 1520px; }

.section { padding-block: var(--sec-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section--sand  { background: var(--sand); }
.section--ink   { background: var(--ink); color: #fff; }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }

.rule { height: 1px; background: var(--line); border: 0; }

/* --- Type helpers ------------------------------------------------------ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .85em;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1.5rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brass);
  flex: none;
}

/* Technical register: tiny uppercase mono, near-solid leading. */
.mono {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow--center { justify-content: center; }
.section--ink .eyebrow { color: var(--brass-lite); }
.section--ink .eyebrow::before { background: var(--brass-lite); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
}

.section--ink .lead { color: rgba(255, 255, 255, .72); }

.muted { color: var(--muted); }

.display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -0.04em;
}

.upper-wide {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 10.5px;
  font-weight: 500;
}

.center { text-align: center; }
.measure { max-width: 62ch; }
.measure--tight { max-width: 48ch; }
.mx-auto { margin-inline: auto; }

/* --- Section heading block --------------------------------------------- */

.sec-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head--center { text-align: center; }
.sec-head--center .measure { margin-inline: auto; }
.sec-head h2 { margin-bottom: .5rem; }
.sec-head .lead { margin-top: 1.1rem; }

.sec-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

@media (max-width: 860px) {
  .sec-head--split { grid-template-columns: 1fr; align-items: start; }
}

/* --- Buttons ----------------------------------------------------------- */

/* Buttons.
   Hover is a fill sweeping up from below on a ::before layer (not a colour
   fade), a lift with a warm shadow, and — where a .btn__arrow is present —
   the arrow sliding out of a pill while a second one slides in behind it. */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  --btn-bd: var(--ink);
  --btn-sweep: var(--brass-lite);   /* colour that rises on hover */
  --btn-fg-hover: #0A1A28;
  --btn-glow: rgba(180, 130, 58, .34);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .85em;
  padding: 1.05em 2em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: color .34s var(--ease), border-color .34s var(--ease),
              transform .22s var(--ease-out), box-shadow .3s var(--ease);
}

/* No arrow pill? Keep the padding symmetrical. */


.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--btn-sweep);
  transform: translateY(101%);
  transition: transform .46s var(--ease-out);
}

.btn:hover {
  color: var(--btn-fg-hover);
  border-color: var(--btn-sweep);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px var(--btn-glow);
}

.btn:hover::before { transform: translateY(0); }

.btn:active {
  transform: translateY(0) scale(.984);
  transition-duration: 90ms;
}

/* --- Arrow -------------------------------------------------------------- */
/* Plain inline arrow, no pill — one slides out as the next slides in. */

.btn__arrow {
  position: relative;
  display: inline-block;
  width: 13px;
  height: 13px;
  flex: none;
  overflow: hidden;
  vertical-align: middle;
}

.btn__arrow::before,
.btn__arrow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask: var(--arrow) no-repeat center / 100% auto;
  mask: var(--arrow) no-repeat center / 100% auto;
  transition: transform .42s var(--ease-out);
}

.btn__arrow::after { transform: translateX(-160%); }

.btn:hover .btn__arrow::before { transform: translateX(160%); }
.btn:hover .btn__arrow::after  { transform: translateX(0); }

/* --- Variants ------------------------------------------------------------ */

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line);
}

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  --btn-bd: #fff;
}

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, .42);
  --btn-sweep: #fff;
  --btn-fg-hover: #0A1A28;
  --btn-glow: rgba(255, 255, 255, .26);
}

@media (prefers-reduced-motion: reduce) {
  .btn, .btn::before, .btn__arrow, .btn__arrow::before, .btn__arrow::after {
    transition: none !important;
  }
  .btn:hover { transform: none; }
  .btn:hover::before { transform: translateY(0); }
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  align-items: center;
}

/* --- Text link with underline sweep ------------------------------------ */

.tlink {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: .35em;
  border-bottom: 1px solid var(--line);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}

.tlink:hover { color: var(--brass); border-color: var(--brass); }
.tlink svg { transition: transform .3s var(--ease); }
.tlink:hover svg { transform: translateX(4px); }

.section--ink .tlink { color: #fff; border-color: rgba(255,255,255,.28); }
.section--ink .tlink:hover { color: var(--brass-lite); border-color: var(--brass-lite); }

/* --- Skip link --------------------------------------------------------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: .8rem 1.2rem;
}

.skip:focus { left: 1rem; top: 1rem; }

/* ==========================================================================
   TYPE CONSOLIDATION
   One label treatment, one data treatment, one heading weight. This block is
   last so it wins over anything that drifted while the design evolved.
   ========================================================================== */

/* --- Headings: a single display weight ----------------------------------- */

h1, h2, .display,
.hero h1, .phero h1, .cta h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.02;
}

h3, h4, .region b, .quote__by b {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.16;
}

.pull p { font-weight: 700; letter-spacing: -0.03em; }

/* --- Labels: ONE treatment everywhere ------------------------------------ */

.eyebrow,
.btn,
.nav__link,
.topbar,
.field label,
.cdetail dt,
.foot h4,
.foot__contact .lbl,
.hero__stat > span,
.credband__item > span,
.case__tag,
.case__route,
.case__meta div span,
.svc__more,
.region em,
.marq__track span,
.subnav a,
.crumbs,
.tlink,
.split__badge span,
.upper-wide,
.member .role,
.hud__readout,
.hero__reg,
.brand__tag {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* Two that carry more text and need a touch more room to breathe. */
.hero__brief { font-size: 12.5px; letter-spacing: .06em; line-height: 1.5; }
.brand__tag  { font-size: 10px; letter-spacing: .2em; }
.topbar      { letter-spacing: .1em; }

/* --- Data: monospace, and only here -------------------------------------- */

.code, .hero__creed, .svc__num, .map .plabel {
  font-family: var(--font-mono);
  font-weight: 500;
}

.code, .svc__num { font-size: 10.5px; letter-spacing: .12em; }
.hero__creed { font-size: 11px; letter-spacing: .06em; line-height: 1.55; }

/* --- Opacity: two levels, not five --------------------------------------- */

.eyebrow { color: var(--ink); }
.section--ink .eyebrow, .cta .eyebrow, .phero .eyebrow { color: #fff; }
.code { color: var(--muted-soft); }
.section--ink .code, .cta .code, .phero .code { color: rgba(255, 255, 255, .5); }
