/* Inter — self-hosted, OFL. One variable woff2 covers 400/600/800. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-400.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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-400.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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-400.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;
}

/* ============================================================================
   IPM — Linen theme layer (over sections.css + hero-scroll.css)
   Cream ground · navy structure · gold as keylines and first light only.
   ========================================================================== */

:root {
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --surface-oat: #F2EDE3;
  --text: #14202E;
  --navy: #1F3D5C;
  --deep: #14202E;
  --muted: #52657B;                 /* 5.6:1 on cream, 6.5:1 on white */
  --stroke: rgba(31, 61, 92, .16);
  --accent: #C9A86A;                /* bars, keylines, details only — never text */
  --accent-rgb: 201, 168, 106;
  --accent-ink: #14202E;
  --r: 10px;
  --font-display: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Roboto Mono', Menlo, monospace;

  /* hero engine theme */
  --hero-bg: #FAF8F4;
  --hero-text: #14202E;
  --hero-accent: #1F3D5C;
  --hero-muted: #52657B;
  --hero-stroke: rgba(31, 61, 92, .25);
}

/* ---- base ---------------------------------------------------------------- */
* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }   /* height:auto — the stretch lesson */
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 2px; }

/* paper grain — texture, not motion */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .028; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 { font-family: var(--font-display); color: var(--deep); line-height: 1.12; letter-spacing: -0.015em; }
h1 { font-weight: 800; }
h2 { font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin: 0 0 1rem; }
h3 { font-weight: 600; font-size: 1.12rem; margin: 0 0 .5rem; }
p  { margin: 0 0 1rem; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 46em; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 3rem); }
section { padding: clamp(3.6rem, 7vw, 6.5rem) 0; }

/* micro-label: mono voice, navy text, gold bar — gold never as text */
.kicker {
  display: flex; align-items: center; gap: .65rem;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase; color: var(--navy);
  margin: 0 0 1.1rem;
}
.kicker::before { content: ''; width: 26px; height: 3px; background: var(--accent); flex: none; }

/* ---- buttons -------------------------------------------------------------- */
.btn {
  display: inline-block; padding: .78rem 1.5rem; border-radius: 6px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  background: var(--navy); color: #FAF8F4; border: 1px solid var(--navy);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { background: var(--deep); border-color: var(--deep); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: rgba(31, 61, 92, .07); color: var(--deep); }
.btn + .btn { margin-left: .6rem; }

/* ---- nav ------------------------------------------------------------------ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem clamp(1.2rem, 4vw, 3rem);
  background: transparent; transition: background .3s ease, box-shadow .3s ease;
}
.nav.is-scrolled {
  background: rgba(250, 248, 244, .88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--stroke);
}
.nav--solid { position: sticky; background: var(--bg); box-shadow: 0 1px 0 var(--stroke); }
.nav__brand { display: inline-flex; align-items: center; text-decoration: none; }
.nav__brand img { height: 34px; width: auto; }
.nav__menu { display: flex; gap: 1.5rem; align-items: center; }
.nav__menu a { font-size: .92rem; font-weight: 600; color: var(--deep); text-decoration: none; }
.nav__menu a.btn { color: #FAF8F4; }          /* .nav__menu a out-specifies .btn — restate */
.nav__menu a.btn:hover { color: #FFFFFF; }
.nav__menu a:not(.btn):hover { box-shadow: inset 0 -2px 0 var(--accent); }
.nav__menu a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.nav__tel { font-family: var(--font-mono); font-size: .85rem; letter-spacing: .02em; }
.nav__toggle { display: none; }
@media (max-width: 760px) {
  .nav__toggle {
    display: block; background: none; border: 1px solid var(--stroke); border-radius: 6px;
    padding: .45rem .8rem; font: 600 .85rem var(--font-body); color: var(--deep); cursor: pointer;
  }
  .nav__menu {
    display: none; position: fixed; inset: 0; background: var(--bg);
    flex-direction: column; justify-content: center; align-items: center; gap: 2rem;
    font-size: 1.2rem; z-index: 70;
  }
  .nav__menu.is-open { display: flex; }
}

/* ---- hero additions -------------------------------------------------------- */
.hero-film { height: 840vh; }                     /* 240 frames × 3.5vh */
.hero-band[data-pos="top"] .hero-wordmark { height: 86px; width: auto; margin: 0 auto 1.2rem; }
/* The engine writes style.transform (translateY entrance) on every band each
   frame, which wipes the stylesheet's translateX(-50%). Centre with insets. */
.hero-band { left: 0; right: 0; margin-left: auto; margin-right: auto; max-width: min(90vw, 980px); }
.hero-band[data-pos="center"] { top: 0; bottom: 0; height: fit-content; margin-top: auto; margin-bottom: auto; }
.hero-headline { font-size: clamp(2rem, 5.2vw, 3.9rem); font-weight: 800; letter-spacing: -0.02em; margin: .2em 0 .35em; }
.hero-sub { color: var(--hero-muted); font-size: clamp(.98rem, 1.5vw, 1.15rem); max-width: 40em; margin: 0 auto 1.4rem; }
.hero-band[data-pos="top"]::before {
  content: ''; position: absolute; inset: -22% -30%;
  background: radial-gradient(ellipse at center, rgba(250,248,244,.82) 0%, rgba(250,248,244,.35) 55%, transparent 75%);
  z-index: -1; pointer-events: none;
}
.hero-band[data-pos="center"]::before {
  content: ''; position: absolute; inset: -30% -40%;
  background: radial-gradient(ellipse at center, rgba(250,248,244,.78) 0%, rgba(250,248,244,.3) 55%, transparent 75%);
  z-index: -1; pointer-events: none;
}
.hero-band[data-pos="bottom"] p {
  font-size: clamp(1.15rem, 2.4vw, 1.7rem); font-weight: 600; color: var(--deep);
  background: rgba(250,248,244,.72); border-radius: 8px; padding: .5em .9em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.hero-vignette { display: none; }                 /* dark vignette fights a cream film */

/* ---- stat band -------------------------------------------------------------- */
.stats { background: var(--surface-oat); border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2rem; }
.stat { text-align: left; }
.stat b {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem); color: var(--navy); letter-spacing: -0.02em;
  position: relative; overflow: hidden;
}
.stat > span { font-size: .85rem; color: var(--muted); }
.stat b span { font-size: inherit; color: inherit; }
/* gold specular sweep — idle layer, RM-gated */
@media (prefers-reduced-motion: no-preference) {
  .stat b::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 42%, rgba(var(--accent-rgb), .28) 50%, transparent 58%);
    transform: translateX(-120%); animation: sweep 13s ease-in-out infinite;
  }
  @keyframes sweep { 0%, 78% { transform: translateX(-120%); } 88% { transform: translateX(120%); } 100% { transform: translateX(120%); } }
}

