/* McDade Construction Intelligence
   Editorial grid, warm paper + ink, one signal colour. */

:root {
  --paper: #eeebe5;
  --paper-2: #e5e1d9;
  --ink: #111111;
  --ink-2: #3b3a37;
  --muted: #7a766e;
  --line: rgba(17, 17, 17, .14);
  --line-strong: rgba(17, 17, 17, .32);
  --night: #0c0d0d;
  --night-2: #161717;
  --on-night: #e9e6df;
  --on-night-muted: #8d8a83;
  --line-night: rgba(233, 230, 223, .14);
  --signal: #ff5b14;

  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Newsreader", "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 3.2vw, 48px);
  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--signal); color: #fff; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -.035em; line-height: 1; }
em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }

.mono { font-family: var(--mono); font-size: 12px; line-height: 1.5; letter-spacing: .04em; text-transform: uppercase; font-weight: 400; }
.muted { color: var(--muted); }
.sig { color: var(--signal); }

.display { font-size: clamp(3.1rem, 9.4vw, 11rem); line-height: .88; letter-spacing: -.055em; font-weight: 500; }
.h-xl { font-size: clamp(2.5rem, 6.2vw, 6.6rem); line-height: .92; letter-spacing: -.05em; }
.h-l { font-size: clamp(2rem, 3.8vw, 3.8rem); line-height: .98; letter-spacing: -.045em; }
.h-m { font-size: clamp(1.45rem, 2.2vw, 2.1rem); line-height: 1.08; letter-spacing: -.035em; }
.lead { font-size: clamp(1.15rem, 1.55vw, 1.45rem); line-height: 1.42; letter-spacing: -.015em; color: var(--ink-2); }

.wrap { padding-left: var(--gutter); padding-right: var(--gutter); max-width: 1680px; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.8vw, 28px); }

.section { padding: clamp(88px, 13vw, 200px) 0; position: relative; }
.section--tight { padding: clamp(64px, 8vw, 120px) 0; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Section label: (01) Label, sits in the left rail */
.label { grid-column: 1 / span 3; display: flex; gap: 10px; align-items: baseline; padding-top: .45em; }
.label .n { color: var(--signal); }
.content { grid-column: 4 / -1; }

/* Night sections */
.night { background: var(--night); color: var(--on-night); }
.night .muted, .night .lead { color: var(--on-night-muted); }
.night .rule { border-color: var(--line-night); }

/* ---------- Loader / page transition ---------- */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--night); color: var(--on-night); display: none; pointer-events: none; }
.js .loader { display: block; animation: loaderBail .4s 4s forwards; }
@keyframes loaderBail { to { opacity: 0; visibility: hidden; } }
.loader-inner { position: absolute; inset: var(--gutter); display: flex; flex-direction: column; justify-content: space-between; }
.loader-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.loader-word { font-size: clamp(2.6rem, 8vw, 8rem); letter-spacing: -.055em; line-height: .9; overflow: hidden; }
.loader-word span { display: inline-block; }
.loader-count { font-family: var(--mono); font-size: clamp(2.4rem, 7vw, 7rem); letter-spacing: -.04em; line-height: .9; font-variant-numeric: tabular-nums; }
.loader-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--signal); transform-origin: left; transform: scaleX(0); }
.return .loader-inner { display: none; }

