/* ═══════════════════════════════════════════════════════════════════
   Sensible Systems — editorial grotesk.

   One typeface, enormous headline scale, tight tracking, warm paper
   and near-black ink with a single cobalt-blue accent. Rule lines
   instead of cards, masked line reveals instead of fades.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --ink: #0e0c09;
  --paper: #faf7f2;
  --paper-tint: #f1ece3;
  --acc: #2f5bff;
  --grey: #76726e;
  --rule: rgba(14, 12, 9, 0.16);
  --rule-light: rgba(250, 247, 242, 0.22);

  --font: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --display: clamp(3rem, 10.5vw, 10rem);
  --huge: clamp(2.4rem, 6.8vw, 6.4rem);
  --mid: clamp(1.5rem, 3vw, 2.4rem);

  --pad-x: clamp(1.25rem, 4vw, 4rem);
  --pad-section: clamp(5rem, 12vw, 10.5rem);

  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 430;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--acc); color: var(--paper); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; }
.acc { color: var(--acc); }

/* ─── Type ─────────────────────────────────────────────────────── */

h1, h2, h3 {
  font-weight: 640;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-wrap: balance;
}

.hero-title {
  font-size: var(--display);
  max-width: 16ch;
}

/* Longer headlines drop a size so they hold to three or four lines */
.hero-title.long {
  font-size: clamp(2.5rem, 7.4vw, 7.2rem);
  max-width: 22ch;
}

.huge {
  font-size: var(--huge);
  max-width: 14ch;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--grey);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.dark .kicker { color: color-mix(in srgb, var(--fg) 55%, transparent); }

.aside {
  font-size: var(--mid);
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 26ch;
  margin-top: clamp(3rem, 7vw, 5.5rem);
  text-wrap: balance;
}

/* ─── Nav — transparent at rest, liquid glass once scrolled ────── */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem var(--pad-x);
  color: var(--ink);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    padding 0.4s ease,
    -webkit-backdrop-filter 0.4s ease,
    backdrop-filter 0.4s ease;
}

/* Frosted panel: translucent paper + blur, so the nav always reads
   as ink-on-light no matter what section passes beneath it. */
.site-nav.scrolled {
  background: rgba(250, 247, 242, 0.68);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid rgba(14, 12, 9, 0.08);
  box-shadow: 0 1px 24px rgba(14, 12, 9, 0.06);
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.nav-logo {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.125rem;
  white-space: nowrap;
}

.nav-logo .dot { color: var(--acc); }

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 550;
  opacity: 0.7;
  transition: opacity 0.25s, color 0.25s;
}

.nav-links a:hover { opacity: 1; color: var(--acc); }

.nav-cta {
  font-size: 0.9375rem;
  font-weight: 620;
  background: var(--ink);
  color: var(--paper);
  padding: 0.55rem 1.2rem;
  border-radius: 99px;
  transition: transform 0.3s var(--ease-out), background-color 0.25s;
}

.nav-cta:hover { transform: scale(1.05); background: var(--acc); }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ─── Hero ─────────────────────────────────────────────────────── */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 7rem var(--pad-x) clamp(3rem, 6vw, 5rem);
}

/* Small screens: the scaled-down type no longer fills a full
   viewport, so let the hero hug its content instead */
@media (max-width: 760px) {
  .hero {
    min-height: 0;
    justify-content: flex-start;
    padding-top: 7.5rem;
  }
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--grey);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.eyebrow .loc { color: var(--acc); }

.hero-title { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem 4rem;
}

.hero-sub {
  max-width: 34rem;
  color: var(--grey);
  font-size: 1.125rem;
}

/* Rotating word: a clipped box the words slide through */
.rotator {
  display: inline-grid;
  overflow: clip;
  vertical-align: baseline;
  text-align: left;
}

.rotator > span {
  grid-area: 1 / 1;
  white-space: nowrap;
  transform: translateY(0);
}

.rotator > span.out {
  transform: translateY(-105%);
  transition: transform 0.7s var(--ease-out);
}

.rotator > span.in {
  transform: translateY(105%);
}

.rotator > span.in.go {
  transform: translateY(0);
  transition: transform 0.7s var(--ease-out);
}

