/* Tunnea home. Brand book tokens; Equator's first four sections. */

@font-face { font-family: 'Syne'; src: url('assets/brand/syne-latin-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Syne'; src: url('assets/brand/syne-latin-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('assets/brand/source-sans-3-latin-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('assets/brand/source-sans-3-latin-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('assets/brand/source-sans-3-latin-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --ink:    #182860;
  --paper:  #FFFFFF;
  --canvas: #E7EDF4;
  --muted:  #5C6B80;
  --line:   #E2E8F0;
  --soft:   #F4F7FB;

  --sky:    #20A0D0;
  --mist:   #90C8D8;
  --magenta:#C83080;
  --pollen: #F0E028;

  --display: 'Syne', ui-sans-serif, sans-serif;
  --text:    'Source Sans 3', ui-sans-serif, sans-serif;

  --edge: 50px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --ground: var(--paper);
  --figure: var(--ink);
  --quiet:  var(--muted);
}

body[data-ground="soft"] { --ground: var(--soft); --figure: var(--ink);   --quiet: var(--muted); }
body[data-ground="ink"]  { --ground: var(--ink);  --figure: var(--paper); --quiet: var(--mist); }

* { box-sizing: border-box; margin: 0; padding: 0; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--text);
  font-weight: 400;
  background: var(--ground);
  color: var(--figure);
  transition: background-color 700ms ease, color 700ms ease;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---- the bar ---- */

.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: 96px;
  padding: 0 var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.bar::before {
  content: "";
  position: absolute;
  inset: 0 0 -24px 0;
  z-index: -1;
  background: linear-gradient(var(--ground) 60%, transparent);
  opacity: var(--chrome, 0);
  transition: background 700ms ease;
}

.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding-left: 48px;
  opacity: var(--chrome, 0);
}

.links {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: var(--chrome, 0);
}
.links a { text-decoration: none; }
.links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* The bird docks from the splash into the bar. home.js writes its box. */
.bird {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 41;
  width: auto;
  transform-origin: 0 0;
  mix-blend-mode: multiply;
  transition: opacity 400ms ease;
}
/* Brand book: the bird sits on white only, so on navy it gets a white tile. */
.bird-tile {
  position: fixed;
  z-index: 40;
  left: calc(var(--edge) - 12px);
  top: 6px;
  width: 57px;
  height: 84px;
  border-radius: 14px;
  background: var(--paper);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 400ms ease, transform 400ms var(--ease);
  pointer-events: none;
}
body[data-ground="ink"] .bird-tile { opacity: 1; transform: none; }

/* ---- 01 splash ---- */

/* Pinned: opens on navy with the bird centred on its white sheet; the sheet
   grows to the whole screen as the bird moves right (home.js owns both). */
.splash { height: 220vh; position: relative; background: var(--ink); }
.splash-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding: 0 var(--edge) var(--edge);
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}
.splash-sheet { position: absolute; inset: 0; background: var(--paper); }
.splash .tagline, .splash .explore { position: relative; }

/* Leaves as the bird docks, so the wordmark takes over in the bar. */
.tagline {
  align-self: center;
  max-width: min(56vw, 52rem);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.4vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
  opacity: calc(1 - var(--dock, 0) * 2.2);
  transform: translateY(calc(var(--dock, 0) * -80px));
}
/* Words arrive one after another as the sheet finishes opening. */
.tagline .tw {
  --k: clamp(0, calc((var(--intro, 1) - 0.45 - var(--i) * 0.05) * 6), 1);
  display: inline-block;
  opacity: var(--k);
  transform: translateY(calc((1 - var(--k)) * 0.5em));
}

.explore {
  justify-self: start;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
  font-variant-numeric: tabular-nums;
  opacity: calc(1 - var(--dock, 0) * 1.6);
  transition: color 400ms ease;
}
.splash.is-open .explore { color: var(--quiet); }

/* ---- 02 title ---- */

.title {
  position: relative;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-rows: 120px 1fr auto;
  overflow: hidden;
}

.videoLayer {
  position: absolute;
  inset: 0;
  display: grid;
}
.videoLayer canvas { width: 100%; height: 100%; display: block; }

.title-copy {
  grid-row: 3;
  position: relative;
  justify-self: start;
  width: min(100%, 60rem);
  padding: 140px 120px var(--edge) var(--edge);
  display: grid;
  gap: 22px;
  background: radial-gradient(ellipse at 0% 100%, var(--paper) 50%, transparent 72%);
}

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.75rem, 7vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 14ch;
  text-wrap: balance;
}