/* ---------- Header ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h); color: var(--ink); transition: transform .7s var(--ease), background-color .4s, color .4s, border-color .4s; border-bottom: 1px solid transparent; }
.header .wrap { height: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.8vw, 28px); align-items: center; }
.on-dark .header:not(.is-solid) { color: var(--on-night); }
.header.is-solid { background: rgba(238, 235, 229, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header.is-solid.is-dark { background: rgba(12, 13, 13, .8); color: var(--on-night); border-color: var(--line-night); }
.header.is-dark .pill::before { background: var(--on-night); }
.header.is-dark .pill:hover { color: var(--night); border-color: var(--on-night); }
.brand { grid-column: 1 / span 3; display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.brand-word { font-size: 23px; font-weight: 600; letter-spacing: -.05em; }
.brand-word i { font-family: var(--serif); font-weight: 400; }
.brand-sub { opacity: .65; }
.nav { grid-column: 4 / span 6; display: flex; gap: clamp(18px, 2.4vw, 40px); }
.nav a { position: relative; font-size: 15px; display: inline-flex; gap: 6px; align-items: baseline; }
.nav a .mono { font-size: 10px; opacity: .55; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-end { grid-column: 10 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
.clock { display: inline-flex; align-items: center; gap: 8px; opacity: .75; white-space: nowrap; }
.clock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.menu-btn { display: none; }

/* Pill button */
.pill { position: relative; display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 8px 0 22px; border-radius: 999px; border: 1px solid currentColor; font-size: 15px; overflow: hidden; isolation: isolate; white-space: nowrap; transition: color .5s var(--ease); }
.pill::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); border-radius: inherit; transform: translateY(101%); transition: transform .6s var(--ease); }
.pill:hover { color: var(--paper); border-color: var(--ink); }
.pill:hover::before { transform: translateY(0); }
.on-dark .header:not(.is-solid) .pill:hover, .night .pill:hover { color: var(--night); border-color: var(--on-night); }
.on-dark .header:not(.is-solid) .pill::before, .night .pill::before { background: var(--on-night); }
.pill .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--signal); display: grid; place-items: center; color: #fff; transition: transform .6s var(--ease); }
.pill:hover .dot { transform: rotate(-45deg); }
.pill .dot svg { width: 13px; height: 13px; }
.pill--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill--solid::before { background: var(--signal); }
.pill--solid:hover { color: #fff; border-color: var(--signal); }
.pill--solid:hover .dot { background: var(--ink); }

/* Mobile menu */
.menu { position: fixed; inset: 0; z-index: 90; background: var(--night); color: var(--on-night); display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--header-h) + 24px) var(--gutter) var(--gutter); clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease-io), visibility 0s .9s; visibility: hidden; }
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-size: clamp(2.8rem, 13vw, 5rem); letter-spacing: -.05em; line-height: 1.05; display: flex; align-items: baseline; gap: 14px; border-top: 1px solid var(--line-night); padding: 10px 0 6px; }
.menu nav a .mono { color: var(--signal); }
.menu-foot { margin-top: 36px; display: flex; justify-content: space-between; gap: 16px; color: var(--on-night-muted); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; background: var(--night); color: var(--on-night); overflow: hidden; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 115%; object-fit: cover; object-position: center 60%; filter: grayscale(.35) contrast(1.06) brightness(.82); will-change: transform; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,13,13,.55) 0%, rgba(12,13,13,.12) 35%, rgba(12,13,13,.35) 62%, rgba(12,13,13,.92) 100%); }
.hero-grid { position: absolute; inset: 0; pointer-events: none; }
.hero-grid .wrap, .hero-grid .grid { height: 100%; }
.hero-grid span { border-left: 1px solid rgba(233, 230, 223, .09); height: 100%; }
.hero-grid span:nth-child(1) { grid-column: 4; }
.hero-grid span:nth-child(2) { grid-column: 7; }
.hero-grid span:nth-child(3) { grid-column: 10; }
.hero-body { position: relative; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(28px, 4vw, 52px); }
.hero h1 { margin-bottom: clamp(36px, 6vw, 88px); }
.line { display: block; overflow: hidden; padding: 0 .06em .16em 0; margin-bottom: -.16em; }
.line > span { display: inline-block; will-change: transform; }
.hero h1 em { color: var(--signal); padding-right: .04em; }
.hero-foot { align-items: end; padding-top: 22px; border-top: 1px solid var(--line-night); }
.hero-foot .mono { color: var(--on-night-muted); }
.hero-foot .lead { grid-column: 4 / span 5; color: var(--on-night); margin: 0; font-size: clamp(1.05rem, 1.35vw, 1.3rem); }
.hero-foot .coords { grid-column: 1 / span 3; }
.hero-foot .scroll { grid-column: 10 / -1; justify-self: end; display: flex; align-items: center; gap: 14px; }
.scroll-line { width: 1px; height: 46px; background: rgba(233, 230, 223, .25); position: relative; overflow: hidden; }
.scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--signal); transform: translateY(-100%); animation: scrollLine 2.2s var(--ease-io) infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* Inner page hero */
.page-hero { padding: calc(var(--header-h) + clamp(64px, 11vw, 170px)) 0 clamp(48px, 6vw, 90px); }
.page-hero .crumb { grid-column: 1 / span 3; padding-top: .9em; }
.page-hero h1 { grid-column: 4 / -1; }
.page-hero .lead { grid-column: 4 / span 6; margin-top: clamp(28px, 3.5vw, 48px); }
.page-hero--night { background: var(--night); color: var(--on-night); }
.page-hero--night .lead { color: var(--on-night-muted); }
.page-hero h1 em { color: var(--signal); }

