/* Layout concept: terraced bands. Each section is a horizontal "terrace" that steps down the page,
   with a 12-column grid, a left rail of mono labels and wide breathing room. */
:root {
  --ink: #0b1b33;          /* text: brand navy */
  --soil: #f4f6fa;         /* page ground, cool */
  --paper: #ffffff;        /* raised surfaces */
  --field: #0c5afc;        /* primary: Rycefield blue */
  --field-deep: #071a33;   /* deep navy bands */
  --sun: #0dc9ae;          /* secondary: Rycefield teal, used sparingly */
  --mist: #56657c;         /* muted text */
  --line: #d9dfea;         /* hairlines */
  --band: #e9eef6;         /* alternate band */
  --on-deep: #eaf1fb;      /* text on deep bands */
  --on-deep-muted: #9fb2cc;
  --ok: #0f9f86; --warn: #c98a12; --crit: #c2412d;

  --f-display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.6vw, 5.4rem);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e7eefb; --soil: #070f1c; --paper: #0d1828; --field: #5b93ff; --field-deep: #040b16;
    --sun: #22d8bd; --mist: #93a3bb; --line: #1d2a40; --band: #0b1524; --on-deep: #e7eefb; --on-deep-muted: #8ea2bf;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #e7eefb; --soil: #070f1c; --paper: #0d1828; --field: #5b93ff; --field-deep: #040b16;
    --sun: #22d8bd; --mist: #93a3bb; --line: #1d2a40; --band: #0b1524; --on-deep: #e7eefb; --on-deep-muted: #8ea2bf;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--soil); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.05; letter-spacing: -0.02em; margin: 0; text-wrap: balance; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--soil); padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); font-size: var(--step--1); letter-spacing: 0.02em; }
