/* Dharti Engineering - site styles
   Theme: graphite + safety orange. Auto light/dark via prefers-color-scheme.
   Radius system: 4px everywhere (industrial, stencil-cut). */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark light;
  --bg: #111316;
  --bg-2: #16191d;
  --surface: #1c2024;
  --surface-2: #23282d;
  --line: rgb(231 233 236 / .12);
  --line-strong: rgb(231 233 236 / .22);
  --text: #e9ebee;
  --muted: #a3aab2;
  --accent: #e8742a;
  --accent-ink: #111316;
  --accent-text: #f08a45;
  --focus: #e8742a;
  --field-bd: rgb(231 233 236 / .45);
  --shadow: 0 24px 60px -24px rgb(0 0 0 / .55);
  --radius: 4px;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 72px;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #eceef0;
    --bg-2: #e3e6e9;
    --surface: #f6f7f8;
    --surface-2: #ffffff;
    --line: rgb(17 19 22 / .12);
    --line-strong: rgb(17 19 22 / .22);
    --text: #14171a;
    --muted: #4c545d;
    --accent-text: #a8460f;
    --focus: #a8460f;
    --field-bd: rgb(17 19 22 / .5);
    --shadow: 0 24px 60px -28px rgb(32 40 48 / .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-stretch: 112%; font-weight: 750; line-height: 1.05; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible { outline-color: #e9ebee; }
.cta :focus-visible { outline-color: #111316; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.mono { font-family: var(--mono); font-weight: 500; }
.eyebrow { font: 500 .8125rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); display: inline-flex; align-items: center; gap: .6em; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.lede { color: var(--muted); font-size: clamp(1.0625rem, 1.2vw, 1.1875rem); max-width: 60ch; }
.section { padding-block: clamp(80px, 11vw, 152px); }
.section-tight { padding-block: clamp(56px, 7vw, 96px); }
.h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); }
.h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-stretch: 105%; letter-spacing: -.01em; line-height: 1.15; }
.text-link { color: var(--accent-text); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .45em; }
.text-link .icon { transition: transform .35s var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }

