/* reyco.me 2026: "CTO who still ships". Light, print-like, one face (Satoshi). */
:root {
  --page: #F2F3F0;
  --ink: #111413;
  --ink-soft: #4A514E;
  --panel: #E4E7E2;
  --band: #0F2B25;
  --band-2: #16382F;
  --band-ink: #F2F3F0;
  --band-soft: #B7C6BF;
  --blue: #1F6BFF;
  --blue-press: #1758D6;

  /* Five sizes */
  --t-display: clamp(3.5rem, 10.5vw, 10.5rem);
  --t-h2: clamp(2.25rem, 5.2vw, 4.75rem);
  --t-h3: clamp(1.375rem, 1.9vw, 1.875rem); /* lead/item titles */
  --t-body: clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem);
  --t-small: 0.875rem;

  --margin: clamp(1rem, 3.4vw, 3rem);
  --gap-section: clamp(6rem, 12vw, 11rem);
  --max: 90rem;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--t-body);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  scrollbar-color: #9AA39F var(--page);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--band); color: var(--band-ink); }

a { color: inherit; text-decoration-line: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: .22em; transition: text-decoration-color .2s, color .2s; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.band :focus-visible { outline-color: var(--band-ink); }

.skip { position: absolute; left: var(--margin); top: -4rem; z-index: 100; background: var(--ink); color: var(--page); padding: .75rem 1rem; text-decoration: none; font-weight: 500; }
.skip:focus { top: .75rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--margin); }

