/* Techlysis — "Graphite & Ember" design system */

/* ---------- Tokens ---------- */
:root {
  --graphite: #0e0f11;
  --carbon: #16181b;
  --iron: #2a2d31;
  --bone: #ece8e1;
  --paper: #f6f4f0;
  --white: #fcfbf8;
  --stone: #66625b;
  --ash: #a6a29a;
  --ember: #e35a2b;
  --ember-soft: #ef7a4e;
  --ember-deep: #b0421a;
  --danger: #9e2a1f;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --wrap: 1440px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(96px, 11vw, 184px);
  --header-h: 72px;
  --r: 4px;
  --r-lg: 8px;

  /* tone: light (default) */
  --bg: var(--paper);
  --fg: var(--graphite);
  --fg-2: var(--stone);
  --line: rgba(14, 15, 17, 0.12);
  --line-strong: rgba(14, 15, 17, 0.26);
  --accent: var(--ember-deep);
  --surface: var(--white);
  --header-bg: rgba(246, 244, 240, 0.86);
}

[data-tone="dark"] {
  --bg: var(--graphite);
  --fg: var(--bone);
  --fg-2: var(--ash);
  --line: rgba(236, 232, 225, 0.12);
  --line-strong: rgba(236, 232, 225, 0.28);
  --accent: var(--ember);
  --surface: var(--carbon);
  --header-bg: rgba(14, 15, 17, 0.8);
}
section[data-tone="dark"], footer[data-tone="dark"], .menu[data-tone="dark"] { background: var(--bg); color: var(--fg); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font: 400 1.0625rem/1.6 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
:where(ul, ol)[role="list"] { list-style: none; padding: 0; }
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--ember); color: var(--graphite); }