.eyebrow { font-family: var(--f-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--field); display: inline-flex; gap: 10px; align-items: center; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.lede { font-size: var(--step-1); color: var(--mist); max-width: 60ch; line-height: 1.5; }
.muted { color: var(--mist); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--soil) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 1.22rem; letter-spacing: -0.02em; }
.brand svg { width: 30px; height: 30px; }
.brand small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mist); margin-top: 2px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: 0.95rem; color: var(--ink); transition: background .2s; }
.nav-links a:hover { background: var(--band); }
.nav-links .menu-cta { display: none; }
.nav-links a[aria-current="page"] { background: var(--band); color: var(--field); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; margin: auto; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font: 600 0.98rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  padding: 14px 20px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--field); color: #fff; }
.btn-primary:hover { background: var(--field-deep); }
:root[data-theme="dark"] .btn-primary { color: #04101f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #04101f; } }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 10px 14px; font-size: 0.9rem; }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); display: inline-grid; place-items: center; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }

@media (max-width: 960px) {
  .nav-links, .nav-cta .hide-sm { display: none; }
  .menu-btn { display: grid; }
  .nav-cta { margin-left: 0; }
  .site-header.open .nav-links {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 72px;
    background: var(--soil); padding: 12px var(--gutter) 24px; border-bottom: 1px solid var(--line);
  }
  .site-header.open .nav-links { box-shadow: 0 24px 40px -24px rgba(7, 26, 51, .35); gap: 0; }
  .site-header.open .nav-links li { display: block; }
  .site-header.open .nav-links a { display: block; padding: 16px 4px; font-size: 1.15rem; border-radius: 0; border-bottom: 1px solid var(--line); background: none; }
  .site-header.open .nav-links .menu-cta { display: block; padding-top: 20px; }
  .site-header.open .nav-links .menu-cta a { display: inline-flex; padding: 14px 20px; border-radius: 999px; border: 0; background: var(--field); color: #fff; font-size: 1rem; }
}

/* ---------- Sections ---------- */
section { padding-block: clamp(64px, 9vw, 128px); }
.band { background: var(--band); }
.deep { background: var(--field-deep); color: var(--on-deep); }
.deep .lede, .deep .muted { color: var(--on-deep-muted); }
.deep .eyebrow { color: var(--sun); }
.sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head h2 { font-size: var(--step-3); margin-top: 16px; }
@media (max-width: 820px) { .sec-head { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 96px); overflow: hidden; }
.hero canvas.terraces { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .9; }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: var(--step-4); letter-spacing: -0.035em; line-height: 0.98; margin-top: 22px; }
.hero h1 em { font-style: normal; color: var(--field); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.12em; background: var(--sun); opacity: .55; z-index: -1; transform-origin: left; animation: underline 1.1s .4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero .lede { margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; color: var(--mist); }
.hero-meta span { display: inline-flex; gap: 8px; align-items: center; }
.hero-meta svg { width: 16px; height: 16px; color: var(--field); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* Release pipeline console */
.console {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 30px 60px -30px rgba(7, 26, 51, .35), 0 2px 6px rgba(7, 26, 51, .05);
  overflow: hidden; font-family: var(--f-mono); font-size: 0.8rem;
}
.console-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--band); }
.console-top .dots { display: flex; gap: 6px; }
.console-top .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.console-top b { font-weight: 600; }
.console-top .clock { margin-left: auto; color: var(--mist); font-variant-numeric: tabular-nums; }
.console-body { padding: 16px; display: grid; gap: 14px; }
.release { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.release strong { font-family: var(--f-display); font-size: 1.05rem; font-weight: 600; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stage { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); transition: background .3s, border-color .3s; }
.stage .st { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.stage .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage .val { color: var(--mist); font-variant-numeric: tabular-nums; }
.stage.done .st { background: var(--ok); border-color: var(--ok); }
.stage.done .st::after { content: ""; width: 7px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.stage.run { border-color: var(--field); background: color-mix(in srgb, var(--field) 8%, transparent); }
.stage.run .st { border-color: var(--field); border-top-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.meter { height: 6px; background: var(--band); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--field), var(--sun)); transition: width .6s ease; }
.console-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.console-foot div { padding: 12px 16px; border-right: 1px solid var(--line); }
.console-foot div:last-child { border-right: 0; }
.console-foot b { display: block; font-family: var(--f-display); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.console-foot span { color: var(--mist); font-size: 0.7rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Client strip ---------- */
.clients { padding-block: 28px; border-block: 1px solid var(--line); }
.clients .wrap { display: flex; flex-wrap: wrap; gap: 18px 44px; align-items: center; }
.clients .label { color: var(--mist); }
.clients ul { display: flex; flex-wrap: wrap; gap: 14px 40px; list-style: none; margin: 0; padding: 0; }
.clients li { font-family: var(--f-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; color: var(--ink); opacity: .78; }

/* ---------- Capabilities ---------- */
.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cap { padding: clamp(24px, 3vw, 36px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 14px; align-content: start; position: relative; transition: background .3s; }
.cap:hover { background: var(--paper); }
.cap .ico { width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--field) 12%, transparent); color: var(--field); display: grid; place-items: center; }
.cap .ico svg { width: 22px; height: 22px; }
.cap h3 { font-size: var(--step-1); }
.cap p { color: var(--mist); }
.cap ul { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cap li { font-family: var(--f-mono); font-size: 0.72rem; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--mist); }
@media (max-width: 960px) { .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .caps { grid-template-columns: 1fr; } }

/* ---------- Delivery path ---------- */
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; }
.path::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: color-mix(in srgb, var(--on-deep) 18%, transparent); }
.path li { position: relative; padding-right: 20px; display: grid; gap: 12px; align-content: start; }
.path .n { width: 48px; height: 48px; border-radius: 50%; background: var(--field-deep); border: 2px solid var(--sun); color: var(--sun); display: grid; place-items: center; font-family: var(--f-mono); font-weight: 600; position: relative; z-index: 1; }
.path h3 { font-size: var(--step-1); margin-top: 6px; }
.path p { color: var(--on-deep-muted); font-size: 0.96rem; }
.path .out { font-family: var(--f-mono); font-size: 0.74rem; color: var(--on-deep); opacity: .8; border-top: 1px dashed color-mix(in srgb, var(--on-deep) 25%, transparent); padding-top: 10px; }
@media (max-width: 960px) {
  .path { grid-template-columns: 1fr; gap: 28px; }
  .path::before { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .path li { grid-template-columns: 48px minmax(0, 1fr); column-gap: 18px; padding-right: 0; }
  .path li > :not(.n) { grid-column: 2; }
  .path .n { grid-row: span 4; }
}

/* ---------- Work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.case { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; text-decoration: none; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.case:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(7, 26, 51, .45); }
.case .shot { aspect-ratio: 16 / 9; max-width: 100%; background: var(--band); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.case .shot svg { width: 100%; height: 100%; }
.case .body { padding: clamp(20px, 2.6vw, 30px); display: grid; gap: 12px; align-content: start; }
.case .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.case .tags span { font-family: var(--f-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--field); background: color-mix(in srgb, var(--field) 10%, transparent); padding: 4px 8px; border-radius: 6px; }
.case h3 { font-size: var(--step-2); }
.case p { color: var(--mist); }
.case dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 8px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.case dt { font-family: var(--f-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mist); }
.case dd { margin: 4px 0 0; font-weight: 600; font-size: 0.92rem; }
.case .go { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: var(--field); margin-top: 6px; }
.case .go svg { width: 16px; height: 16px; }
@media (max-width: 820px) { .work-grid { grid-template-columns: 1fr; } .case dl { grid-template-columns: 1fr 1fr; } }

/* ---------- Environment ladder ---------- */
.ladder-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .ladder-wrap { grid-template-columns: 1fr; } }
.controls { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 2px; }
.controls li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.controls svg { width: 22px; height: 22px; color: var(--field); margin-top: 2px; }
.controls b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; }
.controls span { color: var(--mist); font-size: 0.95rem; }
.ladder { display: grid; gap: 14px; }
.tabs { display: inline-flex; padding: 4px; background: var(--band); border-radius: 999px; gap: 4px; border: 1px solid var(--line); flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; color: var(--ink); font: 600 0.9rem var(--f-body); padding: 10px 16px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--paper); box-shadow: 0 1px 3px rgba(0,0,0,.1); color: var(--field); }
.env { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); display: grid; gap: 18px; }
.env-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.env-head h3 { font-size: var(--step-2); }
.host { font-family: var(--f-mono); font-size: 0.85rem; color: var(--field); word-break: break-all; }
.gates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gates li { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 10px; background: var(--band); font-size: 0.92rem; }
.gates li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-top: 7px; }
@media (max-width: 560px) { .gates { grid-template-columns: 1fr; } }
.who { display: flex; flex-wrap: wrap; gap: 8px; }
.who span { font-family: var(--f-mono); font-size: 0.72rem; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); }