/* ─── Big text links ───────────────────────────────────────────── */

.big-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 640;
  letter-spacing: -0.03em;
  border-bottom: 2px solid currentColor;
  padding-bottom: 0.15em;
  transition: color 0.25s;
}

.big-link .arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease-out);
}

.big-link:hover { color: var(--acc); }
.big-link:hover .arrow { transform: translateX(0.35em); }
.big-link:hover .arrow.down { transform: translateY(0.25em); }

.big-link.light { color: var(--paper); }
.big-link.light:hover { color: var(--acc); }

.big-link.sm { font-size: 1.125rem; }

/* Links closing out a dark-section column */
.col-link { margin-top: 1.75rem; }

/* ─── Sections ─────────────────────────────────────────────────── */

.section { padding: var(--pad-section) var(--pad-x); }

.section.tint { background: var(--paper-tint); }

/* Dark sections carry --inv (0 = paper, 1 = ink), scrubbed by scroll
   on [data-invert] sections so the whole block inverts gradually. */
.section.dark {
  --fg: color-mix(in srgb, var(--paper) calc(var(--inv, 1) * 100%), var(--ink));
  --bg: color-mix(in srgb, var(--ink) calc(var(--inv, 1) * 100%), var(--paper));
  background: var(--bg);
  color: var(--fg);
}

.container { max-width: 82rem; margin: 0 auto; }
.container.narrow { max-width: 56rem; }

/* ─── Homepage path split: two offers, two panels ──────────────── */

.path-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.path-panel {
  display: block;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.45);
  padding: clamp(2rem, 4vw, 3rem);
  transition:
    border-color 0.5s ease,
    background-color 0.5s ease,
    transform 0.5s var(--ease-out),
    box-shadow 0.5s ease;
}

@media (hover: hover) {
  .path-panel:hover {
    border-color: var(--ink);
    background: #fffdf8;
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(14, 12, 9, 0.08);
  }
}

.path-tag-line {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--grey);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.path-panel h2 {
  font-weight: 640;
  letter-spacing: -0.04em;
  line-height: 1;
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 1rem;
  text-wrap: balance;
  transition: color 0.4s ease;
}

@media (hover: hover) {
  .path-panel:hover h2 { color: var(--acc); }
}

.path-desc {
  color: var(--grey);
  max-width: 30rem;
}

/* Circular arrow chip: fills with the accent on hover */
.path-arrow {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 1.5px solid var(--rule);
  border-radius: 50%;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  font-size: 1.25rem;
  font-weight: 640;
  transition:
    background-color 0.45s ease,
    border-color 0.45s ease,
    color 0.45s ease,
    transform 0.45s var(--ease-out);
}

@media (hover: hover) {
  .path-panel:hover .path-arrow {
    background: var(--acc);
    border-color: var(--acc);
    color: var(--paper);
    transform: translateX(0.3em);
  }
}

/* ─── Manifesto — words fill with colour as you scroll ─────────── */

.manifesto {
  font-size: clamp(1.9rem, 4.4vw, 4rem);
  font-weight: 640;
  letter-spacing: -0.04em;
  line-height: 1.1;
  max-width: 24ch;
  text-wrap: balance;
}

.manifesto .m-w {
  color: color-mix(in srgb, var(--ink) 16%, var(--paper));
  transition: color 0.3s linear;
}

.manifesto .m-w.hot { color: var(--acc); }
.manifesto .m-w.read { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .manifesto .m-w { color: var(--ink); transition: none; }
}

/* ─── Two-column compare (why now) ─────────────────────────────── */

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: clamp(2.5rem, 5vw, 5rem);
}

.col {
  border-top: 1px solid color-mix(in srgb, var(--fg) 22%, transparent);
  padding-top: 1.5rem;
}

.col-tag {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: color-mix(in srgb, var(--fg) 55%, transparent);
  margin-bottom: 1.25rem;
}

.col h3 {
  font-size: var(--mid);
  margin-bottom: 1rem;
}

.col > p { color: color-mix(in srgb, var(--fg) 72%, transparent); }

.list {
  list-style: none;
  margin-top: 1.5rem;
}