/* ---------- Top bar ---------- */
.bar { position: relative; z-index: 50; background: var(--page); }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.25rem; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font-weight: 700; font-size: var(--t-body); letter-spacing: -0.01em; }
.brand img { width: 2.25rem; height: 2.25rem; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.bar-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.bar-nav a { text-decoration: none; font-weight: 500; font-size: var(--t-body); padding: .5rem 0; position: relative; }
.bar-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.bar-nav a:hover::after, .bar-nav a[aria-current]::after { transform: scaleX(1); }
.bar-nav .bar-mail { background: var(--ink); color: var(--page); padding: .55rem 1rem; border-radius: 999px; }
.bar-nav .bar-mail::after { display: none; }
.bar-nav .bar-mail:hover { background: var(--blue); color: #fff; }
.menu-btn { display: none; }

@media (max-width: 760px) {
  .js .menu-btn { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .25rem; background: none; border: 0; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
  .js .bar-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: flex-start; gap: 0; padding: .5rem var(--margin) 1.5rem; background: var(--page); box-shadow: 0 18px 30px -18px rgba(17, 20, 19, .25); } /* taste-skill-ignore: open menu is a real overlay */
  .js .bar.open .bar-nav { display: flex; }
  .js .bar-nav a { font-size: var(--t-h3); padding: .6rem 0; }
  .js .bar-nav .bar-mail { margin-top: .75rem; font-size: var(--t-body); padding: .75rem 1.25rem; }
  .bar-in { flex-wrap: wrap; }
  html:not(.js) .bar-nav { flex-basis: 100%; flex-wrap: wrap; gap: .25rem 1.25rem; padding-bottom: 1rem; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.25rem; padding: .8rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: var(--t-body); text-decoration: none; transition: background-color .2s, color .2s, transform .15s var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-press); }
.btn-ink { background: var(--ink); color: var(--page); }
.btn-ink:hover { background: var(--blue); color: #fff; }
.btn-light { background: var(--band-ink); color: var(--band); }
.btn-light:hover { background: #fff; }
.arrow { display: inline-flex; transition: transform .25s var(--ease-out); }
.ico { width: .85em; height: .85em; flex: none; }
.post .go .ico { width: 1em; height: 1em; }
a:hover .arrow { transform: translateX(4px); }
a:hover .arrow.down { transform: translateY(4px); }
a:hover .arrow.out { transform: translate(3px, -3px); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.hero-name { font-size: var(--t-display); line-height: .88; letter-spacing: -0.04em; font-weight: 700; margin-left: -0.04em; }
.hero-name .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-name .line > span { display: block; }
.hero-lede { font-size: var(--t-h3); line-height: 1.22; letter-spacing: -0.02em; font-weight: 500; max-width: 24ch; line-height: 1.3; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: clamp(1.75rem, 3vw, 2.75rem); }
.text-link { font-weight: 700; text-decoration: none; display: inline-flex; gap: .5rem; align-items: center; min-height: 44px; }
.text-link span:first-child { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: .22em; }
.hero-photo { position: relative; background: var(--panel); aspect-ratio: 4 / 5; overflow: hidden; width: clamp(240px, 24vw, 340px); justify-self: end; border-radius: 20px; }
.hero-photo img { width: 100%; height: 138%; object-fit: cover; object-position: 52% 0; }
.hero-photo figcaption { position: absolute; left: 0; bottom: 0; background: var(--page); padding: .5rem .9rem .3rem 0; font-size: var(--t-small); color: var(--ink-soft); }

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 1 / 1; order: -1; width: 112px; justify-self: start; border-radius: 14px; }
  .hero-photo img { height: 150%; object-position: 50% 0; }
  .hero-name { font-size: clamp(3.5rem, 19vw, 6rem); }
}

/* ---------- Section heads ---------- */
.sec { margin-top: var(--gap-section); }
.sec-h { font-size: var(--t-h2); line-height: .98; letter-spacing: -0.04em; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.sec-head p { max-width: 34ch; color: var(--ink-soft); }
.small { font-size: var(--t-small); line-height: 1.5; }
.soft { color: var(--ink-soft); }

/* ---------- Shipped ---------- */
.ship { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.ship + .ship { margin-top: clamp(5rem, 9vw, 8rem); }
.ship-media { display: block; background: var(--panel); overflow: hidden; text-decoration: none; }
.ship-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.ship-media:hover img { transform: scale(1.025); }
.ship-name { font-size: var(--t-h2); line-height: .98; letter-spacing: -0.04em; }
.ship-name a { text-decoration: none; }
.ship-line { font-size: var(--t-h3); line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; max-width: 30ch; }
.ship-by { color: var(--ink-soft); margin-top: .75rem; }
.ship-links { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; margin-top: 1.25rem; }
.ship-note { margin-top: 1rem; color: var(--ink-soft); max-width: 44ch; }

/* Markus: wide screenshot, text in two columns under it */
.ship--wide .ship-media { aspect-ratio: 16 / 10; }
.ship--wide .ship-text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem clamp(1.5rem, 4vw, 4rem); align-items: start; }

/* Games: phone shot + scene, text beside */
.ship--game { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: clamp(1.5rem, 4vw, 4rem); }
.ship--game.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.ship--game.flip .ship-pair { order: 2; }
.ship-pair { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(.75rem, 1.5vw, 1.25rem); align-items: end; }
.ship-pair .ship-media:first-child { aspect-ratio: 1 / 1; }
.ship-pair .ship-media.phone { aspect-ratio: 9 / 19.5; border-radius: 1.6rem; }
.ship-pair .scene-dark { background: #1d1a17; }

/* Overlay Deck: text left, screenshot right */
.ship--side { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.ship--side .ship-media { aspect-ratio: 16 / 10; }

/* Agent Console: panel field with screenshot */
.ship--panel { background: var(--panel); padding: clamp(1.25rem, 3vw, 3rem); grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.ship--panel .ship-media { aspect-ratio: 16 / 10; background: var(--page); }
.ship--concept { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.ship--concept .ship-media { background: transparent; margin: 0; }
.ship--concept .ship-media img { height: auto; transform: none; mix-blend-mode: darken; }
.concept-tag { display: inline-block; margin-bottom: 1rem; padding: .3rem .7rem; border: 1px solid var(--ink); border-radius: 999px; font-weight: 600; letter-spacing: .02em; }

@media (max-width: 860px) {
  .ship--wide .ship-text, .ship--game, .ship--game.flip, .ship--panel, .ship--side, .ship--concept { grid-template-columns: 1fr; }
  .ship--side .ship-media { order: -1; }
  .ship--game.flip .ship-pair { order: 0; }
}

/* ---------- Career band ---------- */
.band { background: var(--band); color: var(--band-ink); margin-top: var(--gap-section); padding-block: clamp(4.5rem, 9vw, 8rem); }
.band a { text-decoration-color: var(--band-soft); }
.band a:hover { text-decoration-color: var(--band-ink); }
.band .soft { color: var(--band-soft); }
.band-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem clamp(1.5rem, 4vw, 4rem); align-items: end; }
.band-head .sec-h { font-size: var(--t-display); line-height: .9; letter-spacing: -0.04em; }
.figures { display: flex; flex-wrap: wrap; gap: 1.75rem clamp(2rem, 4vw, 3.5rem); }
.figure dt { font-size: var(--t-h2); line-height: 1; letter-spacing: -0.04em; font-weight: 700; font-variant-numeric: tabular-nums; }
.figure dd { margin-top: .5rem; color: var(--band-soft); font-size: var(--t-small); }
.figures-note { margin-top: 1.25rem; color: var(--band-soft); }

.scrubber { margin-top: clamp(3.5rem, 7vw, 6rem); }
.scrub-control { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.scrub-stage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem clamp(1.5rem, 4vw, 4rem); align-items: start; min-height: 22rem; }
.scrub-year { font-size: var(--t-display); line-height: .85; letter-spacing: -0.04em; font-weight: 700; font-variant-numeric: tabular-nums; }
.scrub-year small { display: block; font-size: var(--t-small); letter-spacing: 0; font-weight: 500; color: var(--band-soft); margin-top: 1rem; line-height: 1.5; }
.scrub-roles { display: grid; gap: 2rem; }
.scrub-roles .role { display: block; list-style: none; animation: role-in .45s var(--ease-out) both; }
.scrub-roles .role + .role { padding-top: .5rem; }
.scrub-shot { margin-top: 1.5rem; max-width: 34rem; }
.scrub-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--band-2); }
.scrub-shot figcaption { margin-top: .6rem; }
@keyframes role-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.role-when { font-size: var(--t-small); color: var(--band-soft); font-variant-numeric: tabular-nums; font-weight: 500; }
.role-title { font-weight: 700; font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.015em; margin-top: .3rem; }
.role-co { font-weight: 500; color: var(--band-soft); }
.role-meta { font-size: var(--t-small); color: var(--band-soft); margin-top: .25rem; }
.role-desc { margin-top: .6rem; max-width: 56ch; }

.scrub-label { display: block; font-weight: 500; margin-bottom: .75rem; }
.scrub-track { position: relative; height: 3rem; }
.scrub-rail { position: absolute; left: 0; right: 0; top: 50%; height: .5rem; margin-top: -.25rem; background: var(--band-2); border-radius: 999px; }
.scrub-fill { position: absolute; left: 0; top: 50%; height: .5rem; margin-top: -.25rem; width: calc(1.125rem + (100% - 2.25rem) * var(--f, 1)); background: var(--band-soft); border-radius: 999px; }
.scrub-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: grab; touch-action: pan-y; }
.scrub-input:active { cursor: grabbing; }
.scrub-input:focus-visible { outline: 3px solid var(--band-ink); outline-offset: 6px; }
.scrub-input::-webkit-slider-runnable-track { height: 3rem; background: transparent; }
.scrub-input::-moz-range-track { height: 3rem; background: transparent; }
.scrub-input::-webkit-slider-thumb { -webkit-appearance: none; box-sizing: border-box; width: 2.25rem; height: 2.25rem; margin-top: .375rem; border-radius: 50%; background: var(--band-ink); border: .35rem solid var(--band); outline: 2px solid var(--band-ink); transition: transform .15s var(--ease-out); }
.scrub-input::-moz-range-thumb { box-sizing: border-box; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--band-ink); border: .35rem solid var(--band); outline: 2px solid var(--band-ink); }
.scrub-input:active::-webkit-slider-thumb { transform: scale(1.12); }
.scrub-ticks { position: relative; height: 2.75rem; margin-top: .25rem; }
.scrub-ticks button { position: absolute; top: 0; left: calc(1.125rem + (100% - 2.25rem) * var(--f, 0)); transform: translateX(-50%); background: none; border: 0; padding: .5rem .25rem; min-height: 44px; color: var(--band-soft); font: inherit; font-size: var(--t-small); font-weight: 500; font-variant-numeric: tabular-nums; cursor: pointer; transition: color .2s; }
.scrub-ticks button:hover, .scrub-ticks button.on { color: var(--band-ink); }
.scrub-ticks button:first-child { left: 0; transform: none; padding-left: 0; }
.scrub-ticks button:last-child { left: auto; right: 0; transform: none; padding-right: 0; }
.scrub-hint { margin-top: .5rem; }

/* Plain timeline (the no-JS view, and the full list behind the slider) */
.timeline-wrap { margin-top: clamp(3rem, 6vw, 5rem); }
.timeline-wrap summary { cursor: pointer; font-weight: 700; display: inline-flex; min-height: 44px; align-items: center; gap: .5rem; }
.timeline-wrap summary::marker { content: ""; }
.timeline-wrap summary::-webkit-details-marker { display: none; }
.timeline-wrap summary::before { content: "+"; display: inline-block; width: 1em; font-weight: 700; }
.timeline-wrap[open] summary::before { content: "\2212"; }
.timeline-wrap:not([open]) > :not(summary) { display: none; }
.timeline { display: grid; gap: 2.25rem; margin-top: 2rem; }
.timeline .role { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: .25rem clamp(1.5rem, 4vw, 4rem); }
.timeline .role-when { font-size: var(--t-body); padding-top: .3rem; }
.timeline .role-title { margin-top: 0; }
.edu { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: .25rem clamp(1.5rem, 4vw, 4rem); margin-top: 2.25rem; padding-top: 2.25rem; }
.edu .role-when { font-size: var(--t-body); }
.edu-title { font-size: var(--t-h3); line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }
/* Scrubber view: only shown when JS has built it */
.scrubber[hidden] { display: none; }
.no-scrub-note { margin-top: 1rem; }

@media (max-width: 860px) {
  .band-head, .scrub-stage { grid-template-columns: 1fr; }
  .scrub-stage { min-height: 0; }
  .timeline .role, .edu { grid-template-columns: 1fr; }
  .timeline .role-when, .edu .role-when { font-size: var(--t-small); padding-top: 0; }
  .scrub-ticks .minor { display: none; }
}

/* ---------- What I lead ---------- */
.lead-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem clamp(1.5rem, 4vw, 4rem); }
.leads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem clamp(1.5rem, 3vw, 3rem); }
.leads h3 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.015em; }
.leads p { margin-top: .4rem; color: var(--ink-soft); max-width: 36ch; }
@media (max-width: 860px) { .lead-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .leads { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ---------- Writing ---------- */
.posts { display: grid; }
.post a { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 9fr) auto; gap: .25rem clamp(1.25rem, 3vw, 3rem); align-items: baseline; padding: 1.4rem clamp(.75rem, 1.5vw, 1.25rem); margin-inline: calc(-1 * clamp(.75rem, 1.5vw, 1.25rem)); text-decoration: none; transition: background-color .25s; }
.post a:hover { background: var(--panel); }
.post:nth-child(odd) a { background: rgba(228, 231, 226, .45); }
.post:nth-child(odd) a:hover { background: var(--panel); }
.post time { color: var(--ink-soft); font-size: var(--t-small); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.post h3 { font-size: var(--t-h3); line-height: 1.22; letter-spacing: -0.015em; font-weight: 700; }
.post p { margin-top: .35rem; color: var(--ink-soft); }
.post .go { font-size: var(--t-h3); transition: transform .25s var(--ease-out); }
.post a:hover .go { transform: translate(3px, -3px); }
@media (max-width: 640px) {
  .post a { grid-template-columns: minmax(0, 1fr) auto; }
  .post time { grid-column: 1 / -1; }
  .post .go { grid-column: 2; grid-row: 2; }
}

/* ---------- Open source ---------- */
.oss { background: var(--panel); padding: clamp(1.5rem, 4vw, 3.5rem); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem clamp(1.5rem, 4vw, 4rem); }

.oss-intro p { margin-top: 1rem; color: var(--ink-soft); }
.oss-intro .text-link { margin-top: 1rem; }
.pkgs { display: grid; gap: 1.6rem; }
.pkg { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1.5rem; }
.pkg h3 { font-size: var(--t-body); font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.pkg h3 a { text-decoration-color: transparent; }
.pkg h3 a:hover { text-decoration-color: var(--blue); }
.pkg p { color: var(--ink-soft); grid-column: 1; }
.pkg-meta { grid-column: 2; grid-row: 1 / span 2; text-align: right; color: var(--ink-soft); font-size: var(--t-small); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pkg-meta time { display: block; }
.pkg-links { font-size: var(--t-small); display: flex; gap: 1.25rem; }
@media (max-width: 860px) { .oss { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .pkg { grid-template-columns: 1fr; } .pkg-meta { grid-column: 1; grid-row: auto; text-align: left; } .pkg-meta time { display: inline; margin-left: .75rem; } }

/* ---------- Contact ---------- */
.contact { margin-top: var(--gap-section); }
.contact-h { font-size: var(--t-display); line-height: .88; letter-spacing: -0.04em; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem clamp(1.5rem, 4vw, 4rem); align-items: end; }
.contact-why { font-size: var(--t-h3); line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; max-width: 26ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; margin-top: 2rem; }
.btn-big { min-height: 3.75rem; padding: 1rem 2rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { margin-top: var(--gap-section); background: var(--ink); color: var(--page); }
.footer a { text-decoration-color: rgba(242, 243, 240, .45); }
.footer a:hover { text-decoration-color: var(--page); }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding-block: 2rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.footer nav a { display: inline-flex; min-height: 44px; align-items: center; }
.footer-word { font-size: clamp(3rem, 15.2vw, 14.5rem); line-height: .8; letter-spacing: -0.045em; font-weight: 700; padding-top: clamp(3rem, 6vw, 5rem); white-space: nowrap; margin-left: -0.04em; }
.footer :focus-visible { outline-color: var(--page); }

/* ---------- Project pages ---------- */
.back { display: inline-flex; min-height: 44px; align-items: center; gap: .5rem; margin-top: clamp(1.5rem, 3vw, 2.5rem); font-weight: 500; text-decoration: none; }
.back:hover .arrow { transform: translateX(-4px); }
.p-hero { margin-top: clamp(1.5rem, 4vw, 3rem); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem clamp(1.5rem, 4vw, 4rem); align-items: end; }
.p-title { font-size: var(--t-display); line-height: .88; letter-spacing: -0.04em; margin-left: -0.04em; }
.p-status { display: inline-block; margin-bottom: 1rem; font-weight: 500; color: var(--ink-soft); }
.p-lead { font-size: var(--t-h3); line-height: 1.32; letter-spacing: -0.015em; font-weight: 500; }
.p-hero .btn { margin-top: 1.75rem; }
.facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; margin-top: clamp(2.5rem, 5vw, 4rem); background: var(--panel); padding: 1.5rem clamp(1.25rem, 3vw, 2rem); }
.facts dt { font-size: var(--t-small); color: var(--ink-soft); font-weight: 500; }
.facts dd { font-weight: 700; margin-top: .2rem; overflow-wrap: anywhere; }
.p-shot { margin-top: clamp(2.5rem, 5vw, 4rem); }
.p-shot img { width: 100%; background: var(--panel); }
.p-shot figcaption { margin-top: .75rem; color: var(--ink-soft); font-size: var(--t-small); max-width: 70ch; }
.p-sec { margin-top: clamp(4.5rem, 9vw, 8rem); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1.5rem clamp(1.5rem, 4vw, 4rem); }
.p-sec h2 { font-size: var(--t-h2); line-height: 1; letter-spacing: -0.04em; }
.p-body > * + * { margin-top: 1.1rem; }
.p-body p, .p-body li { max-width: 64ch; }
.p-body ul { display: grid; gap: .75rem; }
.p-body ul li { padding-left: 1.25rem; position: relative; }
.p-body ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: .45rem; height: .45rem; background: var(--ink); border-radius: 50%; }
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 3rem); margin-top: 2rem !important; }
.feats h3 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.015em; }
.feats p { margin-top: .4rem; color: var(--ink-soft); }
.faq { display: grid; gap: 1.75rem; }
.faq h3 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.015em; }
.faq p { margin-top: .4rem; color: var(--ink-soft); }
.p-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: 2rem; }
.p-shots figure img { width: 100%; background: var(--panel); }
.p-shots figcaption { margin-top: .6rem; color: var(--ink-soft); font-size: var(--t-small); }
.p-cta { margin-top: clamp(4rem, 8vw, 7rem); background: var(--panel); padding: clamp(1.5rem, 4vw, 3.5rem); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; }
.p-cta p { font-size: var(--t-h3); line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; }
.p-next { display: inline-flex; flex-direction: column; text-decoration: none; }
.p-next .soft { font-size: var(--t-small); font-weight: 500; }
.p-next strong { font-size: var(--t-h2); line-height: 1; letter-spacing: -0.04em; }
.p-next:hover strong { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 3px; text-underline-offset: .12em; }
@media (max-width: 860px) {
  .p-hero, .p-sec { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feats, .p-shots { grid-template-columns: 1fr; }
}

/* Sasshi: phone frames for the concept screens and clips */
.ph { container-type: inline-size; }
.ph-f { background: var(--ink); padding: 3.2cqi; border-radius: 15cqi; }
.ph-f img, .ph-f video { display: block; width: 100%; height: auto; aspect-ratio: 1179 / 2556; object-fit: cover; border-radius: 12cqi; background: var(--page); }
.sx-icon { display: block; width: clamp(3.5rem, 6vw, 4.75rem); height: auto; aspect-ratio: 1; border-radius: 22.5%; margin-bottom: 1.25rem; }
.ph figcaption { margin-top: .75rem; color: var(--ink-soft); font-size: var(--t-small); }
.sx-stage { margin-top: clamp(2.5rem, 5vw, 4rem); background: var(--panel); padding: clamp(1.75rem, 5vw, 5rem) clamp(1rem, 4vw, 4rem); display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 21rem) minmax(0, 17rem); justify-content: center; align-items: center; gap: clamp(.75rem, 3.5vw, 3.5rem); }
.sx-stage .ph:first-child { margin-top: 18%; }
.sx-stage .ph:last-child { margin-bottom: 18%; }
.sx-stage-cap { margin-top: .75rem; color: var(--ink-soft); font-size: var(--t-small); max-width: 70ch; }
.sx-screens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); margin-top: 2rem; }
.sx-screens .ph:nth-child(even) { margin-top: clamp(1.5rem, 4vw, 4rem); }
.sx-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 4vw, 4rem); margin-top: 2rem; }
.sx-item { max-width: 21rem; }
.sx-item h3 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.015em; margin-top: 1.25rem; }
.sx-item p { margin-top: .4rem; color: var(--ink-soft); }
.sx-item .ph + p { margin-top: .75rem; font-size: var(--t-small); }
.sx-island img { display: block; width: 100%; height: auto; background: var(--panel); }
@media (max-width: 860px) {
  .sx-stage { padding: 1.5rem .75rem; gap: .6rem; }
  .sx-screens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-row { grid-template-columns: 1fr; gap: 2.5rem; }
  .sx-item { max-width: none; display: grid; grid-template-columns: minmax(0, 9fr) minmax(0, 11fr); grid-template-rows: auto 1fr; gap: .4rem 1.25rem; align-items: start; }
  .sx-item .ph, .sx-item .sx-island { grid-column: 1; grid-row: 1 / span 2; }
  .sx-item h3, .sx-item .ph + p { margin-top: 0; }
  .sx-item > :not(.ph):not(.sx-island) { grid-column: 2; }
  .sx-item .ph + p { grid-row: 1 / span 2; align-self: center; font-size: var(--t-body); }
}

