/* HH Digital Works site styles.
   Brand source: ../brand/ (tokens.json is the source of truth; tokens.css and components.css mirror it).
   When a token changes there, change it here too. Fonts are self-hosted in /fonts (Open Font License). */

@font-face { font-family: Manrope; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/manrope-latin-var.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/dm-mono-latin-400.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/dm-mono-latin-500.woff2") format("woff2"); }

:root {
  --ground: #f0f5f4;
  --surface: #ffffff;
  --ink: #0f2226;
  --muted: #4f6266;
  --line: #d3dedc;
  --brand: #0b5563;
  --brand-strong: #08424d;
  --on-brand: #ffffff;
  --tint: #cfe6e1;
  --on-tint: #0b5563;
  --accent: #e8674a;
  --on-accent: #0f2226;
  --accent-tint: #fce9e4;
  --petrol: #0b5563;
  --on-petrol: #ffffff;
  --sea-glass: #cfe6e1;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-18: 72px;

  --radius-doc: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --font-sans: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0c1b1e;
    --surface: #132629;
    --ink: #e8f0ee;
    --muted: #9db3b1;
    --line: #223a3e;
    --brand: #7fd1c3;
    --brand-strong: #9fe0d4;
    --on-brand: #0c1b1e;
    --tint: #17373b;
    --on-tint: #9fe0d4;
    --accent: #ff8a6b;
    --on-accent: #0c1b1e;
    --accent-tint: #3a211c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0c1b1e;
  --surface: #132629;
  --ink: #e8f0ee;
  --muted: #9db3b1;
  --line: #223a3e;
  --brand: #7fd1c3;
  --brand-strong: #9fe0d4;
  --on-brand: #0c1b1e;
  --tint: #17373b;
  --on-tint: #9fe0d4;
  --accent: #ff8a6b;
  --on-accent: #0c1b1e;
  --accent-tint: #3a211c;
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol { margin: 0; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }

/* Logo: the mark, then the words on one baseline */
.hh-logo { display: inline-flex; align-items: baseline; gap: 0.4em; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; line-height: 1; }
.hh-logo:hover { color: var(--ink); }
.hh-logo svg { height: 1.35em; width: auto; flex: none; }
.hh-logo path { fill: none; stroke: var(--brand); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }

/* Button */
.hh-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--radius-pill); background: var(--brand); color: var(--on-brand); font-family: var(--font-sans); font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; overflow-wrap: anywhere; }
.hh-btn:hover { background: var(--brand-strong); color: var(--on-brand); }
.hh-btn:focus-visible { border-radius: var(--radius-pill); }
.hh-btn--quiet { min-height: 44px; padding: 0 20px; background: var(--surface); color: var(--ink); border-color: var(--line); font-size: 15px; }
.hh-btn--quiet:hover { background: var(--surface); color: var(--ink); border-color: var(--muted); }
.hh-btn--on-petrol { background: var(--on-petrol); color: var(--petrol); }
.hh-btn--on-petrol:hover { background: var(--sea-glass); color: var(--petrol); }
.hh-btn--on-petrol:focus-visible { outline-color: var(--on-petrol); }

