/* Fonts are served from this site, so no visitor's browser contacts Google. Licenses: fonts/OFL-*.txt */
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "VT323";
  src: url("/fonts/vt323-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* DCA Software: two eras, one brand.
   1998 is paper, pixels, a receipt and the colour fringe of an old screen.
   2026 is black with grain and iridescent light. Each era keeps its own palette in light and dark mode;
   only the base page changes. */
:root {
  --bg: #F5F3EF;
  --surface: #FCFBF8;
  --sunk: #ECE9E3;
  --line: #DAD6CE;
  --ink: #17161A;
  --ink-soft: #56535E;
  --focus: #3A2BD8;
  --ambient-a: rgba(139, 235, 255, 0.22);
  --ambient-b: rgba(255, 166, 214, 0.18);

  /* Iridescent light: fills and gradients. Never small text on a light background. */
  --cy: #8BEBFF;
  --li: #C3B1FF;
  --pk: #FFA6D6;
  --am: #FFE08A;
  --mi: #A8F5D0;
  --iri: linear-gradient(120deg, var(--cy) 0%, var(--li) 34%, var(--pk) 66%, var(--am) 100%);
  --on-iri: #0F0F14;
  /* Deeper iridescent tones for text on light backgrounds. */
  --iri-text: #5B3FD6;
  --iri-text-2: #0A6E96;
  --iri-text-3: #B0157E;

  /* 1998 */
  --paper: #ECE7D7;
  --paper-soft: #4A4639;
  --paper-ink: #17161A;
  --paper-shadow: #17161A;

  /* 2026 */
  --night: #0F0F14;
  --night-ink: #F4F1EA;
  --night-soft: #B9B5C2;
  --aura:
    radial-gradient(70% 90% at 100% 0%, rgba(139, 235, 255, 0.30), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(255, 166, 214, 0.26), transparent 62%),
    radial-gradient(50% 60% at 50% 0%, rgba(195, 177, 255, 0.22), transparent 70%),
    var(--night);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");

  --shadow: 0 10px 30px rgba(23, 22, 26, 0.12);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --pixel: "VT323", ui-monospace, Consolas, monospace;
  --grotesk: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C0C0F;
    --surface: #15151A;
    --sunk: #1D1D24;
    --line: #2C2C36;
    --ink: #F3F1EE;
    --ink-soft: #B3B0BC;
    --focus: #A8C8FF;
    --ambient-a: rgba(139, 235, 255, 0.10);
    --ambient-b: rgba(255, 166, 214, 0.08);
    --iri-text: #8BEBFF;
    --iri-text-2: #C3B1FF;
    --iri-text-3: #FFA6D6;
  --paper-shadow: #3A3946;
  /* Dimmer paper at night, so 1998 does not outshine the rest of the page. */
  --paper: #BDB6A2;
  --paper-soft: #3A372D;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
}
:root[data-theme="dark"] {
  --bg: #0C0C0F;
  --surface: #15151A;
  --sunk: #1D1D24;
  --line: #2C2C36;
  --ink: #F3F1EE;
  --ink-soft: #B3B0BC;
  --focus: #A8C8FF;
  --ambient-a: rgba(139, 235, 255, 0.10);
  --ambient-b: rgba(255, 166, 214, 0.08);
  --iri-text: #8BEBFF;
  --iri-text-2: #C3B1FF;
  --iri-text-3: #FFA6D6;
  --paper-shadow: #3A3946;
  /* Dimmer paper at night, so 1998 does not outshine the rest of the page. */
  --paper: #BDB6A2;
  --paper-soft: #3A372D;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  background:
    radial-gradient(60% 40% at 92% -6%, var(--ambient-a), transparent 70%),
    radial-gradient(50% 40% at -8% 42%, var(--ambient-b), transparent 70%),
    var(--bg);
}
a { color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.02em; font-family: var(--grotesk); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.label {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 10px;
}
.skip:focus { top: 12px; }
.pending {
  display: inline-block;
  padding: 0 6px;
  border: 1px dashed var(--iri-text-3);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.8em;
  color: var(--iri-text-3);
}
section { scroll-margin-top: 84px; }

/* Top bar */
header.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--grotesk);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.logo { width: 30px; height: 30px; flex: none; color: var(--ink); }
.logo path { stroke: currentColor; stroke-width: 2.5; stroke-linejoin: round; }
.top-right { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.icon-btn:hover { background: var(--sunk); }
.ico-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ico-moon { display: none; }
  :root:not([data-theme="light"]) .ico-sun { display: inline; }
}
:root[data-theme="dark"] .ico-moon { display: none; }
:root[data-theme="dark"] .ico-sun { display: inline; }

/* Main menu: disclosure buttons open the Apps and Support submenus. */
.menu-btn { display: none; }
.menu-btn .ico-close { display: none; }
.menu-btn[aria-expanded="true"] .ico-menu { display: none; }
.menu-btn[aria-expanded="true"] .ico-close { display: inline; }
.nav-list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-list a,
.sub-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.nav-list a:hover, .sub-btn:hover { color: var(--ink); background: var(--sunk); }
.sub-btn .chev { width: 16px; height: 16px; transition: transform 0.15s ease; }
.sub-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.has-sub { position: relative; }
.sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  min-width: 210px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.sub a { display: flex; width: 100%; color: var(--ink); }
.sub-btn[aria-expanded="true"] + .sub { display: block; }
@media (hover: hover) and (min-width: 861px) {
  .has-sub:hover > .sub { display: block; }
}

/* Hero: a headline in the present, then a slider that travels from 1998 to 2026. */
.hero { padding: 64px 0 88px; overflow-x: clip; }
.hero h1 { font-size: clamp(2.8rem, 8vw, 6.2rem); font-weight: 700; line-height: 1.1; margin-bottom: 22px; }
.hero h1 em {
  position: relative;
  isolation: isolate;
  font-style: normal;
  color: var(--on-iri);
  padding: 0 0.1em;
  margin: 0 -0.02em;
}
/* The highlight sits below the line above and keeps all four corners rounded. */
.hero h1 em::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 24%;
  bottom: 0;
  z-index: -1;
  border-radius: 0.14em;
  background: var(--iri);
}
@media (hover: hover) {
  .hero h1 em { transition: text-shadow 0.2s ease; }
  .hero h1 em:hover { text-shadow: -2px 0 var(--cy), 2px 0 var(--pk); }
}
.sub-title { margin: 0 0 30px; max-width: 46ch; font-size: 1.15rem; color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 64px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  text-decoration: none;
  font-weight: 700;
}
.btn-primary { background: var(--iri); color: var(--on-iri); box-shadow: 0 8px 22px rgba(195, 177, 255, 0.28); }
.btn-primary:hover { filter: brightness(1.04) saturate(1.06); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--sunk); }