.list li {
  padding: 0.65rem 0 0.65rem 1.9rem;
  position: relative;
  border-top: 1px solid color-mix(in srgb, var(--fg, var(--ink)) 22%, transparent);
}

.section:not(.dark) .list li { border-color: var(--rule); }
.price-card.featured .list li { border-color: var(--rule-light); }

.list li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
}

.list.crosses li::before { content: "\2715"; color: color-mix(in srgb, var(--fg, var(--ink)) 40%, transparent); }
.list.arrows li::before { content: "\2192"; color: var(--acc); }

/* ─── Service rows ─────────────────────────────────────────────── */

.rows { border-top: 1px solid var(--rule); }

.row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: clamp(1.25rem, 4vw, 4rem);
  padding: clamp(1.75rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--rule);
  transition: padding-left 0.4s var(--ease-out);
}

.row:hover { padding-left: clamp(0.5rem, 1.5vw, 1.25rem); }

.row-num {
  font-weight: 640;
  font-size: 1rem;
  color: var(--acc);
}

.row-main h3 {
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  margin-bottom: 0.75rem;
}

.row-main p {
  max-width: 44rem;
  color: var(--grey);
}

.row-arrow {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 640;
  opacity: 0;
  transform: translateX(-0.5em);
  transition: opacity 0.35s, transform 0.35s var(--ease-out);
}

.row:hover .row-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--acc);
}

/* ─── Process — pinned section that scrolls sideways ───────────── */

/* The section is taller than the viewport; a sticky inner viewport
   pins while script.js converts leftover vertical scroll into
   horizontal travel on the track. Height is set by script.js. */
.hsection { position: relative; }

.hsticky {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: clip;
  padding: clamp(3rem, 8vh, 6rem) var(--pad-x);
}

.htrack {
  display: flex;
  gap: clamp(2rem, 5vw, 5rem);
  width: max-content;
  will-change: transform;
}

.step {
  position: relative;
  border-top: 1px solid var(--rule);
  padding-top: 6.5rem;
  overflow: visible;
  width: clamp(17rem, 34vw, 28rem);
  flex: none;
}

/* No scroll-jacking for reduced motion: plain horizontal overflow */
@media (prefers-reduced-motion: reduce) {
  .hsection { height: auto !important; }
  .hsticky { position: static; min-height: 0; overflow-x: auto; }
  .htrack { transform: none !important; }
}

.ghost-num {
  position: absolute;
  top: 0.25rem;
  left: -0.05em;
  font-size: clamp(5rem, 9vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(14, 12, 9, 0.25);
  pointer-events: none;
  will-change: transform;
}

.step h3 {
  font-size: var(--mid);
  margin-bottom: 0.75rem;
}

.step p { color: var(--grey); }

/* ─── Fit list (who it's for) ──────────────────────────────────── */

.fit-list { list-style: none; }

.fit-list li {
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1.2;
  padding: clamp(1.25rem, 2.5vw, 1.9rem) 0 clamp(1.25rem, 2.5vw, 1.9rem) 2.2rem;
  border-top: 1px solid color-mix(in srgb, var(--fg) 22%, transparent);
  position: relative;
  max-width: 60rem;
  text-wrap: balance;
}

.fit-list li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); }

.fit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(clamp(1.25rem, 2.5vw, 1.9rem) + 0.45em);
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--acc);
}

/* ─── Our work ─────────────────────────────────────────────────── */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
}

.work-card { display: block; }

.work-shot {
  border-radius: 10px;
  overflow: clip;
  border: 1px solid var(--rule);
  aspect-ratio: 16 / 10;
  background: var(--paper-tint);
}

.work-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: transform 0.8s var(--ease-out);
}

.work-card:hover .work-shot img { transform: scale(1.04); }

.work-card-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.1rem;
}

.work-card h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }

.work-tag {
  color: var(--grey);
  font-size: 0.9375rem;
  margin-top: 0.3rem;
  max-width: 26rem;
}

.work-arrow {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 640;
  opacity: 0;
  transform: translateX(-0.5em);
  transition: opacity 0.35s, transform 0.35s var(--ease-out);
}