/* ---------- Stack ---------- */
.stack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.stack div { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line); }
.stack h3 { font-family: var(--f-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--field); font-weight: 500; margin-bottom: 10px; }
.stack p { font-size: 0.98rem; }
@media (max-width: 960px) { .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stack { grid-template-columns: 1fr; } }

/* ---------- Engagements ---------- */
.models { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.model { border: 1px solid color-mix(in srgb, var(--on-deep) 16%, transparent); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; align-content: start; transition: border-color .3s, background .3s; }
.model:hover { border-color: var(--sun); background: color-mix(in srgb, var(--on-deep) 4%, transparent); }
.model h3 { font-size: var(--step-1); }
.model p { color: var(--on-deep-muted); font-size: 0.95rem; }
.model .fit { font-family: var(--f-mono); font-size: 0.74rem; color: var(--sun); }
@media (max-width: 1060px) { .models { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .models { grid-template-columns: 1fr; } }

/* ---------- Principles / FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 18px; font-family: var(--f-display); font-weight: 600; font-size: var(--step-1); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--field); font-size: 1.4rem; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--mist); max-width: 70ch; }

/* ---------- CTA + contact ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); }
@media (max-width: 960px) { .cta-grid { grid-template-columns: 1fr; } }
.cta-grid h2 { font-size: var(--step-3); margin-top: 16px; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: center; }
.contact-list .icon-btn { width: 40px; height: 40px; }
.contact-list b { display: block; font-weight: 600; }
.contact-list span { color: var(--mist); font-size: 0.92rem; }
form.contact { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 34px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
form.contact .full { grid-column: 1 / -1; }
@media (max-width: 620px) { form.contact { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field label i { font-style: normal; color: var(--mist); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--soil); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--field); box-shadow: 0 0 0 4px color-mix(in srgb, var(--field) 18%, transparent); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.form-status { font-size: 0.95rem; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--crit); }
.cf-turnstile { min-height: 65px; }

/* ---------- Page header (inner pages) ---------- */
.page-hero { padding-block: clamp(48px, 8vw, 110px) clamp(32px, 5vw, 64px); position: relative; overflow: hidden; }
.page-hero h1 { font-size: var(--step-4); letter-spacing: -0.035em; margin-top: 18px; max-width: 16ch; }
.page-hero .lede { margin-top: 22px; }
.crumb { font-family: var(--f-mono); font-size: 0.78rem; color: var(--mist); }
.crumb a { text-decoration: none; }

/* Service detail rows */
.svc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 72px); padding-block: clamp(36px, 5vw, 60px); border-top: 1px solid var(--line); }
.svc:first-child { border-top: 0; }
.svc h2 { font-size: var(--step-2); }
.svc .ico { width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--field) 12%, transparent); color: var(--field); display: grid; place-items: center; margin-bottom: 18px; }
.svc .ico svg { width: 26px; height: 26px; }
.svc-body { display: grid; gap: 20px; }
.svc-body > p { font-size: var(--step-1); line-height: 1.5; }
.svc-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
.svc-cols h3 { font-family: var(--f-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--field); font-weight: 500; margin-bottom: 8px; }
.svc-cols ul { margin: 0; padding-left: 18px; color: var(--mist); display: grid; gap: 6px; }
@media (max-width: 820px) { .svc { grid-template-columns: 1fr; } .svc-cols { grid-template-columns: 1fr; } }