h1, h2, h3 { font-weight: 500; color: var(--fg); text-wrap: balance; }
h2 { font-size: clamp(2.125rem, 1.2rem + 3.4vw, 4.5rem); line-height: 1.02; letter-spacing: -0.038em; }
h3 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.02em; }
.h-sm { font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); }
p { text-wrap: pretty; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.label { font-family: var(--mono); font-size: 0.75rem; line-height: 1.4; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2); }
.fine { font-size: 0.875rem; color: var(--fg-2); }
.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: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--graphite); color: var(--bone); border-radius: var(--r); transition: top 0.2s; }
.skip:focus { top: 16px; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.section { padding-block: var(--section); background: var(--bg); color: var(--fg); }
.section-tight { padding-block: clamp(40px, 5vw, 72px); }
.section-head { display: grid; gap: 22px; max-width: 56rem; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head-split { max-width: none; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; column-gap: clamp(32px, 6vw, 120px); }
.section-head-split > div:first-child { display: grid; gap: 22px; }
.section-intro { font-size: 1.125rem; line-height: 1.6; color: var(--fg-2); max-width: 30rem; }
.section-head-split .link { margin-top: 22px; }

/* ---------- Buttons & links ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--r);
  border: 1px solid transparent;
  font: 500 0.9375rem/1 var(--sans);
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:active { transform: scale(0.98); transition-duration: 0.08s; }
.btn .icon { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 0.875rem; }
.btn-sm .icon { width: 16px; height: 16px; }
.btn-ember { background: var(--ember); color: var(--graphite); }
.btn-ember:hover { background: var(--ember-soft); }
.btn-solid { background: var(--graphite); color: var(--paper); }
.btn-solid:hover { background: var(--iron); }
.btn-cta { background: var(--fg); color: var(--bg); }
.btn-cta:hover { background: var(--ember); color: var(--graphite); }
.btn-line { border-color: rgba(236, 232, 225, 0.3); color: var(--bone); }
.btn-line:hover { border-color: var(--bone); }
.btn-line-dark { border-color: var(--line-strong); color: var(--fg); }
.btn-line-dark:hover { border-color: var(--fg); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--fg);
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 0 1px no-repeat;
  transition: background-size 0.45s var(--ease), color 0.2s;
}
.link:hover { background-size: 100% 1px; }
.link .icon { width: 17px; height: 17px; color: var(--accent); transition: transform 0.35s var(--ease); }
.link:hover .icon { transform: translateX(3px); }
.icon { width: 20px; height: 20px; flex: none; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--fg);
  view-transition-name: site-header;
  transition: background-color 0.4s var(--ease), transform 0.5s var(--ease), box-shadow 0.4s;
}
.site-header.is-scrolled {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.menu-open { background: var(--graphite); -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; box-shadow: none; }
.header-bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.brand-mark { width: 26px; height: 26px; color: var(--ember); transition: transform 0.8s var(--ease); }
.brand:hover .brand-mark { transform: rotate(45deg); }
.brand-word { font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.2em; text-transform: uppercase; }

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-item { position: static; display: flex; align-items: center; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 0.9375rem;
  color: var(--fg-2);
  transition: color 0.2s;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--fg); }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ember); }
.has-panel .nav-link { padding-right: 2px; }
.nav-toggle { display: grid; place-items: center; width: 28px; height: 44px; color: var(--fg-2); }
.nav-toggle svg { width: 12px; height: 12px; transition: transform 0.35s var(--ease); }
.nav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.header-cta { margin-left: 12px; }

.nav-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  padding: 44px 0 52px;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  border-top: 1px solid var(--line);
  box-shadow: 0 40px 60px -30px rgba(14, 15, 17, 0.25);
  animation: panel-in 0.45s var(--ease) both;
}
@keyframes panel-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.nav-panel-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.nav-panel-title { margin: 14px 0 18px; font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.025em; max-width: 14rem; }
.nav-panel-group ul { margin-top: 14px; }
.nav-panel-group a { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; color: var(--fg-2); transition: color 0.2s, transform 0.3s var(--ease); }
.nav-panel-group a:hover { color: var(--fg); transform: translateX(3px); }
.nav-panel-group .mono { color: var(--accent); }

.menu-button { display: none; align-items: center; gap: 12px; min-height: 44px; margin-left: auto; font-size: 0.9375rem; font-weight: 500; }
.menu-button-lines { position: relative; width: 22px; height: 10px; }
.menu-button-lines i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 0.45s var(--ease), top 0.45s var(--ease); }
.menu-button-lines i:first-child { top: 0; }
.menu-button-lines i:last-child { top: 8.5px; }
.menu-button[aria-expanded="true"] .menu-button-lines i:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-button-lines i:last-child { top: 4.25px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  padding-top: var(--header-h);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu:not([hidden]) { animation: menu-in 0.5s var(--ease) both; }
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }
.menu-inner { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: calc(100svh - var(--header-h)); padding-block: 24px 40px; }
.menu-list a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(2.25rem, 9vw, 3.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.menu-list a[aria-current="page"] { color: var(--ember); }
.menu:not([hidden]) .menu-list li { animation: menu-item 0.6s var(--ease) both; }
.menu-list li:nth-child(2) { animation-delay: 0.04s; } .menu-list li:nth-child(3) { animation-delay: 0.08s; }
.menu-list li:nth-child(4) { animation-delay: 0.12s; } .menu-list li:nth-child(5) { animation-delay: 0.16s; }
.menu-list li:nth-child(6) { animation-delay: 0.2s; } .menu-list li:nth-child(7) { animation-delay: 0.24s; }
@keyframes menu-item { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.menu-foot { display: grid; gap: 8px; justify-items: start; }
.menu-foot .btn { margin-bottom: 12px; }
.menu-contact { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg-2); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; background: var(--graphite); color: var(--bone); }
.hero[data-mode="scroll"] { height: 230vh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-stage {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(48% 46% at 68% 60%, rgba(227, 90, 43, 0.09), transparent 72%),
    radial-gradient(70% 55% at 62% 104%, #1c1e22, transparent 72%),
    var(--graphite);
}
.hero-blueprint { position: absolute; right: 1%; bottom: 9%; width: min(60vw, 900px); transition: opacity 1s var(--ease); }
.bp-line { stroke: rgba(236, 232, 225, 0.55); stroke-width: 1.2; }
.bp-faint { stroke: rgba(236, 232, 225, 0.22); stroke-width: 1; }
.bp-floor { stroke: rgba(236, 232, 225, 0.1); stroke-dasharray: 3 7; }
.bp-ember { stroke: var(--ember); stroke-width: 2; }
.bp-ember-fill { fill: var(--ember); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero.is-3d .hero-canvas { opacity: 1; }
.hero.is-3d .hero-blueprint { opacity: 0; }

.hero-layer { position: relative; display: grid; grid-template-rows: 1fr auto; height: 100%; padding-top: var(--header-h); padding-bottom: clamp(24px, 4vh, 44px); pointer-events: none; }
.hero-layer a, .hero-layer button { pointer-events: auto; }
.hero-copy { align-self: end; max-width: min(44rem, 50vw); opacity: var(--copy-o, 1); transform: translate3d(0, var(--copy-y, 0px), 0); will-change: opacity, transform; }
.eyebrow { margin-bottom: 28px; color: var(--ash); letter-spacing: 0.14em; }
.hero-title { font-size: clamp(2.75rem, 1.2rem + 4.6vw, 5.75rem); line-height: 0.98; letter-spacing: -0.045em; color: var(--bone); }
.hero-title em { color: var(--ember); }
.hero-lede { margin-top: 28px; max-width: 30rem; font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem); line-height: 1.55; color: var(--ash); }
.hero-copy .actions { margin-top: 36px; }
.hero-second {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(64px, 12vh, 128px);
  text-align: center;
  opacity: var(--second-o, 0);
  transform: translate3d(0, calc((1 - var(--second-o, 0)) * 28px), 0);
}
.hero-second-title { font-size: clamp(1.75rem, 1rem + 2.6vw, 3.5rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 500; }
.hero-second-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 22px; color: var(--ash); }
.hero-second-list li { display: inline-flex; align-items: center; gap: 10px; }
.hero-second-list li::before { content: ""; width: 5px; height: 5px; background: var(--ember); }
.hero-meta { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(236, 232, 225, 0.12); color: var(--ash); opacity: var(--copy-o, 1); }
.hero-scroll { display: inline-flex; align-items: center; gap: 12px; }
.hero-scroll::after { content: ""; width: 1px; height: 22px; background: linear-gradient(var(--ember), transparent); animation: scroll-cue 2.4s var(--ease-io) infinite; transform-origin: top; }
@keyframes scroll-cue { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Intro ---------- */
.intro-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: clamp(24px, 4vw, 64px); row-gap: 28px; }
.intro-text { font-size: clamp(1.75rem, 1rem + 2.6vw, 3.25rem); font-weight: 400; line-height: 1.14; letter-spacing: -0.032em; }
.intro-text em { color: var(--accent); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 7vw, 104px); border-top: 1px solid var(--line-strong); }
.facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding: 24px 24px 0 0; }
.facts dd { font-size: clamp(2.75rem, 2rem + 2.6vw, 4.5rem); font-weight: 300; line-height: 1; letter-spacing: -0.05em; }
.facts dt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-2); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); margin-top: clamp(40px, 5vw, 72px); }
.two-col p { font-size: 1.125rem; color: var(--fg-2); }