/* Buttons */
.btn {
  --b-bg: var(--accent); --b-fg: var(--accent-ink); --b-bd: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 24px; border-radius: var(--radius);
  background: var(--b-bg); color: var(--b-fg); border: 1px solid var(--b-bd);
  font: 600 1rem/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn:hover { --b-bg: #f2823a; --b-bd: #f2823a; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn-ghost { --b-bg: transparent; --b-fg: var(--text); --b-bd: var(--line-strong); }
.btn-ghost:hover { --b-bg: var(--surface); --b-bd: var(--text); }
.btn-ink { --b-bg: #111316; --b-fg: #e9ebee; --b-bd: #111316; }
.btn-ink:hover { --b-bg: #23282d; --b-bd: #23282d; }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: .9375rem; }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  transition: background-color .35s, border-color .35s;
  border-bottom: 1px solid transparent; color: #e9ebee;
}
.site-header.is-solid, .page-inner .site-header { background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); color: var(--text); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand-name { font: 800 1.125rem/1 var(--display); font-stretch: 118%; letter-spacing: -.01em; text-transform: uppercase; }
.brand-name small { display: block; margin-top: 5px; font: 500 .6875rem/1 var(--mono); letter-spacing: .16em; opacity: .7; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { text-decoration: none; padding: 10px 14px; border-radius: var(--radius); font-weight: 500; font-size: .9688rem; opacity: .78; transition: opacity .2s, background-color .2s; }
.nav-links a:hover { opacity: 1; background: rgb(127 127 127 / .14); }
.nav-links a[aria-current="page"] { opacity: 1; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 500 .9375rem/1 var(--mono); opacity: .78; padding: 10px 8px; }
.nav-phone:hover { opacity: 1; }
.nav-toggle { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: var(--radius); background: rgb(127 127 127 / .14); border: 1px solid rgb(127 127 127 / .25); color: inherit; cursor: pointer; }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: block; }
.mobile-panel { display: none; }

@media (max-width: 1140px) { .nav-phone { display: none; } }
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-panel {
    display: block; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49;
    background: var(--bg); color: var(--text); padding: 24px var(--gutter) 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .nav-open .mobile-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .nav-open .site-header { background: var(--bg); color: var(--text); }
  .mobile-panel a.m-link { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 700 1.5rem/1.1 var(--display); font-stretch: 112%; }
  .mobile-panel a.m-link[aria-current="page"] { color: var(--accent-text); }
  .mobile-panel .m-actions { display: grid; gap: 12px; margin-top: 28px; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 400px) { .brand-name small { display: none; } }

/* Hero (home). Always dark: it sits on the network video. */
.hero { position: relative; min-height: min(100dvh, 940px); display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 64px; overflow: hidden; isolation: isolate; background: #111316; color: #e9ebee; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #111316 0%, #111316 30%, rgb(17 19 22 / .6) 44%, rgb(17 19 22 / 0) 60%), linear-gradient(0deg, #111316 0%, rgb(17 19 22 / 0) 26%); }
.hero-inner { width: 100%; }
.hero-copy { max-width: 760px; }
@media (min-width: 901px) {
  /* network map sits right, scaled to fit, edges feathered into the page */
  .hero-media { left: auto; width: min(1200px, 84vw); }
  .hero-media video, .hero-media img { object-fit: cover; height: auto; aspect-ratio: 16 / 9; top: 50%; bottom: auto; transform: translateY(-50%);
    -webkit-mask-image: radial-gradient(ellipse 58% 56% at 62% 50%, #000 45%, transparent 92%); mask-image: radial-gradient(ellipse 58% 56% at 62% 50%, #000 45%, transparent 92%); }
}
.hero h1 { font-size: clamp(2.25rem, 4.4vw, 4.25rem); font-stretch: 106%; font-weight: 800; line-height: 1.02; letter-spacing: -.03em; margin-top: 22px; }
.hero h1 { max-width: 10.8em; }
.hero h1 .accent { color: #e8742a; }
.hero .lede { color: #b6bcc3; margin-top: 24px; max-width: 44ch; }
.hero .eyebrow { color: #f08a45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .btn-ghost { --b-fg: #e9ebee; --b-bd: rgb(231 233 236 / .3); }
.hero .btn-ghost:hover { --b-bg: rgb(231 233 236 / .08); --b-bd: #e9ebee; }
@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 40px); align-items: flex-end; }
  .hero-media video, .hero-media img { object-position: 80% 40%; opacity: .6; }
  .hero::before { background: linear-gradient(0deg, #111316 12%, rgb(17 19 22 / .5) 58%, rgb(17 19 22 / .7) 100%); }
  .hero-copy { padding-top: 26vh; }
}

/* Page header (inner pages) */
.page-head { position: relative; padding: calc(var(--nav-h) + clamp(56px, 8vw, 104px)) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: linear-gradient(90deg, transparent 25%, #000 80%); -webkit-mask-image: linear-gradient(90deg, transparent 25%, #000 80%); }
.page-head h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-stretch: 118%; font-weight: 800; letter-spacing: -.03em; margin-top: 18px; max-width: 18ch; }
.page-head .lede { margin-top: 20px; }
.crumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font: 500 .8125rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

/* Logo marquee (one per page, home only) */
.trust { padding: 40px 0 44px; border-bottom: 1px solid var(--line); }
.trust-title { text-align: center; font-size: .9375rem; color: var(--muted); margin-bottom: 24px; padding-inline: var(--gutter); }
.marquee { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 16px; padding-right: 16px; flex: none; animation: marquee 52s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-plate { width: 168px; height: 94px; flex: none; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px rgb(17 19 22 / .06); }
.logo-plate img { width: 100%; height: 100%; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { mask-image: none; -webkit-mask-image: none; padding-inline: var(--gutter); }
  .marquee-track { animation: none !important; flex-wrap: wrap; justify-content: center; flex: 1; padding: 0; }
  .marquee-track[aria-hidden="true"] { display: none; }
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 36px 28px 32px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num { font: 800 clamp(2.5rem, 4.4vw, 3.75rem)/1 var(--display); font-stretch: 112%; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-num .unit { font-size: .42em; letter-spacing: 0; color: var(--accent-text); margin-left: 4px; }
.stat-label { margin-top: 14px; color: var(--muted); font-size: .9688rem; max-width: 26ch; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .stat { padding: 26px 14px; } }

/* Section header */
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head .lede { margin-top: 18px; }

/* Services bento (home): 4 cols x 2 rows. Large tile 2x2 + four 1x1 = 8 cells, no gaps. */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(260px, auto); grid-auto-flow: dense; gap: 12px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; overflow: hidden; isolation: isolate; transition: border-color .3s; }
.tile:hover { border-color: var(--line-strong); }
.tile-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); color: var(--accent-text); }
.tile-icon .icon { width: 26px; height: 26px; }
.tile p { color: var(--muted); margin-top: 10px; font-size: .9688rem; }
.tile .go { position: absolute; top: 24px; right: 24px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); transition: background-color .3s, color .3s, border-color .3s, transform .45s var(--ease); }
.tile .go .icon { width: 18px; height: 18px; }
.tile:hover .go { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: rotate(-45deg); }
.tile-lg { grid-column: span 2; grid-row: span 2; justify-content: flex-end; background: #15181b; color: #e9ebee; border-color: #15181b; min-height: 540px; }
.tile-lg .tile-bg { position: absolute; inset: 0; z-index: -1; }
.tile-lg .tile-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.2) brightness(1.5); opacity: .5; transition: transform 1.2s var(--ease); }
.tile-lg:hover .tile-bg img { transform: scale(1.05); }
.tile-lg::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(21 24 27 / .15), #15181b 80%); }
.tile-lg p { color: #b6bcc3; max-width: 46ch; }
.tile-lg h3 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); }
.tile-lg .tile-icon { background: rgb(231 233 236 / .08); border-color: rgb(231 233 236 / .16); color: #f08a45; }
.tile-lg .go { border-color: rgb(231 233 236 / .3); }
.tile-lg .chips { margin-top: 20px; }
.tile-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tile-accent p { color: rgb(17 19 22 / .8); }
.tile-accent .tile-icon { background: rgb(17 19 22 / .1); border-color: rgb(17 19 22 / .18); color: var(--accent-ink); }
.tile-accent .go { border-color: rgb(17 19 22 / .35); }
.tile-accent:hover .go { background: #111316; color: #e9ebee; border-color: #111316; }
.tile-hatch { background-image: repeating-linear-gradient(135deg, transparent 0 11px, var(--line) 11px 12px); }
@media (max-width: 1080px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile-lg { grid-row: span 1; min-height: 440px; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; grid-auto-rows: auto; } .tile-lg { grid-column: auto; min-height: 420px; } .tile { min-height: 220px; } }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 500 .75rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 7px 10px; border-radius: var(--radius); border: 1px solid var(--line-strong); color: var(--muted); }
.tile-lg .chip { border-color: rgb(231 233 236 / .25); color: #c3c8ce; }

/* Manifesto with scrubbed word reveal */
.manifesto { background: var(--bg-2); border-block: 1px solid var(--line); }
.manifesto-grid { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; }
.manifesto-text { font: 700 clamp(1.75rem, 3.6vw, 3.25rem)/1.18 var(--display); font-stretch: 108%; letter-spacing: -.02em; max-width: 26ch; }
.js-motion .manifesto-text .w { opacity: .14; }
.manifesto-text .hl { color: var(--accent-text); }
.manifesto-sign { color: var(--muted); font-size: .9688rem; max-width: 30ch; }
.manifesto-sign strong { display: block; color: var(--text); font-family: var(--display); font-stretch: 110%; font-size: 1.125rem; margin-bottom: 4px; }
@media (max-width: 900px) { .manifesto-grid { grid-template-columns: 1fr; } }

/* Sticky split */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.split-aside { position: sticky; top: calc(var(--nav-h) + 40px); }
.split-aside .lede { margin-top: 18px; }
.split-aside .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } .split-aside { position: static; } }

.proj-list { border-top: 1px solid var(--line); }
.proj { display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.proj-logo { width: 72px; height: 72px; border-radius: var(--radius); background: #fff; overflow: hidden; flex: none; }
.proj-logo img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.4); }
.proj-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--muted); font: 500 .8125rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.proj-meta span { display: inline-flex; align-items: center; gap: 6px; }
.proj-meta .icon { width: 15px; height: 15px; color: var(--accent-text); }
.proj h3 { margin-top: 10px; }
.proj p { color: var(--muted); margin-top: 10px; max-width: 62ch; }
@media (max-width: 480px) { .proj { grid-template-columns: 1fr; gap: 16px; } .proj-logo { width: 60px; height: 60px; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font: 650 clamp(1.0625rem, 1.5vw, 1.25rem)/1.3 var(--display); font-stretch: 105%; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 22px; height: 22px; color: var(--accent-text); transition: transform .35s var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .answer { padding: 0 48px 26px 0; color: var(--muted); max-width: 68ch; }

/* CTA band */
.cta { background: var(--accent); color: #111316; position: relative; overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .14; background-image: repeating-linear-gradient(135deg, transparent 0 22px, #111316 22px 24px); mask-image: linear-gradient(90deg, transparent 40%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); }
.cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.cta h2 { font-size: clamp(2.25rem, 5vw, 4.25rem); font-stretch: 116%; font-weight: 800; letter-spacing: -.03em; max-width: 16ch; }
.cta p { margin-top: 18px; font-size: 1.125rem; max-width: 46ch; color: rgb(17 19 22 / .82); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn-line { --b-bg: transparent; --b-fg: #111316; --b-bd: rgb(17 19 22 / .45); }
.cta .btn-line:hover { --b-bg: rgb(17 19 22 / .08); --b-bd: #111316; }
@media (max-width: 900px) { .cta-inner { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { padding: 72px 0 32px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.foot-grid h2 { font: 500 .8125rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.foot-grid li + li { margin-top: 10px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--accent-text); }
.foot-brand .brand { color: var(--text); }
.foot-brand p { color: var(--muted); margin-top: 18px; max-width: 34ch; font-size: .9688rem; }
.foot-tag { margin-top: 18px; font: 800 1.5rem/1 var(--display); font-stretch: 120%; text-transform: uppercase; letter-spacing: -.01em; color: var(--accent-text); }
.foot-contact a { display: inline-flex; gap: 10px; align-items: center; overflow-wrap: anywhere; }
.foot-contact .icon { color: var(--accent-text); width: 18px; height: 18px; }
.foot-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .875rem; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* About */
.story { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.story-text .lede { margin-top: 20px; }
.story-text p + p { margin-top: 1em; }
.story-figure { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.story-figure img { width: 100%; height: 100%; object-fit: cover; }
.big-year { font: 800 clamp(5rem, 13vw, 11rem)/.85 var(--display); font-stretch: 125%; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } }

.letter { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); }
.letter-body { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.7; }
.letter-body p + p { margin-top: 1.2em; }
.letter-body p:first-child { font: 650 clamp(1.375rem, 2.2vw, 1.875rem)/1.35 var(--display); font-stretch: 104%; letter-spacing: -.01em; }
.signature { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.signature strong { font-family: var(--display); font-stretch: 110%; font-size: 1.25rem; }
.signature span { color: var(--muted); font: 500 .8125rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 900px) { .letter { grid-template-columns: 1fr; } }

.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.cap { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-top: 1px solid var(--line); }
.cap .icon { width: 26px; height: 26px; color: var(--accent-text); margin-top: 1px; }
@media (max-width: 760px) { .cap-grid { grid-template-columns: 1fr; } }

.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.person { padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 22px; }
.person-top { display: flex; align-items: center; gap: 18px; }
.monogram { width: 60px; height: 60px; border-radius: var(--radius); display: grid; place-items: center; background: var(--accent); color: #111316; font: 800 1.25rem/1 var(--display); font-stretch: 120%; flex: none; }
.person h3 { font-size: 1.375rem; }
.person .role { color: var(--muted); font: 500 .8125rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; }
.person-links { display: grid; gap: 8px; }
.person-links a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); text-decoration: none; transition: border-color .25s; overflow-wrap: anywhere; }
.person-links a:hover { border-color: var(--accent); }
.person-links .icon { color: var(--accent-text); width: 20px; height: 20px; }
@media (max-width: 760px) { .people { grid-template-columns: 1fr; } .person { padding: 24px; } }

/* Services page */
.svc-index { display: grid; gap: 2px; margin-top: 32px; }
.svc-index a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; text-decoration: none; color: var(--muted); border-left: 2px solid var(--line); transition: color .2s, background-color .2s, border-color .2s; }
.svc-index a:hover, .svc-index a.is-active { color: var(--text); background: var(--surface); border-left-color: var(--accent); }
.svc-index .icon { width: 20px; height: 20px; }
@media (max-width: 960px) { .svc-index { display: none; } }
.svc { padding: 0 0 clamp(56px, 7vw, 88px); }
.svc + .svc { padding-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); }
.svc-head { display: flex; align-items: center; gap: 18px; }
.svc h2 { font-size: clamp(1.625rem, 3vw, 2.5rem); }
.svc-intro { color: var(--muted); margin-top: 18px; max-width: 62ch; }
.ticks { margin-top: 26px; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; }
.ticks .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--accent-text); }
.served { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.served-label { font: 500 .75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.svc-figure { margin-top: 32px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 8; background: #15181b; }
.svc-figure img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(1.5); opacity: .8; }

/* Clients page */
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.logo-grid .logo-plate { width: 100%; height: auto; aspect-ratio: 9 / 5; transition: transform .5s var(--ease), box-shadow .3s; }
.logo-grid .logo-plate:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
@media (max-width: 900px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .logo-grid { grid-template-columns: repeat(2, 1fr); } }

.case-grid { columns: 2; column-gap: 12px; }
.case { break-inside: avoid; margin-bottom: 12px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.case-top { display: flex; align-items: center; gap: 16px; }
.case-top .proj-logo { width: 56px; height: 56px; }
.case-mark { width: 56px; height: 56px; border-radius: var(--radius); display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font: 800 .9375rem/1 var(--display); color: var(--accent-text); flex: none; }
.case h3 { font-size: 1.375rem; }
.case p { color: var(--muted); }
.case-featured { background: #15181b; color: #e9ebee; border-color: #15181b; }
.case-featured p { color: #b6bcc3; }
.case-featured .proj-meta { color: #a3aab2; }
.case-featured .proj-meta .icon { color: #f08a45; }
.case-featured .chip { border-color: rgb(231 233 236 / .25); color: #c3c8ce; }
@media (max-width: 760px) { .case-grid { columns: 1; } .case { padding: 22px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { position: relative; padding: clamp(24px, 4vw, 44px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.form-card h2 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); }
.form-card > p { color: var(--muted); margin-top: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9375rem; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--bg); color: var(--text); border: 1px solid var(--field-bd);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgb(232 116 42 / .28); }
.field [aria-invalid="true"], .field [aria-invalid="true"]:focus { border-color: #e5484d; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgb(229 72 77 / .3); }
.field .err { font-size: .875rem; color: #ff6b70; display: none; }
.field [aria-invalid="true"] ~ .err { display: block; }
@media (prefers-color-scheme: light) { .field .err { color: #b4232a; } }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.form-note { font-size: .875rem; color: var(--muted); }
.form-status { margin-top: 20px; padding: 16px 18px; border-radius: var(--radius); display: none; gap: 12px; align-items: flex-start; }
.form-status.show { display: flex; }
.form-status .icon { width: 22px; height: 22px; flex: none; margin-top: 1px; color: #e5484d; }
.form-status.bad { background: rgb(229 72 77 / .1); border: 1px solid rgb(229 72 77 / .45); }
.form-done[hidden] { display: none; }
.form-done .done-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--radius); background: rgb(48 164 108 / .14); color: #30a46c; }
.form-done .done-icon .icon { width: 30px; height: 30px; }
.form-done h2 { margin-top: 20px; }
.form-done p { color: var(--muted); margin-top: 12px; max-width: 52ch; }
.form-done .btn { margin-top: 24px; }
.contact-side { display: grid; gap: 12px; }
.avail { padding: 28px; border-radius: var(--radius); background: #15181b; color: #e9ebee; display: flex; gap: 16px; align-items: flex-start; }
.avail .icon { width: 28px; height: 28px; color: #e8742a; }
.avail strong { font-family: var(--display); font-stretch: 110%; font-size: 1.25rem; display: block; }
.avail p { color: #b6bcc3; margin-top: 6px; font-size: .9688rem; }

/* 404 */
.notfound { min-height: 82dvh; display: flex; align-items: center; padding-top: var(--nav-h); }
.notfound h1 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 24px; }
.notfound p { color: var(--muted); margin-top: 14px; }
.notfound .hero-actions { margin-top: 28px; }

/* Small layout helpers (keeps markup free of inline styles for CSP) */
.section-flush-top { padding-top: 0; }
.tile-lg-title { margin-top: 24px; }
.faq-lede, .story-title { margin-top: 18px; }
.story-title { margin-top: 28px; }
.split-title { font-family: var(--display); font-stretch: 112%; font-weight: 750; line-height: 1.05; letter-spacing: -.02em; }
.form-intro { color: var(--muted); margin-top: 10px; }
.form-grid-1 { grid-template-columns: 1fr; }
.case-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 80px; pointer-events: none; }
.hero-video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-video.is-playing { opacity: 1; }

/* Motion: hidden states apply only when JS confirms motion is allowed */
.js-motion [data-reveal] { opacity: 0; transform: translateY(28px); }
.js-motion [data-hero] { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