/* Full-bleed figure */
.bleed { position: relative; overflow: hidden; height: clamp(380px, 82vh, 920px); margin: 0; }
.bleed img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; filter: grayscale(.4) contrast(1.05); will-change: transform; }
.bleed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.5)); }
.bleed figcaption { position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; color: #fff; }
.bleed figcaption .h-m { max-width: 22ch; }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 22px 0; white-space: nowrap; user-select: none; }
.marquee-track { display: inline-flex; animation: marquee 38s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: clamp(22px, 3vw, 46px); padding-right: clamp(22px, 3vw, 46px); font-size: clamp(1.6rem, 3.4vw, 3.2rem); letter-spacing: -.045em; }
.marquee-track span::after { content: ""; width: .28em; height: .28em; background: var(--signal); }
.marquee-track span:nth-child(even) { font-family: var(--serif); font-style: italic; letter-spacing: -.03em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Statement ---------- */
.statement { font-size: clamp(1.8rem, 4vw, 4.2rem); line-height: 1.06; letter-spacing: -.038em; margin: 0; }
.statement em { color: var(--signal); }

/* ---------- Service index ---------- */
.index { border-top: 1px solid var(--line-strong); }
.index-row { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.8vw, 28px); align-items: baseline; padding: clamp(24px, 3vw, 40px) clamp(0px, 1vw, 16px); border-bottom: 1px solid var(--line-strong); }
.index-row::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease); z-index: 0; }
.index-row > * { position: relative; z-index: 1; transition: color .5s var(--ease), transform .7s var(--ease); }
.index-row .n { grid-column: 1 / span 1; }
.index-row .t { grid-column: 2 / span 6; font-size: clamp(1.9rem, 3.3vw, 3.6rem); letter-spacing: -.05em; line-height: .98; }
.index-row .d { grid-column: 8 / span 4; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.index-row .a { grid-column: 12; justify-self: end; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; align-self: center; transition: background .5s, border-color .5s, transform .7s var(--ease), color .5s; }
.index-row .a svg { width: 15px; height: 15px; }
@media (hover: hover) {
  .index-row:hover::before { transform: scaleY(1); transform-origin: top; }
  .index-row:hover > * { color: var(--paper); }
  .index-row:hover .t { transform: translateX(clamp(8px, 1.4vw, 22px)); }
  .index-row:hover .n { color: var(--signal); }
  .index-row:hover .d { color: rgba(238, 235, 229, .72); }
  .index-row:hover .a { background: var(--signal); border-color: var(--signal); color: #fff; transform: rotate(-45deg); }
}
.hover-media { position: fixed; left: 0; top: 0; z-index: 80; width: clamp(220px, 18vw, 300px); aspect-ratio: 4 / 5; pointer-events: none; overflow: hidden; clip-path: inset(50% 50% 50% 50%); transition: clip-path .7s var(--ease); }
.hover-media.is-on { clip-path: inset(0 0 0 0); }
.hover-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.15); transition: opacity .45s, transform 1s var(--ease); filter: grayscale(.2); }
.hover-media img.is-active { opacity: 1; transform: scale(1); }

/* ---------- Process (sticky) ---------- */
.process { align-items: start; }
.process-head { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 40px); }
.process-head .h-xl { margin: 26px 0 28px; }
.process-steps { grid-column: 7 / -1; position: relative; padding-left: clamp(24px, 3vw, 48px); }
.process-track { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line-night); }
.process-fill { position: absolute; inset: 0; background: var(--signal); transform-origin: top; transform: scaleY(0); }
.step { padding: 0 0 clamp(80px, 12vw, 180px); }
.step:last-child { padding-bottom: 0; }
.step .big { font-size: clamp(4.5rem, 10vw, 10rem); letter-spacing: -.06em; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(233, 230, 223, .4); margin-bottom: 24px; display: block; }
.step h3 { margin-bottom: 16px; }
.step p { max-width: 46ch; color: var(--on-night-muted); font-size: 18px; }

