/* oklitz.net — bento layout (2026-10). Used by every page of the site,
   including the app pages digstory/, wordpile/ and nianu/. */

/* Schibsted Grotesk (text) and Martian Mono (data, tags) are self-hosted (no Google Fonts request). Latin subsets, SIL OFL, see fonts/OFL-*.txt */
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("fonts/martian-mono.woff2") format("woff2"); font-weight: 100 800; font-stretch: 75% 112.5%; font-style: normal; font-display: swap; }

:root {
  --bg: #EEF0F3;
  --tile: #FFFFFF;
  --ink: #0D1015;
  --muted: #5E6673;
  --line: #E1E4E9;
  --accent: #0D1015;
  --ok: #16A05A;
  --err: #D23B3B;
  --cell: #E7E9ED;
  --font-sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 26px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08090C; --tile: #121419; --ink: #F1F3F6; --muted: #959DAA; --line: #1F232A;
    --accent: #F1F3F6; --ok: #3DD68C; --err: #FF7A7A; --cell: #1B1F26; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08090C; --tile: #121419; --ink: #F1F3F6; --muted: #959DAA; --line: #1F232A;
  --accent: #F1F3F6; --ok: #3DD68C; --err: #FF7A7A; --cell: #1B1F26; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { max-width: 100%; }
.wrap { max-width: 1240px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 760px) { .wrap { padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); } }
.stat-label, .toc-label { font-size: 13px; color: var(--muted); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; padding: 10px 14px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14px; }
.skip:focus { top: 10px; }

/* header: who I am · what I made (real app icons, centred) · language and mail.
   Not sticky, no glass: the page is short and the header is content, not chrome.
   Kept lean on purpose (Oliver, 25.11.2026): no address, no Contact/Agents links; the mail icon is the way to reach me. */
.top { padding-top: env(safe-area-inset-top, 0px); }
.top-in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "who dock end"; align-items: center; gap: 24px; min-height: 84px; }
.who { grid-area: who; justify-self: start; font-size: 23px; font-weight: 650; letter-spacing: -.025em; white-space: nowrap; }
.dock { grid-area: dock; display: flex; justify-content: center; gap: 7px; }
.dock a { position: relative; display: block; flex: 0 1 32px; min-width: 0; border-radius: 22%; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.dock img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 22%; display: block; box-shadow: 0 0 0 1px var(--line); }
.dock a:hover { transform: translateY(-3px); }
.dock span { position: absolute; z-index: 5; top: calc(100% + 8px); left: 50%; transform: translate(-50%, -3px); padding: 3px 8px; border-radius: 6px; background: var(--ink); color: var(--bg); font: 500 11px/1.5 var(--font-mono); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.dock a:hover span, .dock a:focus-visible span { opacity: 1; transform: translate(-50%, 0); }
.end { grid-area: end; justify-self: end; display: flex; align-items: center; gap: 16px; }
.links { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.links a:hover, .links a[aria-current="page"] { color: var(--ink); }
.mail-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); transition: background .25s, border-color .25s; }
.mail-btn svg { width: 19px; height: 19px; }
@media (hover: hover) { .mail-btn:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); border-color: color-mix(in srgb, var(--ink) 25%, transparent); } }
@media (max-width: 860px) {
  .top-in { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who end" "dock dock"; gap: 14px 12px; min-height: 0; padding-block: 18px 14px; }
  .dock { gap: 8px; } .dock a { flex-basis: 38px; }
}
@media (max-width: 420px) { .who { font-size: 22px; } .links { font-size: 14px; } .dock { gap: 6px; } }

/* tiles */
.tile {
  position: relative; overflow: hidden; isolation: isolate; min-width: 0;
  background: var(--tile); border-radius: var(--r); border: 1px solid var(--line);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
a.tile:hover, .tile.hov:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(13,16,21,.08); }
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--tint, var(--accent)) 16%, transparent), transparent 62%);
}
.tile:hover::before { opacity: 1; }
.tile h2, .tile h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.tile p { margin: 0; color: var(--muted); max-width: 44ch; }
.row { display: flex; align-items: center; gap: 12px; }
.row img { width: 42px; height: 42px; border-radius: 10px; flex: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font: 500 11.5px var(--font-mono); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.tag.live { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); }
.go { position: absolute; top: 20px; right: 20px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--tile); font-size: 14px; transition: transform .3s, background .3s, color .3s; }
a.tile:hover .go, a.go:hover { transform: rotate(-45deg); background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--tile); color: var(--ink); font: 500 14px var(--font-sans); cursor: pointer; transition: transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn.dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn:disabled { opacity: .55; cursor: progress; transform: none; }

/* ───────── home grid ───────── */
.grid {
  display: grid; gap: 12px; padding-block: 8px 40px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas:
    "intro intro intro intro intro intro intro yaydo yaydo yaydo yaydo yaydo"
    "intro intro intro intro intro intro intro yaydo yaydo yaydo yaydo yaydo"
    "nianu nianu nianu nianu tide tide tide tide rare rare rare rare"
    "now now now now more more more more more more more more"
    "agents agents agents agents agents agents agents agents mail mail mail mail"
    "act act act act act act act act act act act act";
}
@media (max-width: 1040px) {
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-areas:
    "intro intro intro intro intro intro"
    "yaydo yaydo yaydo nianu nianu nianu"
    "tide tide tide rare rare rare"
    "now now now now now now"
    "more more more more more more"
    "agents agents agents agents agents agents"
    "mail mail mail mail mail mail"
    "act act act act act act"; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "yaydo" "nianu" "tide" "rare" "now" "more" "agents" "act" "mail"; }
}