.lede {
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  line-height: 1.45;
  max-width: 40rem;
}

/* ---- 03 story ---- */

.story {
  padding: 180px var(--edge) 200px;
  display: grid;
  gap: 88px;
}

.story-head { display: grid; gap: 20px; }
.kicker {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
}
.kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sky); }
.story-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.25rem, 4.6vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 20ch;
  text-wrap: balance;
}

.proof {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.card {
  --accent: var(--sky);
  position: relative;
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 340px;
  padding: 36px 36px 40px;
  background: var(--paper);
  border-radius: 24px;
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -32px rgba(24, 40, 96, 0.28);
  overflow: hidden;
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease), box-shadow 300ms ease;
}
.card:nth-child(2) { --accent: var(--magenta); transition-delay: 120ms; }
.card:nth-child(3) { --accent: var(--pollen);  transition-delay: 240ms; }
.card.in { opacity: 1; transform: none; }
.card::after {
  content: "";
  position: absolute;
  left: 36px; right: 36px; bottom: 0;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: var(--accent);
  transform: scaleX(0.12);
  transform-origin: left;
  transition: transform 600ms var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 1px 0 var(--line), 0 36px 60px -30px rgba(24, 40, 96, 0.36); transition-delay: 0ms; }
.card:hover::after { transform: scaleX(1); }