/* ---------- Sources grid ---------- */
.cells { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line); }
.cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(22px, 2.4vw, 36px); min-height: clamp(180px, 16vw, 250px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; transition: background .5s; }
.cell:hover { background: var(--paper-2); }
.cell h3 { font-size: clamp(1.3rem, 1.8vw, 1.7rem); letter-spacing: -.035em; margin-bottom: 10px; }
.cell p { color: var(--ink-2); font-size: 15.5px; margin: 0; max-width: 34ch; }

/* ---------- Two-column prose ---------- */
.prose-cols { grid-column: 4 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 56px); }
.prose-cols p { color: var(--ink-2); }

/* Figure with clip reveal */
.fig { position: relative; overflow: hidden; background: var(--paper-2); margin: 0; }
.fig img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.04); }
.fig-cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; color: var(--muted); }

/* Lists with rules */
.ruled { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.ruled li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.ruled li .mono { color: var(--muted); padding-top: .3em; }
.night .ruled, .night .ruled li { border-color: var(--line-night); }

/* Facts table */
.facts { margin: 0; border-top: 1px solid var(--line-strong); }
.facts div { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); column-gap: clamp(12px, 1.8vw, 28px); padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.facts dt { grid-column: 1 / span 3; }
.facts dd { grid-column: 4 / -1; margin: 0; font-size: clamp(1.15rem, 1.6vw, 1.5rem); letter-spacing: -.025em; }

/* ---------- Services page ---------- */
.svc-layout { align-items: start; }
.svc-nav { grid-column: 1 / span 3; position: sticky; top: calc(var(--header-h) + 40px); }
.svc-nav ol { list-style: none; margin: 18px 0 0; padding: 0; }
.svc-nav li a { display: flex; gap: 12px; padding: 9px 0; color: var(--muted); transition: color .4s; font-size: 15px; }
.svc-nav li a .mono { transition: color .4s; }
.svc-nav li a.is-active, .svc-nav li a:hover { color: var(--ink); }
.svc-nav li a.is-active .mono { color: var(--signal); }
.svc-list { grid-column: 4 / -1; }
.svc { padding-bottom: clamp(90px, 12vw, 180px); scroll-margin-top: calc(var(--header-h) + 30px); }
.svc:last-child { padding-bottom: 0; }
.svc-top { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line-strong); margin-bottom: clamp(28px, 3.5vw, 48px); }
.svc h2 { margin-bottom: clamp(28px, 3.5vw, 48px); max-width: 14ch; }
.svc .fig { aspect-ratio: 16 / 9; margin-bottom: clamp(28px, 3.5vw, 48px); }
.svc-body { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); column-gap: clamp(12px, 1.8vw, 28px); }
.svc-body .lead { grid-column: 1 / span 4; }
.svc-body .inc { grid-column: 5 / -1; }
.inc h3 { margin-bottom: 14px; }
.brief { margin-top: clamp(28px, 3.5vw, 44px); grid-column: 5 / -1; padding: 24px 26px; background: var(--paper-2); border-left: 2px solid var(--signal); }
.brief p { margin: 10px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.4; letter-spacing: -.01em; }

.formats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-night); }
.format { padding: clamp(24px, 3vw, 44px) clamp(18px, 2.4vw, 36px) clamp(24px, 3vw, 44px) 0; border-right: 1px solid var(--line-night); }
.format + .format { padding-left: clamp(18px, 2.4vw, 36px); }
.format:last-child { border-right: 0; }
.format h3 { margin: 40px 0 14px; }
.format p { color: var(--on-night-muted); margin: 0; max-width: 34ch; }