/* ---------- 404 ---------- */
.nf { min-height: calc(100svh - 4.25rem); display: grid; align-content: center; padding-block: 4rem; }
.nf h1 { font-size: var(--t-display); line-height: .88; letter-spacing: -0.04em; margin-left: -0.04em; }
.nf p { font-size: var(--t-h3); font-weight: 500; margin-top: 1.5rem; max-width: 26ch; }
.nf .btn { margin-top: 2rem; justify-self: start; }

/* ---------- Motion (only when allowed; content always visible without JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-name .line > span { transform: translateY(105%); transition: transform .9s var(--ease-out); }
  .js .hero-name .line:nth-child(2) > span { transition-delay: .11s; }
  .js.loaded .hero-name .line > span { transform: none; }
  .js .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--d, 0) * 75ms); }
  .js .rv.in { opacity: 1; transform: none; }
  .js .hero-photo img { transform: scale(1.06); transition: transform 1.6s var(--ease-out); }
  .js.loaded .hero-photo img { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  /* Keep colour and state feedback; drop travel, zoom and scroll animation. */
  html { scroll-behavior: auto; }
  .scrub-roles .role { animation: none; }
  .ship-media:hover img, a:hover .arrow, a:hover .arrow.down, a:hover .arrow.out, .back:hover .arrow, .post a:hover .go, .btn:active, .scrub-input:active::-webkit-slider-thumb { transform: none; }
  .bar-nav a::after { transition: none; }
}