.card-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 40px; }
.proof-kind {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.card-num {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.proof-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.2vw, 2.15rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.proof-line { font-size: 1.125rem; line-height: 1.5; color: var(--muted); }

/* Strip of what we connect to; home.js drifts it and adds scroll velocity. */
.marquee {
  margin: 0 calc(var(--edge) * -1);
  padding: 28px 0 34px;
  border-block: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  gap: 14px;
}
.marquee-label {
  padding: 0 var(--edge) 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.track { display: flex; width: max-content; will-change: transform; }
.track-back span { color: var(--muted); }
.track span {
  display: inline-flex;
  align-items: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.track span::after {
  content: "";
  width: 14px; height: 14px;
  margin: 0 40px;
  border-radius: 50%;
  background: var(--sky);
}
.track span:nth-child(3n+2)::after { background: var(--magenta); }
.track span:nth-child(3n)::after   { background: var(--pollen); }

.reveal { display: grid; gap: 14px; width: min(100%, 60%); justify-self: end; }

/* home.js splits each line into words and lights them as the block scrolls up. */
.line {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 4.75rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.line .w { color: rgba(24, 40, 96, 0.16); transition: color 350ms ease; }
.line .w.lit { color: var(--ink); }

/* ---- AI stance: halftone corners, the struck word, dots resolving into ink ---- */

[data-corners] { position: relative; isolation: isolate; }
.corners { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.ai {
  min-height: 100vh;
  background: var(--paper);
  padding: 200px var(--edge) 300px;
  display: grid;
  align-content: center;
  gap: 120px;
}
.ai-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.75rem, 7vw, 6.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.swap { white-space: nowrap; }
.x {
  text-decoration: none;
  color: var(--muted);
  background: linear-gradient(var(--magenta), var(--magenta)) no-repeat 0 55% / 0% 0.09em;
  transition: background-size 700ms var(--ease) 200ms, color 700ms ease 200ms;
}
.y {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  transition: opacity 600ms var(--ease) 800ms, transform 600ms var(--ease) 800ms;
}
.ai-title.in .x { background-size: 100% 0.09em; color: #A3AEBE; }
.ai-title.in .y { opacity: 1; transform: none; }
.ai-lede {
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 38rem;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px;
}
.principle { display: grid; align-content: start; gap: 14px; }
.principle .card-num { margin-top: 18px; }
.principle h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.3vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.principle p { font-size: 1.15rem; line-height: 1.55; color: var(--muted); max-width: 26rem; }

/* home.js grows each dot with scroll; at full resolution the glyph sets in ink. */
.glyph {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  width: 84px;
  height: 84px;
}
.glyph i {
  border-radius: 50%;
  background: var(--c);
  transform: scale(0);
  transition: background-color 500ms ease;
}
.glyph.solid i { background: var(--ink); }

/* ---- field: liquid inks and a glass ball on navy, revealed by scroll (field.js) ---- */

.field { height: 180vh; position: relative; background: var(--ink); --show: 0; }
.field-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.field canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.field.no-gl .field-stage {
  background:
    radial-gradient(ellipse 60% 50% at 78% 22%, rgba(32, 160, 208, 0.55), transparent 70%),
    radial-gradient(ellipse 50% 45% at 20% 80%, rgba(200, 48, 128, 0.45), transparent 70%),
    #0E1844;
}
.field-line {
  position: relative;
  padding: 0 var(--edge);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-align: center;
  color: var(--paper);
  opacity: var(--show);
  transform: translateY(calc((1 - var(--show)) * 28px));
  text-shadow: 0 2px 40px rgba(14, 24, 68, 0.55);
}

/* ---- slide: one huge line pushed sideways by scroll, into the values ---- */

.slide { position: relative; overflow: hidden; padding: 16vh 0 10vh; background: var(--ink); }
.slide-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70vw;
  height: 90%;
  background:
    radial-gradient(closest-side, rgba(32, 160, 208, 0.42), transparent),
    radial-gradient(closest-side at 30% 70%, rgba(200, 48, 128, 0.3), transparent);
  transform: rotate(-24deg) translateX(var(--glow, 0px));
  pointer-events: none;
}
.slide-line {
  position: relative;
  display: flex;
  width: max-content;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15.6vw;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--paper);
  white-space: nowrap;
  will-change: transform;
}
.slide-line span { padding-right: 0.35em; }
/* The o's are printed as halftone: one brand ink each, dots on a square grid. */
.slide-line b {
  font-weight: inherit;
  color: transparent;
  background: radial-gradient(circle, var(--c, var(--sky)) 0 38%, transparent 41%) 0 0 / 0.07em 0.07em;
  -webkit-background-clip: text;
  background-clip: text;
}
.slide-line b:nth-of-type(2) { --c: var(--magenta); }
.slide-line b:nth-of-type(3) { --c: var(--pollen); }

/* ---- 04 values: pinned, five statements scrubbed by scroll ---- */

.values { height: 500vh; position: relative; }

.values-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding: 140px var(--edge) var(--edge);
  display: grid;
}

/* The lab hummingbird, printed in light inks on a navy ground. */
/* zoom/pan in home.js frame a 600px square of the clip around the bird. */
.values-media {
  position: absolute;
  left: 73%;
  top: 52%;
  width: clamp(340px, 34vw, 560px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.values-media canvas {
  width: 100%;
  height: 100%;
  display: block;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}
.value, .counter { z-index: 1; }
.values .value { max-width: min(62rem, 50vw); }

/* Stacked (phones, portrait tablets): the bird window sits above the statement. */
@media (max-width: 760px), (max-width: 1000px) and (orientation: portrait) {
  .values { --media: min(50vw, 300px); }
  .values-stage { padding-top: calc(108px + var(--media) + 8px); }
  .values-media { left: 50%; top: 100px; width: var(--media); transform: translateX(-50%); }
  .values .value { max-width: 62rem; align-self: start; }
}
@media (min-width: 761px) and (max-width: 1000px) and (orientation: landscape) {
  .values-media { display: none; }
}

.counter {
  position: absolute;
  top: 120px;
  right: var(--edge);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--quiet);
  font-variant-numeric: tabular-nums;
}
.counter .n { color: var(--figure); }

.value {
  grid-area: 1 / 1;
  align-self: center;
  display: grid;
  gap: 28px;
  max-width: 62rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  pointer-events: none;
}
.value.is-on { opacity: 1; transform: none; pointer-events: auto; }

.value h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 14ch;
  text-wrap: balance;
}

.cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 22rem));
  gap: 40px;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--quiet);
}