/* ---------- Capabilities explorer ---------- */
.explorer { border-top: 1px solid var(--line-strong); }
.cap-heading { margin: 0; font-size: inherit; }
.cap-button {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  min-height: 72px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  color: var(--fg-2);
  font-size: clamp(1.25rem, 0.9rem + 1vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.022em;
  transition: color 0.3s var(--ease);
}
.cap-num { color: var(--fg-2); transition: color 0.3s; min-width: 2.2em; }
.cap-name { flex: 1; transition: transform 0.45s var(--ease); }
.cap-plus { width: 22px; height: 22px; transition: transform 0.45s var(--ease); }
.cap-button:hover, .cap-button[aria-expanded="true"] { color: var(--fg); }
.cap-button[aria-expanded="true"] .cap-num { color: var(--ember); }
.cap-button[aria-expanded="true"] .cap-plus { transform: rotate(45deg); color: var(--ember); }
.cap-panel-inner {
  position: relative;
  padding: clamp(28px, 3vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(236, 232, 225, 0.05), rgba(236, 232, 225, 0.01) 60%), var(--carbon);
  overflow: hidden;
}
.cap-glyph { width: 64px; height: 64px; color: var(--ember); stroke-width: 1.15; }
.cap-glyph * { stroke-dasharray: 120; stroke-dashoffset: 0; }
.cap.is-open .cap-glyph * { animation: draw 1.1s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }
.cap-group { margin-top: 36px; color: var(--ash); }
.cap-short { margin: 14px 0 32px; font-size: clamp(1.375rem, 1rem + 1.2vw, 2.125rem); line-height: 1.2; letter-spacing: -0.028em; color: var(--bone); max-width: 30rem; }
.cap-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-bottom: 28px; }
.cap-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ash); font-size: 0.9375rem; }
.cap-list li::before { content: ""; width: 10px; height: 1px; background: var(--ember); flex: none; }
.js .cap:not(.is-open) .cap-panel { display: none; }
.js .cap.is-open .cap-panel-inner { animation: panel-fade 0.6s var(--ease) both; }
@keyframes panel-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cap-panel { padding: 8px 0 24px; }

@media (min-width: 960px) {
  .js .explorer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 6vw, 112px); border-top: 0; }
  .js .explorer .cap { display: contents; }
  .js .cap-heading { grid-column: 1; }
  .js .cap-heading:first-child { border-top: 1px solid var(--line-strong); }
  .js .cap:first-child .cap-heading { border-top: 1px solid var(--line-strong); }
  .js .cap-panel { grid-column: 2; grid-row: 1 / span 10; align-self: start; position: sticky; top: calc(var(--header-h) + 32px); padding: 0; }
  .js .cap-plus { display: none; }
  .js .cap-button:hover .cap-name, .js .cap-button[aria-expanded="true"] .cap-name { transform: translateX(8px); }
}