/* quiet fact strip (index, under hero) */
.facts { border-bottom: 1px solid var(--stroke); }
.facts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.6rem; }
.fact b { display: block; font-weight: 800; color: var(--deep); font-size: 1.15rem; }
.fact > span { font-size: .85rem; color: var(--muted); }

/* ---- cards / pillars --------------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.4rem; }
.pillar {
  background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r);
  padding: 1.7rem 1.6rem 1.5rem; position: relative; overflow: hidden;
}
.pillar::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); }
.pillar p { color: var(--muted); font-size: .95rem; }
.pillar ul { margin: .9rem 0 0; padding: 0; list-style: none; }
.pillar li {
  padding: .42rem 0 .42rem 1.2rem; position: relative;
  font-size: .9rem; color: var(--text); border-top: 1px solid var(--stroke);
}
.pillar li::before { content: ''; position: absolute; left: 0; top: .95em; width: 9px; height: 2px; background: var(--accent); }

/* project cards */
.pcard {
  background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r);
  padding: 1.6rem; display: flex; flex-direction: column; gap: .4rem; text-decoration: none; color: var(--text);
  transition: border-color .25s ease, transform .25s ease;
}
.pcard:hover { border-color: var(--navy); transform: translateY(-3px); }
.pcard .pcard__sector { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--navy); }
.pcard h3 { margin: .2rem 0 .3rem; }
.pcard p { color: var(--muted); font-size: .92rem; margin: 0 0 .9rem; }
.pcard .pcard__meta {
  margin-top: auto; display: flex; gap: 1.4rem; padding-top: .9rem; border-top: 1px solid var(--stroke);
  font-family: var(--font-mono); font-size: .8rem; color: var(--deep);
}
.pcard .pcard__meta b { font-weight: 700; color: var(--navy); }