/* Tag, dot, note */
.hh-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 12px; border-radius: var(--radius-pill); background: var(--tint); color: var(--on-tint); font-size: 12px; font-weight: 700; line-height: 1.4; }
.hh-tag--lead { min-height: 28px; padding: 0 14px; font-size: 13px; }
.hh-dot { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hh-note { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 14px; color: var(--muted); }

/* Card and lists */
.hh-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.hh-card h3 { font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.hh-card p { font-size: 16px; color: var(--muted); }
.hh-list { align-self: stretch; padding: 0; list-style: none; font-size: 15px; line-height: 1.5; }
.hh-list li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.hh-list li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.hh-label { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hh-checklist { align-self: stretch; padding: 0; list-style: none; font-size: 15px; line-height: 1.45; font-weight: 500; }
.hh-checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.hh-checklist li:last-child { border-bottom: 1px solid var(--line); }
.hh-check { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.hh-check circle { fill: var(--tint); }
.hh-check path { fill: none; stroke: var(--on-tint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
.hh-steps { display: flex; flex-wrap: wrap; gap: 28px; padding: 0; list-style: none; }
.hh-steps li { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hh-step-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-tint); color: var(--ink); font-family: var(--font-mono); font-size: 15px; font-weight: 500; }
.hh-step-title { font-size: 18px; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; }
.hh-step-text { font-size: 16px; color: var(--muted); }

/* Page: header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }

/* Page: hero */
.hero { padding: var(--space-18) 0 80px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: var(--space-12); align-items: center; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hero-side { flex: 1 1 340px; min-width: 0; }
.hero-side .hh-card { gap: 18px; }
.display { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.lead { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 520px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }

/* Page: sections */
.section { padding: 0 0 80px; }
.section--band { padding: var(--space-18) 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section .wrap { display: flex; flex-direction: column; gap: 28px; }
.section h2 { font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; }
.cards { display: flex; flex-wrap: wrap; gap: var(--space-6); }
.cards .hh-card { flex: 1 1 320px; min-width: 0; }

/* Notice */
.hh-notice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--accent-tint); color: var(--ink); font-size: 14px; line-height: 1.4; }

/* Form. Fields use the exact corner (radius-doc). Field borders use muted, because line is too faint for a control. */
.hh-form { align-self: stretch; display: flex; flex-direction: column; gap: 18px; }
.hh-field { display: flex; flex-direction: column; gap: 6px; }
.hh-field label { font-size: 14px; font-weight: 700; line-height: 1.4; }
.hh-optional { font-weight: 400; color: var(--muted); }
.hh-field input, .hh-field select, .hh-field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--muted); border-radius: var(--radius-doc); background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.5; }
.hh-field textarea { min-height: 132px; resize: vertical; }
.hh-field input:focus-visible, .hh-field select:focus-visible, .hh-field textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-radius: var(--radius-doc); }
.hh-field [aria-invalid="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.hh-card .hh-field-hint, .hh-field-hint { font-size: 14px; line-height: 1.45; color: var(--muted); }
.hh-card .hh-field-error, .hh-field-error { display: flex; align-items: baseline; gap: var(--space-2); font-size: 14px; line-height: 1.4; font-weight: 500; color: var(--ink); }
.hh-field-error::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hh-card .hh-notice { font-size: 14px; color: var(--ink); }
.hh-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hh-done { align-self: stretch; display: flex; flex-direction: column; gap: var(--space-2); }
.hh-done:focus { outline: none; }
[hidden] { display: none !important; }

/* Page: contact */
.contact { padding: var(--space-18) 0; }
.contact-grid { display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--space-6); }
.contact-grid .hh-panel { flex: 1 1 300px; min-width: 0; }
.contact-card { flex: 1.5 1 420px; min-width: 0; }
.hh-panel { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-8); padding: var(--space-12); border-radius: var(--radius-xl); background: var(--petrol); color: var(--on-petrol); }
.panel-text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.hh-panel h2 { font-size: 34px; line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; }
.hh-panel p { font-size: 18px; color: var(--sea-glass); }
.panel-mark { flex: none; align-self: flex-end; width: 120px; height: 120px; opacity: 0.2; }
.panel-mark path { fill: none; stroke: var(--sea-glass); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }

/* Page: footer */
.legal { border-top: 1px solid var(--line); padding: var(--space-8) 0 var(--space-12); color: var(--muted); font-size: 14px; }
.legal .wrap { display: flex; flex-direction: column; gap: 6px; }
.legal strong { color: var(--ink); }
.legal-line { font-family: var(--font-mono); font-size: 13px; overflow-wrap: anywhere; }

/* Inner pages: privacy, not found */
.prose { padding: 56px 0 var(--space-18); }
.prose .wrap { display: flex; flex-direction: column; gap: var(--space-3); }
.prose h1 { font-size: 36px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.prose .updated { color: var(--muted); font-size: 14px; margin-bottom: var(--space-4); }
.prose h2 { font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; margin-top: var(--space-6); }
.prose p, .prose ul { max-width: 65ch; }
.prose ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-doc); padding: 0 4px; }

@media (max-width: 720px) {
  .panel-mark { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .hero { padding: var(--space-12) 0 56px; }
  .hero .wrap { gap: var(--space-8); }
  .lead { font-size: 17px; }
  .section { padding-bottom: 56px; }
  .section--band, .contact { padding: var(--space-12) 0; }
  .section h2 { font-size: 26px; }
  .hh-card { padding: var(--space-6); }
  .hh-panel { padding: var(--space-8) var(--space-6); }
  .hh-panel h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hh-btn { transition: background-color 0.15s ease, border-color 0.15s ease; }
}

/* Theme switch (15 Nov 2026). The site follows the device until the visitor chooses; /theme.js keeps the choice.
   A quiet button with an icon only: the moon in light, the sun in dark (the theme a click switches to). */
:root[data-theme="light"] { color-scheme: light; }
.top-end { display: flex; align-items: center; gap: var(--space-2); flex: none; margin-left: auto; }
/* Narrow screens and larger text: tighten first; if it still does not fit, the two buttons move to a second row on the right. */
.top .wrap { flex-wrap: wrap; row-gap: var(--space-2); padding-top: 14px; padding-bottom: 14px; }
@media (max-width: 380px) {
  .top .wrap { column-gap: var(--space-3); }
  .top .hh-btn--quiet:not(.hh-btn--icon) { padding: 0 16px; }
}
@media (max-width: 340px) {
  .top .wrap { column-gap: var(--space-2); }
  .top .hh-logo { font-size: 18px; }
  .top .hh-btn--quiet:not(.hh-btn--icon) { padding: 0 14px; }
}
.hh-btn--icon { width: 44px; min-width: 44px; padding: 0; }
.hh-theme { display: none; }
.hh-js .hh-theme { display: inline-flex; }
.hh-theme svg { width: 20px; height: 20px; flex: none; }
.hh-theme path, .hh-theme circle { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hh-theme-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hh-theme-moon { display: none; }
  :root:not([data-theme="light"]) .hh-theme-sun { display: block; }
}
:root[data-theme="dark"] .hh-theme-moon { display: none; }
:root[data-theme="dark"] .hh-theme-sun { display: block; }
.hh-theme-snap *, .hh-theme-snap *::before, .hh-theme-snap *::after { transition: none !important; }
@media (prefers-reduced-motion: no-preference) {
  .hh-theme[data-turned] svg { animation: hh-theme-turn 0.2s ease-out; }
  @keyframes hh-theme-turn { from { opacity: 0; transform: rotate(-60deg) scale(0.85); } }
}

/* Sticky header (Nadi, 15 Nov 2026: "keep the header sticky"). Solid ground, no shadow; the hairline stays.
   scroll-padding keeps #contact and focused form fields clear of the header. The cookie banner sits above it. */
.top { position: sticky; top: 0; z-index: 10; background: var(--ground); }
html { scroll-padding-top: 72px; }
.hh-field input, .hh-field select, .hh-field textarea { scroll-margin-top: var(--space-12); }
@media (max-width: 316px) {
  html { scroll-padding-top: 108px; }
}

/* Motion (15 Nov 2026). Rules in brand/GUIDELINES.md, "Motion".
   Only lines move: strokes draw once, two things follow the scroll. Text never moves or fades.
   Everything is complete and still without script, with reduced motion and in print.
   The class hh-motion on <html> and is-drawn on [data-draw] elements come from the inline script in index.html. */

/* Tide line: one row of the mark's own arches and stems (stroke = arch radius, three times the mark's unit)
   at the foot of the petrol panel. It drifts sideways as the page scrolls. */
.hh-panel--tide { position: relative; overflow: clip; padding-bottom: calc(var(--space-12) + 40px); }
.hh-tide { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; pointer-events: none; opacity: 0.2; }
.hh-tide i { position: absolute; top: 0; bottom: 0; left: -84px; right: -84px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 40'%3E%3Cpath d='M-42 31.5a21 21 0 0 1 42 0a21 21 0 0 1 42 0a21 21 0 0 1 42 0M0 31.5V40M42 31.5V40' fill='none' stroke='%23cfe6e1' stroke-width='21'/%3E%3C/svg%3E") repeat-x 0 0 / 42px 40px; }
@media (max-width: 720px) {
  /* On narrow screens the mark sits beside the text, so there is something to draw. */
  .hh-panel--tide { flex-direction: row; align-items: flex-end; gap: var(--space-4); }
  .hh-panel--tide .panel-mark { display: block; width: 72px; height: 72px; }
}
@media (max-width: 520px) {
  .hh-panel--tide { padding-bottom: calc(var(--space-8) + 40px); }
}

/* Step rail: a 2px rail joins the step numbers. Wide: three columns, the rail runs across.
   Narrow: the number sits left of the text and the rail runs down. A coral line runs along it with the scroll. */
.hh-steps--rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.hh-steps--rail li { position: relative; }
.hh-steps--rail .hh-step-num { position: relative; z-index: 1; }
.hh-steps--rail li:not(:last-child)::before, .hh-steps--rail li:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: 22px; right: -50px; height: 2px; background: var(--line); transform-origin: 0 50%; }
.hh-steps--rail li:not(:last-child)::after { background: var(--accent); transform: scale(0); }
@media (max-width: 840px) {
  .hh-steps--rail { grid-template-columns: minmax(0, 1fr); }
  .hh-steps--rail li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--space-4); row-gap: 4px; align-items: start; }
  .hh-steps--rail .hh-step-num { grid-row: 1 / span 2; }
  .hh-steps--rail .hh-step-title { padding-top: 10px; }
  .hh-steps--rail li:not(:last-child)::before, .hh-steps--rail li:not(:last-child)::after { top: 22px; bottom: -50px; left: 21px; right: auto; width: 2px; height: auto; transform-origin: 50% 0; }
}