/* ---------- Process ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; padding-top: 48px; }
.steps::before, .steps::after { content: ""; position: absolute; top: 0; left: 0; height: 1px; }
.steps::before { right: 0; background: var(--line-strong); }
.steps::after { width: calc(var(--progress, 0) * 100%); background: var(--ember); transition: width 0.15s linear; }
.step { position: relative; }
.step::before { content: ""; position: absolute; top: -53px; left: 0; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); transition: background-color 0.4s, border-color 0.4s; }
.step.is-reached::before { background: var(--ember); border-color: var(--ember); }
.step-num { color: var(--accent); }
.step h3 { margin: 20px 0 12px; font-size: 1.5rem; }
.step p { color: var(--fg-2); font-size: 0.9375rem; }
.no-js .steps::after { width: 100%; }

/* ---------- Work ---------- */
.work-teaser { background: var(--bone); --surface: var(--paper); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(20px, 2vw, 32px); }
.work-grid-featured .work-card:nth-child(2) { margin-top: clamp(0px, 6vw, 96px); }
.work-grid-featured .work-card:nth-child(3) { margin-top: clamp(0px, 12vw, 192px); }
.work-card { position: relative; }
.work-card[hidden] { display: none; }
.work-art { aspect-ratio: 400 / 260; overflow: hidden; border-radius: var(--r-lg); background: var(--graphite); }
.art { width: 100%; height: 100%; transition: transform 1s var(--ease); }
.work-card:hover .art { transform: scale(1.04); }
.art-bg { fill: #121316; }
.art-grid path { stroke: rgba(236, 232, 225, 0.06); stroke-width: 1; }
.art-line { fill: none; stroke: rgba(236, 232, 225, 0.5); stroke-width: 1.2; }
.art-dim { opacity: 0.45; }
.art-hot { fill: none; stroke: var(--ember); stroke-width: 1.6; }
.art-thin { stroke-width: 1; opacity: 0.7; }
.art-node { fill: #121316; stroke: rgba(236, 232, 225, 0.45); }
.art-node-hot { fill: var(--ember); stroke: var(--ember); }
.work-body { display: grid; gap: 12px; padding-top: 24px; }
.work-sector { color: var(--fg-2); }
.work-title { font-size: 1.5rem; letter-spacing: -0.024em; }
.work-challenge { color: var(--fg-2); font-size: 0.9375rem; }
.work-approach, .work-outcome { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.work-approach .mono, .work-outcome .mono { color: var(--accent); }
.work-body .tags { margin-top: 6px; }
.work-body .tags a { position: relative; z-index: 2; }
.work-body .link { justify-self: start; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: clamp(40px, 5vw, 64px); }
.chip {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.9375rem;
  color: var(--fg-2);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.2s var(--ease);
}
.chip:hover { color: var(--fg); border-color: var(--fg); }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--graphite); border-color: var(--graphite); color: var(--paper); }
.filter-count { margin-left: auto; color: var(--fg-2); }

/* ---------- Tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li > a, .tags li > span, .tags-quiet li { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; font-size: 0.875rem; }
.tags li > a { border: 1px solid var(--line-strong); transition: border-color 0.2s, background-color 0.2s; }
.tags li > a:hover { border-color: var(--fg); background: var(--surface); }
.tags-quiet li { background: rgba(14, 15, 17, 0.05); color: var(--fg-2); }
[data-tone="dark"] .tags-quiet li { background: rgba(236, 232, 225, 0.06); }

/* ---------- Why / principles ---------- */
.why-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2vw, 32px); }
.why-head { grid-column: 1 / 8; display: grid; gap: 22px; }
.principles { grid-column: 1 / 8; display: grid; grid-template-columns: 1fr 1fr; gap: 56px 40px; margin-top: clamp(48px, 6vw, 88px); }
.why-plain .why-head, .why-plain .principles { grid-column: 1 / -1; }
.why-plain .principles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.principle { display: grid; gap: 12px; align-content: start; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.principle-num { color: var(--accent); }
.principle h3 { margin-top: 18px; font-size: 1.5rem; }
.principle p { color: var(--fg-2); }
.group-card { grid-column: 9 / 13; grid-row: 1 / 3; align-self: start; position: sticky; top: calc(var(--header-h) + 32px); padding: clamp(28px, 3vw, 40px); border-radius: var(--r-lg); background: var(--bone); }
.group-card-title { margin: 14px 0 24px; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.024em; }
.group-list li { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line); }
.group-list strong { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; }
.group-list span { color: var(--fg-2); font-size: 0.9375rem; }
.group-card .link { margin-top: 12px; }