/* ---- editorial full-bleed still (exactly one after the hero) ------------------ */
.editorial {
  background: var(--deep);
  position: relative; min-height: 72vh; display: flex; align-items: flex-end; padding: 0;
  overflow: hidden;
}
.editorial picture, .editorial img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.editorial .editorial-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(185deg, transparent 40%, rgba(20, 32, 46, .62) 92%);
}
.editorial .wrap { position: relative; z-index: 1; padding-bottom: clamp(2.4rem, 5vw, 4rem); }
.editorial h2 { color: #FAF8F4; margin: 0; font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
.editorial p { color: rgba(250, 248, 244, .85); max-width: 38em; }

/* ---- numbered strip (how we work / first call) --------------------------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.step { border-top: 2px solid var(--navy); padding-top: 1.1rem; }
.step .step__n { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .25em; color: var(--navy); display: block; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---- sector blocks (sectors page) ----------------------------------------------- */
.sector { border-top: 1px solid var(--stroke); padding: clamp(2rem, 4vw, 3rem) 0; display: grid; grid-template-columns: minmax(70px, 130px) 1fr; gap: clamp(1rem, 4vw, 3rem); }
.sector:last-of-type { border-bottom: 1px solid var(--stroke); }
.sector .sector__n { font-family: var(--font-mono); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--navy); opacity: .55; }
.sector h3 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 800; }
.sector p { color: var(--muted); max-width: 56em; }
.sector ul { margin: 1rem 0 0; padding: 0; list-style: none; columns: 2; column-gap: 2.4rem; }
.sector li { padding: .34rem 0 .34rem 1.2rem; position: relative; font-size: .92rem; break-inside: avoid; }
.sector li::before { content: ''; position: absolute; left: 0; top: .9em; width: 9px; height: 2px; background: var(--accent); }
@media (max-width: 680px) { .sector { grid-template-columns: 1fr; } .sector ul { columns: 1; } }

/* sector strip on index */
.sectorlink {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1.05rem .2rem; border-top: 1px solid var(--stroke); text-decoration: none; color: var(--text);
}
.sectorlinks > .sectorlink:last-child { border-bottom: 1px solid var(--stroke); }
.sectorlink b { font-weight: 600; }
.sectorlink span { color: var(--muted); font-size: .9rem; text-align: right; }
.sectorlink:hover b { box-shadow: inset 0 -2px 0 var(--accent); }

/* ---- case studies (projects page) ------------------------------------------------ */
.case {
  background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r);
  padding: clamp(1.5rem, 3vw, 2.4rem); margin-bottom: 1.4rem;
}
.case header { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; align-items: baseline; margin-bottom: .6rem; }
.case h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 800; margin: 0; }
.case .case__meta { font-family: var(--font-mono); font-size: .8rem; color: var(--navy); }
.case p { color: var(--muted); }
.case .case__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; margin-top: 1rem; }
.case h4 { font: 600 .78rem var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--navy); margin: 0 0 .5rem; }
.case ul { margin: 0; padding: 0; list-style: none; }
.case li { padding: .3rem 0 .3rem 1.1rem; position: relative; font-size: .9rem; }
.case li::before { content: ''; position: absolute; left: 0; top: .85em; width: 8px; height: 2px; background: var(--accent); }
.case .case__outcome { margin-top: 1.1rem; padding: .85rem 1rem; background: var(--surface-oat); border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; font-size: .93rem; color: var(--deep); }

/* ---- contact cards ----------------------------------------------------------------- */
.contact-card { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r); padding: 1.6rem; }
.contact-card .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.2rem, 2.4vw, 1.65rem); color: var(--navy); text-decoration: none; word-break: break-word; }
.contact-card .big:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.contact-card p { color: var(--muted); font-size: .92rem; margin: .6rem 0 0; }

/* ---- CTA band ------------------------------------------------------------------------ */
.cta-band { background: var(--navy); color: #FAF8F4; }
.cta-band h2 { color: #FAF8F4; }
.cta-band p { color: rgba(250, 248, 244, .8); max-width: 42em; }
.cta-band .btn { background: #FAF8F4; color: var(--navy); border-color: #FAF8F4; }
.cta-band .btn:hover { background: #fff; }
.cta-band .btn--ghost { background: transparent; color: #FAF8F4; border-color: rgba(250, 248, 244, .72); }
.cta-band .btn--ghost:hover { border-color: #FAF8F4; background: rgba(250, 248, 244, .08); }
.cta-band .kicker { color: rgba(250, 248, 244, .85); }

/* ---- page header (non-index pages) ----------------------------------------------------- */
.pagehead { padding-top: clamp(7rem, 14vh, 10rem); }
.pagehead h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -0.02em; margin: 0 0 1rem; }

/* ---- footer ------------------------------------------------------------------------------ */
footer { background: var(--deep); color: rgba(250, 248, 244, .78); padding: clamp(2.6rem, 5vw, 4rem) 0; font-size: .9rem; }
footer a { color: #FAF8F4; }
footer .foot__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem; align-items: start; }
footer address { font-style: normal; line-height: 1.8; }
footer img { height: 56px; width: auto; }
footer .foot__legal { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(250, 248, 244, .14); font-size: .8rem; color: rgba(250, 248, 244, .55); }

/* eyebrow token from sections.css re-based for light theme */
.eyebrow { color: var(--navy); }

@media (max-width: 760px) {
  .btn + .btn { margin-left: 0; margin-top: .6rem; }
  .hero-band[data-pos="top"] .hero-wordmark { height: 58px; }
}

/* soften the engine's dark wordmark shadow for the light film */
.hero-wordmark { filter: drop-shadow(0 2px 14px rgba(20,32,46,.18)); }