.work-card:hover .work-arrow {
  opacity: 1;
  transform: none;
  color: var(--acc);
}

/* ─── Work detail pages ────────────────────────────────────────── */

.work-hero {
  padding: clamp(8rem, 16vh, 11rem) var(--pad-x) 0;
}

.work-hero .kicker a { color: inherit; }
.work-hero .kicker a:hover { color: var(--acc); }

.work-title {
  font-size: var(--display);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.work-intro {
  font-size: var(--mid);
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 34ch;
  text-wrap: balance;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem clamp(2.5rem, 6vw, 6rem);
  border-block: 1px solid var(--rule);
  padding: 1.5rem 0;
}

.meta-row dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--grey);
  margin-bottom: 0.35rem;
}

.meta-row dd { font-weight: 600; }
.meta-row a { border-bottom: 2px solid currentColor; transition: color 0.25s; }
.meta-row a:hover { color: var(--acc); }

.shot-full {
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--rule);
}

.work-body {
  max-width: 44rem;
}

.work-body > p {
  font-size: 1.1875rem;
  margin-bottom: 1.2em;
}

.work-body h2 {
  font-size: var(--mid);
  margin: 2.5rem 0 1.25rem;
}

.work-body h2:first-child { margin-top: 0; }

.work-body h3 {
  font-size: 1.375rem;
  margin: 2rem 0 0.75rem;
}

.work-body a:not(.big-link):not(.eml) {
  border-bottom: 2px solid var(--rule);
  transition: color 0.25s, border-color 0.25s;
}
.work-body a:not(.big-link):not(.eml):hover {
  color: var(--acc);
  border-color: var(--acc);
}
.work-body .eml { color: var(--acc); border-bottom: 2px solid currentColor; }

.work-body .updated {
  font-size: 0.9rem;
  color: var(--grey);
  margin-bottom: 2.5rem;
}

.work-columns {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

@media (max-width: 860px) {
  .work-columns { grid-template-columns: 1fr; }
}

.next-project {
  display: block;
  padding: var(--pad-section) var(--pad-x);
  background: var(--paper-tint);
}

.next-project .kicker { margin-bottom: 1rem; }

.next-project .huge {
  margin-bottom: 0;
  transition: color 0.3s;
}

.next-project:hover .huge { color: var(--acc); }

/* ─── Founder letter ───────────────────────────────────────────── */

.letter-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 7rem;
  margin-bottom: 0;
}

/* Single column: the heading must scroll with the page, not over it */
@media (max-width: 900px) {
  .letter-grid { grid-template-columns: 1fr; }
  .sticky-heading {
    position: static;
    margin-bottom: 2rem;
  }
}

.letter-body p { margin-bottom: 1.2em; }

/* Marker highlight: cobalt block behind the line that matters,
   cloned across wraps so every line gets its own padded slab */
.hl {
  background: var(--acc);
  color: var(--paper);
  padding: 0.06em 0.28em;
  margin: 0 -0.08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.letter-body {
  font-size: 1.1875rem;
  max-width: 38rem;
}

.letter-person {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}

.letter-avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
  filter: grayscale(1) contrast(1.05);
}

.letter-role { font-size: 1.0625rem; color: var(--grey); }
.letter-role strong { color: var(--ink); }
.letter-meta { display: flex; flex-direction: column; gap: 0.15rem; }
.letter-loc { font-size: 0.9375rem; color: var(--grey); }

/* ─── Pricing ──────────────────────────────────────────────────── */

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.price-card {
  border: 1.5px solid var(--ink);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

.price-card.featured {
  background: var(--ink);
  color: var(--paper);
}

.price-card.featured .price-desc { color: rgba(250, 247, 242, 0.72); }
.price-card.featured .list li { border-color: var(--rule-light); }

.price-name {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.price-value {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 640;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-value span {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--grey);
}

.price-card.featured .price-value span { color: rgba(250, 247, 242, 0.6); }

.price-desc { color: var(--grey); }

.price-card .list { margin-top: 0; width: 100%; }
.price-card .big-link { margin-top: auto; font-size: 1.125rem; }

/* ─── FAQ ──────────────────────────────────────────────────────── */

.faq-item {
  border-top: 1px solid var(--rule);
}

.faq-item:last-of-type { border-bottom: 1px solid var(--rule); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 620;
  letter-spacing: -0.03em;
  padding: 1.5rem 0;
  transition: color 0.25s;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--acc); }

.faq-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out);
}