/* Long-form case */
.case-long { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); padding-block: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); align-items: start; }
.case-long:first-child { border-top: 0; }
.case-long .shot { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: var(--band); aspect-ratio: 4 / 3; max-width: 100%; position: sticky; top: 96px; }
.case-long .shot svg { width: 100%; height: 100%; }
.case-long h2 { font-size: var(--step-3); margin-top: 12px; }
.case-long .copy { display: grid; gap: 18px; }
.case-long h4 { font-family: var(--f-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--field); font-weight: 500; }
.case-long ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--mist); }
@media (max-width: 900px) { .case-long { grid-template-columns: 1fr; } .case-long .shot { position: static; } }

/* Company */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.facts div { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--f-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--mist); }
.facts dd { margin: 8px 0 0; font-family: var(--f-display); font-size: var(--step-1); font-weight: 600; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }
.prose { max-width: 68ch; display: grid; gap: 18px; font-size: 1.06rem; }
.prose h2 { font-size: var(--step-2); margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--field-deep); color: var(--on-deep); padding-block: clamp(48px, 6vw, 80px) 28px; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--field) 0 60%, var(--sun) 60% 100%); }
.site-footer a { color: inherit; }
.foot-cta { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-end; justify-content: space-between; padding-bottom: clamp(36px, 5vw, 56px); margin-bottom: clamp(36px, 5vw, 56px); border-bottom: 1px solid color-mix(in srgb, var(--on-deep) 14%, transparent); }
.foot-cta h2 { font-size: var(--step-3); max-width: 18ch; }
.foot-kicker { color: var(--sun); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; margin-bottom: 12px; }
.foot-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-sun, .site-footer .btn-sun { background: var(--sun); color: #04101f; }
.btn-sun:hover { background: #fff; }
.btn-line { border-color: color-mix(in srgb, var(--on-deep) 30%, transparent); color: var(--on-deep); }
.btn-line:hover { border-color: var(--on-deep); }
.btn-line svg { width: 16px; height: 16px; }
.foot-main { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2.6fr) minmax(0, 2.4fr) minmax(0, 3.2fr); gap: 40px 32px; }
.foot-brand .wm { height: 52px; width: auto; }
.foot-brand p { color: var(--on-deep-muted); margin-top: 20px; max-width: 34ch; font-size: .98rem; }
.foot-col h2 { font-family: var(--f-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--on-deep-muted); font-weight: 500; margin-bottom: 16px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.foot-col a { text-decoration: none; opacity: .92; }
.foot-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.foot-contact li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; }
.foot-contact svg { width: 16px; height: 16px; color: var(--sun); margin-top: 4px; }
.foot-contact span { color: var(--on-deep); opacity: .92; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: clamp(40px, 5vw, 64px); padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--on-deep) 14%, transparent); color: var(--on-deep-muted); font-size: .86rem; }
.to-top { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; min-height: 44px; padding-inline: 4px; }
.to-top svg { width: 14px; height: 14px; transform: rotate(-90deg); }
@media (max-width: 960px) { .foot-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-main { grid-template-columns: 1fr; } }