@media screen and (prefers-reduced-motion: no-preference) {
  /* Drawn mark: four strokes with pathLength="1". The header mark is still (Nadi, 15 Nov 2026: the hero mark draws instead). */
  .hh-motion .panel-mark:not(.is-drawn) path { opacity: 0; }
  .hh-motion .panel-mark.is-drawn path { animation: hh-draw 0.34s cubic-bezier(0.4, 0, 0.2, 1) backwards; }
  .hh-motion .panel-mark.is-drawn path:nth-child(1) { animation-delay: 0.1s; }
  .hh-motion .panel-mark.is-drawn path:nth-child(2) { animation-delay: 0.4s; }
  .hh-motion .panel-mark.is-drawn path:nth-child(3) { animation-delay: 0.7s; }
  .hh-motion .panel-mark.is-drawn path:nth-child(4) { animation-delay: 1s; animation-duration: 0.48s; }

  .hh-checklist li:nth-child(1), .hh-list li:nth-child(1) { --i: 0; }
  .hh-checklist li:nth-child(2), .hh-list li:nth-child(2) { --i: 1; }
  .hh-checklist li:nth-child(3), .hh-list li:nth-child(3) { --i: 2; }
  .hh-checklist li:nth-child(4), .hh-list li:nth-child(4) { --i: 3; }
  .hh-list li:nth-child(5) { --i: 4; }

  /* Self-checking list: each circle fills and its tick draws, one after another. */
  .hh-motion .hh-checklist:not(.is-drawn) .hh-check circle { fill: var(--ground); }
  .hh-motion .hh-checklist:not(.is-drawn) .hh-check path { opacity: 0; }
  .hh-motion .hh-checklist.is-drawn .hh-check circle { animation: hh-fill 0.2s ease-out backwards; animation-delay: calc(var(--i) * 0.26s + 0.1s); }
  .hh-motion .hh-checklist.is-drawn .hh-check path { animation: hh-draw 0.3s cubic-bezier(0.4, 0, 0.2, 1) backwards; animation-delay: calc(var(--i) * 0.26s + 0.16s); }

  /* Ruled lists: the hairline above each item draws from the left in brand colour, then settles. The dot lands after it. */
  .hh-motion .hh-list[data-draw] li { position: relative; border-top-color: transparent; }
  .hh-motion .hh-list[data-draw] li::after { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--line); transform-origin: 0 50%; }
  .hh-motion .hh-list:not(.is-drawn) li::after, .hh-motion .hh-list[data-draw]:not(.is-drawn) li::before { transform: scale(0); }
  .hh-motion .hh-list.is-drawn li::after { animation: hh-ink 0.7s cubic-bezier(0.4, 0, 0.2, 1) backwards; animation-delay: calc(var(--i) * 0.11s); }
  .hh-motion .hh-list.is-drawn li::before { animation: hh-land 0.2s ease-out backwards; animation-delay: calc(var(--i) * 0.11s + 0.3s); }

  @supports (animation-timeline: view()) {
    .hh-tide i { animation: hh-tide linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .hh-steps--rail li:not(:last-child)::after { animation: hh-grow-x linear both; animation-timeline: view(); }
    .hh-steps--rail li:nth-child(1)::after { animation-range: cover 30% cover 48%; }
    .hh-steps--rail li:nth-child(2)::after { animation-range: cover 48% cover 66%; }
    @media (max-width: 840px) {
      .hh-steps--rail li:not(:last-child)::after { animation-name: hh-grow-y; animation-range: cover 30% cover 62%; }
    }
  }
}
@keyframes hh-draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; } 4% { opacity: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 1; } }
@keyframes hh-fill { from { fill: var(--ground); } }
@keyframes hh-ink { from { transform: scaleX(0); background: var(--brand); } 60% { transform: scaleX(1); background: var(--brand); } to { transform: scaleX(1); background: var(--line); } }
@keyframes hh-land { from { transform: scale(0); } }
@keyframes hh-tide { from { transform: translateX(-63px); } to { transform: translateX(63px); } }
@keyframes hh-grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hh-grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Hero mark (15 Nov 2026, Nadi: "go with big mark"). The mark, large and pale, stands behind the hero words.
   It draws once, on page load, and then stays. It sinks a little while the page scrolls.
   Nothing behind text is darker than tint (lead text on tint: 4.9:1 in light, 5.8:1 in dark).
   Complete and still without script and with reduced motion. Not printed. */