.faq-toggle::after { transform: rotate(90deg); }

.faq-item[open] .faq-toggle::after { transform: rotate(0deg); }

.faq-item > p {
  padding: 0 0 1.75rem;
  max-width: 46rem;
  color: var(--grey);
}

.faq-item > p a { border-bottom: 1px solid currentColor; }
.faq-item > p a:hover { color: var(--acc); }

/* ─── CTA ──────────────────────────────────────────────────────── */

.cta .huge { max-width: 12ch; }

.cta-sub {
  max-width: 32rem;
  color: rgba(250, 247, 242, 0.72);
  margin-bottom: 2.5rem;
}

/* ─── Contact form ─────────────────────────────────────────────── */

.contact-form {
  max-width: 34rem;
  display: grid;
  gap: 1.4rem;
}

.contact-form .field {
  display: grid;
  gap: 0.5rem;
}

.contact-form label {
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  color: rgba(250, 247, 242, 0.72);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--paper);
  background: rgba(250, 247, 242, 0.06);
  border: 1px solid var(--rule-light);
  border-radius: 0;
  padding: 0.85rem 1rem;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(250, 247, 242, 0.4); }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--acc);
  background: rgba(250, 247, 242, 0.1);
}

.contact-form textarea { resize: vertical; min-height: 6.5rem; }

/* Honeypot — visually and semantically hidden from real users */
.cf-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile-slot:not(:empty) { margin-top: 0.4rem; }

.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 0.4rem;
}

.contact-submit {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.contact-submit[disabled] { opacity: 0.55; cursor: default; }

.contact-status {
  font-size: 0.95rem;
  color: rgba(250, 247, 242, 0.72);
  margin: 0;
}

.contact-status.is-error { color: #ff8a7a; }
.contact-status.is-ok { color: var(--acc); }

.contact-fallback {
  font-size: 0.9rem;
  color: rgba(250, 247, 242, 0.55);
  margin: 0.25rem 0 0;
}

.contact-fallback .eml { color: rgba(250, 247, 242, 0.8); text-decoration: underline; }
.contact-fallback .eml:hover { color: var(--acc); }

.live-dot {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--acc);
  margin-right: 0.6em;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.35; }
}

/* ─── Footer ───────────────────────────────────────────────────── */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  overflow: clip;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  align-items: center;
  justify-content: space-between;
  padding: clamp(2rem, 4vw, 3rem) var(--pad-x);
  font-size: 0.9375rem;
  color: rgba(250, 247, 242, 0.6);
}

.footer-logo {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.125rem;
  color: var(--paper);
}

.footer-logo .dot { color: var(--acc); }

.footer-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.footer-links a { transition: color 0.25s; }
.footer-links a:hover { color: var(--acc); }

/* ─── Hero assembly: wireframe components settle into a dashboard ─ */

/* Blueprint marks appear, grey wireframe parts fly in from scattered
   offsets (--fx/--fy/--fr per group, staggered by --i), then colour
   arrives: bars grow, the donut sweeps, the sparkline draws itself.
   Keyframes define only `from`; the base rules hold every final value,
   so reduced-motion can kill the animations and land on the built,
   coloured dashboard. */

.hero { position: relative; }
.hero > * { position: relative; z-index: 1; }

/* Three transform layers that must not fight: the outer wrapper takes
   the scroll parallax (--sy/--so, set by script.js), .viz-tilt takes
   the pointer tilt, and the svg itself carries the idle bob keyframes. */
