/* ==========================================================================
   Hello AI — styles
   Brand colours are taken from the supplied logo:
     wordmark navy  #010F24   cyan #0098FB   blue #0054FC   violet #7A1CFB
   ========================================================================== */

/* ---- Fonts (Inter, self-hosted, SIL Open Font License) ------------------ */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-500.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-600.woff") format("woff"); }

/* ---- Tokens -------------------------------------------------------------- */
:root {
  --bg: #FBFAF7;
  --surface: #FFFFFF;
  --ink: #07122A;
  --ink-2: #2E394E;
  --muted: #586275;
  --line: #E6E3DC;
  --line-strong: #D3CFC5;
  --field-border: #868D9B;
  --blue: #0054FC;
  --blue-dark: #0040C4;
  --violet: #7A1CFB;
  --cyan: #0098FB;
  --danger: #B42318;
  --grad: linear-gradient(100deg, #0098FB 0%, #0054FC 45%, #8A12FC 100%);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
  --radius: 6px;
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dark); }
[id] { scroll-margin-top: var(--header-h); }
section:focus { outline: none; }
[hidden] { display: none !important; }

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

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; text-decoration: none; border-radius: 4px; }
.brand-logo { height: 44px; width: auto; }

.nav-list { display: flex; align-items: center; gap: 4px; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.nav-list a {
  display: inline-block; padding: 8px 12px; color: var(--ink); text-decoration: none;
  font-size: .9375rem; font-weight: 500; border-radius: 4px; position: relative;
}
.nav-list a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-list a:hover::after, .nav-list a[aria-current="true"]::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a:hover { color: var(--ink); }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px; padding: 0;
  background: none; border: 0; border-radius: var(--radius); cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 1px;
  transition: transform .25s ease, background-color .2s ease, top .25s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 899px) {
  .brand-logo { height: 34px; }
  .js .nav-toggle { display: inline-flex; }
  .site-nav { flex-direction: column; align-items: stretch; gap: 8px; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { padding: 14px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line); border-radius: 0; display: block; }
  .nav-list a::after { display: none; }
  .nav-cta { margin-top: 16px; }

  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .js .site-nav.is-open { display: flex; }
  /* Without JavaScript the links simply wrap under the logo. */
  .no-js .header-inner { height: auto; padding-block: 12px; flex-wrap: wrap; }
  .no-js .site-nav { width: 100%; }
}