.hero { position: relative; overflow: hidden; overflow: clip; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-text { position: relative; }
.hero-mark { position: absolute; z-index: -1; left: -44px; top: 36px; height: calc(100% + 20px); overflow: visible; pointer-events: none; }
.hero-mark path { fill: none; stroke: var(--tint); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 875px) {
  .hero-mark { left: -28px; }
}
@media print {
  .hero-mark { display: none; }
}
@media screen and (prefers-reduced-motion: no-preference) {
  .hero-mark path { animation: hh-draw 0.45s cubic-bezier(0.4, 0, 0.2, 1) backwards; }
  .hero-mark path:nth-child(1) { animation-delay: 0.3s; }
  .hero-mark path:nth-child(2) { animation-delay: 0.7s; }
  .hero-mark path:nth-child(3) { animation-delay: 1.1s; }
  .hero-mark path:nth-child(4) { animation-delay: 1.5s; animation-duration: 0.62s; }
  @supports (animation-timeline: scroll()) {
    .hero-mark { animation: hh-sink linear both; animation-timeline: scroll(root); animation-range: 0 640px; }
  }
}
@keyframes hh-sink { to { transform: translateY(56px); } }

/* Hero foot (16 Nov 2026, Nadi: "What we do" sat too close to the hero). A hairline closes the hero, then space,
   so the two sections read apart and the hero mark's feet have a floor. */
.hero { border-bottom: 1px solid var(--line); }
.hero + .section { padding-top: var(--space-18); }
@media (max-width: 520px) {
  .hero + .section { padding-top: var(--space-12); }
}