/* ---------- Sectors (home) ---------- */
.sector-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 64px); border-top: 1px solid var(--line-strong); }
.sector-list a {
  position: relative;
  display: grid;
  grid-template-columns: 3em minmax(0, 1fr) auto;
  align-items: baseline;
  row-gap: 6px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.sector-list .mono { color: var(--fg-2); }
.sector-name { font-size: clamp(1.375rem, 1rem + 1vw, 1.875rem); font-weight: 500; letter-spacing: -0.024em; transition: transform 0.45s var(--ease), color 0.3s; }
.sector-line { grid-column: 2; color: var(--fg-2); font-size: 0.9375rem; }
.sector-list .icon { grid-column: 3; grid-row: 1; align-self: center; color: var(--fg-2); transition: transform 0.45s var(--ease), color 0.3s; }
.sector-list a:hover .sector-name { transform: translateX(6px); }
.sector-list a:hover .icon { color: var(--ember); transform: translate(3px, -3px); }

/* ---------- CTA ---------- */
.cta { background: var(--bone); }
.cta-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2vw, 32px); row-gap: 28px; align-items: end; }
.cta-grid .label { grid-column: 1 / -1; }
.cta-title { grid-column: 1 / 9; font-size: clamp(2.5rem, 1.2rem + 4.6vw, 6rem); line-height: 0.98; letter-spacing: -0.045em; }
.cta-title em { color: var(--accent); }
.cta-side { grid-column: 9 / 13; display: grid; gap: 28px; }
.cta-side p { color: var(--fg-2); font-size: 1.0625rem; }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(80px, 10vw, 144px); padding-bottom: 28px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 6vw, 96px); }
.footer-intro p { margin-top: 22px; max-width: 22rem; color: var(--fg-2); }
.brand-footer { color: var(--fg); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-col ul { margin-top: 18px; }
.footer-col a, .footer-col span { display: inline-flex; align-items: center; min-height: 36px; color: var(--fg-2); font-size: 0.9375rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--fg); }
.footer-word {
  margin-top: clamp(64px, 9vw, 128px);
  font-size: clamp(4rem, 17.4vw, 18.5rem);
  font-weight: 600;
  line-height: 0.78;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 232, 225, 0.16);
  user-select: none;
}
.footer-base { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); }
.to-top { display: inline-flex; align-items: center; min-height: 32px; margin-block: -8px; transition: color 0.2s; }
.to-top:hover { color: var(--fg); }

/* ---------- Page head (inner pages) ---------- */
.page-head { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 96px)); padding-bottom: clamp(72px, 9vw, 144px); background: var(--bg); color: var(--fg); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: 0.5; }
.crumbs a { display: inline-flex; min-height: 24px; align-items: center; transition: color 0.2s; }
.crumbs a:hover { color: var(--fg); }
.page-head-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2vw, 32px); row-gap: 28px; margin-top: clamp(48px, 7vw, 112px); }
.page-head-grid .label { grid-column: 1 / -1; }
.page-title { font-size: clamp(2.75rem, 1.2rem + 5.2vw, 6.5rem); line-height: 0.98; letter-spacing: -0.045em; }
.page-head-grid .page-title { grid-column: 1 / 12; }
.page-title em { color: var(--accent); }
.page-lede { grid-column: 7 / 13; display: grid; gap: 28px; margin-top: clamp(16px, 2vw, 32px); }
.page-lede p { font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem); color: var(--fg-2); }

/* ---------- Services overview ---------- */
.svc-group { border-top: 1px solid var(--line); }
.svc-group-alt { background: var(--bone); --surface: var(--paper); }
.svc-group-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.svc-group-head { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 18px; }
.svc-group-head h2 { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.5rem); }
.svc-group-head p:not(.mono) { color: var(--fg-2); max-width: 22rem; }
.label-index { color: var(--accent); }
.svc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.svc-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
  padding: clamp(24px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  scroll-margin-top: calc(var(--header-h) + 32px);
  transition: transform 0.6s var(--ease), border-color 0.3s, box-shadow 0.6s var(--ease);
}
.svc-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 28px 56px -32px rgba(14, 15, 17, 0.32); }
.svc-card:target { border-color: var(--ember); }
.svc-card-top { display: flex; justify-content: space-between; align-items: flex-start; color: var(--fg-2); }
.svc-glyph { width: 40px; height: 40px; color: var(--accent); }
.svc-card:hover .svc-glyph * { animation: draw 0.9s var(--ease) both; stroke-dasharray: 120; }
.svc-card h3 { margin-top: auto; padding-top: 36px; font-size: 1.625rem; }
.svc-card p { color: var(--fg-2); font-size: 0.9375rem; }
.svc-card .tags { margin-top: 8px; }
.svc-card-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 0.875rem; font-weight: 500; color: var(--fg); }
.svc-card-more .icon { width: 16px; height: 16px; color: var(--accent); transition: transform 0.4s var(--ease); }
.svc-card:hover .svc-card-more .icon { transform: translateX(4px); }