.hero .hero-viz {
  position: absolute;
  z-index: 0;
  top: clamp(5rem, 10vh, 7.5rem);
  right: var(--pad-x);
  width: clamp(300px, 42vw, 620px);
  pointer-events: none;
  transform: translateY(var(--sy, 0px)) scale(var(--ss, 1));
  opacity: var(--so, 1);
  -webkit-mask-image: linear-gradient(180deg, #000 62%, rgba(0, 0, 0, 0.35) 86%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 62%, rgba(0, 0, 0, 0.35) 86%, transparent 100%);
}

.viz-tilt {
  transform: perspective(1100px)
    rotateX(calc(var(--my, 0) * 2.5deg))
    rotateY(calc(var(--mx, 0) * -3.5deg));
  transition: transform 0.5s ease-out;
}

@media (max-width: 760px) {
  .hero .hero-viz {
    position: static;
    width: 100%;
    max-width: 30rem;
    margin: 3.25rem 0 0;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.viz {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  animation: viz-bob 9s ease-in-out 4s infinite;
}

/* Fly-in: each group tumbles home; the bezier overshoots for a settle */
.viz .cmp {
  --cd: calc(2.15s + var(--i, 0) * 0.08s);
  transform-box: fill-box;
  transform-origin: center;
  animation: viz-fly 0.9s cubic-bezier(0.16, 0.85, 0.25, 1.08)
    calc(0.35s + var(--i, 0) * 0.13s) backwards;
}

/* Gaussian-blurred ground shadow: fades in once the parts have landed */
.viz .shade {
  fill: rgba(14, 12, 9, 0.15);
  animation: viz-bloom 1.2s ease 2.4s backwards;
}

/* Blueprint layer */
.viz .bp-outline {
  fill: none;
  stroke: rgba(14, 12, 9, 0.5);
  stroke-width: 1.25;
  stroke-dasharray: 5 7;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: viz-blueprint 2.3s ease 0.1s both;
}

/* Wireframe ink */
.viz .frame-bg { fill: rgba(255, 253, 248, 0.72); stroke: rgba(14, 12, 9, 0.5); stroke-width: 1.5; }
.viz .wire { stroke: rgba(14, 12, 9, 0.28); stroke-width: 1.25; fill: none; }
.viz .wire.thin { stroke: rgba(14, 12, 9, 0.18); }
.viz .card { fill: rgba(255, 255, 255, 0.5); stroke: rgba(14, 12, 9, 0.25); stroke-width: 1.25; }
.viz .ol { fill: none; stroke: rgba(14, 12, 9, 0.4); stroke-width: 1.5; }
.viz .ln { fill: #ddd6c9; }
.viz .ln.lg { fill: #c9c2b4; }
.viz .dot-w { fill: #ddd6c9; }
.viz .av { fill: #d9d2c5; }
.viz .ring { fill: none; stroke: #e8e2d6; stroke-width: 13; }
.viz .grid { stroke: rgba(14, 12, 9, 0.1); stroke-dasharray: 2 5; }

/* Colour arrives after the parts settle (staggered via --cd) */
.viz .logo,
.viz .nav-ln,
.viz .btn,
.viz .c-dot,
.viz .chip-acc { fill: var(--acc); animation: viz-paint 0.6s ease var(--cd) backwards; }

.viz .nav-pill,
.viz .chip-soft { fill: #dfe7ff; animation: viz-paint-soft 0.6s ease var(--cd) backwards; }

.viz .notif {
  fill: var(--acc);
  transform-box: fill-box;
  transform-origin: center;
  animation: viz-pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.4) calc(var(--cd) + 0.2s) backwards;
}

.viz .live {
  fill: var(--acc);
  animation:
    viz-bloom 0.45s ease 3.1s backwards,
    pulse 2.2s ease-in-out 3.6s infinite;
}

.viz .bar {
  fill: url(#viz-bar-grad);
  transform-box: fill-box;
  transform-origin: bottom;
  animation: viz-grow 0.65s cubic-bezier(0.2, 0.9, 0.3, 1.15) calc(2.25s + var(--b, 0) * 0.08s) backwards;
}

/* Colour accents that simply appear with the colour pass */
.viz .leg-a,
.viz .tip-dot { fill: var(--acc); animation: viz-bloom 0.6s ease var(--cd) backwards; }
.viz .leg-b { fill: #a4b8ff; animation: viz-bloom 0.6s ease var(--cd) backwards; }
.viz .chev-a { fill: var(--acc); animation: viz-bloom 0.5s ease var(--cd) backwards; }
.viz .chev-p { fill: #faf7f2; }
.viz .btn-glyph { fill: #faf7f2; }
.viz .av2 { fill: #ccd7ff; animation: viz-paint-soft 0.6s ease var(--cd) backwards; }

/* Floating tooltip over the tallest bar */
.viz .tip {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: viz-pop 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.4) 3.5s backwards;
}

.viz .tip-bg { fill: #fffdf8; stroke: rgba(14, 12, 9, 0.28); stroke-width: 1.25; }
.viz .tip-pt { fill: #fffdf8; }

.viz .arc {
  fill: none;
  stroke: var(--acc);
  stroke-width: 13;
  stroke-dasharray: 100;
  stroke-dashoffset: 38;
  animation: viz-draw 1.1s cubic-bezier(0.5, 0, 0.2, 1) 2.7s backwards;
}

.viz .arc2 {
  fill: none;
  stroke: #a4b8ff;
  stroke-width: 13;
  stroke-dasharray: 100;
  stroke-dashoffset: 80;
  animation: viz-draw 0.9s cubic-bezier(0.5, 0, 0.2, 1) 2.95s backwards;
}

.viz .spark-line {
  fill: none;
  stroke: var(--acc);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  animation: viz-draw 1.1s ease 2.85s backwards;
}

.viz .spark-fill { fill: url(#viz-spark-grad); animation: viz-bloom 0.8s ease 3.3s backwards; }

.viz .spark-dot {
  fill: var(--acc);
  transform-box: fill-box;
  transform-origin: center;
  animation:
    viz-pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4) 3.6s backwards,
    pulse 2.4s ease-in-out 4.2s infinite;
}

@keyframes viz-fly {
  from {
    opacity: 0;
    transform: translate(var(--fx, 0px), var(--fy, 0px)) rotate(var(--fr, 0deg)) scale(0.9);
  }
}

@keyframes viz-blueprint {
  0% { opacity: 0; transform: scale(0.98); }
  14% { opacity: 0.55; transform: none; }
  70% { opacity: 0.5; }
  100% { opacity: 0; }
}

@keyframes viz-bloom { from { opacity: 0; } }
@keyframes viz-paint { from { fill: #cfc8bb; } }
@keyframes viz-paint-soft { from { fill: #eae5da; } }
@keyframes viz-draw { from { stroke-dashoffset: 100; } }
@keyframes viz-grow { from { transform: scaleY(0); } }
@keyframes viz-pop { from { opacity: 0; transform: scale(0.3); } }

@keyframes viz-bob {
  50% { transform: translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
  .viz,
  .viz * { animation: none !important; }
  .hero .hero-viz { transform: none; opacity: 1; }
  .viz-tilt { transform: none; transition: none; }
}

/* ─── Animation: masked line reveals + rises ───────────────────── */

/* Split headlines: each word sits in a clipped box and rises in */
[data-split] .w {
  display: inline-block;
  overflow: clip;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

[data-split] .w > .wi {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 45ms);
}

[data-split].in .w > .wi { transform: translateY(0); }

/* Accent phrases start as ink, then sweep to cobalt word by word once
   the headline has risen (script.js adds .paint, staggered per phrase).
   A lighter blue mid-keyframe gives the sweep a leading edge, like the
   manifesto fill. Animation (not transition) so it can't fight the
   word-rise transform transition on the same spans. */
.acc-sweep.paint .w > .wi { animation: word-paint 0.5s ease forwards; }
.acc-sweep.paint .w:nth-of-type(2) > .wi { animation-delay: 0.14s; }
.acc-sweep.paint .w:nth-of-type(3) > .wi { animation-delay: 0.28s; }
.acc-sweep.paint .w:nth-of-type(4) > .wi { animation-delay: 0.42s; }

@keyframes word-paint {
  0% { color: var(--ink); }
  55% { color: #7591ff; }
  100% { color: var(--acc); }
}

/* Block reveals: rise and fade with optional per-element delay */
[data-reveal] {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-split] .w > .wi { transform: none; transition: none; animation: none !important; }
  .acc-sweep { color: var(--acc); }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .rotator > span { transition: none !important; }
  .live-dot { animation: none; }
  html { scroll-behavior: auto; }
}
