/* Cognitus Solutions. Tokens first; change colours and sizes here. */

@font-face { font-family: "Montserrat Alternates"; src: url("../assets/fonts/MontserratAlternates-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat Alternates"; src: url("../assets/fonts/MontserratAlternates-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat Alternates"; src: url("../assets/fonts/MontserratAlternates-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat Alternates"; src: url("../assets/fonts/MontserratAlternates-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face {
  font-family: "Hanken Grotesk"; font-weight: 400 700; font-display: swap;
  src: url("../assets/fonts/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk"; font-weight: 400 700; font-display: swap;
  src: url("../assets/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Brand colours (fixed) */
:root {
  --brand: #0468bf;
  --mid: #034c8c;
  --sky: #418aca;
  --graphite: #333333;
  --white: #ffffff;

  --font-display: "Montserrat Alternates", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-lead: clamp(1.4rem, 2.6vw, 2.2rem);
  --fs-h2: clamp(1.9rem, 4vw, 3.2rem);
  --space-section: clamp(4rem, 10vw, 9rem);
  --wrap: 1200px;
  --radius: 6px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* Semantic tokens: light (default) */
:root, :root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f9fc;
  --text: #142c40;
  --heading: #012340;
  --accent: #0468bf;        /* links, small coloured text */
  --accent-hover: #034c8c;
  --tint: #e4eef8;
  --line: rgb(1 35 64 / 0.12);
  --band: #012340;          /* contact + footer */
  --header-bg: rgb(246 249 252 / 0.92);
  --loop-a: #0468bf;
  --loop-b: #333333;
  --logo-filter: none;
  --mark-a: #0468bf;
  --mark-b: #333333;
  --panel: #ffffff;
  --panel-line: transparent;
  --panel-text: #142c40;
  --panel-heading: #012340;
  --panel-link: #0468bf;
  --field-bg: #f3f7fb;
  --field-line: #c3d3e3;
  --error: #b3261e;
}

/* Semantic tokens: dark */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08192b;
  --text: #cfdeed;
  --heading: #ffffff;
  --accent: #6fb1ec;
  --accent-hover: #9cc9f3;
  --tint: #11304d;
  --line: rgb(255 255 255 / 0.14);
  --band: #040f1d;
  --header-bg: rgb(8 25 43 / 0.9);
  --loop-a: #2f89dc;
  --loop-b: #c9d7e4;
  --logo-filter: brightness(0) invert(1);
  --mark-a: #ffffff;
  --mark-b: #ffffff;
  --panel: #0d2339;
  --panel-line: rgb(255 255 255 / 0.12);
  --panel-text: #cfdeed;
  --panel-heading: #ffffff;
  --panel-link: #8cc2f2;
  --field-bg: #08192b;
  --field-line: rgb(255 255 255 / 0.25);
  --error: #ffb4a8;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
p { text-wrap: pretty; }
::selection { background: var(--brand); color: var(--white); }
input, textarea { caret-color: var(--brand); }
html { scrollbar-color: var(--sky) var(--bg); scrollbar-width: thin; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

h1, h2, h3, dt {
  font-family: var(--font-display); color: var(--heading);
  font-weight: 500; letter-spacing: -0.02em; line-height: 1.08;
}
h2 { font-size: var(--fs-h2); }
h2, h3, .ask { text-wrap: balance; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: var(--radius); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--heading); color: var(--bg); padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

/* Logo mark (inline, themed) */
.mark { fill: none; stroke: url(#mark-grad); stroke-width: 36; stroke-linecap: round; width: 46px; height: auto; aspect-ratio: 600 / 260; overflow: visible; }
.brand-text { filter: var(--logo-filter); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.7rem 1.6rem;
  background: var(--brand); color: var(--white);
  font: 600 1rem/1 var(--font-body); text-decoration: none;
  border: 2px solid var(--brand); border-radius: var(--radius); cursor: pointer;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-small { min-height: 44px; padding: 0.5rem 1.2rem; }
@media (hover: hover) {
  .btn:hover { background: var(--mid); border-color: var(--mid); }
  .btn-ghost:hover { background: var(--tint); color: var(--accent-hover); border-color: var(--accent-hover); }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--header-bg); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; flex-shrink: 0; }
.brand-text { width: auto; height: clamp(20px, 2.4vw, 30px); }
.brand .mark { width: clamp(46px, 4.4vw, 62px); }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { white-space: nowrap; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; padding: 0.5rem 0; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size 0.25s var(--ease-out); }
@media (hover: hover) { .nav a:not(.btn):hover { background-size: 100% 2px; } }
.menu-btn { display: none; }

.tools { display: flex; gap: 0.4rem; }
.tool {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 0.5rem;
  background: transparent; color: var(--heading); border: 1px solid var(--line); border-radius: var(--radius);
  font: 600 0.9rem/1 var(--font-body); cursor: pointer;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
@media (hover: hover) { .tool:hover { background: var(--tint); border-color: var(--accent); } }

/* Hero */
.hero { padding-block: clamp(3rem, 8vw, 7rem) var(--space-section); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 6.6vw, 6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 0.98; text-wrap: balance; overflow-wrap: break-word; }
.lead { margin-top: 1.75rem; max-width: 34ch; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.5; }
.actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

.thread { margin-right: calc(-1 * clamp(0rem, 6vw, 6rem)); }
.thread svg { width: 100%; overflow: visible; }
.thread-ghost { fill: none; stroke: var(--tint); stroke-width: 30; stroke-linecap: round; }
.thread-line, .thread-shine { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.thread-line { stroke: url(#loop-grad); stroke-width: 30; }
.thread-shine { stroke: var(--white); stroke-width: 3; opacity: 0.45; transform: translateY(-6px); }
.thread-dot {
  fill: var(--white); stroke: var(--sky); stroke-width: 3;
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .thread-line, .thread-shine { animation: draw 2.2s cubic-bezier(0.45, 0, 0.2, 1) 0.2s both; }
  .thread-dot { animation: dot-in 0.6s var(--ease-out) 2.4s forwards; }
  .hero h1, .lead, .actions { animation: rise 0.6s var(--ease-out) both; }
  .lead { animation-delay: 0.12s; }
  .actions { animation-delay: 0.24s; }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes dot-in { to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Services: a list on the left, one preview stage on the right that follows the active service. */
.services { padding-bottom: var(--space-section); }
.services h2 { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.svc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.svc-list { border-top: 1px solid var(--line); }
.svc-item { padding-block: clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); transition: opacity 0.25s var(--ease-out); }
.svc-item h3 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1; letter-spacing: -0.035em; margin-bottom: 1rem; }
.ask { font: 500 1.15rem/1.3 var(--font-display); letter-spacing: -0.01em; color: var(--heading); margin-bottom: 0.5rem; max-width: 32ch; }
.svc-item p:last-child { max-width: 46ch; }

.svc-stage { display: none; }
/* The list-and-stage behaviour only exists on wide screens; phones get the plain list. */
@media (min-width: 56.3125em) {
  .js-svc .svc-item { opacity: 0.66; cursor: default; }
  .js-svc .svc-item.on { opacity: 1; }
  .js-svc .svc-stage {
    display: block; position: sticky; top: calc(4.25rem + 1.5rem); aspect-ratio: 5 / 5.2;
    border-radius: 22px; overflow: hidden; background: var(--tint);
  }
}

.stage-art { position: absolute; inset: 0; background: var(--sheet-bg); opacity: 0; transition: opacity 0.35s var(--ease-out); }
.stage-art.on { opacity: 1; }

.sheet-1 { --sheet-bg: #012340; --sheet-ink: #ffffff; --art-fill: rgb(255 255 255 / 0.14); --art-line: rgb(255 255 255 / 0.4); }
.sheet-2 { --sheet-bg: #034c8c; --sheet-ink: #ffffff; --art-fill: rgb(255 255 255 / 0.16); --art-line: rgb(255 255 255 / 0.45); }
.sheet-3 { --sheet-bg: #0468bf; --sheet-ink: #ffffff; --art-fill: rgb(255 255 255 / 0.18); --art-line: rgb(255 255 255 / 0.5); }
.sheet-4 { --sheet-bg: #418aca; --sheet-ink: #012340; --art-fill: rgb(1 35 64 / 0.12); --art-line: rgb(1 35 64 / 0.4); }

/* Previews: one illustration per service, drawn in SVG. Colours come from the .sheet-N variables. Decorative only. */
.stage-art svg { position: absolute; inset: 5% 6%; width: 88%; height: 90%; }
.ga-line { fill: none; stroke: var(--art-line); stroke-width: 2; }
.ga-fill { fill: var(--art-fill); }
.ga-solid { fill: var(--art-line); }
.ga-soft { fill: var(--art-line); opacity: 0.5; }
.ga-ink { fill: var(--sheet-ink); }
.ga-bg { fill: var(--sheet-bg); }
.ga-dash, .ga-dash-l { fill: none; stroke: var(--art-line); stroke-width: 1.6; stroke-dasharray: 4 3; }
.ga-phone { fill: var(--sheet-bg); stroke: var(--sheet-ink); stroke-width: 3; }
.ga-bg-s, .ga-ink-s { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ga-bg-s { stroke: var(--sheet-bg); }
.ga-ink-s { stroke: var(--sheet-ink); stroke-width: 2; }

/* Work: placeholders until real projects exist */
.work { padding-bottom: var(--space-section); }
.work h2 { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
.shot-lg { grid-row: span 2; }
.frame { display: flex; gap: 6px; padding: 0.7rem 0.9rem; background: var(--tint); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; }
.frame i { width: 9px; height: 9px; border-radius: 50%; background: var(--sky); opacity: 0.6; }
.screen {
  display: grid; place-items: center; aspect-ratio: 16 / 10; text-align: center; padding: 1rem;
  color: var(--accent); border: 1px dashed var(--sky); border-radius: 0 0 var(--radius) var(--radius);
  background: rgb(65 138 202 / 0.07);
}
.shot-lg .screen { aspect-ratio: 4 / 3.4; }
.shot figcaption { margin-top: 0.9rem; max-width: 40ch; }
.shot figcaption strong { display: block; font: 500 1.25rem/1.2 var(--font-display); color: var(--heading); margin-bottom: 0.2rem; }

/* Process: a real sequence on a vertical line, ending in the loop back to the start */
.process { padding-bottom: var(--space-section); }
.process-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.process-head { position: sticky; top: 6.5rem; }
.process-head p { margin-top: 1.25rem; max-width: 30ch; font-size: 1.15rem; }
.steps { position: relative; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; left: 1.55rem; top: 1.6rem; bottom: 4.6rem; width: 2px;
  background: linear-gradient(180deg, var(--loop-a), var(--loop-b)); opacity: 0.45;
}
.steps li { position: relative; z-index: 1; padding: 0 0 clamp(2rem, 4vw, 3rem) 5rem; }
.steps li:not(.steps-loop) { counter-increment: step; }
.steps li:not(.steps-loop)::before {
  content: counter(step); position: absolute; left: 0; top: -0.15rem;
  width: 3.1rem; height: 3.1rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); border: 2px solid var(--accent); color: var(--accent);
  font: 600 1.25rem/1 var(--font-display);
}
.steps h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 0.5rem; padding-top: 0.2rem; }
.steps p { max-width: 46ch; }
.steps-loop { padding-bottom: 0; }
.steps-loop .mark { position: absolute; left: 0; top: -0.15rem; width: 3.1rem; height: 3.1rem; aspect-ratio: auto; box-sizing: border-box; padding: 0.7rem 0.55rem; background: var(--bg); border: 2px solid var(--accent); border-radius: 50%; stroke-width: 64; overflow: visible; }
.steps-loop p { padding-top: 0.55rem; color: var(--heading); font-weight: 500; }

/* Scroll-linked reveal. Only active when main.js adds .js-steps, so content is fully visible without JS or with reduced motion. */
.steps-track { position: relative; }
.steps-fill {
  position: absolute; left: 1.55rem; top: 1.6rem; bottom: 4.6rem; width: 2px; z-index: 0;
  background: linear-gradient(180deg, var(--loop-a), var(--loop-b)); transform-origin: top; transform: scaleY(1);
}
.js-steps li { opacity: 0.38; transition: opacity 0.3s var(--ease-out); }
.js-steps li.on { opacity: 1; }
.js-steps li:not(.steps-loop)::before { transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out); }
.js-steps li.on:not(.steps-loop)::before { background: var(--accent); color: var(--bg); }
.js-steps .steps-loop.on .mark { border-color: var(--accent); }

/* Promises */
.promise { padding-bottom: var(--space-section); }
.promise h2 { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.asks { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 6vw, 6rem); }
.asks li { display: grid; align-content: start; gap: 0.75rem; padding-block: clamp(1.5rem, 3vw, 2.25rem); border-top: 1px solid var(--line); }
.asks h3 { font-size: var(--fs-lead); max-width: 20ch; }
.asks p { max-width: 42ch; }

/* Contact: the one dark band, with the brand loop as a faint backdrop and the form on a light panel */
.contact { position: relative; overflow: hidden; overflow: clip; background: var(--band); color: var(--white); padding-block: var(--space-section); isolation: isolate; }
.contact-loop {
  position: absolute; z-index: -1; width: min(1100px, 130vw); left: -14%; bottom: -22%;
  fill: none; stroke: rgb(255 255 255 / 0.07); stroke-width: 10; stroke-linecap: round; pointer-events: none;
}
.contact h2 { color: var(--white); font-size: clamp(2.4rem, 5.5vw, 4.4rem); line-height: 1; max-width: 9ch; }
.contact-note { margin-top: 1.5rem; max-width: 32ch; font-size: 1.15rem; color: rgb(255 255 255 / 0.82); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
@media (min-width: 56.3125em) { .contact-info { position: sticky; top: calc(4.25rem + 2rem); } }

.channels { margin-top: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid rgb(255 255 255 / 0.18); }
.channels > div { display: grid; gap: 0.2rem; padding-block: 1.1rem; border-bottom: 1px solid rgb(255 255 255 / 0.18); }
.channels dt { font: 500 0.95rem/1.2 var(--font-body); letter-spacing: 0; color: rgb(255 255 255 / 0.6); }
.channels dd { font-size: 1.15rem; color: var(--white); }
.channels a { text-decoration: none; background: linear-gradient(var(--sky), var(--sky)) 0 100% / 0 2px no-repeat; transition: background-size 0.25s var(--ease-out); }
@media (hover: hover) { .channels a:hover { background-size: 100% 2px; } }
.phone { font-variant-numeric: tabular-nums; font: 500 clamp(1.8rem, 3.4vw, 2.7rem)/1.1 var(--font-display); letter-spacing: -0.02em; }
.mail { font-size: 1.3rem; }
.contact :focus-visible { outline-color: var(--sky); }

/* Form panel */
.form {
  display: grid; gap: 1.25rem; padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background: var(--panel); color: var(--panel-text);
  border: 1px solid var(--panel-line); border-radius: 14px;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.55);
}
.form-title { font-size: 1.5rem; color: var(--panel-heading); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: 0.45rem; min-width: 0; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--panel-heading); }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.85rem 0.95rem; font: inherit; color: var(--panel-heading);
  background: var(--field-bg); border: 1px solid var(--field-line); border-radius: 8px;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}
.field select { appearance: none; cursor: pointer; padding-right: 2.4rem; background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 12px 8px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23557188' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238cc2f2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(4 104 191 / 0.28); background: var(--panel); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 3px rgb(179 38 30 / 0.15); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; font-size: 0.92rem; color: var(--panel-text); }
.consent input { width: 1.2rem; height: 1.2rem; margin: 0.15rem 0 0; accent-color: var(--brand); }
.consent a { color: var(--panel-link); text-underline-offset: 3px; }
.btn-block { width: 100%; min-height: 54px; font-size: 1.05rem; }
.status { min-height: 1.4em; font-size: 0.95rem; color: var(--panel-link); }
.status[data-state="error"] { color: var(--error); }
.form :focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Footer */
.site-footer { background: var(--band); color: rgb(255 255 255 / 0.72); border-top: 1px solid rgb(255 255 255 / 0.12); font-size: 0.95rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(2.5rem, 6vw, 4rem); }
.foot-name { margin-top: 1rem; font: 500 1.25rem/1.2 var(--font-display); color: var(--white); }
.foot-tag { margin-top: 0.35rem; }
.site-footer .mark { width: 64px; stroke: #ffffff; }
.foot-data { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; align-content: start; }
.foot-data dt { font: 600 0.85rem/1.2 var(--font-body); letter-spacing: 0; color: rgb(255 255 255 / 0.55); margin-bottom: 0.2rem; }
.foot-data dd { color: var(--white); font-variant-numeric: tabular-nums; }
.foot-contact { display: grid; gap: 0.6rem; justify-items: start; align-content: start; }
.foot-contact a { color: var(--white); text-decoration: none; background: linear-gradient(var(--sky), var(--sky)) 0 100% / 0 1px no-repeat; transition: background-size 0.25s var(--ease-out); }
@media (hover: hover) { .foot-contact a:hover { background-size: 100% 1px; } }
.foot-base { padding-block: 1.25rem 2rem; border-top: 1px solid rgb(255 255 255 / 0.12); font-size: 0.9rem; }
.site-footer :focus-visible { outline-color: var(--sky); }

/* Privacy page */
.doc { padding-block: clamp(2.5rem, 6vw, 5rem) var(--space-section); }
.doc-wrap { max-width: 46rem; }
.doc h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-top: 1.5rem; }
.doc h2 { font-size: 1.4rem; margin-top: 2.5rem; margin-bottom: 0.6rem; }
.doc p { max-width: 68ch; }
.doc .updated { margin-top: 0.75rem; color: var(--text); opacity: 0.75; }
.back { color: var(--accent); font-weight: 600; text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size 0.25s var(--ease-out); }
@media (hover: hover) { .back:hover { background-size: 100% 2px; } }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }
.foot-base a { color: rgb(255 255 255 / 0.85); text-underline-offset: 3px; }

/* Sticky call bar, mobile only */
.callbar { display: none; }

/* Tablet and down */
@media (max-width: 56.25em) {
  .hero-grid { grid-template-columns: 1fr; }
  .thread { max-width: 520px; margin-right: 0; }
  .work-grid { grid-template-columns: 1fr; }
  .shot-lg { grid-row: auto; }
  .contact-grid, .asks, .svc { grid-template-columns: 1fr; }
  .contact h2 { max-width: none; }
  .ask { max-width: none; }
  .process-grid { grid-template-columns: 1fr; }
  .process-head { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 40em) {
  body { padding-bottom: 5rem; }
  .menu-btn {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0.5rem 1rem;
    background: transparent; color: var(--heading); border: 2px solid var(--heading); border-radius: var(--radius);
    font: 600 1rem/1 var(--font-body); cursor: pointer;
  }
  .nav {
    position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 0.5rem 1.25rem 1.25rem;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0s linear 0.2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav a:not(.btn) { padding: 0.9rem 0; border-bottom: 1px solid var(--line); background: none; }
  .tools { padding-top: 1rem; }
  .nav .btn { margin-top: 1rem; }
  .actions .btn { flex: 1 1 100%; }
  .foot-grid, .field-row { grid-template-columns: 1fr; }
  .steps li { padding-left: 4.2rem; }
  .steps::before, .steps-fill { left: 1.3rem; }
  .steps li:not(.steps-loop)::before, .steps-loop .mark { width: 2.7rem; height: 2.7rem; }
  .callbar {
    display: inline-flex; position: fixed; z-index: 9;
    left: 1rem; right: 1rem; bottom: calc(0.75rem + env(safe-area-inset-bottom));
    box-shadow: 0 8px 24px rgb(1 35 64 / 0.25);
  }
}

/* Very narrow phones: shrink the logo so it never runs under the Menu button. */
@media (max-width: 22.5em) {
  .brand { gap: 0.5rem; }
  .brand .mark { width: 36px; }
  .brand-text { height: 15px; }
  .menu-btn { padding-inline: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