/* The slider: drag between 1998 and 2026. The same promise, written in two eras. */
.slider {
  position: relative;
  display: grid;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(195, 177, 255, 0.22);
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}
.slider:focus-within { outline: 3px solid var(--focus); outline-offset: 4px; }
.layer { grid-area: 1 / 1; position: relative; margin: 0; min-height: 380px; }
.layer-body { position: relative; z-index: 1; padding: 30px 32px 34px; }
/* The 2026 layer has no title bar, so it starts 34px lower and both headlines line up. */
.layer-now .layer-body { padding-top: 64px; }
.big { margin: 0 0 22px; font-size: clamp(2.3rem, 6.4vw, 4.4rem); line-height: 1; }

.layer-then {
  z-index: 2;
  background: var(--paper);
  color: var(--paper-ink);
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}
.layer-then::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(45deg, rgba(23, 22, 26, 0.07) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(23, 22, 26, 0.07) 25%, transparent 25%);
  background-size: 6px 6px;
}
.layer-then .big {
  font-family: var(--pixel);
  font-weight: 400;
  letter-spacing: 0;
  text-shadow: -1px 0 rgba(0, 229, 255, 0.55), 1px 0 rgba(255, 45, 149, 0.45);
}
.win-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 10px;
  border-bottom: 2px solid var(--paper-ink);
  background: repeating-linear-gradient(90deg, var(--paper-ink) 0 2px, var(--paper) 2px 4px);
}
.win-bar span[aria-hidden] {
  padding: 0 8px;
  background: var(--paper);
  border: 2px solid var(--paper-ink);
  font-family: var(--pixel);
  font-size: 1.2rem;
  line-height: 1.2;
}
.slider-tag {
  padding: 2px 10px;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.tag-then { background: var(--paper-ink); color: var(--paper); }
.tag-now { position: absolute; top: 18px; right: 20px; z-index: 1; background: var(--iri); color: var(--on-iri); border-radius: 999px; }
.receipt { max-width: 420px; margin: 0; font-family: var(--mono); font-size: 0.95rem; }
.receipt div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--paper-ink);
}
.receipt dt, .receipt dd { margin: 0; }
.receipt dd { font-weight: 700; }