/* ---------- CTA ---------- */
.cta { padding: clamp(96px, 14vw, 220px) 0 clamp(64px, 8vw, 120px); }
.cta-link { display: block; position: relative; }
.cta-link .display { display: flex; align-items: center; gap: .18em; flex-wrap: wrap; }
.cta-link em { color: var(--signal); }
.cta-arrow { display: inline-grid; place-items: center; width: .92em; height: .92em; border-radius: 50%; background: var(--signal); color: #fff; transition: transform .8s var(--ease), background .5s; flex: none; }
.cta-arrow svg { width: 38%; height: 38%; }
.cta-link:hover .cta-arrow { transform: rotate(-45deg) scale(1.06); background: var(--ink); }
.cta-meta { margin-top: clamp(28px, 4vw, 56px); padding-top: 20px; border-top: 1px solid var(--line-strong); }
.cta-meta .lead { grid-column: 4 / span 6; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { align-items: start; }
.contact-aside { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 40px); }
.contact-aside .ruled { margin-top: 28px; }
.form { grid-column: 6 / -1; }
.field { position: relative; border-bottom: 1px solid var(--line-strong); padding-top: 30px; }
.field label { position: absolute; left: 0; top: 36px; font-size: clamp(1.15rem, 1.6vw, 1.5rem); letter-spacing: -.025em; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .5s var(--ease), color .3s; }
.field input, .field textarea { width: 100%; background: transparent; border: 0; outline: 0; font: inherit; font-size: clamp(1.15rem, 1.6vw, 1.5rem); letter-spacing: -.025em; color: var(--ink); padding: 6px 0 14px; resize: none; border-radius: 0; }
.field textarea { min-height: 150px; display: block; }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field:focus-within label, .field.has-value label { transform: translateY(-30px) scale(.62); color: var(--ink); }
.field .req { color: var(--signal); }
.field.is-invalid { border-color: var(--signal); }
.field.is-invalid label { color: var(--signal); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 40px); }
.chips-wrap { padding: 34px 0 22px; border-bottom: 1px solid var(--line-strong); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.chip span { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 15px; transition: background .4s, color .4s, border-color .4s; }
.chip span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; transition: background .3s, border-color .3s; }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:checked + span::before { background: var(--signal); border-color: var(--signal); }
.chip input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.form-foot { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.form-foot p { margin: 0; max-width: 44ch; color: var(--muted); font-size: 14.5px; }
.form-foot a { text-decoration: underline; text-underline-offset: 3px; }
.form-status { margin-top: 18px; min-height: 1.5em; color: var(--signal); }

/* ---------- Legal ---------- */
.legal-layout { align-items: start; }
.toc { grid-column: 1 / span 3; position: sticky; top: calc(var(--header-h) + 40px); }
.toc ol { list-style: none; margin: 16px 0 0; padding: 0; }
.toc li a { display: block; padding: 6px 0; color: var(--muted); font-size: 14.5px; transition: color .3s; }
.toc li a:hover { color: var(--ink); }
.legal { grid-column: 4 / span 7; }
.legal .updated { margin-bottom: 40px; }
.legal h2 { font-size: clamp(1.4rem, 2vw, 1.8rem); letter-spacing: -.035em; margin: 56px 0 18px; padding-top: 18px; border-top: 1px solid var(--line-strong); scroll-margin-top: calc(var(--header-h) + 24px); display: flex; gap: 16px; }
.legal h2 .mono { color: var(--signal); padding-top: .55em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.1em; margin: 0 0 1em; }
.legal li { margin-bottom: .45em; }
.legal li::marker { color: var(--signal); }
.legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.legal a:hover { text-decoration-color: var(--signal); }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: var(--on-night); padding-top: clamp(64px, 8vw, 120px); overflow: hidden; }
.footer-cols { row-gap: 40px; }
.footer-cols > div { grid-column: span 3; }
.footer-cols h4 { margin-bottom: 18px; color: var(--on-night-muted); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 8px; }
.footer-cols a { transition: color .3s; }
.footer-cols a:hover { color: var(--signal); }
.footer-cols p { color: var(--on-night-muted); margin: 0 0 8px; }
.footer-cols .footer-intro { color: var(--on-night); font-size: clamp(1.2rem, 1.6vw, 1.5rem); letter-spacing: -.025em; line-height: 1.3; max-width: 24ch; }
.footer-intro em { color: var(--signal); }
.wordmark { font-size: clamp(5rem, 25.5vw, 30rem); letter-spacing: -.075em; line-height: .8; font-weight: 600; white-space: nowrap; overflow: hidden; margin: 0 0 -.1em -.04em; padding-top: .04em; user-select: none; }
.wordmark i { font-family: var(--serif); font-weight: 400; letter-spacing: -.06em; }
.wordmark .ch { display: inline-block; }
.footer-base { margin-top: clamp(64px, 9vw, 140px); display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--line-night); color: var(--on-night-muted); }
.footer-base a:hover { color: var(--on-night); }
.to-top { display: inline-flex; gap: 8px; align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 18px; }
  .nav a .mono { display: none; }
  .clock { display: none; }
  .index-row .t { grid-column: 2 / span 10; }
  .index-row .d { grid-column: 2 / span 9; margin-top: 12px; }
  .index-row .a { grid-row: 1; }
  .cells { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .nav, .header-end .pill { display: none; }
  .brand { grid-column: 1 / span 9; }
  .brand-sub { display: none; }
  .header-end { grid-column: 10 / -1; }
  .menu-btn { display: inline-flex; align-items: center; gap: 10px; height: 40px; }
  .menu-btn .bars { width: 22px; height: 10px; position: relative; }
  .menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .6s var(--ease), top .6s var(--ease); }
  .menu-btn .bars::before { top: 0; }
  .menu-btn .bars::after { top: 8.5px; }
  .menu-open .menu-btn .bars::before { top: 4.25px; transform: rotate(45deg); }
  .menu-open .menu-btn .bars::after { top: 4.25px; transform: rotate(-45deg); }
  .menu-open .header { color: var(--on-night) !important; background: transparent !important; border-color: transparent !important; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none !important; }

  .label, .content, .page-hero .crumb, .page-hero h1, .page-hero .lead, .prose-cols, .hero-foot .lead, .hero-foot .coords, .hero-foot .scroll, .cta-meta .lead { grid-column: 1 / -1; }
  .label { margin-bottom: 26px; padding-top: 0; }
  .page-hero .crumb { margin-bottom: 22px; padding-top: 0; }
  .hero-foot { row-gap: 18px; }
  .hero-foot .coords { order: 2; }
  .hero-foot .scroll { display: none; }
  .hero-grid span:nth-child(2), .hero-grid span:nth-child(3) { display: none; }
  .prose-cols { grid-template-columns: 1fr; gap: 0; }

  .index-row .n { grid-column: 1 / span 4; }
  .index-row .t { grid-column: 1 / span 10; grid-row: 2; margin-top: 10px; }
  .index-row .d { grid-column: 1 / -1; grid-row: 3; }
  .index-row .a { grid-column: 11 / -1; grid-row: 1 / span 2; width: 40px; height: 40px; }

  .process-head, .process-steps { grid-column: 1 / -1; position: static; }
  .process-steps { margin-top: 56px; }
  .cells { grid-template-columns: 1fr; }
  .cell { min-height: 0; }

  .svc-nav { display: none; }
  .svc-list { grid-column: 1 / -1; }
  .svc-body .lead, .svc-body .inc, .brief { grid-column: 1 / -1; }
  .svc-body .lead { margin-bottom: 28px; }
  .formats { grid-template-columns: 1fr; }
  .format, .format + .format { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line-night); }
  .format h3 { margin-top: 18px; }

  .contact-aside, .form { grid-column: 1 / -1; position: static; }
  .form { margin-top: 56px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }

  .toc { display: none; }
  .legal { grid-column: 1 / -1; }

  .facts dt { grid-column: 1 / -1; margin-bottom: 4px; }
  .facts dd { grid-column: 1 / -1; }
  .footer-cols > div { grid-column: span 6; }
  .footer-cols > div:first-child { grid-column: 1 / -1; }
  .bleed figcaption { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .footer-cols > div { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee-track { animation: none; }
  .js .loader { display: none; }
}

/* ---------- Additions ---------- */
.cells--2 { grid-template-columns: repeat(2, 1fr); }
fieldset.chips-wrap { border: 0; border-bottom: 1px solid var(--line-strong); margin: 0; padding: 34px 0 22px; min-width: 0; }
fieldset.chips-wrap legend { padding: 0; float: left; width: 100%; }
fieldset.chips-wrap .chips { clear: both; padding-top: 16px; margin-top: 0; }
@media (max-width: 860px) { .cells--2 { grid-template-columns: 1fr; } }