/* ---- Buttons & links ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: var(--radius);
  font: 600 .9375rem/1 var(--font); letter-spacing: .005em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .875rem; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--blue); color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn[aria-disabled="true"] { opacity: .72; cursor: progress; }
.btn[aria-disabled="true"]:hover { background: var(--ink); }
.btn[aria-busy="true"] .btn-label::before {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.text-link { color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color .2s ease, color .2s ease; }
.text-link span { display: inline-block; transition: transform .2s ease; }
.text-link:hover { color: var(--blue); border-color: var(--blue); }
.text-link:hover span { transform: translateX(3px); }

/* ---- Hero ---------------------------------------------------------------- */
.hero { padding: clamp(48px, 8vw, 112px) 0 clamp(64px, 9vw, 128px); overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--grad); flex: none; }
.hero-title {
  margin-top: 28px; font-size: clamp(2.5rem, 1.5rem + 4.6vw, 4.75rem); line-height: 1.03;
  letter-spacing: -.035em; font-weight: 600; color: var(--ink); text-wrap: balance;
}
.grad-text { color: var(--blue); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad-text { background: linear-gradient(100deg, #0054FC 0%, #5A2CFC 55%, #8A12FC 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
}
.hero-lede { margin-top: 28px; max-width: 34em; font-size: clamp(1.0625rem, 1rem + .5vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.hero-note { margin-top: 36px; font-size: .875rem; color: var(--muted); max-width: 34em; }

.hero-visual { display: none; }
.hero-flow { width: 100%; height: auto; display: block; }
@media (min-width: 640px) {
  .hero-visual { display: block; max-width: 460px; margin-inline: auto; width: 100%; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; }
  .hero-visual { max-width: none; margin-right: calc(var(--gutter) * -0.6); }
}

/* ---- Sections ------------------------------------------------------------ */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-no { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.section-no span { color: var(--blue); margin-right: 12px; font-variant-numeric: tabular-nums; }
.h2 { margin-top: 20px; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.125rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; color: var(--ink); text-wrap: balance; max-width: 18ch; }
.lede { margin-top: 24px; font-size: 1.125rem; line-height: 1.6; color: var(--ink-2); max-width: 36em; }
.statement { margin-top: 28px; font-size: clamp(1.1875rem, 1rem + .75vw, 1.5rem); line-height: 1.55; color: var(--ink-2); max-width: 34em; }

.split { display: grid; gap: 20px; }
.split-label .section-no { margin-top: 0; }
.split .h2 { margin-top: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
  .split-label { padding-top: 14px; }
}

/* Vision */
.vision .h2 { margin-bottom: clamp(40px, 6vw, 72px); }
.pillars { display: grid; gap: 40px; }
.pillar { position: relative; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.pillar::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 2px; background: var(--grad); transition: width .35s ease; }
.pillar:hover::before { width: 100%; }
.pillar-no { display: block; font-size: .8125rem; font-weight: 500; color: var(--muted); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.pillar h3 { margin-top: 36px; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.02em; font-weight: 600; color: var(--ink); }
.pillar p { margin-top: 14px; max-width: 24em; color: var(--ink-2); }
@media (min-width: 800px) {
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
}

/* ---- Idea section -------------------------------------------------------- */
.idea { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.idea-grid { display: grid; gap: 48px; align-items: start; }
.idea-facts { margin-top: 20px; font-size: .9375rem; color: var(--muted); }
.privacy-note { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); max-width: 30em; }
.privacy-note h3 { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink); }
.privacy-note p { margin-top: 10px; font-size: .9375rem; line-height: 1.6; color: var(--muted); }
.privacy-note a { color: var(--ink); }
.privacy-note a:hover { color: var(--blue); }
@media (min-width: 1000px) {
  .idea-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; }
  .idea-intro { position: sticky; top: calc(var(--header-h) + 32px); }
}

.idea-panel { background: var(--bg); border: 1px solid var(--line-strong); border-radius: 8px; padding: clamp(20px, 4vw, 40px); }

.demo-banner {
  background: #F3F0FF; border: 1px solid #D8CFFF; color: #2A1A6B; border-radius: var(--radius);
  padding: 12px 16px; font-size: .875rem; line-height: 1.5; margin-bottom: 28px;
}
.noscript-note { padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; font-size: .9375rem; }
.no-js .idea-form { display: none; }

.field { margin-bottom: 22px; }
.field-row { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
label { display: block; margin-bottom: 8px; font-size: .9375rem; font-weight: 500; color: var(--ink); line-height: 1.35; }
.opt, .req { font-weight: 400; color: var(--muted); font-size: .875rem; }

input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--font); color: var(--ink);
  background: #fff; border: 1px solid var(--field-border); border-radius: var(--radius);
  padding: 0 14px; min-height: 48px; transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { padding: 12px 14px; line-height: 1.55; resize: vertical; min-height: 96px; }
select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2307122A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
::placeholder { color: #6B7384; opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-2); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
[aria-invalid="true"]:focus-visible { outline-color: var(--danger); }

.field-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 6px; }
.char-count { margin-left: auto; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.field-error { margin-top: 6px; font-size: .875rem; line-height: 1.4; color: var(--danger); font-weight: 500; display: flex; gap: 8px; align-items: flex-start; }
.field-meta .field-error { margin-top: 0; }
.field-error::before { content: "!"; flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; }

.consent { margin-top: 28px; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); cursor: pointer; }
.check label { margin: 0; font-size: .9375rem; font-weight: 400; color: var(--ink-2); line-height: 1.55; cursor: pointer; }
.check label a { color: var(--ink); }
.check label a:hover { color: var(--blue); }

.form-actions { margin-top: 28px; }
.form-actions .btn { min-width: 180px; }
@media (max-width: 479px) { .form-actions .btn { width: 100%; } }

.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.error-summary { border: 1px solid #F0B8B0; background: #FDF0EE; color: #5A1109; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 24px; font-size: .9375rem; }
.error-summary-title { font-weight: 600; }
.error-summary ul { margin-top: 6px; padding-left: 18px; list-style: disc; }
.error-summary a { color: #5A1109; }

.form-status { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 24px; margin-bottom: 28px; background: #fff; }
.form-status:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.form-status h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 600; color: var(--ink); }
.form-status p { margin-top: 10px; font-size: .9375rem; line-height: 1.6; }
.form-status .btn { margin-top: 20px; }
.form-status.is-info { background: #F3F0FF; border-color: #D8CFFF; color: #2A1A6B; }
.form-status.is-info h3 { color: #2A1A6B; }
.form-status.is-success { background: #ECF8F1; border-color: #BFE3CE; color: #0B3D26; }
.form-status.is-success h3 { color: #0B3D26; }
.form-status.is-error { background: #FDF0EE; border-color: #F0B8B0; color: #5A1109; }
.form-status.is-error h3 { color: #5A1109; }

/* ---- Transparency (dark band) ------------------------------------------- */
.transparency { position: relative; background: var(--ink); color: #fff; border-top: 0 !important; }
.transparency::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad); }
.on-dark { color: #fff; }
.section-no.on-dark { color: rgba(255,255,255,.62); }
.section-no.on-dark span { color: #6FB4FF; }
.statement.on-dark { color: #C9D2E3; }
.transparency .h2 { max-width: 16ch; }

/* ---- Contact ------------------------------------------------------------- */
.contact-body { margin-top: 28px; }
.contact-placeholder { font-size: 1.1875rem; color: var(--muted); }
.contact-email { font-size: 1.375rem; font-weight: 500; letter-spacing: -.01em; }
.social-list { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; }
.social-list a { color: var(--ink); font-weight: 500; }
.social-list a:hover { color: var(--blue); }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 28px; background: var(--bg); }
.footer-grid { display: grid; gap: 40px; }
.footer-brand .brand-logo { height: 48px; }
.footer-tagline { margin-top: 22px; font-weight: 600; color: var(--ink); font-size: .9375rem; }
.footer-about { margin-top: 8px; max-width: 34em; font-size: .9375rem; color: var(--muted); }
.footer-nav li + li { margin-top: 10px; }
.footer-nav a, .footer-contact a { color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--blue); text-decoration: underline; }
.footer-heading { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.footer-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
}

/* ---- Legal pages --------------------------------------------------------- */
.legal { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 9vw, 112px); }
.legal-inner { max-width: 760px; }
.back-link { display: inline-block; font-size: .9375rem; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.back-link:hover { color: var(--blue); border-color: var(--blue); }
.draft-tag { display: table; margin-top: 40px; padding: 5px 10px; border-radius: 4px; background: #F3F0FF; color: #2A1A6B; border: 1px solid #D8CFFF; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.legal h1 { margin-top: 16px; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.5rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 600; color: var(--ink); }
.legal-meta { margin-top: 16px; color: var(--muted); font-size: .9375rem; }
.callout { margin-top: 32px; padding: 16px 18px; border: 1px solid #D8CFFF; background: #F3F0FF; color: #2A1A6B; border-radius: var(--radius); font-size: .9375rem; line-height: 1.6; }
.callout strong { font-weight: 600; }
.toc { margin-top: 40px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toc-title { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.toc ol { margin-top: 12px; display: grid; gap: 6px 32px; counter-reset: toc; }
.toc li { counter-increment: toc; font-size: .9375rem; }
.toc li::before { content: counter(toc, decimal-leading-zero); color: var(--muted); margin-right: 10px; font-variant-numeric: tabular-nums; font-size: .8125rem; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--blue); text-decoration: underline; }
@media (min-width: 640px) { .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.legal section { margin-top: 56px; }
.legal h2 { font-size: 1.5rem; line-height: 1.25; letter-spacing: -.02em; font-weight: 600; color: var(--ink); }
.legal h2 .n { color: var(--blue); font-size: .875rem; letter-spacing: .08em; margin-right: 12px; font-variant-numeric: tabular-nums; vertical-align: .12em; }
.legal p, .legal li { margin-top: 14px; line-height: 1.7; }
.legal ul.bullets { margin-top: 10px; padding-left: 20px; list-style: disc; }
.legal ul.bullets li { margin-top: 8px; padding-left: 4px; }
.legal .pending { background: #FFF6DC; color: #5C4300; padding: 1px 6px; border-radius: 3px; font-weight: 500; }
.legal a { color: var(--blue); }

.field-list { margin-top: 20px; border-bottom: 1px solid var(--line); }
.field-list > div { display: grid; gap: 6px 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.field-list dt { font-weight: 600; color: var(--ink); }
.field-list dd { color: var(--ink-2); font-size: .9375rem; line-height: 1.55; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; width: fit-content; }
.tag-req { background: #E5EDFF; color: #0A2F8F; }
.tag-opt { background: #EEECE6; color: #3B4458; }
@media (min-width: 720px) { .field-list > div { grid-template-columns: 1.3fr .7fr 2.4fr; align-items: baseline; } }

/* ---- Motion -------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero-copy > .reveal:nth-child(2) { transition-delay: .06s; }
.js .hero-copy > .reveal:nth-child(3) { transition-delay: .12s; }
.js .hero-copy > .reveal:nth-child(4) { transition-delay: .18s; }
.js .hero-copy > .reveal:nth-child(5) { transition-delay: .24s; }

.js .flow-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s cubic-bezier(.4,0,.2,1) forwards; }
.js .flow-line:nth-child(odd) { animation-delay: .15s; }
.js .flow-line:nth-child(even) { animation-delay: .3s; }
.js .flow-line:nth-child(3n) { animation-delay: .45s; }
.js .flow-nodes { opacity: 0; animation: fade-in 1s ease 1.7s forwards; }
.js .flow-links { opacity: 0; animation: fade-links 1s ease 1.9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes fade-links { to { opacity: .55; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .flow-line { stroke-dasharray: none; stroke-dashoffset: 0; }
  .js .flow-nodes { opacity: 1; }
  .js .flow-links { opacity: .55; }
}

/* ---- Print --------------------------------------------------------------- */
@media print {
  .site-header, .hero-visual, .nav-toggle, .skip-link { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Keep paired fields aligned when one label wraps onto two lines */
.field-row > .field { display: flex; flex-direction: column; }
.field-row > .field > input, .field-row > .field > select { margin-top: auto; }