.layer-now { background: var(--aura); color: var(--night-ink); }
.layer-now::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.14;
}
.layer-now .big { font-family: var(--grotesk); font-weight: 700; }
/* Each era keeps its detail in its own half: the receipt on the left, the code on the right. */
.receipt { width: calc(50% - 48px); min-width: 0; }
.now-extra { position: absolute; right: 32px; bottom: 34px; z-index: 1; width: calc(50% - 64px); }
.code { margin: 0 0 14px; font-family: var(--mono); font-size: clamp(1rem, 2.2vw, 1.25rem); line-height: 1.5; }
.code .com { color: var(--night-soft); }
.caret {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  margin-left: 4px;
  vertical-align: -0.15em;
  background: var(--cy);
}
.meter { position: relative; max-width: 420px; height: 6px; margin-top: 22px; border-radius: 999px; background: rgba(244, 241, 234, 0.14); overflow: hidden; }
.meter span { position: absolute; inset: 0; width: 62%; border-radius: 999px; background: var(--iri); }

.handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  z-index: 3;
  width: 3px;
  margin-left: -1.5px;
  background: var(--iri);
  pointer-events: none;
}
.handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--iri);
  color: var(--on-iri);
  box-shadow: 0 8px 24px rgba(15, 15, 20, 0.35);
}
/* The range input stays for the keyboard and screen readers; the pointer drags the whole slider. */
.slider-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.slider-copy { margin-top: 18px; }
.slider-copy .copy-hint { margin: 0; font-family: var(--mono); font-size: 0.85rem; color: var(--ink-soft); }

/* The era text lives inside its own layer, on the side opposite that layer's detail.
   A layer shows only when the slider reveals it, so the text appears with its era. */
.era-prose {
  position: absolute;
  z-index: 1;
  bottom: 34px;
  width: calc(50% - 64px);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}
.era-prose strong { font-family: var(--mono); font-weight: 700; }
.prose-right { right: 32px; }
.prose-left { left: 32px; }
.layer-then .era-prose { color: var(--paper-ink); }
.layer-then .era-prose strong { color: var(--paper-ink); }
/* 1998 is a two-column grid: the headline spans both columns, the receipt sits on the left,
   and the prose starts level with the receipt's first row. */
.layer-then .layer-body { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; align-items: start; }
.layer-then .big { grid-column: 1 / -1; }
.layer-then .receipt { grid-column: 1; grid-row: 2; width: auto; }
.layer-then .era-prose { grid-column: 2; grid-row: 2; position: static; width: auto; padding-top: 7px; }
.layer-now .era-prose { color: var(--night-soft); }
.layer-now .era-prose strong { color: var(--night-ink); }

.block { padding: 104px 0 0; }
h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: 16px; }
.lead { margin: 0 0 40px; max-width: 60ch; font-size: 1.1rem; color: var(--ink-soft); }

