@font-face { font-family: "Libre Franklin"; src: url(/fonts/libre-franklin-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url(/fonts/libre-franklin-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(/fonts/source-serif-4-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(/fonts/source-serif-4-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
:root {
  --bg: #dfdedb; --surface: #d3d2ce; --ink: #26251e; --muted: #57554d;
  --accent: #ff6a13; --accent-ink: #26251e; --fix-dark: #26251e;
  color-scheme: light dark;
  --dark: #26251e; --on-dark: #e9e8e4; --on-dark-muted: #aeaca4;
  --display: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --text: "Source Serif 4", Georgia, serif;
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-title: clamp(1.75rem, 1.4rem + 1vw, 2.125rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.2vw, 4.25rem);
  --step-display: clamp(4rem, 11.5vw, 11rem); /* the stage names; the giant wordmarks (hero, tool title, MESSAGE) fit their own width */
  --margin: clamp(20px, 2vw, 28px); --gutter: clamp(12px, 1.4vw, 20px);
  --section: clamp(6rem, 11vw, 10rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1); --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms; --t-hover: 180ms; --t-ui: 240ms;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: var(--step-body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, ul, ol, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }
.muted { color: var(--muted); }
.nums { font-variant-numeric: tabular-nums; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.lineup :focus-visible, .foot :focus-visible { outline-color: var(--accent); }
.lineup .try:focus-visible { outline-color: var(--on-dark); }
.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.button { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; background: var(--ink); color: var(--bg); font-family: var(--display); font-weight: 600; font-size: var(--step-body); text-decoration: none; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
@media (hover: hover) { .button:hover { background: var(--accent); color: var(--accent-ink); } }
.skip { position: absolute; left: var(--margin); top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 10; }
.skip:focus { top: 10px; }

/* ---------- hero: one word, cropped ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; }
.hero__top { display: flex; justify-content: space-between; align-items: center; padding: 24px var(--margin) 0; }
.logo { display: block; box-sizing: content-box; width: 66px; height: 22px; padding: 11px 10px; margin: -11px -10px; color: var(--ink); }
.logo svg { width: 100%; height: 100%; }
.hero nav ul { display: flex; gap: 28px; font-family: var(--display); font-weight: 600; font-size: var(--step-small); }
.hero nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
@media (hover: hover) { .hero nav a:hover { text-decoration: underline; text-underline-offset: 0.2em; } }
.hero__say { position: relative; z-index: 2; margin-top: 72px; display: flex; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; }
.hero__say p { font-size: var(--step-lead); line-height: 1.35; max-width: 36ch; }
.hero__say p strong { font-weight: 600; }
.hero h1 { position: absolute; left: var(--margin); bottom: -0.105em; margin: 0; font-family: var(--display); font-weight: 700; font-size: 34vw; line-height: 0.8; letter-spacing: -0.045em; text-transform: uppercase; white-space: nowrap; transform-origin: 30% 100%; }

/* ---------- tools stage: pinned full-bleed demo screens behind big names ---------- */
.stage { position: relative; background: var(--dark); color: var(--on-dark); overflow: clip; }
.stage:focus, main:focus, [tabindex="-1"]:focus { outline: none; }
.stage__bg { position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; overflow: hidden; z-index: 0; pointer-events: none; background: var(--dark); }
.stage__layer { position: absolute; left: 0; right: 0; top: 0; height: 100svh; opacity: 0; display: none; }
.stage__layer.is-near { display: block; }
.stage__layer picture, .stage__layer img { display: block; width: 100%; height: 100%; }
.stage__layer img, .stage__vid { object-fit: cover; object-position: 50% 50%; max-width: none; }
.stage__vid { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; opacity: 0; pointer-events: none; transition: opacity 280ms ease; }
.stage__layer.is-vid .stage__vid { opacity: 1; }
.stage__layer:first-child { opacity: 1; }
.stage__layer img, .stage__vid { filter: saturate(0.95); }
/* darkest behind the words, lighter at the edges so the demo screen stays visible */
.stage__scrim { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 48% at 50% 47%, rgba(20, 19, 15, 0.86), rgba(20, 19, 15, 0.6) 70%, rgba(20, 19, 15, 0.42)); transition: opacity 400ms ease; }
/* mostly white demo screens get a second, darker layer behind the words (--light is set by home.js from the layers on screen) */
.stage__scrim::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 48%, rgba(20, 19, 15, 0.7), rgba(20, 19, 15, 0.5)); opacity: var(--light, 0); }
@media (max-width: 700px) { .stage__scrim { background: linear-gradient(rgba(20, 19, 15, 0.4), rgba(20, 19, 15, 0.8) 38%, rgba(20, 19, 15, 0.8) 66%, rgba(20, 19, 15, 0.4)); } }
.stage__fg { position: relative; z-index: 1; text-align: center; font-family: var(--display); font-weight: 700; padding-bottom: 12svh; }
.stage__fg h2 { font-size: var(--step-display); line-height: 0.86; letter-spacing: -0.04em; text-transform: uppercase; font-weight: 700; color: var(--on-dark-muted); padding: 22svh var(--margin) 0; min-height: 70svh; display: flex; align-items: flex-start; justify-content: center; }
.name { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 12svh var(--margin); }
.name__link { display: inline-block; text-decoration: none; font-size: var(--step-display); line-height: 0.86; letter-spacing: -0.04em; text-transform: uppercase; min-height: 44px; transition: color var(--t-ui) ease; }
.name__link > span { display: inline-block; }
.name__full { display: block; margin-top: clamp(14px, 2svh, 22px); font-family: var(--display); font-weight: 600; font-size: var(--step-small); letter-spacing: 0.02em; color: var(--on-dark-muted); }
.name__link:focus-visible { outline-offset: 6px; }
.name.is-return .name__link { color: var(--accent); }
.name .name__link { transition: color 700ms ease; }
.name__use { margin-top: 10px; font-family: var(--display); font-weight: 600; font-size: var(--step-small); letter-spacing: 0.01em; text-transform: none; color: var(--accent); }
.stage__fg h2 { flex-direction: column; align-items: center; text-align: center; }
.stage__fg h2 small { display: block; margin-top: 0.4em; font-family: var(--text); font-weight: 400; font-size: var(--step-lead); letter-spacing: 0; line-height: 1.3; text-transform: none; color: var(--on-dark); }
.name__full + .name__row { margin-top: clamp(8px, 1.4svh, 14px); }
.name__row { margin-top: clamp(20px, 3svh, 32px); max-width: 30ch; font-family: var(--text); font-weight: 400; text-transform: none; font-size: var(--step-lead); line-height: 1.3; color: var(--on-dark); }
.name__acts { margin-top: clamp(24px, 4svh, 40px); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 28px; }
.name .try { margin-top: 0; }
.name__more [aria-hidden] { display: inline-block; white-space: pre; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) { .try:hover .try__a--r { transform: translateX(4px); } }
.stage .name__more:focus-visible { outline-color: var(--on-dark); }
/* the name itself says it opens more: it underlines (and turns orange) on hover and focus */
.name__link:focus-visible > span { text-decoration-color: currentColor; }
@media (hover: hover) { .name__link:hover { color: var(--accent); } .stage:has(.name__link:hover) .stage__scrim { opacity: 0.8; } }
.stage .name__link:focus-visible, .stage .try:focus-visible { outline-color: var(--on-dark); }
html:not(.js) .stage__bg { display: none; }
html:not(.js) .stage__fg h2 { min-height: 0; padding-top: 12svh; }
html:not(.js) .name { min-height: 0; padding-block: 8svh; }

/* ---------- the Try it button (home stage, tools table, tool pages) ---------- */
.try { --fill: var(--accent); --ink-on: var(--accent-ink); --wipe: var(--fix-dark); --wipe-on: var(--accent); position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 0 22px 0 26px; background: var(--fill); color: var(--ink-on); font-family: var(--display); font-weight: 700; font-size: var(--step-body); line-height: 1; letter-spacing: -0.01em; text-decoration: none; text-transform: none; -webkit-tap-highlight-color: transparent; transition: transform var(--t-press) var(--ease-out), color var(--t-hover) ease var(--cd, 0ms); }
.try::before { content: ""; position: absolute; inset: 0; background: var(--wipe); transform: translateY(101%); transition: transform 320ms var(--ease-expo); z-index: -1; }
.try__l { display: inline-block; }
.try__a { width: 18px; height: 18px; flex: none; transition: transform var(--t-ui) var(--ease-out); }
.try:active { transform: scale(0.96); }
.try:active .try__a { transform: translate(3px, -3px); }
.try:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) { .try:hover { --cd: 60ms; color: var(--wipe-on); } .try:hover::before { transform: none; } .try:hover .try__a { transform: translate(4px, -4px); } }
.stage .try, .lineup .try { --wipe: var(--on-dark); --wipe-on: var(--fix-dark); }
.try--s { min-height: 44px; padding: 0 16px 0 18px; font-size: var(--step-small); gap: 10px; }
.try--s .try__a { width: 14px; height: 14px; }
.try--l { display: flex; width: 100%; justify-content: space-between; min-height: 104px; padding: 0 28px; font-size: var(--step-head); letter-spacing: -0.025em; }
.try--l .try__a { width: 40px; height: 40px; }

/* ---------- intro: title and note ---------- */
.intro { position: relative; z-index: 1; background: var(--bg); padding-block: 140px 0; }
.intro h2 { grid-column: 1 / 6; font-size: var(--step-head); line-height: 1; align-self: end; }
.intro__note { grid-column: 6 / 11; align-self: end; font-size: var(--step-lead); line-height: 1.35; padding-bottom: 0.2em; }

/* ---------- about: portrait as drop cap ---------- */
.about { padding-block: 140px; align-items: start; }
.about__side { grid-column: 1 / 3; }
.about__side h2 { font-size: var(--step-lead); line-height: 1.1; }
.about__side dl { margin: 28px 0 0; font-size: var(--step-small); }
.about__side dt { color: var(--muted); }
.about__side dd { margin: 0 0 14px; }
.about__text { grid-column: 3 / 9; font-size: var(--step-lead); line-height: 1.45; }
.about__text p { max-width: 54ch; }
.about__text p + p { margin-top: 1.1em; }
.about__photo { grid-column: 9 / 13; margin: 0; padding-left: clamp(0px, 2vw, 32px); align-self: start; }
.about__photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 32% 50%; background: var(--surface); }
.about__photo img + img { margin-top: 16px; object-position: 50% 60%; }
.about__photo figcaption { margin-top: 8px; font-size: var(--step-small); color: var(--muted); }

/* ---------- list: line-up at one size ---------- */
.lineup { background: var(--dark); color: var(--on-dark); padding: 40px var(--margin) 120px; }
.lineup table { width: 100%; border-collapse: collapse; font-size: var(--step-lead); line-height: 1.5; }
.lineup caption { text-align: left; }
.lineup th, .lineup td { text-align: left; font-weight: 400; padding: 0.12em 0; vertical-align: baseline; }
.lineup th { width: 33%; padding-right: 24px; }
.lineup td:nth-child(2) { width: 33%; padding-right: 24px; }
.lineup td.r { text-align: right; }
.lineup .part h2 { font: inherit; letter-spacing: inherit; color: inherit; margin: 0; }
.lineup .part { color: var(--accent); font-family: var(--display); font-weight: 600; font-size: inherit; padding: 72px 0 20px; letter-spacing: -0.01em; }
.lineup__note { margin-top: 20px; color: var(--on-dark-muted); max-width: 60ch; }
.lineup tbody tr { transition: color var(--t-hover) ease; }
@media (hover: hover) { .lineup tbody tr:hover { color: #fff; } }

/* ---------- cta: one word is the button ---------- */
.cta { display: block; position: relative; height: 62svh; min-height: 420px; background: var(--accent); color: var(--accent-ink); text-decoration: none; overflow: hidden; transition: background-color 120ms ease, color 120ms ease; }
.cta h2 { position: absolute; top: 24px; left: var(--margin); max-width: 30ch; font-family: var(--text); font-weight: 400; font-size: var(--step-lead); line-height: 1.3; letter-spacing: 0; }
.cta__li { display: block; margin-top: 14px; font-family: var(--display); font-weight: 600; font-size: var(--step-body); letter-spacing: -0.005em; opacity: 0.85; }
.cta svg { position: absolute; top: 24px; right: var(--margin); width: 48px; height: 48px; }
.cta__word { position: absolute; left: var(--margin); right: var(--margin); bottom: 24px; display: block; font-family: var(--display); font-weight: 700; font-size: 21.6vw; line-height: 0.8; letter-spacing: -0.05em; text-transform: uppercase; white-space: nowrap; }
.cta:hover, .cta:focus-visible { background: var(--dark); color: var(--accent); }
.cta:focus-visible { outline-offset: -6px; }

/* ---------- footer: columns above, wordmark below ---------- */
.foot { position: relative; z-index: 1; min-height: min(100svh, 820px); display: grid; grid-template-rows: auto 1fr auto; background: var(--dark); color: var(--on-dark); padding: 40px var(--margin) 20px; }
main { position: relative; z-index: 1; background: var(--bg); }
.foot .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.foot h2 { font-family: var(--display); font-weight: 600; font-size: var(--step-body); letter-spacing: 0.02em; color: var(--on-dark); margin-bottom: 8px; }
.foot li, .foot .cols p { color: var(--on-dark-muted); }
.foot a { display: inline-block; padding: 6px 0; text-decoration: none; }
.foot .cols a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); font-weight: 600; text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.22em; }
@media (hover: hover) { .foot a:hover { color: var(--on-dark); text-decoration: underline; } }
.foot__mark { color: var(--on-dark); }
.foot__mark svg { width: 100%; height: auto; aspect-ratio: 2182 / 730; display: block; }
@media screen and (min-width: 1001px) { .foot__mark svg { width: min(100%, 56vw, 960px); } } /* on desktop the mark is a signature, not a wall */
.foot small { display: block; margin-top: 20px; font-size: var(--step-body); color: var(--on-dark-muted); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 { animation: word-in 1100ms var(--ease-expo) 80ms both; }
  .js [data-load] { opacity: 0; transform: translateY(14px); animation: rise 600ms var(--ease-out) forwards; animation-delay: var(--d, 300ms); }
  @supports (animation-timeline: view()) {
    .hero h1 span { display: inline-block; transform-origin: 30% 100%; animation: shrink linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    .foot__mark svg { animation: grow linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; transform-origin: 50% 100%; }
  }
  .js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .is-in[data-rise], .js .is-in [data-rise] { opacity: 1; transform: none; }
  .js .name__link > span, .js .name__row, .js .name__use { opacity: 0; transform: translateY(24px); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-expo); }
  .js .name__row { transition-delay: 90ms; } .js .name__use { transition-delay: 140ms; }
  .js .name.is-seen .name__link > span, .js .name.is-seen .name__row, .js .name.is-seen .name__use { opacity: 1; transform: none; }
  .js .name .name__acts { opacity: 0; }
  .js .name.is-seen .name__acts { animation: fade-in 600ms var(--ease-out) 180ms forwards; }
  .js .lineup tbody tr { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
  .js .lineup tbody.is-in tr { opacity: 1; transform: none; }
}
@keyframes word-in { from { transform: translateY(18%); } to { transform: none; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes shrink { from { transform: none; } to { transform: scale(0.94); } }
@keyframes grow { from { transform: scale(0.94); } to { transform: none; } }

/* ---------- tablet ---------- */
@media (max-width: 1000px) {
  .hero__say { width: 60%; display: block; }
  .hero h1 { writing-mode: vertical-rl; font-size: min(56vw, 29svh); left: auto; right: -0.1em; padding: 0; bottom: auto; top: 50%; translate: 0 -50%; line-height: 1.12; }
  .js .hero h1 { animation: none; }
  .hero nav li:not(:last-child) { display: none; }
  .hero nav { position: absolute; right: var(--margin); bottom: 20px; z-index: 3; }
  .hero nav a { background: var(--bg); padding: 0 8px; }
  .intro h2 { grid-column: 1 / 13; } .intro__note { grid-column: 1 / 11; margin-top: 24px; }
  .about__side { display: contents; } .about__side h2 { grid-column: 1 / 13; order: 0; }
  .about__side dl { grid-column: 1 / 13; order: 2; margin-top: 32px; }
  .about__text { grid-column: 1 / 13; margin-top: 24px; order: 1; }
  .about__photo { grid-column: 1 / 13; order: 2; padding-left: 0; margin-top: 32px; max-width: 560px; }
  .about__side dl { order: 3; }
}
/* ---------- phone ---------- */
@media (max-width: 700px) {
  :root { --margin: 20px; }
  .hero { height: 100svh; min-height: 600px; }
  .hero nav { display: none; }
  .hero__say { width: 60%; margin-top: 40px; display: block; }
  .hero__say p { font-size: var(--step-body); max-width: none; }
  .hero h1 { writing-mode: vertical-rl; font-size: min(47vw, 28svh); left: auto; right: -0.1em; padding: 0; bottom: auto; top: 50%; translate: 0 -50%; line-height: 1.12; }
  .js .hero h1 { animation: none; }
  .stage__fg h2, .name__link { font-size: 14.5vw; }
  .name__row { font-size: var(--step-body); }
  .name .try { min-height: 56px; }
  .intro { padding-block: 96px 0; }
  
  
  .about { padding-block: 96px; }
  .about__text { font-size: var(--step-body); line-height: 1.5; }
  .lineup { padding-bottom: 80px; }
  .lineup table, .lineup tbody, .lineup tr, .lineup th, .lineup td { display: block; width: auto; }
  .lineup thead { display: none; }
  .lineup td:nth-child(2) { width: auto; padding-right: 0; }
  .lineup tr { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding-bottom: 20px; }
  .lineup th { grid-column: 1 / -1; font-size: var(--step-lead); padding: 0; }
  .lineup td { font-size: var(--step-small); color: var(--on-dark-muted); padding: 2px 0 0; display: inline; }
  .lineup td:nth-child(2) { grid-column: 1 / -1; } .lineup td:nth-child(3) { grid-column: 1; grid-row: 3; }
  .lineup td.r { grid-column: 2; grid-row: 3; font-size: var(--step-body); color: var(--on-dark); display: block; }
  .lineup .part { font-size: var(--step-lead); padding: 56px 0 16px; display: block; width: 100%; }
  .cta { height: auto; min-height: 0; padding: 24px 0; }
  .cta h2 { position: relative; top: 0; left: 0; margin: 0 var(--margin); font-size: var(--step-lead); max-width: 78%; }
  .cta svg { width: 32px; height: 32px; }
  .cta__word { position: relative; left: 0; right: 0; bottom: 0; margin: 56px var(--margin) 0; font-size: 23vw; }
  .foot .cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .foot { min-height: 0; } .foot__mark { margin-top: 56px; }
}

/* =====================================================================
   Production additions (everything above is the approved mockup)
   ===================================================================== */
html { scroll-padding-top: 12px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
main:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* top bar: logo left, nav + language right (home hero and every inner page) */
.hero__right, .topbar__right { display: flex; align-items: center; gap: 28px; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 24px var(--margin) 0; }
.topbar nav ul { display: flex; gap: 28px; font-family: var(--display); font-weight: 600; font-size: var(--step-small); }
.topbar nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
@media (hover: hover) { .topbar nav a:hover { text-decoration: underline; text-underline-offset: 0.2em; } }
@media (max-width: 700px) { .hero__right { gap: 0; } .topbar nav ul { gap: 8px; } .topbar__right { gap: 4px; } }

/* hero tagline fallback and footer extras */
.foot .foot__line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; margin-top: 20px; }
.foot .foot__line small { margin-top: 0; }
.foot .throwbox { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 10px; }
.foot .throwbox small { margin-top: 0; color: var(--on-dark-muted); }
.foot .throw { display: inline-flex; align-items: center; min-height: 44px; padding: 0; font-size: var(--step-body); color: var(--on-dark-muted); text-decoration: underline; text-underline-offset: 0.2em; }
@media (hover: hover) { .foot .throw:hover { color: var(--accent); } }
.foot .tag { display: block; margin-top: 20px; font-size: var(--step-body); color: var(--on-dark); }
.foot--plain { position: relative; z-index: auto; min-height: 0; }
.foot--plain .foot__mark { margin-top: 64px; }

/* tables: names link to the tool page */
.lineup th a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
@media (hover: hover) { .lineup th a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.18em; } }
.lineup td.empty { padding: 0; }

/* ---------- tool pages ---------- */
.tool { padding-bottom: 0; }
.tool h1 { margin: 72px var(--margin) 0; font-family: var(--display); font-weight: 700; font-size: clamp(3.25rem, 12.5vw, 12rem); line-height: 0.86; letter-spacing: -0.045em; text-transform: uppercase; text-wrap: balance; }
.tool h1.long { font-size: clamp(2.75rem, 10.2vw, 10rem); }
.tool__intro { margin-top: 56px; align-items: end; row-gap: 28px; }
.tool__lede { grid-column: 1 / 8; font-size: var(--step-title); line-height: 1.25; max-width: 32ch; }
.tool__try { grid-column: 8 / 13; }
.tool__facts { margin-top: 72px; padding-top: 28px; border-top: 2px solid var(--ink); row-gap: 24px; }
.tool__facts > div { grid-column: span 3; }
.tool__facts > div.wide { grid-column: span 6; }
.tool__facts dt { font-family: var(--display); font-weight: 600; font-size: var(--step-small); color: var(--muted); }
.tool__facts dd { margin: 4px 0 0; font-family: var(--display); font-weight: 600; font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.01em; }
.status::before { content: ""; display: inline-block; width: 0.6em; height: 0.6em; margin-right: 0.45em; background: var(--ink); border-radius: 50%; }
.status--use::before { background: var(--accent); box-shadow: 0 0 0 2px var(--ink); }
.status--build::before { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.tool__shots { margin-top: 72px; display: flex; gap: var(--gutter); align-items: flex-start; }
.tool__shots figure { flex: 1 1 0; min-width: 0; background: var(--surface); }
.tool__shots img, .tool__shots video { width: 100%; height: auto; }
.tool__shots--phone figure { flex: 0 1 calc((100% - 2 * var(--gutter)) / 3); max-width: 390px; }
.tool__shots--phone { justify-content: flex-start; }
.tool__text { margin-top: 112px; row-gap: 56px; align-items: start; }
.tool__text > section:first-child { grid-column: 1 / 7; }
.tool__text > section:last-child { grid-column: 8 / 13; }
.tool h2 { font-size: var(--step-title); line-height: 1.2; margin-bottom: 16px; }
.tool__text p { max-width: 46ch; font-size: var(--step-lead); line-height: 1.4; }
.tool__text ul { font-size: var(--step-lead); line-height: 1.35; }
.tool__text li { padding: 0 0 0.7em; }
.tool__story { margin-top: 96px; }
.tool__story section:last-child p { font-size: var(--step-body); line-height: 1.55; max-width: 60ch; }
.tool__story section:last-child p + p { margin-top: 1em; }
.tool__result { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }
.tool__how { margin-top: 112px; }
.tool__how ol { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); counter-reset: s; }
.tool__how li, .tool__text li, .dv__steps li { text-wrap: pretty; }
.tool__how li { counter-increment: s; padding: 0; font-size: var(--step-lead); line-height: 1.35; max-width: 30ch; }
.tool__how li::before { content: counter(s); display: block; font-family: var(--display); font-weight: 700; font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; margin-bottom: 16px; }
.tool__pair { margin-top: 112px; background: var(--surface); padding: 32px; display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; }
.tool__pair h2 { margin: 0 0 8px; }
.tool__pair p { max-width: 56ch; font-size: var(--step-lead); line-height: 1.35; }
.tool__pair a { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; background: var(--ink); color: var(--bg); font-family: var(--display); font-weight: 600; font-size: var(--step-body); text-decoration: none; }
@media (hover: hover) { .tool__pair a:hover { background: var(--accent); color: var(--accent-ink); } }
.tool__flip { margin-top: var(--section); background: var(--dark); color: var(--on-dark); padding: 56px var(--margin) 72px; }
.flip { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.flip a { display: block; text-decoration: none; min-height: 44px; }
.flip small { display: block; font-family: var(--display); font-weight: 600; font-size: var(--step-small); color: var(--on-dark-muted); margin-bottom: 8px; }
.flip b { display: block; font-family: var(--display); font-weight: 700; font-size: min(var(--step-head), calc((100vw - 2 * var(--margin) - var(--gutter)) / 2 / var(--k, 5))); line-height: 0.9; letter-spacing: -0.04em; text-transform: uppercase; transition: color var(--t-ui) ease; }
.flip a:last-child { text-align: right; }
.flip .all { grid-column: 1 / -1; margin-top: 32px; }
@media (hover: hover) { .flip a:hover b { color: var(--accent); } }
.tool__flip :focus-visible, .minicta:focus-visible { outline-color: var(--accent); }
.minicta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding: 28px var(--margin); background: var(--accent); color: var(--accent-ink); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: var(--step-lead); line-height: 1.25; transition: background-color 120ms ease, color 120ms ease; }
.minicta span:last-child { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
.minicta:hover, .minicta:focus-visible { background: var(--dark); color: var(--accent); }
.minicta:focus-visible { outline-offset: -6px; outline-color: var(--accent); }
@media (max-width: 1000px) {
  .tool__lede, .tool__try { grid-column: 1 / 13; }
  .tool__facts > div, .tool__facts > div.wide { grid-column: span 6; }
  .tool__text > section:first-child, .tool__text > section:last-child { grid-column: 1 / 13; }
  .tool__how ol { grid-template-columns: 1fr; }
  .tool__shots { flex-wrap: wrap; }
  .tool__shots figure { flex: 1 1 100%; }
  .tool__shots--phone figure { flex: 1 1 calc((100% - 2 * var(--gutter)) / 3); }
}
@media (max-width: 700px) {
  .tool h1, .tool h1.long { margin-top: 48px; font-size: min(17vw, calc((100vw - 2 * var(--margin)) / var(--k, 5))); }
  .tool__intro { margin-top: 32px; }
  .try--l { min-height: 88px; padding: 0 20px; }
  .tool__facts { margin-top: 48px; }
  .tool__facts > div, .tool__facts > div.wide { grid-column: 1 / -1; }
  .tool__shots, .tool__text, .tool__how, .tool__pair { margin-top: 64px; }
  .tool__shots--phone { flex-wrap: nowrap; gap: 8px; }
  .tool__pair { padding: 24px; }
  .flip { grid-template-columns: 1fr; row-gap: 28px; }
  .flip a:last-child { text-align: left; }
  .flip .all { margin-top: 4px; }
  .flip b { font-size: min(var(--step-head), calc((100vw - 2 * var(--margin)) / var(--k, 5))); }
}

/* ---------- demo viewer ---------- */
.dv-body { background: var(--dark); color: var(--on-dark); height: 100vh; height: 100dvh; overflow: hidden; }
.dv { display: flex; flex-direction: column; height: 100%; }
.dv__bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 0 var(--margin); background: var(--dark); color: var(--on-dark); font-family: var(--display); font-weight: 600; font-size: var(--step-small); border-bottom: 1px solid #3f3e35; }
.dv__bar a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--on-dark); text-decoration: none; white-space: nowrap; }
@media (hover: hover) { .dv__bar a:hover { color: var(--accent); } }
.dv__bar :focus-visible { outline-color: var(--accent); outline-offset: -3px; }
.dv__bar .short { display: none; }
.dv__stage { flex: 1 1 auto; min-height: 0; background: #fff; display: flex; justify-content: center; position: relative; }
.dv__stage iframe { border: 0; width: 100%; height: 100%; display: block; background: #fff; }
.dv--phone .dv__stage { background: #14130f; }
.dv--phone .dv__stage iframe { width: min(100%, 430px); }
[hidden] { display: none !important; }
.dv__fb { flex: 1; align-self: stretch; padding: 40px var(--margin); background: var(--dark); color: var(--on-dark); font-size: var(--step-lead); }
.dv__fb p + p { margin-top: 24px; }
.dv__fb .button { background: var(--on-dark); color: var(--dark); }
@media (hover: hover) { .dv__fb .button:hover { background: var(--accent); color: var(--accent-ink); } }
.dv__how { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; margin: 0; background: none; border: 1px solid #5a584d; border-radius: 22px; color: var(--on-dark); font: inherit; cursor: pointer; white-space: nowrap; }
.dv__how.is-open { border-color: var(--accent); }
.dv__how:hover { color: var(--accent); border-color: var(--accent); }
.dv__car { display: inline-block; transition: transform var(--t-ui) var(--ease-out); }
.dv__how.is-open .dv__car { transform: rotate(180deg); }
.dv__steps { flex: none; background: var(--dark); color: var(--on-dark); border-bottom: 1px solid #3f3e35; padding: 14px var(--margin) 18px; font-size: var(--step-small); line-height: 1.45; }
.dv__steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px var(--gutter); counter-reset: s; max-width: 1100px; }
.dv__steps li { counter-increment: s; display: flex; gap: 10px; }
.dv__steps li::before { content: counter(s); flex: none; font-family: var(--display); font-weight: 700; color: var(--accent); }
.dv__steps p { margin-top: 12px; color: var(--on-dark-muted); max-width: 70ch; }
@media (min-width: 701px) { .dv__steps { position: absolute; z-index: 5; top: 48px; right: var(--margin); width: min(440px, calc(100vw - 2 * var(--margin))); border: 1px solid #3f3e35; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); } .dv__steps ol { grid-template-columns: 1fr; } .dv { position: relative; } }
@media (max-width: 700px) {
  .dv__bar { gap: 10px; }
  .dv__bar .long { display: none; }
  .dv__bar .short { display: inline; }
  .dv__steps { padding-block: 10px 12px; line-height: 1.35; }
  .dv__steps ol { grid-template-columns: 1fr; gap: 6px; }
  .dv__steps p { margin-top: 8px; }
}
/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: flex; flex-direction: column; }
.nf main { flex: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-content: center; align-items: center; gap: 48px var(--gutter); padding: 64px var(--margin); }
@media (max-width: 900px) { .nf main { grid-template-columns: minmax(0, 1fr); } }
.nf h1 { font-size: clamp(3rem, 1rem + 9vw, 9rem); line-height: 0.9; letter-spacing: -0.04em; text-transform: uppercase; font-weight: 700; max-width: 14ch; }
.nf p { margin-top: 24px; font-size: var(--step-lead); max-width: 34ch; }
.nf .button { margin-top: 32px; align-self: flex-start; }

/* ---------- throwback: restart moment ---------- */
.restart { position: fixed; inset: 0; z-index: 1000; background: #000; color: #f2f2f2; display: grid; place-content: center; justify-items: center; gap: 28px; font-family: var(--display); font-weight: 600; font-size: var(--step-body); letter-spacing: 0.01em; opacity: 0; animation: rs-in 260ms ease forwards; }
.restart i { display: block; width: 160px; height: 4px; background: #333; border-radius: 2px; overflow: hidden; }
.restart i::after { content: ""; display: block; height: 100%; width: 100%; background: #bbb; transform-origin: left; animation: rs-bar 1100ms cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes rs-in { to { opacity: 1; } }
@keyframes rs-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- print (recruiters): name, tools, work, certificates, LinkedIn only ---------- */
@media print {
  :root { --bg: #fff; --ink: #000; --muted: #333; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .skip, .hero__right, .topbar, .stage__bg, .cta svg, .cta__word, .button, .restart, .try, .tool__flip, .minicta, .foot .cols, .foot .throw, .tool__shots, .tool__pair a, .work__note { display: none !important; }
  [data-load], [data-rise], .lineup tbody tr, .name__link span { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  main { background: #fff; }
  .hero { height: auto; min-height: 0; overflow: visible; }
  .hero__top { padding-top: 0; }
  .hero__say { margin-top: 12pt; display: block; width: auto; }
  .hero__say p { font-size: 13pt; max-width: none; }
  .hero h1 { position: static; writing-mode: horizontal-tb; translate: none; transform: none; font-size: 64pt; line-height: 1; margin: 12pt var(--margin) 0; animation: none; }
  .stage, .lineup, .foot, .cta { background: #fff !important; color: #000 !important; }
  .stage__fg { text-align: left; padding: 12pt var(--margin); }
  .stage__fg h2, .name__link { font-size: 14pt; line-height: 1.3; letter-spacing: 0; color: #000; text-transform: none; min-height: 0; padding: 0; display: block; }
  .name { min-height: 0; padding: 2pt 0; align-items: flex-start; display: block; }
  .name__row { font-size: 10pt; color: #333; margin: 0; max-width: none; }
  .name__use, .stage__fg h2 small { font-size: 9pt; color: #333; margin: 0; }
  .intro, .about { padding-block: 12pt; }
  .about__text { font-size: 12pt; }
  .about__photo { display: none; }
  .lineup { padding: 0 var(--margin); }
  .lineup table { font-size: 11pt; }
  .lineup .part { color: #000; padding: 14pt 0 4pt; }
  .lineup td a { color: #000; text-decoration: none; }
  .lineup th a { color: #000; }
  .cta { height: auto; min-height: 0; overflow: visible; }
  .cta h2 { position: static; max-width: none; font-size: 13pt; margin: 12pt var(--margin); }
  .cta[href^="https://www.linkedin"]::after { content: attr(href); display: block; margin: 0 var(--margin) 12pt; font-size: 11pt; }
  .foot { position: static; min-height: 0; padding: 0 var(--margin); display: block; }
  .foot__mark svg { width: 90pt; }
  .foot small, .foot .tag { color: #333; margin-top: 6pt; }
  .tool h1 { font-size: 40pt; margin-top: 12pt; }
  .tool__lede { font-size: 13pt; }
  .tool__intro, .tool__facts, .tool__text, .tool__how { margin-top: 14pt; }
  .tool__how li { background: none; padding: 4pt 0; font-size: 11pt; }
  .tool__how li::before { display: inline; font-size: 11pt; margin-right: 6pt; }
  .tool__how ol { grid-template-columns: 1fr; }
  .tool__text p, .tool__text ul { font-size: 11pt; }
  a { color: #000; text-decoration: none; }
}
.tool__shots figure.tall { flex: 0 1 34%; }
@media (max-width: 1000px) { .tool__shots figure.tall { flex: 0 1 min(100%, 420px); } }
.tool__facts dd { text-wrap: balance; }

/* ---------- page transitions (cross-document View Transitions; browsers without support just navigate) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 160ms ease both vt-out; }
::view-transition-new(root) { animation: 320ms var(--ease-out) both vt-in; }
::view-transition-group(*) { animation-duration: 520ms; animation-timing-function: var(--ease-expo); }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
/* Onboarding Guide is a phone app: on wide screens its screen sits in a simple phone frame, not as a pale strip in an empty field */
@media (min-width: 701px) {
  .stage__phone { position: absolute; left: 50%; top: 50%; translate: -50% -50%; height: min(84svh, 800px); aspect-ratio: 430 / 952; border: 10px solid #0b0a08; border-radius: 46px; overflow: hidden; background: #0b0a08; box-shadow: 0 0 0 1px #4a493f, 0 32px 80px rgba(0, 0, 0, 0.55); }
  .stage__phone picture, .stage__phone img, .stage__phone .stage__vid { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
}
@media (max-width: 700px) { .stage__phone { position: absolute; inset: 0; } }

/* ---------- phone bottom bar (home, phones only, after the hero) ---------- */
.pbar { display: none; }
@media (max-width: 700px) and (min-height: 501px) {
  .js .pbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--dark); color: var(--on-dark); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid #3f3e35; font-family: var(--display); font-weight: 600; font-size: var(--step-small); transform: translateY(100%); visibility: hidden; transition: transform 320ms var(--ease-out), visibility 0s linear 320ms; }
  .js .pbar.is-on { transform: none; visibility: visible; transition-delay: 0s; }
  .js body.pbar-seen { padding-bottom: calc(49px + env(safe-area-inset-bottom)); }
  .pbar a { flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-height: 48px; text-decoration: none; padding: 0 8px; }
  .pbar a:last-child { color: var(--accent); }
  .pbar :focus-visible { outline-color: var(--on-dark); outline-offset: -4px; }
}
@media (prefers-reduced-motion: reduce) { .js .pbar { transition: none !important; } }

/* ---------- landscape phones: the horizontal wordmark, not the sliver ---------- */
@media (max-width: 1000px) and (max-height: 500px) {
  .hero h1 { writing-mode: horizontal-tb; font-size: 34vw; left: var(--margin); right: auto; top: auto; bottom: -0.105em; translate: none; line-height: 0.8; }
  .hero__say { width: 62%; }
  .hero nav { position: static; }
  .hero nav li:not(:last-child) { display: list-item; }
  .hero nav a { background: none; padding: 0; }
  .stage__fg h2, .name__link { font-size: var(--step-display); }
}

/* ---------- the tdb▌ cursor always blinks like a terminal cursor (solid with reduced motion) ---------- */
.cursor { animation: cursor-blink 1.06s steps(1, end) infinite; display: var(--cd, inline); }
@keyframes cursor-blink { 0%, 52% { opacity: 1; } 52.01%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
.dv__bar .logo { width: 48px; height: 16px; padding: 14px 8px; margin: -14px 0 -14px -8px; color: var(--on-dark); flex: none; }
@media (max-width: 700px) { .dv__bar .logo { display: none; } }


/* =====================================================================
   Easter eggs (all hidden; none moves with prefers-reduced-motion)
   ===================================================================== */
/* 1. ticking cursor: hold the logo; --cd / --dd reach into the <use> shadow tree */
.dial, .xx { display: none; }
.dial { display: var(--dd, none); }
.xx { display: var(--xd, none); }
.dial .hand { transform-box: fill-box; transform-origin: 50% 100%; animation: dial-tick 1s steps(8, end) infinite; }
@keyframes dial-tick { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dial .hand { animation: none; } }
.logo.is-tick { --cd: none; --dd: inline; }
html.xxx { --cd: none; --xd: inline; }
html.xxx .logo.is-tick { --dd: none; }
a.logo { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* layers: About window and Spotlight */
.egg-layer { position: fixed; inset: 0; z-index: 900; display: grid; justify-items: center; }
.egg-layer--about { align-items: center; background: rgba(38, 37, 30, 0.22); }
.egg-layer--sp { align-items: start; background: rgba(38, 37, 30, 0.14); padding: 14vh 16px 0; }
@media (prefers-reduced-motion: no-preference) {
  .egg-layer { animation: fade-in 140ms ease both; }
  .egg-layer > * { animation: egg-pop 180ms var(--ease-out) both; }
}
@keyframes egg-pop { from { opacity: 0; transform: translateY(6px) scale(0.98); } }

/* 4. About This Site: a classic platinum window, own recreation */
.about-win { width: min(340px, calc(100vw - 32px)); background: #dcdcdc; border: 1px solid #000; border-radius: 6px 6px 3px 3px; box-shadow: 0 0 0 1px #fff inset, 0 18px 40px rgba(0, 0, 0, 0.35); font-family: var(--display); color: #000; overflow: hidden; }
.about-win__bar { position: relative; display: flex; align-items: center; justify-content: center; height: 24px; border-bottom: 1px solid #000; background: repeating-linear-gradient(#fff 0 1px, #c9c9c9 1px 2px); font-weight: 600; font-size: 13px; }
.about-win__bar span { padding: 0 10px; background: #dcdcdc; line-height: 18px; }
.about-win__x { position: absolute; left: 8px; top: 50%; translate: 0 -50%; width: 13px; height: 13px; padding: 0; border: 1px solid #000; background: #fff; box-shadow: 1px 1px 0 #888 inset; cursor: pointer; }
.about-win__x::after { content: ""; position: absolute; inset: -16px; }
.about-win__body { padding: 20px 22px 18px; text-align: center; background: #ececec; margin: 6px; border: 1px solid #8a8a8a; }
.about-win__logo { display: block; width: 112px; height: 38px; margin: 6px auto 14px; color: #26251e; }
.about-win__name { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.about-win__ver { margin: 2px 0 14px; font-size: 12px; color: #555; }
.about-win dl { margin: 0 0 16px; display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; text-align: left; font-size: 12.5px; border-top: 1px solid #bbb; padding-top: 12px; }
.about-win dt { font-weight: 700; } .about-win dd { margin: 0; }
.about-win__more { display: inline-flex; align-items: center; min-height: 28px; padding: 0 18px; font: 600 13px var(--display); color: #000; text-decoration: none; background: linear-gradient(#fdfdfd, #d4d4d4); border: 1px solid #000; border-radius: 6px; box-shadow: 0 1px 0 #fff inset; }
.about-win__more:active { background: #b8b8b8; }
.about-win :focus-visible { outline: 2px solid #000; outline-offset: 2px; }

/* 5. Spotlight */
.sp { width: min(600px, 100%); background: rgba(238, 237, 234, 0.95); -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2); border: 1px solid rgba(38, 37, 30, 0.14); border-radius: 16px; box-shadow: 0 24px 60px rgba(38, 37, 30, 0.3); overflow: hidden; font-family: var(--display); }
.sp__row { display: flex; align-items: center; gap: 12px; padding: 0 20px; height: 62px; }
.sp__row svg { width: 22px; height: 22px; flex: none; color: var(--muted); }
.sp__in { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: 500 var(--step-lead) var(--display); letter-spacing: -0.01em; color: var(--ink); outline: none; }
.sp__in::placeholder { color: var(--muted); opacity: 0.7; }
.sp__list { list-style: none; margin: 0; padding: 6px; border-top: 1px solid rgba(38, 37, 30, 0.12); max-height: min(50vh, 380px); overflow: auto; }
.sp__list:empty { display: none; }
.sp__opt { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; min-height: 44px; padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: var(--step-body); cursor: pointer; align-items: center; }
.sp__opt small { font-weight: 500; font-size: var(--step-small); color: var(--muted); white-space: nowrap; }
.sp__opt em { font-style: normal; font-weight: 500; font-size: var(--step-small); }
.sp__opt[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.sp__opt[aria-selected="true"] small { color: var(--accent-ink); }
.sp__none { padding: 14px 20px 18px; color: var(--muted); border-top: 1px solid rgba(38, 37, 30, 0.12); }
.sp__none:empty { display: none; }

/* 6. motorcycles with my dad */
.ride { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; text-align: left; cursor: pointer; text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: var(--muted); }
@media (hover: hover) { .ride:hover { color: var(--accent-ink); text-decoration-color: var(--accent); text-decoration-style: solid; } }
.ride-lane { position: fixed; left: 0; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 800; display: flex; align-items: flex-end; gap: 18px; pointer-events: none; color: var(--ink); will-change: transform; }
.ride-lane svg { width: 128px; height: auto; overflow: visible; filter: drop-shadow(0 0 1px var(--bg)) drop-shadow(0 0 1px var(--bg)); }
.ride-lane .whl { transform-box: fill-box; transform-origin: center; animation: spin 320ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ride-lane--still { left: 50%; translate: -50% 0; }
.ride-lane--still .whl { animation: none; }

/* 3. Amsterdam watch in the footer */
.foot__mid { position: absolute; top: 40px; right: var(--margin); }
@media (min-width: 701px) { .foot .foot__mark { margin-top: 64px; } }
.amsw { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.amsw__btn { position: relative; width: 72px; height: 72px; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; perspective: 380px; color: inherit; -webkit-tap-highlight-color: transparent; }
.amsw__btn::after { content: ""; position: absolute; inset: -6px; }
.amsw__in { position: absolute; inset: 0; transform-style: preserve-3d; }
.amsw__f, .amsw__b { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.amsw__b { transform: rotateY(180deg); }
.amsw__btn.is-flipped .amsw__in { transform: rotateY(180deg); }
@media (prefers-reduced-motion: no-preference) { .amsw__in { transition: transform 700ms var(--ease-expo); } }
@media (prefers-reduced-motion: reduce) {
  .amsw__in { transform-style: flat; }
  .amsw__f, .amsw__b { backface-visibility: visible; -webkit-backface-visibility: visible; transform: none; transition: opacity 260ms ease; }
  .amsw__b { opacity: 0; }
  .amsw__btn.is-flipped .amsw__in { transform: none; }
  .amsw__btn.is-flipped .amsw__f { opacity: 0; } .amsw__btn.is-flipped .amsw__b { opacity: 1; }
}
.amsw .bal { transform-box: fill-box; transform-origin: center; animation: bal 280ms ease-in-out infinite alternate; animation-play-state: paused; }
.amsw__btn.is-flipped .bal { animation-play-state: running; }
@keyframes bal { from { transform: rotate(-105deg); } to { transform: rotate(105deg); } }
@media (prefers-reduced-motion: reduce) { .amsw .bal { animation: none; } }
.amsw__lab { font-size: var(--step-small); letter-spacing: 0.02em; color: var(--on-dark-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.amsw__btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
@media (max-width: 700px) { .foot__mid { position: static; padding-top: 32px; } .amsw { flex-direction: row; justify-content: flex-start; gap: 14px; } }

/* 9. canal houses at the very bottom of the footer */
.canal { display: flex; align-items: flex-end; margin: 56px calc(-1 * var(--margin)) -20px; --house: #33322a; --pane: #1f1e18; }
.house { position: relative; flex: 1 1 0; min-width: 0; }
.house svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; fill: var(--house); }
.win { position: absolute; padding: 0; border: 0; border-radius: 1px 1px 0 0; background: var(--pane); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.win::after { content: ""; position: absolute; inset: -5px -4px; }
.win.on { background: #ffb15c; box-shadow: 0 0 10px 1px rgba(255, 106, 19, 0.55), 0 0 2px #ffd9a8 inset; }
@media (prefers-reduced-motion: no-preference) { .win { transition: background-color 280ms ease, box-shadow 280ms ease; } }
@media (hover: hover) { .win:not(.on):hover { background: #3d3b30; } }
.win:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 2px; z-index: 2; }
@media (max-width: 1000px) { .house:nth-child(n+10) { display: none; } }
@media (max-width: 700px) { .house:nth-child(n+8) { display: none; } }
@media (max-width: 520px) { .house:nth-child(n+6) { display: none; } .canal { margin-top: 40px; } }
@media print { .canal, .foot__mid, .egg-layer, .ride-lane { display: none !important; } }

/* 2. 404: a stopped watch */
.nfw { margin: 0; display: grid; justify-items: center; gap: 14px; text-align: center; }
.nfw__w { position: relative; width: min(300px, 70vw); aspect-ratio: 1; margin-right: 22px; }
.nfw__w svg { width: 100%; height: 100%; display: block; overflow: visible; }
.nfw .hand { transform-origin: 120px 120px; }
.nfw.is-run .hand { transition: transform 1.25s cubic-bezier(0.2, 0.9, 0.25, 1); }
@media (prefers-reduced-motion: reduce) { .nfw.is-run .hand { transition: none; } }
.nfw__crown { position: absolute; right: -22px; top: 50%; translate: 0 -50%; width: 30px; height: 56px; padding: 0; border: 0; border-radius: 4px 7px 7px 4px; background: #34332b; cursor: grab; touch-action: none; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.nfw__crown::after { content: ""; position: absolute; inset: -14px -10px; }
.nfw__crown span { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, #57554d 0 3px, #26251e 3px 7px); background-position: 0 calc(var(--wind, 0) * 56px); }
.nfw__crown.is-drag { cursor: grabbing; }
.nfw__crown:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
.nfw figcaption { display: grid; gap: 4px; max-width: 40ch; }
.nfw figcaption strong { font-family: var(--display); font-size: var(--step-lead); letter-spacing: -0.01em; }
.nfw figcaption span { color: var(--muted); font-size: var(--step-small); }
.nfw__btn { font: 600 var(--step-small) var(--display); min-height: 44px; padding: 0 20px; color: var(--ink); background: none; border: 2px solid var(--ink); cursor: pointer; }
@media (hover: hover) { .nfw__btn:hover { background: var(--ink); color: var(--bg); } }
.nfw__st { min-height: 1.5em; margin: 0; font-size: var(--step-small); color: var(--muted); }
.nf .nfw p { margin-top: 0; font-size: var(--step-small); max-width: none; }

/* ---------- tool page: the stage loop is the first visual; one or two stills beside it ---------- */
.tool__lead { position: relative; background: var(--dark); aspect-ratio: 1600 / 1000; overflow: hidden; }
.tool__lead picture, .tool__lead img, .tool__lead .tool__vid { display: block; width: 100%; height: 100%; object-fit: cover; }
.tool__lead .tool__vid { position: absolute; inset: 0; opacity: 0; transition: opacity 280ms ease; }
.tool__lead.is-vid .tool__vid { opacity: 1; }
.tool__shots--grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-auto-rows: min-content; align-items: start; }
.tool__shots--grid .tool__lead { grid-row: 1 / span 2; }
.tool__shots--grid .tool__lead + figure:last-child { grid-row: 1; }
/* Guide: phone-shaped screens, each in a simple frame (desktop and tablet) */
.tool__shots--phone .tool__lead { aspect-ratio: 430 / 952; }
.tool__shots--phone .tool__lead img, .tool__shots--phone .tool__lead .tool__vid { object-position: 50% 0; }
@media (min-width: 701px) {
  .tool__shots--phone { gap: clamp(16px, 3vw, 48px); justify-content: center; }
  .tool__shots--phone figure { flex: 0 1 calc((100% - 2 * clamp(16px, 3vw, 48px)) / 3); max-width: 330px; border: 9px solid #14130f; border-radius: 40px; background: #14130f; overflow: hidden; box-shadow: 0 18px 40px rgba(38, 37, 30, 0.22); }
  .tool__shots--phone figure img, .tool__shots--phone figure .tool__vid { border-radius: 0; }
}
@media (max-width: 1000px) {
  .tool__shots--grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tool__shots--grid .tool__lead { grid-column: 1 / -1; grid-row: auto; }
  .tool__shots--grid .tool__lead + figure:last-child { grid-row: auto; }
}
@media (max-width: 700px) {
  .tool__lead { aspect-ratio: 540 / 1168; }
  .tool__shots--grid .tool__lead { max-width: min(100%, 300px); justify-self: start; }
  .tool__shots--grid { grid-template-columns: 1fr; }
  .tool__shots--phone .tool__lead { aspect-ratio: 540 / 1168; }
}
@media print { .tool__lead, .tool__again { display: none !important; } }
.tool__again { margin-top: 40px; }
.tool__again .try { min-width: 200px; }

/* quiet CV download under the certificates */
.lineup__cv { margin-top: 40px; font-family: var(--display); font-weight: 600; font-size: var(--step-small); }
.lineup__cv a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); text-underline-offset: 0.2em; }
@media (hover: hover) { .lineup__cv a:hover { color: var(--accent); } }

/* ---------- dark mode: follows the system, no toggle ----------
   The paper turns warm near-black with off-white ink; the dark bands (stage, career, footer, tool flip) go one step darker still,
   so every section stays a separate band. Orange, the MESSAGE band, photos and videos stay as they are. */
@media screen and (prefers-color-scheme: dark) {
  :root { --bg: #1b1a15; --surface: #26251f; --ink: #ecebe6; --muted: #a9a79e; --dark: #0b0a08; --on-dark: #ecebe6; --on-dark-muted: #a9a79e; }
  .stage__phone { border-color: #000; box-shadow: 0 0 0 1px #3a3930, 0 32px 80px rgba(0, 0, 0, 0.7); }
  .egg-layer--about { background: rgba(0, 0, 0, 0.5); }
  .egg-layer--sp { background: rgba(0, 0, 0, 0.4); }
  /* About This Site: the platinum window, in graphite */
  .about-win { background: #2b2a24; border-color: #000; box-shadow: 0 0 0 1px #4a493f inset, 0 18px 40px rgba(0, 0, 0, 0.6); color: #ecebe6; }
  .about-win__bar { border-bottom-color: #000; background: repeating-linear-gradient(#3a3931 0 1px, #24231e 1px 2px); }
  .about-win__bar span { background: #2b2a24; }
  .about-win__x { border-color: #000; background: #3a3931; box-shadow: 1px 1px 0 #15140f inset; }
  .about-win__body { background: #1f1e19; border-color: #4a493f; }
  .about-win__logo { color: #ecebe6; }
  .about-win__ver { color: #a9a79e; }
  .about-win dl { border-top-color: #4a493f; }
  .about-win__more { color: #ecebe6; background: linear-gradient(#3f3e35, #2a2923); border-color: #000; box-shadow: 0 1px 0 #55544a inset; }
  .about-win__more:active { background: #1f1e19; }
  .about-win :focus-visible { outline-color: #ecebe6; }
  /* Spotlight */
  .sp { background: rgba(30, 29, 24, 0.94); border-color: rgba(236, 235, 230, 0.14); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); }
  .sp__list, .sp__none { border-top-color: rgba(236, 235, 230, 0.12); }
  /* the stopped watch on the 404 page: the case needs an edge against the dark page */
  .nfw__w svg > circle:first-child { fill: #4a493f; }
  .nfw__crown { background: #4a493f; }
  .nfw__crown span { background-image: repeating-linear-gradient(0deg, #8a887e 0 3px, #34332b 3px 7px); }
  /* canal houses and the footer watch on the darker footer */
  .canal { --house: #1b1a15; --pane: #0b0a08; }
  .win:not(.on):hover { background: #2f2e27; }
  .ride:hover { color: var(--accent); }
}