/* ---------- Brand wordmark ---------- */
.wm { display: block; width: auto; max-width: none; }
.brand .wm { height: 34px; }
.wm-white { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wm-navy { display: none; } :root:not([data-theme="light"]) .wm-white { display: block; } }
:root[data-theme="dark"] .wm-navy { display: none; }
:root[data-theme="dark"] .wm-white { display: block; }
.site-footer .wm-navy { display: none !important; }

/* ---------- Misc page pieces ---------- */
.page-hero canvas.terraces { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.page-hero .wrap { position: relative; }
.page-hero.short { padding-bottom: 0; }
.tight-top { padding-top: 8px; }
.h-lg { font-size: var(--step-3); margin-top: 16px; }
.h-md { font-size: var(--step-2); margin-block: 12px 8px; }
.console-note { padding: 8px 16px; border-top: 1px solid var(--line); font-size: .68rem; color: var(--mist); margin: 0; }
.company-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.company-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: grid; gap: 16px; justify-items: start; position: sticky; top: 96px; }
.company-card .wm { height: 56px; }
.company-card p { color: var(--mist); }
@media (max-width: 860px) { .company-grid { grid-template-columns: 1fr; } .company-card { position: static; } }
.signin-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cap { text-decoration: none; color: inherit; }

/* ---------- Reveal (content is visible at rest; motion only enhances) ---------- */
.reveal { transition: transform .9s cubic-bezier(.2,.7,.2,1), background .3s, box-shadow .35s, border-color .3s; }
.js .reveal.pre { transform: translateY(16px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal.pre { transform: none; }
}

/* QA fixes */
.facts-sec { padding-bottom: 0; }
@media (min-width: 961px) { .path li { display: flex; flex-direction: column; } .path .out { margin-top: auto; } .path h3 { min-height: 2.2em; } }
.cta-grid h1 { font-size: var(--step-4); letter-spacing: -0.035em; margin-top: 16px; }
.next-steps { list-style: none; counter-reset: s; margin: 36px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.next-steps li { counter-increment: s; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--mist); }
.next-steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--field); color: var(--field); display: grid; place-items: center; font: 600 .8rem var(--f-mono); }
.next-steps b { color: var(--ink); display: block; font-weight: 600; }
.nav-links .menu-cta a { gap: 10px; align-items: center; }
.nav-links .menu-cta svg { width: 16px; height: 16px; }
.facts-sec + section { padding-top: clamp(40px, 5vw, 64px); }