/* Promises: four short lines in a row. */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.strip ul { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.strip li { display: flex; align-items: center; gap: 12px; padding: 22px 20px; font-weight: 700; }
.strip li + li { border-left: 1px solid var(--line); }
.strip .icon { color: var(--iri-text); }

/* Beliefs: each one is tagged with the era it belongs to. */
.beliefs { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.beliefs li {
  display: grid;
  grid-template-columns: 90px 1fr 1.3fr;
  gap: 24px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.beliefs .num { font-family: var(--mono); color: var(--iri-text); font-weight: 700; font-size: 1.05rem; }
.beliefs h3 { font-size: 1.5rem; }
.beliefs p { margin: 0; color: var(--ink-soft); }
.era-tag {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  vertical-align: middle;
}
.tag-1998 { background: var(--paper); color: #17161A; border: 1.5px solid #17161A; }
.tag-2026 { background: var(--iri); color: var(--on-iri); border-radius: 999px; }

/* About me: a portrait clipped to the logo shape, next to the story. */
.me { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.me-photo {
  position: relative;
  width: 240px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  clip-path: url(#logo-clip);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(139, 235, 255, 0.35), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(255, 166, 214, 0.3), transparent 62%),
    var(--night);
  color: var(--night-ink);
  text-align: center;
}
.me-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.me-text h3 { font-size: 1.35rem; margin: 28px 0 8px; }
.me-text p { margin: 0 0 12px; max-width: 62ch; color: var(--ink-soft); }
.me-text .lead { margin-bottom: 0; }

/* Build log: five steps that light up one after another when the section comes into view. */
.build { position: relative; margin: 80px 0 0; }
.build .label { margin-bottom: 26px; }
/* The line runs from the centre of the first step to the centre of the last; its fill follows --p. */
.build-steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; text-align: center; }
.build-steps::before,
.build-steps::after {
  content: "";
  position: absolute;
  top: 30px;
  left: 10%;
  right: 10%;
  height: 4px;
  border-radius: 4px;
}
.build-steps::before { background: var(--line); }
.build-steps::after {
  background: var(--iri);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  transition: transform 0.15s linear;
}
.build-steps li { position: relative; padding: 0 12px; color: var(--ink-soft); }
.node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line);
  color: var(--ink-soft);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.build-steps strong { display: block; color: var(--ink); font-family: var(--grotesk); font-size: 1.3rem; }
.build-steps li.done .node { background: var(--iri); border-color: transparent; color: var(--on-iri); box-shadow: 0 0 0 6px rgba(195, 177, 255, 0.22); }
.build-steps li.now .node { transform: scale(1.1); }
.count {
  display: inline-block;
  margin: 4px 0;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--sunk);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
}

/* Apps: every app is shown the same way, as a before and an after. */
.apps { display: grid; gap: 28px; }
.app {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.7fr);
  align-items: stretch;
  scroll-margin-top: 84px;
}
.app-then {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 26px 24px;
  background: var(--paper);
  color: var(--paper-ink);
  border: 2px solid var(--paper-ink);
  border-right: 0;
  border-radius: 28px 0 0 28px;
}
.app-then::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image:
    linear-gradient(45deg, rgba(23, 22, 26, 0.07) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(23, 22, 26, 0.07) 25%, transparent 25%);
  background-size: 6px 6px;
}
.app-then > * { position: relative; }
.then-tag, .now-tag {
  display: inline-block;
  padding: 2px 10px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.then-tag { background: var(--paper-ink); color: var(--paper); }
.now-tag { align-self: flex-start; background: var(--iri); color: var(--on-iri); border-radius: 999px; }
.then-icon { display: grid; place-items: center; width: 56px; height: 56px; border: 2px solid var(--paper-ink); }
.then-icon .icon { width: 30px; height: 30px; stroke-width: 1.8; }
.app-then .px {
  margin: auto 0 0;
  font-family: var(--pixel);
  font-size: 1.9rem;
  line-height: 1.05;
  text-shadow: -1px 0 rgba(0, 229, 255, 0.5), 1px 0 rgba(255, 45, 149, 0.4);
}
.app-now {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 30px 30px;
  background: var(--aura);
  color: var(--night-ink);
  border-radius: 0 28px 28px 0;
  box-shadow: 0 24px 60px rgba(195, 177, 255, 0.2);
}
.app-now::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.14;
}
.app-now > * { position: relative; z-index: 1; }
.app-head { display: flex; align-items: center; gap: 16px; }
.app-icon { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 18px; background: var(--iri); color: var(--on-iri); }
.app-icon .icon { width: 32px; height: 32px; stroke-width: 1.8; }
.app-icon img { width: 100%; height: 100%; border-radius: inherit; display: block; }
.app h3 { font-size: 1.65rem; }
.app h3 a { color: inherit; text-decoration: none; }
.app h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.app-now p { margin: 0; color: var(--night-soft); max-width: 60ch; }
.app-now .pending { color: var(--pk); border-color: var(--pk); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.chip.hot { background: var(--iri); border-color: transparent; color: var(--on-iri); font-weight: 700; }
.app-now .chip { border-color: rgba(244, 241, 234, 0.25); color: var(--night-soft); }
.app-now .chip.hot { border-color: transparent; color: var(--on-iri); }
.app-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.app-foot .soon { min-height: 44px; display: inline-flex; align-items: center; color: var(--night-soft); font-size: 0.95rem; }
.app-now .btn-line { border-color: var(--night-ink); color: var(--night-ink); }
.app-now .btn-line:hover { background: rgba(244, 241, 234, 0.1); }
.app-now a:focus-visible { outline-color: var(--cy); }

/* Then. Now. Us.: three cards. The DCA card carries the light; the others step back. */
.compare { margin: 80px 0 0; }
.compare h3 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 30px; }
.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.cmp { margin: 0; padding: 24px 24px 26px; border-radius: 24px; }
.cmp-tag {
  display: inline-block;
  margin: 0 0 18px;
  padding: 2px 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cmp dl { display: grid; gap: 16px; margin: 0; }
.cmp dt { font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.cmp dd { margin: 2px 0 0; }
.cmp-then { border: 1.5px dashed var(--line); }
.cmp-then .cmp-tag { border: 1.5px solid var(--ink-soft); color: var(--ink-soft); }
.cmp-then dd { font-family: var(--pixel); font-size: 1.45rem; line-height: 1.1; color: var(--ink); }
.cmp-today { background: var(--surface); border: 1px solid var(--line); }
.cmp-today .cmp-tag { background: var(--sunk); color: var(--ink-soft); }
.cmp-today dd { color: var(--ink-soft); }
.cmp-us {
  position: relative;
  background: var(--aura);
  color: var(--night-ink);
  box-shadow: 0 24px 60px rgba(195, 177, 255, 0.28);
  transform: translateY(-12px);
}
.cmp-us::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.14;
}
.cmp-us > * { position: relative; z-index: 1; }
.cmp-us .cmp-tag { background: var(--iri); color: var(--on-iri); border-radius: 999px; }
.cmp-us dt { color: var(--night-soft); }
.cmp-us dd { font-size: 1.1rem; font-weight: 700; }

/* Ideas: people tell us a problem, and it may become the next app. */
.ideas { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.idea-steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.idea-steps li { position: relative; min-height: 30px; padding-left: 44px; color: var(--ink-soft); counter-increment: step; }
.idea-steps li::before {
  content: counter(step);
  position: absolute;
  top: -2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--iri);
  color: var(--on-iri);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
}
.idea-steps strong { color: var(--ink); }
.idea-form {
  display: grid;
  gap: 10px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.idea-form label { font-weight: 700; }
.idea-form label span { font-weight: 400; color: var(--ink-soft); }
.idea-form textarea,
.idea-form input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--ink-soft);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
.idea-form textarea { min-height: 140px; resize: vertical; }
.idea-form textarea::placeholder { color: var(--ink-soft); }
.idea-form textarea:focus-visible,
.idea-form input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--ink); }
.idea-form .btn { justify-self: start; margin-top: 8px; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.form-note { margin: 2px 0 0; font-size: 0.9rem; color: var(--ink-soft); }

.more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 22px 28px;
  border: 1.5px dashed var(--line);
  border-radius: 24px;
  color: var(--ink-soft);
  scroll-margin-top: 84px;
}
.more strong { color: var(--ink); }
.more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--iri-text); }