/* ---------- Service detail ---------- */
.svc-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 112px); align-items: end; margin-top: clamp(40px, 6vw, 96px); }
.svc-hero-grid > div:first-child { display: grid; gap: 26px; }
.svc-hero-grid .page-title { font-size: clamp(2.75rem, 1.2rem + 5vw, 6.25rem); }
.svc-hero-lede { font-size: clamp(1.25rem, 0.9rem + 1.2vw, 1.875rem); line-height: 1.25; letter-spacing: -0.024em; max-width: 34rem; }
.svc-hero-art {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(236, 232, 225, 0.05) 0 1px, transparent 1px 44px),
    radial-gradient(60% 60% at 50% 50%, rgba(227, 90, 43, 0.12), transparent 70%),
    var(--graphite);
}
.svc-hero-num { position: absolute; left: 24px; top: 22px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--ash); }
.svc-hero-glyph { width: 46%; height: auto; color: var(--ember); stroke-width: 0.8; }
.svc-hero-glyph * { stroke-dasharray: 120; animation: draw 2s 0.2s var(--ease) both; }
.svc-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 120px); }
.svc-story-grid > div { display: grid; gap: 24px; align-content: start; }
.svc-problem { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); line-height: 1.18; letter-spacing: -0.03em; }
.svc-approach { font-size: 1.1875rem; line-height: 1.6; color: var(--fg-2); }
.deliver-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.deliver-head { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 22px; }
.deliver-head h2 { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.5rem); }
.deliver-list { border-top: 1px solid var(--line-strong); }
.deliver-list li { display: grid; grid-template-columns: 3.5em minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); transition: padding 0.45s var(--ease); }
.deliver-list li:hover { padding-left: 10px; }
.deliver-list .mono { color: var(--ember); }
.deliver-list h3 { font-size: 1.375rem; }
.deliver-list p { color: var(--fg-2); }
.value-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(24px, 4vw, 64px); }
.value-text { font-size: clamp(1.875rem, 1rem + 3vw, 4rem); line-height: 1.08; letter-spacing: -0.038em; }
.sectors-used { padding-block: 0; }
.sectors-used-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px; align-items: center; padding-block: 32px; border-block: 1px solid var(--line); }
.related { padding-top: clamp(80px, 9vw, 140px); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(56px, 6vw, 96px); border-top: 1px solid var(--line-strong); }
.pager a { display: grid; gap: 8px; padding-top: 24px; font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); font-weight: 500; letter-spacing: -0.022em; transition: color 0.2s; }
.pager a .mono { color: var(--fg-2); }
.pager a:hover { color: var(--accent); }
.pager a[rel="next"] { text-align: right; }

/* ---------- Industries ---------- */
.jump { position: sticky; top: var(--header-h); z-index: 20; background: rgba(246, 244, 240, 0.98); border-block: 1px solid var(--line); transition: top 0.5s var(--ease); padding-block: 0; }
.header-hidden .jump { top: 0; }
.jump-list { display: flex; gap: 4px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.jump-list::-webkit-scrollbar { display: none; }
.jump-list a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid transparent; border-radius: 999px; white-space: nowrap; font-size: 0.875rem; color: var(--fg-2); transition: color 0.2s, border-color 0.2s; }
.jump-list a:hover, .jump-list a.is-active { color: var(--fg); border-color: var(--line-strong); }
.sector-block { padding-block: clamp(72px, 9vw, 144px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 64px); }
.sector-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.sector-head { position: sticky; top: calc(var(--header-h) + 96px); display: grid; gap: 14px; }
.sector-head .mono { color: var(--accent); }
.sector-head h2 { font-size: clamp(2.25rem, 1.4rem + 2.6vw, 4rem); }
.sector-challenge { font-size: clamp(1.375rem, 1rem + 1.2vw, 2.125rem); line-height: 1.22; letter-spacing: -0.028em; }
.sector-approach { margin-top: 24px; max-width: 40rem; font-size: 1.125rem; color: var(--fg-2); }
.sector-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; }
.sector-meta .label { margin-bottom: 14px; }
.sector-outcome { display: grid; gap: 8px; margin-top: 40px; padding: 24px 28px; border-left: 2px solid var(--ember); background: var(--bone); font-size: 1.1875rem; letter-spacing: -0.012em; }
.sector-outcome .mono { color: var(--accent); }
.page-industries .sector-body { contain: paint; }

/* ---------- About ---------- */
.page-head-dark .page-lede p { color: var(--ash); }
.company-list { margin-top: 8px; border-top: 1px solid var(--line-strong); }
.company-list li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); gap: 24px; align-items: baseline; padding: clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid var(--line); }
.company-list .mono { color: var(--fg-2); }
.company-list strong { font-size: clamp(2rem, 1.2rem + 3vw, 4.5rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.company-focus { color: var(--fg-2); font-size: 1.0625rem; }
.company-list li:first-child strong { color: var(--ember); }
.group-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: clamp(64px, 8vw, 112px); }
.group-points li { display: grid; gap: 14px; align-content: start; }
.group-points .mono { color: var(--ember); }
.group-points p { color: var(--fg-2); }
.regions { display: flex; flex-wrap: wrap; gap: 16px 48px; margin-top: clamp(56px, 7vw, 96px); padding-top: 28px; border-top: 1px solid var(--line); }
.region { display: inline-flex; align-items: center; gap: 12px; font-size: 1.25rem; letter-spacing: -0.015em; }
.region .icon { color: var(--ember); }
.stack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px clamp(20px, 3vw, 48px); }
.stack-col h3 { color: var(--accent); margin-bottom: 12px; }
.stack-col li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
.careers-band { background: var(--bone); }
.careers-band-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.careers-band h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); }