/* ---------- Early-access form (Sasshi page and guides) ---------- */
.ea-form { display: none; }
.js .ea-form { display: block; }
.js .ea-nojs { display: none; }
.ea-fields { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 1rem; align-items: end; }
.ea-field label { display: block; font-size: var(--t-small); font-weight: 500; margin-bottom: .4rem; }
.ea-field input, .ea-field select { width: 100%; min-height: 3.25rem; padding: .7rem 1.1rem; border: 1px solid #7A827E; border-radius: 999px; background: var(--page); color: var(--ink); font: inherit; transition: border-color .2s; }
.ea-field select { -webkit-appearance: none; appearance: none; padding-right: 2.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23111413' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.1rem center; background-size: 1rem; }
.ea-field input::placeholder { color: #646C68; }
.ea-field input:hover, .ea-field select:hover { border-color: var(--ink); }
.ea-field input:focus-visible, .ea-field select:focus-visible { border-color: var(--ink); outline-offset: 2px; border-radius: 999px; }
.ea-field input[aria-invalid="true"] { border-color: #B3261E; }
.ea-btn { border: 0; cursor: pointer; font-family: inherit; }
.ea-btn[disabled] { opacity: .6; cursor: progress; }
.ea-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ea-msg { min-height: 1.5em; margin-top: .75rem !important; font-weight: 500; }
.ea-msg.err { color: #B3261E; }
.ea-done { font-size: var(--t-h3); line-height: 1.3; font-weight: 700; letter-spacing: -0.015em; }
@media (max-width: 760px) { .ea-fields { grid-template-columns: 1fr; } .ea-btn { width: 100%; } }

/* ---------- Guides ---------- */
.glist { display: grid; }
.g-hero { margin-top: clamp(1.5rem, 4vw, 3rem); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1.5rem clamp(1.5rem, 4vw, 4rem); }
.g-hero > * { grid-column: 2; }
.g-title { font-size: var(--t-h2); line-height: 1; letter-spacing: -0.04em; max-width: 20ch; }
.g-index .g-title { font-size: var(--t-display); line-height: .88; margin-left: -0.04em; }
.g-index .g-hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
.g-index .g-hero > * { grid-column: auto; }
.g-lead { font-size: var(--t-h3); line-height: 1.32; letter-spacing: -0.015em; font-weight: 500; max-width: 40ch; }
.g-meta { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; color: var(--ink-soft); font-size: var(--t-small); font-weight: 500; }
.g-article .g-hero .g-meta { grid-column: 1; grid-row: 1 / span 2; align-self: end; flex-direction: column; gap: .35rem; padding-bottom: .4rem; }
.g-all { margin-top: clamp(4rem, 8vw, 7rem); }
.g-all .sec-h { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.g-index .p-cta p { max-width: 34ch; }
.g-meta strong { color: var(--ink); }
.g-layout { margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem clamp(1.5rem, 4vw, 4rem); align-items: start; }
.g-toc { position: sticky; top: 1.5rem; background: var(--panel); padding: 1.25rem 1.5rem 1.4rem; max-width: 22rem; }
.g-toc summary { font-weight: 700; cursor: pointer; list-style: none; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.g-toc summary::-webkit-details-marker { display: none; }
.g-toc summary::after { content: "+"; font-weight: 700; }
.g-toc[open] summary::after { content: "\2212"; }
.g-toc ol { display: grid; gap: .1rem; margin-top: .25rem; }
.g-toc a { display: block; padding: .3rem 0; font-size: var(--t-small); font-weight: 500; text-decoration-color: transparent; }
.g-toc a:hover { text-decoration-color: var(--blue); }
.g-body { min-width: 0; }
.g-body > * + * { margin-top: 1.1rem; }
.g-body p, .g-body li { max-width: 66ch; }
.g-body h2 { font-size: clamp(1.75rem, 2.8vw, 2.625rem); line-height: 1.05; letter-spacing: -0.035em; margin-top: clamp(3rem, 6vw, 4.5rem); scroll-margin-top: 1.5rem; max-width: 24ch; }
.g-body > h2:first-child { margin-top: 0; }
.g-body h3 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.015em; margin-top: 2.25rem; }
.g-body h2 + *, .g-body h3 + * { margin-top: .9rem; }
.g-body ul, .g-body ol { display: grid; gap: .6rem; }
.g-body ul li { padding-left: 1.25rem; position: relative; }
.g-body ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: .45rem; height: .45rem; background: var(--ink); border-radius: 50%; }
.g-body ol { counter-reset: g; }
.g-body ol li { counter-increment: g; padding-left: 2rem; position: relative; }
.g-body ol li::before { content: counter(g); position: absolute; left: 0; top: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.g-body pre { background: var(--panel); padding: 1.25rem 1.5rem; overflow-x: auto; font-size: var(--t-small); line-height: 1.6; max-width: 66ch; }
.g-body code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; }
.g-body table { border-collapse: collapse; width: 100%; max-width: 66ch; font-size: var(--t-small); display: block; overflow-x: auto; }
.g-body th, .g-body td { text-align: left; padding: .6rem .9rem .6rem 0; border-bottom: 1px solid #C9CEC9; vertical-align: top; }
.g-body .faq { margin-top: 1.5rem; }
.g-sources ul { gap: .9rem; }
.g-sources li { overflow-wrap: anywhere; }
.g-sources .small { display: block; color: var(--ink-soft); }
.g-cta { background: var(--panel); padding: clamp(1.25rem, 3vw, 2.25rem); margin-top: clamp(2.5rem, 5vw, 3.5rem) !important; max-width: 52rem; }
.g-cta + * { margin-top: clamp(2.5rem, 5vw, 3.5rem) !important; }
.g-cta > * + * { margin-top: 1rem; }
.g-cta-h { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.015em; font-weight: 700; }
.g-cta .ea-fields { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.g-cta .ea-btn { grid-column: 1 / -1; justify-self: start; }
.g-cta--end { padding: clamp(1.5rem, 4vw, 3rem); }
.g-cta--end h2 { margin-top: 0; }
.g-related { margin-top: var(--gap-section); }
.g-note { margin-top: 1rem; max-width: 48ch; }
@media (max-width: 860px) {
  .g-hero, .g-layout, .g-index .g-hero { grid-template-columns: 1fr; }
  .g-hero > * { grid-column: 1; }
  .g-toc { position: static; max-width: none; padding: .5rem 1.25rem; }
  .g-toc[open] { padding-bottom: 1rem; }
  .g-article .g-hero .g-meta { grid-column: 1; grid-row: auto; flex-direction: row; padding-bottom: 0; }
}
@media (max-width: 760px) { .g-cta .ea-fields { grid-template-columns: 1fr; } .g-cta .ea-btn { justify-self: stretch; } }

/* Homepage Q&A */
.faq { display: grid; }
.faq-item { padding: 1.6rem 0; border-top: 1px solid rgba(17, 20, 19, .16); }
.faq-item:last-child { border-bottom: 1px solid rgba(17, 20, 19, .16); }
.faq-item h3 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.015em; }
.faq-item p { margin-top: .5rem; color: var(--ink-soft); max-width: 60ch; }