/* Updates */
.empty {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--ink-soft);
}
.empty .icon { color: var(--iri-text); width: 28px; height: 28px; }
.empty p { margin: 0; font-size: 1.05rem; }

/* FAQ */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 12px 0;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--iri-text); transition: transform 0.15s ease; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .answer { margin: 0; padding: 0 0 22px; max-width: 62ch; color: var(--ink-soft); }
.faq a { color: var(--iri-text); }

/* Contact: a night panel with iridescent light and a gradient button. */
.contact { padding: 104px 0 0; }
.contact .box {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  padding: 52px;
  border-radius: 28px;
  background: var(--aura);
  color: var(--night-ink);
  box-shadow: 0 24px 60px rgba(195, 177, 255, 0.2);
}
.contact .box::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.14;
}
.contact .box > * { position: relative; z-index: 1; }
.contact .label { color: var(--night-soft); }
.contact h2 { color: var(--night-ink); }
.contact a.mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--night-ink);
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  font-weight: 700;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}
.contact .btn-primary { box-shadow: none; white-space: nowrap; }
.contact a:focus-visible { outline-color: var(--cy); }

/* Simple pages (privacy, 404) */
.page { padding: 80px 0 24px; min-height: 55vh; }
.page h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 20px; }
.page p { max-width: 60ch; color: var(--ink-soft); font-size: 1.1rem; }