.dotrow { display: flex; gap: 8px; }
.dotrow i { display: block; width: 10px; height: 10px; border-radius: 50%; }
.dotrow i:nth-child(1) { background: var(--sky); }
.dotrow i:nth-child(2) { background: var(--magenta); }
.dotrow i:nth-child(3) { background: var(--pollen); }

/* ---- foot ---- */

/* ---- contact: rotating noun, tool chips, the form (home.js sends it) ---- */

.contact {
  min-height: 100vh;
  background: var(--paper);
  padding: 200px var(--edge) 220px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}
.contact-copy { display: grid; gap: 28px; justify-items: start; }
.contact-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.4vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.contact-copy p { font-size: 1.2rem; line-height: 1.5; color: var(--muted); max-width: 32rem; }
.contact-copy .contact-alt { font-size: 1rem; }
.contact-alt a { color: var(--ink); text-underline-offset: 4px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* The phrase cycles on its own two reserved lines, so nothing below jumps;
   its dotted underline takes the next ink each time. */
.rot { display: block; min-height: 2.08em; }
.rot-w {
  display: inline-block;
  text-decoration: underline dotted var(--rc, var(--sky));
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.14em;
}
.rot-w.go { animation: rot-in 520ms var(--ease) both; }
@keyframes rot-in {
  from { opacity: 0; transform: translateY(0.45em); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

.cta-form {
  display: grid;
  gap: 18px;
  padding: 40px;
  background: var(--paper);
  border-radius: 28px;
  box-shadow: 0 1px 0 var(--line), 0 40px 80px -40px rgba(24, 40, 96, 0.35);
}
.chips { border: 0; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.chips legend { font-weight: 600; margin-bottom: 14px; }
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease, transform 220ms var(--ease);
}
.chip:hover { border-color: var(--c); transform: translateY(-1px); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); transition: transform 260ms var(--ease); }
.chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip:has(input:checked) i { transform: scale(1.4); }
.chip:has(input:focus-visible) { outline: 2px solid var(--sky); outline-offset: 2px; }

.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.trap { display: none; }
.fld { display: grid; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.fld input, .fld textarea {
  width: 100%;
  font: 400 1.05rem/1.4 var(--text);
  color: var(--ink);
  background: var(--soft);
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 14px 16px;
  min-height: 52px;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.fld textarea { resize: vertical; min-height: 120px; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--sky); background: var(--paper); }
.fld textarea::placeholder { color: #8A97AA; }

.send { justify-self: start; border: 0; cursor: pointer; font-family: var(--text); margin-top: 6px; }
.send span { display: inline-block; margin-left: 6px; transition: transform 260ms var(--ease); }
.send:hover span { transform: translateX(5px); }
.form-note { min-height: 1.5em; color: var(--muted); }
.form-note a { color: var(--ink); }

/* ---- foot ---- */

.foot {
  padding: 96px var(--edge) 40px;
  display: grid;
  gap: 96px;
  overflow: hidden;
}

.button {
  display: inline-block;
  padding: 18px 30px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background-color 200ms ease;
}
.button:hover { background: #22367A; }

.foot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}
.foot-grid h3 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--quiet);
  margin-bottom: 12px;
}
.foot-grid address { font-style: normal; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; text-underline-offset: 4px; }

.foot-word {
  font-family: var(--display);
  font-weight: 700;
  font-size: 23.5vw;
  line-height: 0.78;
  letter-spacing: -0.04em;
  margin: 0 calc(var(--edge) * -0.2);
  white-space: nowrap;
}

.foot-base {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--quiet);
}
.foot-base a { text-decoration: none; }

/* Stacked hero: tagline on top, the bird centred below it (home.js places the bird). */
@media (max-width: 760px), (max-width: 1000px) and (orientation: portrait) {
  .tagline { align-self: start; padding-top: 128px; max-width: 18ch; font-size: clamp(1.9rem, 7.4vw, 4rem); }
  .explore { justify-self: center; }
  .contact { grid-template-columns: 1fr; align-items: start; }
  .title-copy {
    width: 100%;
    padding: 64px var(--edge) calc(var(--edge) + 8px);
    background: linear-gradient(to top, var(--paper) 70%, transparent);
  }
}

@media (max-width: 760px) {
  :root { --edge: 24px; }
  .bar { height: 88px; }
  .links a:not(:last-child) { display: none; }

  h1 { font-size: clamp(2.4rem, 10.5vw, 3.25rem); }
  .lede { font-size: 1.1rem; }

  .story, .ai { padding: 128px var(--edge) 144px; gap: 64px; }
  .story-title { font-size: clamp(2rem, 9vw, 2.75rem); }
  .proof { grid-template-columns: 1fr; gap: 16px; }
  .card { min-height: 0; padding: 28px 26px 32px; border-radius: 20px; }
  .card-top { margin-bottom: 12px; }
  .card::after { left: 26px; right: 26px; }
  .track span { font-size: 1.6rem; }
  .track span::after { width: 10px; height: 10px; margin: 0 22px; }
  .marquee { padding: 22px 0 26px; }
  .line { font-size: clamp(1.9rem, 8.6vw, 2.6rem); }

  .ai-title { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .swap { white-space: normal; }
  .principles { grid-template-columns: 1fr; gap: 48px; }
  .glyph { width: 64px; height: 64px; gap: 4px; }

  .values { --media: min(60vw, 280px); }
  .values-stage { padding-top: calc(100px + var(--media) + 4px); padding-bottom: 24px; }
  .values-media { top: 92px; }
  .counter { top: 100px; }
  .value { gap: 16px; }
  .value h2 { font-size: clamp(2rem, 8.6vw, 2.6rem); max-width: none; }
  .cols { grid-template-columns: 1fr; gap: 12px; font-size: 1rem; line-height: 1.5; }

  .field { height: 160vh; }
  .field-line { font-size: clamp(2.3rem, 11vw, 3.4rem); }
  .slide { padding: 12vh 0 6vh; }
  .slide-line { font-size: 28vw; }

  .reveal { width: 100%; }
  .contact { padding: 128px var(--edge) 144px; gap: 48px; }
  .contact-title { font-size: clamp(1.9rem, 8.2vw, 3rem); }
  .cta-form { padding: 26px 22px; border-radius: 22px; }
  .fld-row { grid-template-columns: 1fr; }
  .send { justify-self: stretch; text-align: center; }

  .foot { padding-top: 72px; gap: 64px; }
  .foot-grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .foot-base { flex-wrap: wrap; gap: 12px; }
}

/* Short phones: no room for the bird window above the statement. */
@media (max-width: 760px) and (max-height: 700px) {
  .values-media { display: none; }
  .values-stage { padding-top: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  body, .value, .bird, .card, .line .w { transition: none; }
  .card { opacity: 1; transform: none; }
  .splash { height: 100vh; }
  .x, .y { transition: none; }
  .x { background-size: 100% 0.09em; }
  .y { opacity: 1; transform: none; }
  .glyph i { transform: none; }
  .line .w { color: var(--ink); }
  .track { flex-wrap: wrap; width: auto; padding: 0 var(--edge); row-gap: 12px; }
  .slide-line { width: auto; padding: 0 var(--edge); white-space: normal; font-size: 12vw; }
  .slide-line span + span { display: none; }
  .rot-w.go { animation: none; }
}