/* intro */
.intro { grid-area: intro; padding: clamp(26px, 4vw, 44px); justify-content: space-between; gap: 28px; min-height: 420px; }
/* the old site's joke, kept: a claim with a footnote */
.intro .copy-block { display: grid; gap: 14px; }
.intro h1 { margin: 0; font-weight: 700; letter-spacing: -.03em; line-height: .95; font-size: clamp(46px, 7vw, 92px); text-wrap: balance; animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.intro h1 .ast { font-weight: 400; font-size: .6em; vertical-align: .55em; margin-left: .04em; letter-spacing: 0; }
.intro .footnote { margin: 0 0 12px; display: flex; gap: .3em; font-size: clamp(17px, 1.8vw, 22px); letter-spacing: -.01em; color: var(--muted); animation: rise .9s .1s cubic-bezier(.2,.7,.2,1) both; }
.intro .footnote span { color: var(--ink); }
@keyframes rise { from { transform: translateY(12px); } to { transform: none; } }
.intro .lede { font-size: clamp(16px, 1.5vw, 18px); max-width: 48ch; }
.intro .lede b { color: var(--ink); font-weight: 500; }

/* app feature tiles */
.tide { grid-area: tide; --tint: #fff; background: #2F7F9A; border-color: transparent; color: #fff; padding-bottom: 0; min-height: 420px; }
.tide p { color: rgba(255,255,255,.88); }
.tide .tag { color: rgba(255,255,255,.88); border-color: rgba(255,255,255,.32); }
.tide .go { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }
.tide:hover .shot img { transform: translateY(-6px); }
.word { grid-area: word; --tint: #fff; background: #2D44E0; border-color: transparent; color: #fff; padding-bottom: 0; }
.mimic { grid-area: mimic; --tint: #fff; background: #0E6B65; border-color: transparent; color: #fff; padding-bottom: 0; }
.word p, .mimic p { color: rgba(255,255,255,.88); }
.word .tag, .mimic .tag { color: rgba(255,255,255,.88); border-color: rgba(255,255,255,.32); }
.word .tag.live, .mimic .tag.live { color: #fff; border-color: rgba(255,255,255,.75); }
.word .go, .mimic .go { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }
.shot { margin-top: auto; display: flex; justify-content: center; padding-top: 14px; }
.shot img { width: min(74%, 270px); height: auto; border-radius: 22px 22px 0 0; display: block; box-shadow: 0 -10px 40px rgba(0,0,0,.18); transition: transform .5s cubic-bezier(.2,.7,.2,1); transform: translateY(6px); }
.word:hover .shot img, .mimic:hover .shot img { transform: translateY(-6px); }

/* Rarely: white tile with orange accents (Design M) */
.rare { grid-area: rare; --tint: #FF4D2E; background: #FFFFFF; border-color: rgba(17,17,17,.08); color: #111111; padding-bottom: 0; min-height: 420px; }
.rare p { color: rgba(17,17,17,.72); }
.rare .tag { color: rgba(17,17,17,.75); border-color: rgba(17,17,17,.18); }
.rare .tag.live { color: #111; border-color: rgba(17,17,17,.6); }
.rare .go { background: rgba(255,77,46,.1); border-color: rgba(255,77,46,.45); color: #FF4D2E; }
.rare:hover .shot img { transform: translateY(-6px); }
@media (prefers-color-scheme: dark) { .rare { border-color: transparent; } }
/* Yaydo: "himmel" world from the app (Farbwelten.json): pale blue sky, two big circles, ink text, blue accent */
.yaydo { grid-area: yaydo; --tint: #3B5BFF; color: #1B2452; border-color: transparent; padding-bottom: 0; min-height: 420px;
  background: radial-gradient(circle at 96% 4%, #C4DCFF 0 150px, transparent 151px), radial-gradient(circle at 2% 98%, #FFE4BF 0 120px, transparent 121px), linear-gradient(180deg, #DCEBFF, #F7FAFF); }
.yaydo p { color: rgba(27,36,82,.78); }
.yaydo .tag { color: rgba(27,36,82,.8); border-color: rgba(27,36,82,.22); background: rgba(255,255,255,.55); }
.yaydo .tag.soon { color: #1B2452; border-color: rgba(255,138,61,.7); }
.yaydo .go { background: #fff; border-color: rgba(59,91,255,.4); color: #3B5BFF; }
.yaydo:hover .shot img { transform: translateY(-6px); }
/* Nianu: sand from the app's own paper tone, ink and accent from its logo */
.nianu { grid-area: nianu; --tint: #A65A43; background: #EADCCB; border-color: transparent; color: #3A2A22; padding-bottom: 0; min-height: 420px; }
.nianu p { color: rgba(58,42,34,.8); }
.nianu .tag { color: rgba(58,42,34,.8); border-color: rgba(58,42,34,.24); }
.nianu .tag.live { color: #3A2A22; border-color: rgba(58,42,34,.6); }
.nianu .go { background: rgba(166,90,67,.12); border-color: rgba(166,90,67,.45); color: #A65A43; }
.nianu:hover .shot img { transform: translateY(-6px); }

/* Kegelmanager: brand gradient "Signatur Deep" (#047857 → #075985, from the app's DESIGN.md), keeps white text at AA */
.kegel {
  grid-area: kegel; --tint: #fff; color: #fff; border-color: transparent;
  background: radial-gradient(380px circle at 80% 50%, rgba(56,189,248,.28), transparent 70%), linear-gradient(135deg, #047857 0%, #075985 62%);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 32px; padding: clamp(24px, 3vw, 34px);
}
.kegel-main { display: flex; flex-direction: column; gap: 10px; align-self: stretch; }
.kegel h2 { font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -.035em; line-height: 1; }
.kegel p { color: rgba(255,255,255,.88); }
.kegel .tag { color: rgba(255,255,255,.88); border-color: rgba(255,255,255,.32); }
.kegel .tag.live { color: #fff; border-color: rgba(255,255,255,.75); }
.kegel .go { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }
.kegel-mark { position: relative; margin-right: clamp(8px, 3vw, 40px); }
.kegel-mark::before { content: ""; position: absolute; inset: 14% 4% -4%; border-radius: 50%; background: rgba(2,30,40,.35); filter: blur(28px); z-index: -1; }
.kegel-mark img { display: block; width: clamp(170px, 18vw, 236px); height: auto; transform: rotate(-4deg); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.kegel:hover .kegel-mark img { transform: rotate(0) translateY(-6px) scale(1.03); }

/* Digstory: the app's terracotta, darkening downwards like the dig (white text stays AA on the lightest stop).
   The screenshot rises from the bottom edge like on the Wordpile and MIMIC tiles. */
.dig {
  grid-area: dig; --tint: #fff; color: #fff; border-color: transparent;
  background: linear-gradient(180deg, #B24E18 0%, #9A4115 55%, #7A3410 100%);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 clamp(20px, 3vw, 36px); padding: clamp(24px, 3vw, 34px) clamp(24px, 3vw, 34px) 0;
}
.dig-main { display: flex; flex-direction: column; gap: 10px; padding-bottom: clamp(24px, 3vw, 34px); }
.dig p { color: #fff; }
.dig .tag { color: #fff; border-color: rgba(255,255,255,.4); }
.dig .tag.live { border-color: rgba(255,255,255,.75); }
.dig .go { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }
.dig-shot { position: relative; width: clamp(150px, 15vw, 200px); align-self: stretch; min-height: 240px; }
.dig-shot img { position: absolute; left: 0; top: 46px; width: 100%; height: auto; border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.22); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.dig:hover .dig-shot img { transform: translateY(-8px); }

/* stats */
/* numbers live in the activity tile, above the heatmap they summarise */
.act-stats { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 32px; padding-bottom: 6px; }
.act-total { display: grid; gap: 4px; }
.act-total span:last-child { color: var(--muted); font-size: 14px; }
.big { font-size: clamp(40px, 4.4vw, 56px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.act-kv { margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.act-kv div { display: grid; gap: 2px; }
.act-kv dt { color: var(--muted); font-size: 13px; }
.act-kv dd { margin: 0; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* AI agents: navy + gold like the agents page, three example approvals on the right */
.agents-tile { grid-area: agents; --tint: #F0C24E; background: #121836; border-color: transparent; color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; min-height: clamp(300px, 30vw, 400px); }
.agents-tile .body { display: grid; gap: 10px; align-content: start; }
.agents-tile p { color: rgba(255,255,255,.8); }
.agents-tile .tag { color: rgba(255,255,255,.88); border-color: rgba(255,255,255,.3); }
.agents-tile .go { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; }
.agents-tile .to-agents { justify-self: start; margin-top: 6px; display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; background: #F0C24E; color: #121836; font: 600 13.5px var(--font-sans); transition: transform .2s; }
.agents-tile .to-agents:hover { transform: translateY(-1px); }
.agents-tile .to-agents:focus-visible { outline-color: #F0C24E; }
.asks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.asks li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "b i" "s i"; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); transition: transform .3s; }
.asks b { grid-area: b; font: 500 11.5px var(--font-mono); color: #F0C24E; }
.asks span { grid-area: s; font-size: 14.5px; color: #fff; }
.asks i { grid-area: i; font: 600 12.5px var(--font-sans); font-style: normal; padding: 6px 12px; border-radius: 999px; background: #F0C24E; color: #121836; }
.agents-tile:hover .asks li:nth-child(2) { transform: translateX(-6px); }
@media (max-width: 1040px) { .agents-tile { grid-template-columns: minmax(0, 1fr); align-items: start; } .agents-tile .body { padding-right: 44px; } }

/* contact tile */
.mail { grid-area: mail; background: var(--ink); color: var(--bg); border-color: var(--ink); justify-content: space-between; gap: 22px; }
.mail h2, .mail h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.035em; line-height: 1.02; }
.mail h3 em, .mail h2 em { font-style: normal; color: color-mix(in srgb, var(--bg) 70%, var(--ink)); }
.mail p { color: color-mix(in srgb, var(--bg) 75%, var(--ink)); }
.mail .addr-block { display: grid; gap: 10px; }
.mail code { font: 500 17px var(--font-sans); user-select: all; word-break: break-all; }
.mail .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.copy { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--bg) 30%, transparent); background: transparent; color: var(--bg); font: 500 13px var(--font-sans); cursor: pointer; width: max-content; }
.copy:hover { background: color-mix(in srgb, var(--bg) 10%, transparent); }


/* activity */
.act { grid-area: act; gap: 14px; position: relative; }
.act-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; }
.legend { display: flex; align-items: center; gap: 4px; font: 11px var(--font-mono); color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.heat-scroll { overflow-x: auto; margin-top: auto; scrollbar-width: thin; }
.months, .heat { display: grid; grid-auto-flow: column; grid-auto-columns: 10px; gap: 2px; width: max-content; }
.months { font: 10.5px var(--font-mono); color: var(--muted); height: 15px; }
.months span { white-space: nowrap; }
.heat { grid-template-rows: repeat(7, 10px); }
.heat i, .legend i { background: var(--cell); border-radius: 2.5px; }
.heat i[data-l="1"], .legend i[data-l="1"] { background: color-mix(in srgb, var(--accent) 28%, var(--cell)); }
.heat i[data-l="2"], .legend i[data-l="2"] { background: color-mix(in srgb, var(--accent) 52%, var(--cell)); }
.heat i[data-l="3"], .legend i[data-l="3"] { background: color-mix(in srgb, var(--accent) 76%, var(--cell)); }
.heat i[data-l="4"], .legend i[data-l="4"] { background: var(--accent); }
.heat i.future { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.heat i.out { visibility: hidden; }
/* full-width tile from tablet up: the year fills the width instead of scrolling */
@media (min-width: 760px) {
  .heat-scroll { overflow: visible; }
  .months, .heat { width: 100%; grid-auto-columns: minmax(0, 1fr); gap: 3px; }
  .heat { grid-template-rows: repeat(7, auto); }
  .heat i { aspect-ratio: 1; border-radius: 3px; }
}

/* ───────── sub pages (contact, impressum, privacy) ───────── */
.sub { display: grid; gap: 12px; padding-block: 8px 40px; }
.head { padding: clamp(26px, 4vw, 44px); gap: 18px; }
.head h1 { margin: 0; font-weight: 600; letter-spacing: -.045em; line-height: .98; font-size: clamp(38px, 5.4vw, 68px); text-wrap: balance; }
.head h1 em { display: block; font-style: normal; color: var(--muted); }
.head .lede { font-size: clamp(16px, 1.5vw, 18px); max-width: 60ch; }
.head .meta { font: 500 12px var(--font-mono); color: var(--muted); }

/* contact */
.services { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1040px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services { grid-template-columns: minmax(0, 1fr); } }
.services .tile { gap: 6px; }
.services h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.contact-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.form-tile { padding: clamp(22px, 3vw, 32px); gap: 18px; }
.form-tile h2, .sub .mail h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.sub .mail { grid-area: auto; gap: 14px; }
.contact-form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.form-group { display: grid; gap: 6px; min-width: 0; }
.form-label { font-size: 13.5px; font-weight: 500; display: flex; justify-content: space-between; gap: 8px; }
.form-label small { font: 500 11px var(--font-mono); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.form-input { width: 100%; min-width: 0; font: 400 16px/1.4 var(--font-sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px; transition: border-color .2s, box-shadow .2s; }
.form-input::placeholder { color: var(--muted); }
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.form-select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.form-textarea { resize: vertical; min-height: 140px; }
.form-submit { width: max-content; }
.form-feedback { border-radius: 16px; padding: 16px 18px; border: 1px solid var(--line); }
.form-feedback p { margin: 0; max-width: none; }
.form-feedback .feedback-title { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.form-success { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); background: color-mix(in srgb, var(--ok) 8%, var(--tile)); }
.form-error { border-color: color-mix(in srgb, var(--err) 45%, var(--line)); background: color-mix(in srgb, var(--err) 8%, var(--tile)); }
.form-feedback a { color: var(--ink); border-bottom: 1px solid currentColor; }

/* legal */
.legal { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) 260px; align-items: start; }
@media (max-width: 900px) { .legal { grid-template-columns: minmax(0, 1fr); } .legal .toc { display: none; } }
.legal-content { padding: clamp(22px, 4vw, 44px); gap: 0; }
.legal-content h2 { margin: 34px 0 10px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h2 .sec { font: 500 12px var(--font-mono); color: var(--muted); }
.legal-content p { margin: 0 0 12px; max-width: 54ch; color: color-mix(in srgb, var(--ink) 82%, var(--muted)); overflow-wrap: anywhere; }
.legal-content a { color: var(--ink); border-bottom: 1px solid var(--line); }
.legal-content a:hover { border-color: var(--ink); }
.toc { position: sticky; top: 74px; padding: 20px; gap: 10px; }
.toc ol, .toc-mobile ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a, .toc-mobile a { display: flex; gap: 10px; padding: 6px 10px; border-radius: 10px; color: var(--muted); font-size: 14px; }
.toc a:hover, .toc-mobile a:hover { color: var(--ink); background: var(--bg); }
.toc a.active { color: var(--ink); background: var(--bg); }
.toc .n, .toc-mobile .n { font: 500 12px/1.9 var(--font-mono); min-width: 2.6em; }
.toc-mobile { display: none; padding: 14px 18px; }
@media (max-width: 900px) { .toc-mobile { display: block; } }
.toc-mobile summary { cursor: pointer; font-size: 14px; font-weight: 500; color: var(--muted); }
.toc-mobile ol { margin-top: 10px; }

/* ───────── app pages (digstory/, wordpile/, walld/, blackout/, nianu/) ─────────
   Each app brings its own colour as --app (+ --app-ink for text on it). The hero is that colour,
   like the app's tile on the home page, so the click from tile to page feels like the same object. */
.app { display: grid; gap: 12px; padding-block: 8px 40px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.app > * { grid-column: span 12; }
.app .mail { grid-area: auto; grid-column: span 12; justify-content: flex-start; align-self: start; }
.app-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 4px; }
.app-tabs a { height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 500; }
.app-tabs a:hover { color: var(--ink); }
.app-tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.app-tabs .back { margin-left: auto; border-color: transparent; }

.app-hero { background: var(--app); color: var(--app-ink); border-color: transparent; padding: clamp(26px, 4vw, 44px); gap: 22px; justify-content: space-between; --tint: #fff; }
.app-hero .id { display: flex; align-items: center; gap: 16px; }
.app-hero .icon { width: 72px; height: 72px; border-radius: 17px; flex: none; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.app-hero h1 { margin: 0; font-weight: 700; font-size: clamp(44px, 6vw, 80px); line-height: .95; letter-spacing: -.03em; }
.app-hero .pitch { margin: 0; font-size: clamp(19px, 2.1vw, 26px); line-height: 1.25; letter-spacing: -.015em; max-width: 32ch; color: inherit; }
.app-hero p { color: var(--app-soft); max-width: 46ch; }
.app-hero .tag { color: var(--app-ink); border-color: var(--app-line); }
.app-hero .tag.live { color: var(--app-ink); border-color: var(--app-ink); }
.app-hero .acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 20px; border-radius: 14px; background: var(--app-key); color: var(--app-key-ink); font-weight: 600; font-size: 15px; transition: transform .2s; }
.store:hover { transform: translateY(-1px); }
.store small { display: block; font-size: 11px; font-weight: 500; opacity: .8; line-height: 1; }
.store span { display: grid; gap: 3px; line-height: 1.05; }
.app-hero .soon { font-size: 15px; font-weight: 500; }
.app-hero.small { gap: 12px; }
.app-hero.small h1 { font-size: clamp(36px, 4.6vw, 60px); }

.app-visual { padding: 0; align-items: center; justify-content: flex-end; background: color-mix(in srgb, var(--app) 10%, var(--tile)); overflow: hidden; min-height: 320px; }
.app-visual .shots { display: flex; gap: 14px; justify-content: center; align-items: flex-end; padding: 28px 24px 0; width: 100%; }
.app-visual .shots img { width: min(46%, 250px); height: auto; border-radius: 22px 22px 0 0; display: block; box-shadow: 0 -8px 30px rgba(0,0,0,.14); }
.app-visual .shots img:nth-child(2) { transform: translateY(18px); }

.rules ol { margin: 6px 0 0; padding: 0; list-style: none; counter-reset: r; display: grid; gap: 12px; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 2em 1fr; gap: 10px; color: color-mix(in srgb, var(--ink) 82%, var(--muted)); max-width: 52ch; }
.rules li::before { content: counter(r); font: 500 13px/1.9 var(--font-mono); color: var(--muted); }
.feats dl { margin: 6px 0 0; display: grid; gap: 0; }
.feats dl > div { display: grid; grid-template-columns: minmax(0, 10em) minmax(0, 1fr); gap: 4px 18px; padding: 12px 0; border-top: 1px solid var(--line); }
.feats dt { font-weight: 600; }
.feats dd { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .feats dl > div { grid-template-columns: minmax(0, 1fr); } }

.faq { gap: 0; }
.faq h2 { margin-bottom: 8px; }
.faq details { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 20px/1 var(--font-sans); color: var(--muted); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; max-width: 60ch; }
.faq details p + p { margin-top: -6px; }

/* "More from oklitz": the other apps, beside the questions */
.others { gap: 6px; align-self: start; }
.others ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; }
.others li { border-top: 1px solid var(--line); }
.others a { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 12px; align-items: center; padding: 11px 0; }
.others img { grid-row: span 2; width: 36px; height: 36px; border-radius: 9px; }
.others b { font-weight: 600; }
.others span { color: var(--muted); font-size: 14px; }
.inshort dl { margin: 6px 0 0; display: grid; gap: 10px 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.inshort dl > div { padding-top: 10px; border-top: 1px solid var(--line); }
.inshort dt { font-weight: 600; }
.inshort dd { margin: 2px 0 0; color: var(--muted); }
@media (max-width: 640px) { .inshort dl { grid-template-columns: minmax(0, 1fr); } }

@media (min-width: 900px) {
  .app .app-hero { grid-column: span 7; min-height: 460px; }
  .app .app-visual { grid-column: span 5; }
  .app .rules, .app .feats { grid-column: span 6; }
  .app .app-hero.small { grid-column: span 12; min-height: 0; }
  .app .faq { grid-column: span 8; }
  .app .side { grid-column: span 4; }
}

/* ───────── agents page (agents/) ─────────
   Same building blocks as the app pages, in Crewfloor navy + gold. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tag.pilot { color: var(--app-key); border-color: color-mix(in srgb, var(--app-key) 60%, transparent); display: inline-flex; align-items: center; gap: 6px; }
.tag.pilot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.app-hero .more { font-size: 15px; font-weight: 500; color: var(--app-soft); padding: 0 6px; }
.app-hero .more:hover { color: var(--app-ink); }


.pkgs { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .pkgs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pkgs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pkgs .tile { --tint: #F0C24E; gap: 8px; }
.pkgs .n { font: 500 11.5px var(--font-mono); font-stretch: 87.5%; color: var(--muted); }
.pkgs .tags { margin-top: auto; padding-top: 10px; }


.agents .mail { grid-column: span 12; align-self: stretch; justify-content: flex-start; }
.agents .mail .addr-block { margin-top: auto; }
@media (min-width: 900px) {
  .agents .inshort { grid-column: span 6; }
}

/* hero phone: approvals slide in, a tap approves */
.phone-tile { padding: clamp(20px, 3vw, 28px); justify-content: center; align-items: center; gap: 14px; }
.phone { position: relative; width: min(100%, 290px); height: 420px; border-radius: 40px; padding: 18px 12px; background: linear-gradient(180deg, #1B2350, #121836 60%); border: 7px solid #0B0F24; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent), 0 20px 50px rgba(13,16,21,.22); overflow: hidden; }
.ph-top { display: grid; justify-items: center; color: #fff; padding: 14px 0 16px; }
.ph-time { font-size: 46px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.ph-date { font-size: 12.5px; color: rgba(255,255,255,.75); margin-top: 4px; }
.ph-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ph-feed li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,.92); color: #0D1015; transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .4s, background .3s; }
.ph-feed li.in { transform: translateY(-40px) scale(.96); opacity: 0; }
.pf-app { display: flex; align-items: center; gap: 6px; font: 500 10.5px var(--font-mono); font-stretch: 87.5%; color: #5E6673; }
.pf-app i { width: 16px; height: 16px; border-radius: 5px; background: #121836; color: #F0C24E; display: grid; place-items: center; }
.pf-app svg { width: 11px; height: 11px; }
.ph-feed b { font-size: 13.5px; letter-spacing: -.01em; }
.pf-text { font-size: 12.5px; color: #5E6673; }
.pf-acts { display: flex; gap: 6px; margin-top: 5px; }
.pf-acts span { font: 600 11.5px var(--font-sans); padding: 5px 11px; border-radius: 999px; border: 1px solid #E1E4E9; }
.pf-acts .pf-ok { background: #0D1015; color: #fff; border-color: #0D1015; transition: background .25s, color .25s; }
.ph-feed li.ok .pf-ok { background: #16A05A; border-color: #16A05A; }
.ph-feed li.ok .pf-no { visibility: hidden; }
.ph-cap { margin: 0; text-align: center; font-size: 13.5px; }
.ph-cap span { color: var(--muted); }
.tap { position: absolute; z-index: 3; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: rgba(240,194,78,.55); box-shadow: 0 0 0 2px rgba(255,255,255,.9); opacity: 0; pointer-events: none; }
.tap.go { animation: tap .7s ease-out; }
@keyframes tap { 0% { opacity: 0; transform: scale(1.6); } 30% { opacity: 1; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.3); } }

/* the flow: In → Agent → You → Out, a token travels along */
.flow { padding: clamp(22px, 3vw, 34px); gap: 18px; }
.flow-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.flow-head h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.03em; }
.flow-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.flow-tabs button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 500 14px var(--font-sans); cursor: pointer; }
.flow-tabs button:hover { color: var(--ink); }
.flow-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.stage { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; gap: 12px; min-height: 340px; padding: 28px 12px; border-radius: 20px; background: color-mix(in srgb, #121836 5%, var(--bg)); }
.stage::before { content: ""; position: absolute; left: 12%; right: 12%; top: 50%; border-top: 2px dashed color-mix(in srgb, var(--muted) 40%, transparent); }
.st { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; transition: transform .4s; }
.st.on { transform: translateY(-4px); }
.st-ic { width: 88px; height: 88px; border-radius: 26px; display: grid; place-items: center; background: var(--tile); border: 1px solid var(--line); color: var(--ink); transition: background .3s, color .3s, box-shadow .3s; }
.st-ic svg, .tk-ic svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pf-app svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.st.on .st-ic { box-shadow: 0 0 0 4px color-mix(in srgb, #F0C24E 45%, transparent); }
.st-dest.got .st-ic { background: #16A05A; border-color: #16A05A; color: #fff; animation: pop .5s cubic-bezier(.3,.6,.3,1.5); }
@keyframes pop { 0% { transform: scale(.8); } 100% { transform: scale(1); } }
.st-l { font-weight: 600; font-size: 15px; }
.st small { font: 500 11.5px var(--font-mono); font-stretch: 87.5%; color: var(--muted); }
.agent-box { position: relative; overflow: hidden; width: min(100%, 240px); padding: 16px 16px 14px; border-radius: 20px; background: #121836; color: #fff; text-align: left; min-height: 150px; transition: box-shadow .3s; }
.st-agent.on .agent-box { box-shadow: 0 0 0 4px color-mix(in srgb, #F0C24E 45%, transparent); }
.agent-tag { display: inline-flex; align-items: center; gap: 6px; font: 500 11px var(--font-mono); font-stretch: 87.5%; color: #F0C24E; }
.agent-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #F0C24E; }
.agent-box ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; font-size: 13.5px; }
.agent-box li { opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s; }
.agent-box li.in { opacity: 1; transform: none; }
.agent-box li.in::before { content: "✓ "; color: #F0C24E; }
.scan { position: absolute; left: 0; right: 0; height: 36px; top: -36px; background: linear-gradient(180deg, transparent, rgba(240,194,78,.28), transparent); }
.agent-box.scanning .scan { animation: scan 1.1s linear infinite; }
@keyframes scan { to { top: 100%; } }
.mini-phone { position: relative; width: 158px; height: 250px; border-radius: 28px; border: 6px solid #0B0F24; background: linear-gradient(180deg, #1B2350, #121836); padding: 40px 8px 0; overflow: hidden; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent), 0 14px 30px rgba(13,16,21,.18); }
.mp-notif { display: grid; gap: 1px; padding: 8px 9px; border-radius: 12px; background: rgba(255,255,255,.94); color: #0D1015; text-align: left; transform: translateY(-70px); opacity: 0; transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.mp-notif.in { transform: none; opacity: 1; }
.mp-app { font: 500 10px var(--font-mono); font-stretch: 87.5%; color: #5E6673; }
.mp-notif b { font-size: 12.5px; line-height: 1.25; }
.mp-text { font-size: 11px; color: #5E6673; line-height: 1.3; }
.mp-btn { justify-self: start; margin-top: 5px; font: 600 11px var(--font-sans); padding: 4px 11px; border-radius: 999px; background: #0D1015; color: #fff; transition: background .25s; }
.mp-notif.ok .mp-btn { background: #16A05A; }
.mini-phone .tap { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.token { position: absolute; left: 0; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 14px; background: var(--tile); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(13,16,21,.16); color: var(--ink); opacity: 0; pointer-events: none; transition: transform .9s cubic-bezier(.5,0,.2,1), opacity .4s; }
.tk-ic { width: 34px; height: 34px; border-radius: 10px; background: #F0C24E; color: #121836; display: grid; place-items: center; }
.tk-ic svg { width: 22px; height: 22px; }
.tk-l { display: grid; font-size: 12.5px; line-height: 1.25; color: var(--muted); white-space: nowrap; }
.tk-l b { color: var(--ink); font-size: 13.5px; }
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.flow-steps li { display: grid; gap: 2px; padding-top: 10px; border-top: 2px solid var(--line); transition: border-color .3s; }
.flow-steps li.on { border-color: #F0C24E; }
.flow-steps span { font: 500 11.5px var(--font-mono); font-stretch: 87.5%; color: var(--muted); }
.flow-steps p { margin: 0; color: var(--ink); font-size: 14px; max-width: none; }
@media (max-width: 760px) {
  .stage { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 22px 12px; }
  .stage::before { left: 50%; right: auto; top: 8%; bottom: 8%; border-top: 0; border-left: 2px dashed color-mix(in srgb, var(--muted) 40%, transparent); }
  .flow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .phone { height: 400px; } }


/* footer */
footer { color: var(--muted); font-size: 13.5px; padding-block: 8px 40px; padding-bottom: max(40px, env(safe-area-inset-bottom, 0px)); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a:hover, footer a[aria-current="page"] { color: var(--ink); }

@media (max-width: 640px) {
  .intro, .word { min-height: 0; }
  .word .shot img, .mimic .shot img { width: min(70%, 240px); }
  .kegel { grid-template-columns: minmax(0, 1fr); }
  .kegel-mark { order: -1; margin: 0; }
  .kegel-mark img { width: 120px; }
  .dig { grid-template-columns: minmax(0, 1fr); }
  .agents-tile { min-height: 0; }
  .dig-shot { width: min(64%, 230px); justify-self: center; min-height: 0; height: 230px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  a.tile:hover, .tile.hov:hover, .btn:hover { transform: none; }
  .word:hover .shot img, .mimic:hover .shot img { transform: translateY(6px); }
  .kegel:hover .kegel-mark img { transform: rotate(-4deg); }
  .dig:hover .dig-shot img { transform: none; }
  .agents-tile:hover .asks li:nth-child(2) { transform: none; }
}

/* Martian Mono is wide; run it a step narrower wherever it appears (after the `font` shorthands, which reset font-stretch) */
.dock span, .tag, .throw-out, .legend, .months, .head .meta, .form-label small, .legal-content h2 .sec, .toc .n, .toc-mobile .n { font-stretch: 87.5%; letter-spacing: -.01em; }

/* ───────── home: motion (2026-11-08) ─────────
   The intro's joke made playable: the app icons drop into the tile and can be grabbed and thrown ("tools nobody needs").
   Icons fly above the text but under the buttons and always fall to the floor below them. Tiles further down rise in once,
   the phone shots lean toward the pointer, the push map fills in week by week. Reduced motion: icons already lie there. */
.intro > .copy-block { position: relative; z-index: 1; }
.intro > .btns { position: relative; z-index: 3; }
.toys { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.toys img { position: absolute; left: 0; top: 0; border-radius: 23%; pointer-events: auto; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; will-change: transform; box-shadow: 0 6px 16px rgba(13, 16, 21, .16); }
.toys img.held { cursor: grabbing; box-shadow: 0 16px 30px rgba(13, 16, 21, .24); }
.intro.toy-floor { padding-bottom: calc(clamp(26px, 4vw, 44px) + 64px + var(--toy-extra, 0px)); }

.tile.rise-wait { opacity: 0; transform: translateY(34px); }
.tile.rise-wait.risen { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rd, 0ms); }

.shot { perspective: 900px; }
.shot img { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(6px); }
.word:hover .shot img, .mimic:hover .shot img, .rare:hover .shot img, .nianu:hover .shot img { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); }

.heat.pre i { opacity: 0; transform: scale(.4); }
.heat.wave i { animation: cell .45s cubic-bezier(.2,.8,.3,1.2) both; animation-delay: calc(var(--c, 0) * 16ms); }
@keyframes cell { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .tile.rise-wait { opacity: 1; transform: none; }
  .heat.pre i { opacity: 1; transform: none; } .heat.wave i { animation: none; }
  .shot img { transform: translateY(6px); }
}

/* intro: who's behind it, and three honest numbers (Oliver, 25.11.2026, after marclou.com) */
.intro .me { display: flex; align-items: center; gap: 14px; }
.intro .face { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--tile), 0 0 0 3px var(--line); }
.intro .nums { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; color: var(--muted); }
.intro .nums b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* more apps: the older apps as a compact list, so the page keeps scaling as apps arrive.
   The newest four keep their own big tiles; when a new app comes, the oldest big tile moves in here. */
.more-apps { grid-area: more; padding: clamp(22px, 3vw, 30px); gap: 10px; }
.more-apps h2 { margin: 0 0 4px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.more-apps ul { list-style: none; margin: 0; padding: 0; display: grid; }
.more-apps li + li { border-top: 1px solid var(--line); }
.more-apps a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 8px; margin-inline: -8px; border-radius: 14px; transition: background .25s; }
.more-apps a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.more-apps img { width: 44px; height: 44px; border-radius: 22%; box-shadow: 0 0 0 1px var(--line); }
.more-apps .t { display: grid; gap: 2px; min-width: 0; }
.more-apps .t b { font-weight: 600; }
.more-apps .t span { font-size: 14px; color: var(--muted); line-height: 1.4; }
.more-apps .pf { font: 500 12px var(--font-mono); color: var(--muted); white-space: nowrap; }
.more-apps .ar { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font-size: 13px; transition: transform .25s; }
.more-apps a:hover .ar { transform: translateX(2px); }
@media (max-width: 480px) { .more-apps .pf { display: none; } }

/* now building: the app in the works and how far along it is (stage from /now.json) */
.now { grid-area: now; padding: clamp(22px, 3vw, 28px); gap: 16px; justify-content: space-between; }
.now-label { display: flex; align-items: center; gap: 8px; font: 500 12px var(--font-mono); color: var(--muted); }
.now-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: now-pulse 2.4s ease-out infinite; }
@keyframes now-pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.now-app { display: flex; align-items: center; gap: 14px; }
.now-app img { width: 48px; height: 48px; border-radius: 22%; box-shadow: 0 0 0 1px var(--line); }
.now-app h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.now-app p { margin: 2px 0 0; font-size: 14px; color: var(--muted); line-height: 1.4; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; font: 500 12px var(--font-sans); letter-spacing: -.01em; color: var(--muted); }
.stages li { display: grid; gap: 6px; min-width: 0; white-space: nowrap; }
.stages li::before { content: ""; height: 6px; border-radius: 3px; background: var(--line); }
.stages li.done::before { background: var(--ink); }
.stages li.cur { color: var(--ink); }
.stages li.cur::before { background: linear-gradient(90deg, var(--ok) 60%, var(--line) 60%); }
@media (prefers-reduced-motion: reduce) { .now-label i { animation: none; } }

/* heatmap: tap or hover a day to see its count */
.heat i[data-d] { cursor: pointer; }
.heat i.sel { outline: 1.5px solid var(--ink); outline-offset: 1px; }
.heat-tip { position: absolute; left: 0; top: 0; z-index: 6; padding: 8px 12px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 13.5px; font-weight: 500; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.heat-tip.on { opacity: 1; transform: none; }