footer { margin-top: 96px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 16px; padding-bottom: 28px; color: var(--ink-soft); font-size: 0.92rem; }
footer p { margin: 0; }
footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--ink); font-weight: 600; }

/* Motion: short, opacity and transform only, and skipped when the person asks for less motion. */
@media (prefers-reduced-motion: no-preference) {
  .hero .label, .hero h1, .sub-title, .actions { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
  .hero h1 { animation-delay: 0.05s; }
  .sub-title { animation-delay: 0.14s; }
  .actions { animation-delay: 0.22s; }
  .slider { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s backwards; }
  .caret { animation: blink 1s steps(1) infinite; }
  .meter span { transform-origin: left; animation: grow 2.4s cubic-bezier(0.4, 0, 0.2, 1) 1s infinite alternate; }

  .motion .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--d, 0s);
  }
  .motion .reveal.in { opacity: 1; transform: none; }

  .btn { transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, filter 0.15s ease; }
  .btn .icon { transition: transform 0.2s ease; }
  .btn:active { transform: scale(0.97); }
  .icon-btn { transition: background-color 0.15s ease, transform 0.15s ease; }
  .icon-btn:active { transform: scale(0.92); }
  .app, .more, .empty { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
  .strip .icon { transition: transform 0.2s ease; }
  .sub { animation: drop 0.14s ease; }
  .faq details[open] .answer { animation: rise 0.25s ease; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn:hover:active { transform: scale(0.97); }
  .btn:hover .icon { transform: translateX(3px); }
  .app:hover { transform: translateY(-4px); }
  .strip li:hover .icon { transform: scale(1.15); }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes grow { from { transform: scaleX(0.35); } to { transform: scaleX(1); } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

@media (max-width: 860px) {
  /* The menu collapses behind a button; submenus open in place. */
  .site-nav { order: 2; }
  .js .menu-btn { display: grid; }
  .js .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 8px 16px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .js .menu-btn[aria-expanded="true"] + .nav-list { display: flex; }
  .no-js .nav-list { flex-wrap: wrap; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li:last-child { border-bottom: 0; }
  .nav-list a, .sub-btn { width: 100%; min-height: 52px; padding: 0 4px; justify-content: space-between; color: var(--ink); font-size: 1.05rem; }
  .has-sub { position: static; }
  .sub { position: static; min-width: 0; padding: 0 0 8px 16px; background: none; border: 0; box-shadow: none; }
  .sub a { min-height: 48px; color: var(--ink-soft); }

  .hero { padding: 40px 0 64px; }
  .actions { margin-bottom: 48px; }
  .layer { min-height: 470px; }
  .era-prose { width: calc(50% - 40px); font-size: 0.8rem; line-height: 1.5; bottom: 26px; }
  .prose-right { right: 20px; }
  .prose-left { left: 20px; }
  .layer-body { padding: 24px 22px 28px; }
  .layer-then .layer-body { column-gap: 20px; }
  .layer-now .layer-body { padding-top: 58px; }
  .receipt { width: calc(50% - 30px); font-size: 0.8rem; }
  .receipt div { flex-direction: column; gap: 0; }
  .now-extra { right: 22px; bottom: 28px; width: calc(50% - 40px); }
  .code { font-size: 0.85rem; }
  .compare-grid { grid-template-columns: 1fr; }
  .cmp-us { transform: none; }
  .ideas { grid-template-columns: 1fr; gap: 28px; }
  .me { grid-template-columns: 1fr; gap: 24px; }
  .me-photo { width: 180px; }
  .strip ul { grid-template-columns: 1fr; }
  .strip li + li { border-left: 0; border-top: 1px solid var(--line); }
  .beliefs li { grid-template-columns: 56px 1fr; row-gap: 10px; }
  .beliefs li p { grid-column: 2; }
  .build-steps { grid-template-columns: 1fr; gap: 36px; text-align: left; }
  .build-steps::before,
  .build-steps::after { top: 32px; bottom: 32px; left: 30px; right: auto; width: 4px; height: auto; }
  .build-steps::after { transform: scaleY(var(--p, 0)); transform-origin: top; }
  .build-steps li { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; align-items: start; padding: 0; }
  .build-steps .node { grid-row: span 2; margin: 0; }
  .app { grid-template-columns: 1fr; }
  .app-then { flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 2px solid var(--paper-ink); border-bottom: 0; border-radius: 24px 24px 0 0; padding: 22px; }
  .app-then .px { flex: 1 1 100%; margin: 0; font-size: 1.6rem; }
  .app-now { border-radius: 0 0 24px 24px; padding: 24px 22px; }
  .contact .box { grid-template-columns: 1fr; padding: 36px 24px; }
}
@media (max-width: 520px) {
  .actions .btn, .app-foot .btn, .contact .btn, .page .btn, .idea-form .btn { width: 100%; justify-content: center; }
  .app-foot { flex-direction: column; align-items: stretch; }
  .app-foot .chip { align-self: flex-start; }
  .more, .empty, .idea-form { padding: 20px; }
}

/* Then vs now: facts. Each card carries its era: paper for 1998, a plain card for the middle years, night for 2026. */
.facts { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.fact { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.fact h3 { font-size: 1.2rem; }
.fact p { margin: 0; color: var(--ink-soft); }
.fact-num { font-size: 2.6rem; line-height: 1; font-family: var(--grotesk); font-weight: 700; color: var(--iri-text); }
.fact-1998 { background: var(--paper); border: 2px solid var(--paper-ink); border-radius: 0; box-shadow: 6px 6px 0 var(--paper-shadow); color: var(--paper-ink); }
.fact-1998 .fact-num { font-family: var(--pixel); font-weight: 400; font-size: 3.4rem; color: var(--paper-ink); text-shadow: -1px 0 rgba(0, 229, 255, 0.55), 1px 0 rgba(255, 45, 149, 0.45); }
.fact-1998 p { color: var(--paper-soft); }
.fact-mid { border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--iri) border-box; border-top-width: 4px; }
.fact-2026 { background: var(--aura); color: var(--night-ink); border: 0; box-shadow: 0 20px 50px rgba(195, 177, 255, 0.2); }
.fact-2026 .fact-num { color: var(--cy); }
.fact-2026 p { color: var(--night-soft); }
.fact-note { margin: 18px 0 0; font-family: var(--mono); font-size: 0.8rem; color: var(--ink-soft); }

/* AI and code: three columns, the last one in night. */
.ai-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ai-col { padding: 28px 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.ai-col h3 { font-size: 1.25rem; margin-bottom: 14px; }
.ai-col ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 12px; color: var(--ink-soft); }
.ai-col-now { background: var(--aura); color: var(--night-ink); border: 0; box-shadow: 0 20px 50px rgba(195, 177, 255, 0.2); }
.ai-col-now ul { color: var(--night-soft); }
.ai-col-now .pending { border-color: var(--cy); color: var(--cy); }

/* How we work: four cards in a two-by-two grid. */
.together-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tcard { padding: 28px 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.tcard-num { display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 0.85rem; font-weight: 700; color: var(--iri-text); }
.tcard h3 { font-size: 1.3rem; margin-bottom: 8px; }
.tcard p { margin: 0; color: var(--ink-soft); }
.tcard-rule { background: var(--paper); border: 2px solid var(--paper-ink); border-radius: 0; box-shadow: 6px 6px 0 var(--paper-shadow); color: var(--paper-ink); }
.tcard-rule .tcard-num { color: var(--paper-ink); }
.tcard-rule p { color: var(--paper-soft); }

.tagline { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-soft); }

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

/* Then vs now: one row per era. The label sits on the left and its three cards sit beside it. */
.era-row { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: start; padding: 32px 0; border-top: 1px solid var(--line); }
.era-row:last-child { border-bottom: 1px solid var(--line); }
.era-head { margin: 0; padding-top: 30px; font-family: var(--mono); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.era-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1000px) {
  .era-row { grid-template-columns: 1fr; gap: 16px; }
  .era-head { padding-top: 0; }
}
@media (max-width: 860px) {
  .era-cards { grid-template-columns: 1fr; }
}