/* ---------- Careers ---------- */
.value-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.value-cards li { display: grid; align-content: start; gap: 12px; min-height: 280px; padding: clamp(28px, 3vw, 40px); background: var(--graphite); transition: background-color 0.4s; }
.value-cards li:hover { background: var(--carbon); }
.value-cards .mono { color: var(--ember); }
.value-cards h3 { margin-top: auto; padding-top: 48px; font-size: 1.5rem; }
.value-cards p { color: var(--fg-2); }
.role-list { border-top: 1px solid var(--line-strong); }
.role { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) auto; gap: 32px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.role-main { display: grid; gap: 4px; }
.role h3 { font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem); }
.role-main p { color: var(--fg-2); }
.role-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.role-meta dt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); }
.role-meta dd { margin-top: 4px; font-size: 0.9375rem; }
.apply { background: var(--bone); scroll-margin-top: var(--header-h); }
.apply-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 120px); align-items: start; }
.apply-intro { display: grid; gap: 22px; position: sticky; top: calc(var(--header-h) + 40px); }
.apply-intro > p:not(.label):not(.fine) { color: var(--fg-2); font-size: 1.125rem; }
.apply .form { padding: clamp(24px, 3vw, 44px); border-radius: var(--r-lg); background: var(--paper); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; }
.form-card { padding: clamp(24px, 3vw, 44px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: 0 48px 96px -56px rgba(14, 15, 17, 0.35); }
.form-title { font-size: 1.75rem; letter-spacing: -0.028em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field label { display: block; margin-bottom: 8px; font-size: 0.875rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--white);
  color: var(--graphite);
  font-size: 1.0625rem;
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 148px; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%230e0f11' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field input::placeholder, .field textarea::placeholder { color: #8a867f; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--graphite); box-shadow: 0 0 0 3px rgba(227, 90, 43, 0.35); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); }
.field-error { margin-top: 8px; font-size: 0.875rem; color: var(--danger); }
.hint { margin-top: 8px; font-size: 0.875rem; color: var(--stone); }
.captcha { min-height: 78px; }
.captcha:empty { display: none; }
.form-submit { justify-self: start; }
.form-submit[disabled] { opacity: 0.55; cursor: progress; }
.form-status { font-size: 0.9375rem; }
.form-status:empty { display: none; }
.form-status.is-error { padding: 12px 14px; border-radius: var(--r); background: #f7e3df; color: var(--danger); }
.form-status.is-success { padding: 12px 14px; border-radius: var(--r); background: var(--graphite); color: var(--bone); }

/* ---------- Contact ---------- */
.contact { padding-top: calc(var(--header-h) + clamp(32px, 5vw, 80px)); padding-bottom: var(--section); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 120px); align-items: start; }
.contact-intro { display: grid; gap: 26px; position: sticky; top: calc(var(--header-h) + 32px); }
.contact-intro .page-title { font-size: clamp(2.5rem, 1.2rem + 3.8vw, 5rem); margin-top: 24px; }
.contact-lede { font-size: 1.1875rem; color: var(--fg-2); max-width: 30rem; }
.contact-options { border-top: 1px solid var(--line-strong); }
.contact-options li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-options .icon { color: var(--accent); margin-top: 4px; }
.contact-options div { display: grid; gap: 4px; }
.contact-options .mono { color: var(--fg-2); }
.contact-options a, .contact-options div > span:last-child { font-size: 1.1875rem; letter-spacing: -0.012em; }
.contact-options a { display: inline-flex; min-height: 32px; align-items: center; transition: color 0.2s; }
.contact-options a:hover { color: var(--accent); }
.contact-note { max-width: 30rem; }

/* ---------- 404 ---------- */
.not-found { min-height: 100svh; display: flex; align-items: center; padding-top: var(--header-h); padding-bottom: 64px; }
.not-found-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.not-found-code { font-size: clamp(6rem, 16vw, 15rem); line-height: 0.8; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px var(--ember); }
.not-found-grid > div { display: grid; gap: 24px; }
.not-found-grid p { color: var(--fg-2); max-width: 32rem; }
.not-found-links { border-top: 1px solid var(--line); }
.not-found-links a { display: flex; justify-content: space-between; align-items: center; min-height: 60px; border-bottom: 1px solid var(--line); font-size: 1.375rem; transition: color 0.2s; }
.not-found-links a:hover { color: var(--ember); }

/* ---------- Motion ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.25s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in 0.55s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-panel-grid { grid-template-columns: repeat(4, 1fr); }
  .nav-panel-intro { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 24px; }
  .nav-panel-intro .nav-panel-title { max-width: none; margin: 0; }
}

@media (max-width: 1080px) {
  .nav, .header-cta { display: none; }
  .menu-button { display: inline-flex; }
  .why-head, .principles { grid-column: 1 / -1; }
  .group-card { grid-column: 1 / -1; grid-row: auto; position: static; margin-top: 56px; }
  .why-plain .principles { grid-template-columns: 1fr 1fr; }
  .cta-title { grid-column: 1 / -1; }
  .cta-side { grid-column: 1 / 9; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .section-head-split, .svc-group-grid, .deliver-grid, .sector-grid, .apply-grid, .contact-grid, .value-grid, .sectors-used-grid, .svc-hero-grid, .footer-top, .not-found-grid { grid-template-columns: 1fr; }
  .svc-group-head, .deliver-head, .sector-head, .apply-intro, .contact-intro { position: static; }
  .steps { grid-template-columns: 1fr; gap: 0; padding-top: 0; padding-left: 36px; }
  .steps::before, .steps::after { top: 0; bottom: 0; left: 4px; width: 1px; right: auto; height: auto; }
  .steps::after { height: calc(var(--progress, 0) * 100%); bottom: auto; }
  .step { padding-bottom: 40px; }
  .step::before { top: 2px; left: -36px; }
  .step h3 { margin-top: 10px; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-grid-featured .work-card:nth-child(n) { margin-top: 0; }
  .work-grid-featured .work-card:nth-child(3) { grid-column: 1 / -1; }
  .svc-cards-3 { grid-template-columns: 1fr 1fr; }
  .page-lede { grid-column: 1 / -1; }
  .page-head-grid .page-title { grid-column: 1 / -1; }
  .svc-hero-art { max-width: 420px; }
  .company-list li { grid-template-columns: 1fr; gap: 8px; }
  .group-points { grid-template-columns: 1fr; gap: 32px; }
  .stack-grid { grid-template-columns: 1fr 1fr; }
  .value-cards { grid-template-columns: 1fr 1fr; }
  .role { grid-template-columns: 1fr; gap: 16px; }
  .role-apply { justify-self: start; }
  .intro-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .sector-list { grid-template-columns: 1fr; }
  .cta-side { grid-column: 1 / -1; }

  .hero[data-mode="scroll"] { height: auto; }
  .hero-sticky { position: relative; height: auto; min-height: 100svh; display: flex; flex-direction: column; }
  .hero-stage { position: relative; inset: auto; height: 50svh; min-height: 300px; margin-top: var(--header-h); }
  .hero-blueprint { left: 50%; right: auto; bottom: 4%; width: min(110%, 640px); transform: translateX(-50%); }
  .hero-layer { padding-top: 8px; grid-template-rows: auto auto; flex: 1; }
  .hero-copy { max-width: none; align-self: start; }
  .hero-second { display: none; }
  .eyebrow { margin-bottom: 18px; }
  .hero-meta { margin-top: 32px; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .field-row, .two-col, .sector-meta, .cap-list, .work-grid, .svc-cards, .svc-cards-3, .stack-grid, .value-cards, .footer-cols, .pager { grid-template-columns: 1fr; }
  .work-grid-featured .work-card:nth-child(3) { grid-column: auto; }
  .why-plain .principles, .principles { grid-template-columns: 1fr; gap: 40px; }
  .role-meta { grid-template-columns: repeat(3, auto); justify-content: start; gap: 24px; }
  .pager a[rel="next"] { text-align: left; }
  .footer-cols { gap: 8px; }
  .footer-col { padding-block: 16px; border-top: 1px solid var(--line); }
  .filter-count { margin-left: 0; width: 100%; }
  .svc-card { min-height: 0; }
  .svc-card h3 { padding-top: 28px; }
  .value-cards li { min-height: 0; }
  .deliver-list li { grid-template-columns: 2.6em minmax(0, 1fr); }
  .deliver-list li p { grid-column: 2; }
  .company-list strong { font-size: 2.5rem; }
  .actions .btn { flex: 1 1 auto; }
  .hero-meta span:first-child { max-width: 60%; }
}

@media (pointer: coarse) {
  .footer-col a, .tags li > a, .contact-options a, .crumbs a, .to-top { min-height: 44px; }
  .to-top { margin-block: -14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .hero-scroll::after { display: none; }
}

@media print {
  .site-header, .hero-stage, .menu, .footer-word { display: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero-sticky { position: static; height: auto; }
}
