/* Robby Czesany: the Clean look, "engineer's notebook".
   Editorial print instead of pixels: warm paper, near-black ink, one sharp orange accent.
   Instrument Serif for headlines and numerals, Schibsted Grotesk for reading, Martian Mono for labels.
   Hairline rules and a strict grid instead of boxes. No rounded cards.
   Switched on by html[data-style="clean"]; the Retro look stays the default.
   Light and dark follow the Light/Dark button; the Cocoa/Pea button is hidden here. */

.colophon { display: none; }

html[data-style="clean"],
html[data-style="clean"][data-theme="light"] {
  color-scheme: light;
  --page: #f4f0e8; --spine: #ebe5d8; --label: #ebe5d8; --ink: #1a1612;
  --text: #1a1612; --soft: #3a332b; --quiet: #5c5347; --band: #dcd3c1; --dust: #b8ad99;
  --keycap: #ebe5d8; --select: #a8480a; --on-select: #ffffff; --accent: #a8480a;
  --accent-hi: #8a3a06; --alert: #b3321c; --chip: #1a1612; --chip-ink: #f4f0e8;
  --frame: #cdc4b3; --hi: transparent; --sh: transparent; --focus: #a8480a;
  --screen: #1a1612; --screen-text: #f1ebe0; --screen-dim: #b3a897; --screen-accent: #f08a3e;
  --line: #d3cab8; --line-2: #9c917d; --on-accent: #ffffff;
  --grain: 0.09; --grain-blend: multiply;
}
html[data-style="clean"][data-theme="dark"] {
  color-scheme: dark;
  --page: #14110e; --spine: #1d1915; --label: #1d1915; --ink: #f1ebe0;
  --text: #f1ebe0; --soft: #d6cdbd; --quiet: #a89d8b; --band: #332d26; --dust: #4a4339;
  --keycap: #1d1915; --select: #f08a3e; --on-select: #14110e; --accent: #f08a3e;
  --accent-hi: #f5a566; --alert: #f06a50; --chip: #f1ebe0; --chip-ink: #14110e;
  --frame: #38322a; --hi: transparent; --sh: transparent; --focus: #f08a3e;
  --screen: #0c0a08; --screen-text: #f1ebe0; --screen-dim: #a89d8b; --screen-accent: #f08a3e;
  --line: #342e27; --line-2: #6a6154; --on-accent: #14110e;
  --grain: 0.07; --grain-blend: screen;
}
html[data-style="clean"] {
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --read: var(--sans); --pixel: var(--mono);
  --fs-label: 11px; --fs-ui: 15px; --fs-body: 17px; --fs-lead: clamp(18px, 0.4vw + 16px, 20px);
  --page-w: 1180px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- base ---------- */
html[data-style="clean"] body {
  font: 400 var(--fs-body)/1.62 var(--sans); letter-spacing: 0; font-feature-settings: "kern", "liga";
  hanging-punctuation: first last;
}
/* paper grain, very light */
html[data-style="clean"] body::after {
  display: block; opacity: var(--grain); mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .08 0 0 0 0 .05 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px; background-color: transparent;
}
html[data-style="clean"] ::selection { background: var(--accent); color: var(--on-accent); }
html[data-style="clean"] :focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 0; }
html[data-style="clean"] .pxi, html[data-style="clean"] .hero-art, html[data-style="clean"] .key { display: none; }
html[data-style="clean"] .colophon { display: block; }
html[data-style="clean"] p, html[data-style="clean"] li { text-wrap: pretty; }
html[data-style="clean"] .pf { background: none; box-shadow: none; border-radius: 0; }
html[data-style="clean"] .skip { background: var(--accent); color: var(--on-accent); font: 500 12px/1 var(--mono); }

/* links: a hairline underline that the accent draws over on hover */
html[data-style="clean"] a {
  color: inherit; text-decoration: none; padding-bottom: 1px;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat, linear-gradient(var(--line-2), var(--line-2)) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.3s var(--ease), color 0.2s;
}
html[data-style="clean"] a:hover, html[data-style="clean"] a:focus-visible { color: var(--accent); background-size: 100% 1px, 100% 1px; }

/* ---------- header ---------- */
html[data-style="clean"] .top { margin-top: 0; padding: 0; }
html[data-style="clean"] .mast { padding: 16px 0 14px; gap: 0 36px; border-bottom: 1px solid var(--text); }
html[data-style="clean"] .sig { gap: 0; color: var(--text); background: none; }
html[data-style="clean"] .sig-name { font: 400 30px/1 var(--serif); letter-spacing: -0.01em; }
html[data-style="clean"] .sig:hover { color: var(--accent); background: none; }
html[data-style="clean"] nav { gap: 0 24px; }
html[data-style="clean"] nav .mi {
  padding: 10px 0; color: var(--soft); font: 500 11px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  background: linear-gradient(var(--accent), var(--accent)) 0 calc(100% - 6px) / 0 1px no-repeat;
}
html[data-style="clean"] nav .mi:hover, html[data-style="clean"] nav .mi:focus-visible { color: var(--text); background-size: 100% 1px; }
html[data-style="clean"] nav a[aria-current] { color: var(--accent); background-size: 100% 1px; }
html[data-style="clean"] .mi::before, html[data-style="clean"] .mi::after, html[data-style="clean"] .btn::before, html[data-style="clean"] .refs a::before,
html[data-style="clean"] .method li::before, html[data-style="clean"] .method li::after, html[data-style="clean"] .legal-links a::before,
html[data-style="clean"] summary::before, html[data-style="clean"] summary::after { display: none; }
html[data-style="clean"] .seg { gap: 0; padding: 0; background: none; box-shadow: none; border: 1px solid var(--line-2); }
html[data-style="clean"] .seg button, html[data-style="clean"] .ctl {
  --u: 0px; margin: 0; min-width: 44px; min-height: 40px; padding: 0 14px; border-radius: 0;
  background: none; color: var(--text); box-shadow: none; font: 500 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
html[data-style="clean"] .ctl { border: 1px solid var(--line-2); }
html[data-style="clean"] .seg button + button { border-left: 1px solid var(--line-2); }
html[data-style="clean"] .seg button:hover, html[data-style="clean"] .ctl:hover, html[data-style="clean"] .ctl[aria-expanded="true"] { background: var(--spine); }
html[data-style="clean"] .seg button[aria-pressed="true"] { background: var(--text); color: var(--page); box-shadow: none; }
html[data-style="clean"] .prefs-btn { font-size: 13px; letter-spacing: 0.04em; text-transform: none; }
html[data-style="clean"] .prefs-retro { display: none; }
html[data-style="clean"] .prefs-panel { border-top-color: var(--line-2); }
html[data-style="clean"] .prefs-row .seg { gap: 0; }
html[data-style="clean"] .prefs-lbl { color: var(--quiet); font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
html[data-style="clean"] nav .mi { padding: 14px 0; }
@media (min-width: 1024px) {
  html[data-style="clean"] nav .mi { padding: 10px 0; }
  html[data-style="clean"] .prefs-panel { background: var(--page); border: 1px solid var(--text); box-shadow: 0 18px 40px -22px rgb(0 0 0 / 0.55); }
}

/* ---------- hero ---------- */
html[data-style="clean"] .hero { display: block; padding-top: clamp(40px, 8vw, 112px); }
html[data-style="clean"] .idx {
  display: block; margin: 0 0 var(--s-5); padding: 0; background: none; clip-path: none; color: var(--accent);
  font: 500 11px/1 var(--mono); letter-spacing: 0.12em;
}
html[data-style="clean"] .idx::after { content: " \2014"; color: var(--quiet); }
html[data-style="clean"] #reel .idx::after { content: ""; }
html[data-style="clean"] .hero > .idx { margin-bottom: var(--s-8); }
html[data-style="clean"] .hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 clamp(32px, 6vw, 96px); }
html[data-style="clean"] .kicker {
  display: inline-flex; align-items: center; gap: 14px; margin: 0 0 var(--s-6); padding: 0; background: none; box-shadow: none;
  color: var(--quiet); font: 500 11px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
}
html[data-style="clean"] .kicker::before { content: ""; width: 36px; height: 1px; background: var(--accent); }
html[data-style="clean"] .hero h1 { font: 400 clamp(42px, 6.4vw, 92px)/0.98 var(--serif); letter-spacing: -0.025em; max-width: 19ch; text-wrap: balance; color: var(--text); }
html[data-style="clean"] .hero h1 em { display: inline; margin: 0; font-style: italic; color: var(--accent); }
html[data-style="clean"] .lede { max-width: 56ch; margin-top: var(--s-8); color: var(--soft); font-size: var(--fs-lead); line-height: 1.6; }
html[data-style="clean"] .status { margin-top: var(--s-5); color: var(--quiet); font: 400 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
html[data-style="clean"] .go { margin-top: var(--s-8); }
/* the plate: a real screenshot beside the text from 960 px, an editorial figure with a hairline frame */
@media (min-width: 960px) {
  html[data-style="clean"] .hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 clamp(40px, 6vw, 96px); align-items: start; }
  html[data-style="clean"] .hero > .idx { grid-column: 1 / -1; }
  html[data-style="clean"] .hero h1 { font-size: clamp(40px, 5vw, 72px); }
  html[data-style="clean"] .hero-plate { display: block; margin: 0; }
  html[data-style="clean"] .hero-plate img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 36% 50%; border: 1px solid var(--text); background: #000; }
  html[data-style="clean"] .hero-plate figcaption { margin-top: var(--s-3); color: var(--quiet); font: 400 10.5px/1.5 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
}

/* buttons */
html[data-style="clean"] .btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border: 0; border-radius: 0; background: var(--text); color: var(--page);
  font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; transition: background 0.25s var(--ease), color 0.25s;
}
html[data-style="clean"] .btn:hover, html[data-style="clean"] .btn:focus-visible { background: var(--accent); color: var(--on-accent); }
html[data-style="clean"] .reel-play { background: var(--accent); color: var(--on-accent); }
html[data-style="clean"] .reel-play:hover { background: var(--text); color: var(--page); }

/* ---------- the three numbers ---------- */
html[data-style="clean"] .ledger {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: clamp(48px, 7vw, 88px) 0 0; padding: 0;
  border-top: 1px solid var(--text); border-bottom: 1px solid var(--line-2);
}
html[data-style="clean"] .ledger > div { padding: var(--s-6) var(--s-6) var(--s-5); background: none; box-shadow: none; border-radius: 0; border-left: 1px solid var(--line-2); }
html[data-style="clean"] .ledger > div:first-child { border-left: 0; padding-left: 0; }
html[data-style="clean"] .ledger dt { font: 400 clamp(60px, 8.4vw, 124px)/0.92 var(--serif); letter-spacing: -0.03em; color: var(--text); font-variant-numeric: lining-nums tabular-nums; }
html[data-style="clean"] .ledger dt::after { content: ""; display: block; width: 36px; height: 2px; margin-top: var(--s-4); background: var(--accent); }
html[data-style="clean"] .ledger dd { margin-top: var(--s-3); color: var(--soft); font: 400 10.5px/1.5 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
html[data-style="clean"] .ledger { position: relative; margin-bottom: var(--s-8); }
html[data-style="clean"] .ledger-note { position: absolute; left: 0; right: auto; top: calc(100% + 14px); display: block; color: var(--quiet); font: 400 10px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- sections: numbered heads, asymmetric lead column ---------- */
html[data-style="clean"] section:not(.hero) {
  display: grid; grid-template-columns: minmax(0, 1fr); margin-top: clamp(64px, 9vw, 112px); padding-top: var(--s-5);
  border-top: 1px solid var(--text); scroll-margin-top: var(--s-4);
}
html[data-style="clean"] section:not(.hero) > div { min-width: 0; }
html[data-style="clean"] section:not(.hero) > .idx { margin-bottom: var(--s-6); }
html[data-style="clean"] .opening section:not(.hero) { margin-top: clamp(64px, 9vw, 112px); }
@media (min-width: 960px) {
  html[data-style="clean"] section:not(.hero) { grid-template-columns: 10.5rem minmax(0, 1fr); column-gap: 32px; }
  html[data-style="clean"] section:not(.hero) > .idx { margin-bottom: 0; padding-top: 14px; }
}
html[data-style="clean"] .sec-head { display: grid; gap: var(--s-3) var(--s-10); align-items: end; margin-bottom: var(--s-10); padding: 0; background: none; }
html[data-style="clean"] .sec-head p { max-width: 44ch; color: var(--soft); font-size: 17px; }
html[data-style="clean"] h2 { font: 400 clamp(38px, 4.6vw, 68px)/1 var(--serif); letter-spacing: -0.025em; }
html[data-style="clean"] h2::before { display: none; }
html[data-style="clean"] .contact h2 { font-size: clamp(60px, 9vw, 140px); line-height: 0.95; }
html[data-style="clean"] .contact h2::before { display: none; }

/* ---------- main projects: two equal features ---------- */
html[data-style="clean"] .feat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; align-items: stretch; }
html[data-style="clean"] .feat { margin: 0; padding: 0 clamp(20px, 3vw, 44px) 0 0; display: flex; flex-direction: column; gap: 0; }
html[data-style="clean"] .feat + .feat { padding: 0 0 0 clamp(20px, 3vw, 44px); border-left: 1px solid var(--line-2); }
html[data-style="clean"] .feat figure { margin: 0 0 var(--s-8); }
html[data-style="clean"] .feat img {
  width: calc(100% - 22px); margin: 11px; background: var(--screen); border: 0;
  box-shadow: 0 0 0 10px var(--spine), 0 0 0 11px var(--line-2);
}
html[data-style="clean"] .feat figcaption { margin-top: var(--s-6); color: var(--quiet); font: 400 10.5px/1.5 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
html[data-style="clean"] .feat-kicker { color: var(--accent); font: 500 11px/1.3 var(--mono); letter-spacing: 0.12em; }
html[data-style="clean"] .feat h3 { margin-top: var(--s-3); font: 400 clamp(52px, 6.4vw, 96px)/0.95 var(--serif); letter-spacing: -0.03em; }
html[data-style="clean"] .feat-pitch { max-width: 24ch; margin-top: var(--s-4); color: var(--text); font: italic 400 clamp(24px, 2.5vw, 34px)/1.18 var(--serif); letter-spacing: -0.01em; text-wrap: balance; }
html[data-style="clean"] .feat-facts { display: grid; gap: 0; margin-top: var(--s-8); }
html[data-style="clean"] .feat-facts li { gap: 4px; padding: var(--s-4) 0; border-top: 1px solid var(--line); }
html[data-style="clean"] .feat-facts li:last-child { border-bottom: 1px solid var(--line); }
html[data-style="clean"] .feat-facts b { color: var(--text); font: 600 16px/1.35 var(--sans); }
html[data-style="clean"] .feat-facts span { color: var(--soft); font-size: 16px; line-height: 1.55; max-width: 60ch; }
html[data-style="clean"] .feat .refs { margin-top: auto; padding-top: var(--s-6); }

/* ---------- Now: an index ---------- */
html[data-style="clean"] .method { gap: 0; }
html[data-style="clean"] .method li {
  display: grid; grid-template-columns: 2.75rem 7rem minmax(0, 1fr); gap: 0 var(--s-4); align-items: baseline; padding: var(--s-4) 0; border-top: 1px solid var(--line);
}
html[data-style="clean"] .method li:last-child { border-bottom: 1px solid var(--line); }
html[data-style="clean"] .method span, html[data-style="clean"] .method b, html[data-style="clean"] .method i { grid-area: auto; }
html[data-style="clean"] .method span { padding: 0; background: none; color: var(--quiet); font: 500 11px/1.4 var(--mono); letter-spacing: 0.1em; display: block; }
html[data-style="clean"] .method b { font: 600 16px/1.4 var(--sans); }
html[data-style="clean"] .method i { color: var(--soft); font-size: 16px; line-height: 1.5; }
html[data-style="clean"] .method li.is-on span { background: none; color: var(--accent); }
html[data-style="clean"] .method li.is-on b { color: var(--accent); }
html[data-style="clean"] .method li.is-on i { color: var(--soft); }
html[data-style="clean"] .term { margin: 0; background: var(--screen); color: var(--screen-text); border: 1px solid var(--line-2); border-radius: 0; box-shadow: none; }
html[data-style="clean"] .term-bar { padding: var(--s-3) var(--s-5); border-bottom: 1px solid #3a342c; color: var(--screen-dim); font: 400 10.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
html[data-style="clean"] .term-dots { display: none; }
html[data-style="clean"] .term-body { padding: var(--s-4) var(--s-5) var(--s-5); background-image: none; font: 400 12px/1.8 var(--mono); }

/* ---------- reel: a figure ---------- */
html[data-style="clean"] .reel-head { align-items: end; margin-bottom: var(--s-6); }
html[data-style="clean"] .reel-head p { color: var(--quiet); font-size: 15px; }
html[data-style="clean"] .reel-frame { margin: 0; padding: 0; background: #000; border: 1px solid var(--text); overflow: hidden; }

/* ---------- work: an index of entries ---------- */
html[data-style="clean"] .cart { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); margin: 0; padding: var(--s-8) 0 var(--s-10); border-top: 1px solid var(--line-2); }
html[data-style="clean"] .cart:first-of-type { border-top: 1px solid var(--text); }
html[data-style="clean"] .cart-label { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: var(--s-3); padding: 0; background: none; clip-path: none; color: var(--text); }
html[data-style="clean"] .cart .no { padding: 0; background: none; clip-path: none; color: var(--quiet); font: 500 11px/1 var(--mono); letter-spacing: 0.12em; }
html[data-style="clean"] .cart .no::before { content: "No. "; }
html[data-style="clean"] .cart .flag-line, html[data-style="clean"] .cart.new .flag-line { display: block; padding: 0; background: none; color: var(--accent); font: 500 11px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
html[data-style="clean"] .cart-title { flex: none; }
html[data-style="clean"] .cart h3 { margin-top: var(--s-2); font: 400 clamp(40px, 4.6vw, 64px)/1 var(--serif); letter-spacing: -0.025em; }
html[data-style="clean"] .cart-body { display: contents; }
html[data-style="clean"] .cart .entry-body p { max-width: 62ch; color: var(--soft); }
html[data-style="clean"] .meta { gap: 0; }
html[data-style="clean"] .meta span { padding: 0; background: none; clip-path: none; color: var(--quiet); font: 400 10.5px/1.9 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
html[data-style="clean"] .meta span:not(:last-child)::after { content: "\00b7"; margin: 0 0.8em; color: var(--dust); }
@media (min-width: 960px) {
  html[data-style="clean"] .cart { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); column-gap: var(--s-12); row-gap: var(--s-4); }
  html[data-style="clean"] .cart-label { grid-column: 1; grid-row: 1; }
  html[data-style="clean"] .cart .entry-body { grid-column: 2; grid-row: 1 / span 2; }
  html[data-style="clean"] .cart .spec { grid-column: 1; grid-row: 2; align-self: start; }
}

/* links, install lines */
html[data-style="clean"] .refs { gap: var(--s-2) var(--s-6); margin-top: var(--s-5); }
html[data-style="clean"] .refs a, html[data-style="clean"] .refs code { --u: 0px; min-height: 0; margin: 0; padding: 4px 0 6px; box-shadow: none; }
html[data-style="clean"] .refs a { background-color: transparent; color: var(--text); font: 500 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
html[data-style="clean"] .refs a::after { content: " \2197"; font-weight: 400; color: var(--accent); }
html[data-style="clean"] .refs a:hover::after, html[data-style="clean"] .refs a:focus-visible::after { color: var(--accent); }
html[data-style="clean"] .refs a[href^="mailto"]::after, html[data-style="clean"] .refs.sites a::after { content: none; }
html[data-style="clean"] .refs code { padding: 9px 14px; background: var(--spine); border-left: 2px solid var(--accent); color: var(--text); font: 400 12px/1.5 var(--mono); }
html[data-style="clean"] .refs span { color: var(--quiet); font-size: 14px; }

/* version history */
html[data-style="clean"] .versions { margin-top: var(--s-6); background: none; box-shadow: none; border-top: 1px solid var(--line-2); }
html[data-style="clean"] .versions summary { display: block; padding: var(--s-4) 0; cursor: pointer; list-style: none; color: var(--text); font: 500 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; background: none; }
html[data-style="clean"] .versions summary::before { content: "+"; display: inline-block; position: static; inset: auto; width: 1.4em; background: none; box-shadow: none; clip-path: none; transform: none; color: var(--accent); }
html[data-style="clean"] .versions[open] summary::before { content: "\2212"; }
html[data-style="clean"] .vh-cols { padding: 0 0 var(--s-4); gap: var(--s-8) var(--s-10); }
html[data-style="clean"] .versions h4 { margin-bottom: var(--s-2); color: var(--quiet); font: 500 10.5px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
html[data-style="clean"] .versions li { padding: var(--s-3) 0; background: none; border-top: 1px solid var(--line); font-size: 15px; }
html[data-style="clean"] .versions .vh-v { font: 500 11px/1 var(--mono); letter-spacing: 0.04em; }
html[data-style="clean"] .versions time { margin: 0 var(--s-2); color: var(--quiet); font: 400 10.5px/1 var(--mono); }

/* skills: a ruled list */
html[data-style="clean"] .index.cards { gap: 0; }
html[data-style="clean"] .index.cards li { background: none; padding: 0; border-top: 1px solid var(--line); }
html[data-style="clean"] .index.cards li:last-child { border-bottom: 1px solid var(--line); }
html[data-style="clean"] .index.cards a { grid-template-columns: minmax(0, 16rem) minmax(0, 1fr) auto; column-gap: var(--s-8); padding: var(--s-5) 0; background: none; color: var(--text); }
html[data-style="clean"] .index.cards .name { font: 400 28px/1.15 var(--serif); letter-spacing: -0.01em; transition: color 0.2s; }
html[data-style="clean"] .index.cards a:hover .name, html[data-style="clean"] .index.cards a:focus-visible .name { color: var(--accent); }
html[data-style="clean"] .index.cards .what { color: var(--soft); font-size: 16px; }
html[data-style="clean"] .index.cards .where-col { color: var(--quiet); font: 400 10.5px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
html[data-style="clean"] .index.cards a:hover .what, html[data-style="clean"] .index.cards a:focus-visible .what { color: var(--soft); }
html[data-style="clean"] .index.cards a:hover .where-col, html[data-style="clean"] .index.cards a:focus-visible .where-col { color: var(--quiet); }

/* where it runs, stack */
html[data-style="clean"] .ecos { gap: var(--s-8) var(--s-10); padding: 0; }
html[data-style="clean"] .ecos > div { padding: var(--s-4) 0 0; background: none; box-shadow: none; border-radius: 0; border-top: 1px solid var(--line-2); }
html[data-style="clean"] .ecos h3 { margin-bottom: var(--s-3); color: var(--text); font: 400 30px/1.1 var(--serif); letter-spacing: -0.01em; }
html[data-style="clean"] .ecos p { color: var(--soft); font-size: 16px; line-height: 1.55; }
html[data-style="clean"] .stack-list { gap: var(--s-2) 0; }
html[data-style="clean"] .stack-list li { margin: 0; padding: 0; background: none; box-shadow: none; color: var(--text); font: 400 12.5px/1.8 var(--mono); letter-spacing: 0.02em; }
html[data-style="clean"] .stack-list li + li::before { content: "/"; margin: 0 14px; color: var(--accent); }

/* contact */
html[data-style="clean"] .contact .lede { margin-top: var(--s-6); }
html[data-style="clean"] .mail { margin-top: var(--s-8); }
html[data-style="clean"] .mail a {
  display: inline; padding: 0 0 6px; background-size: 100% 2px, 100% 2px; color: var(--text);
  background-image: linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--accent), var(--accent));
  font: 400 clamp(26px, 4.4vw, 60px)/1.15 var(--serif); letter-spacing: -0.015em; overflow-wrap: anywhere;
}
html[data-style="clean"] .mail a:hover, html[data-style="clean"] .mail a:focus-visible { color: var(--accent); }
html[data-style="clean"] .mail a.mi.on { color: var(--text); }
html[data-style="clean"] .mail a.mi.on:hover { color: var(--accent); }
html[data-style="clean"] .sites { margin-top: var(--s-8); }

/* ---------- footer: a colophon ---------- */
html[data-style="clean"] footer { margin-top: clamp(72px, 10vw, 128px); padding: 0 0 var(--s-12); border-top: 1px solid var(--text); }
html[data-style="clean"] .keybar {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); margin: 0; padding: var(--s-6) 0 0;
  color: var(--quiet); font: 400 10.5px/1.7 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
}
html[data-style="clean"] .legal-links { gap: var(--s-1) var(--s-6); align-items: flex-start; }
html[data-style="clean"] .legal-links a { display: inline-flex; padding: 8px 0 8px; min-height: 0; color: var(--text); font: 500 10.5px/1.4 var(--mono); letter-spacing: 0.1em; background-color: transparent; }
html[data-style="clean"] .legal-links a:hover { color: var(--accent); }
html[data-style="clean"] .who { gap: var(--s-3); color: var(--quiet); }
html[data-style="clean"] .who img { width: 28px; height: 28px; margin: 0; border-radius: 0; box-shadow: 0 0 0 1px var(--line-2); filter: grayscale(0.4); }
html[data-style="clean"] .colophon { max-width: 52ch; }
@media (min-width: 960px) {
  html[data-style="clean"] .keybar { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  html[data-style="clean"] .legal-links { grid-column: 1 / span 3; flex-direction: column; }
  html[data-style="clean"] .foot-note { grid-column: 4 / span 3; }
  html[data-style="clean"] .colophon { grid-column: 7 / span 4; }
  html[data-style="clean"] .who { grid-column: 11 / span 2; justify-content: flex-end; }
}

/* legal pages */
html[data-style="clean"] .legal { padding-top: var(--s-8); min-height: 50vh; }
html[data-style="clean"] .legal h1 { font: 400 clamp(44px, 6vw, 88px)/1 var(--serif); letter-spacing: -0.025em; }
html[data-style="clean"] .facts div { background: none; border-bottom: 1px solid var(--line); }
html[data-style="clean"] .facts dt { color: var(--quiet); font: 500 10.5px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- breakpoints ---------- */
@media (max-width: 959px) {
  html[data-style="clean"] .index.cards a { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-1); }
  html[data-style="clean"] .index.cards .what, html[data-style="clean"] .index.cards .where-col { grid-column: auto; text-align: left; }
}
@media (max-width: 899px) {
  html[data-style="clean"] .feat-grid { grid-template-columns: minmax(0, 1fr); }
  html[data-style="clean"] .feat, html[data-style="clean"] .feat + .feat { padding: 0; border-left: 0; }
  html[data-style="clean"] .feat + .feat { margin-top: var(--s-16); padding-top: var(--s-10); border-top: 1px solid var(--text); }
  html[data-style="clean"] .hero { padding-top: var(--s-10); }
}
@media (max-width: 599px) {
  html[data-style="clean"] .ledger { grid-template-columns: minmax(0, 1fr); }
  html[data-style="clean"] .ledger > div, html[data-style="clean"] .ledger > div:first-child {
    display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); align-items: center; gap: 0 var(--s-5); padding: var(--s-4) 0; border-left: 0; border-top: 1px solid var(--line);
  }
  html[data-style="clean"] .ledger > div:first-child { border-top: 0; }
  html[data-style="clean"] .ledger dt { font-size: 64px; }
  html[data-style="clean"] .ledger dt::after { display: none; }
  html[data-style="clean"] .ledger dd { margin-top: 0; }
  html[data-style="clean"] .method li { grid-template-columns: 2.25rem minmax(0, 1fr); }
  html[data-style="clean"] .method li b { grid-column: 2; }
  html[data-style="clean"] .method li i { grid-column: 2; margin-top: 2px; }
  html[data-style="clean"] .method li span { grid-row: 1 / span 2; }
  html[data-style="clean"] .reel-frame { padding: 0 0 var(--s-4); }
  html[data-style="clean"] .reel-play { margin: var(--s-4) auto 0; }
  html[data-style="clean"] .term-body { height: 360px; }
  html[data-style="clean"] .hero h1 { max-width: none; }
}

/* ---------- motion: one staggered rise on load, a drawn underline on hover ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  html[data-style="clean"] .mast { animation: rise 0.7s var(--ease) both; }
  html[data-style="clean"] .hero > .idx { animation: rise 0.7s var(--ease) 0.08s both; }
  html[data-style="clean"] .hero-copy > * { animation: rise 0.8s var(--ease) both; }
  html[data-style="clean"] .hero-copy > :nth-child(1) { animation-delay: 0.14s; }
  html[data-style="clean"] .hero-copy > :nth-child(2) { animation-delay: 0.22s; }
  html[data-style="clean"] .hero-copy > :nth-child(3) { animation-delay: 0.32s; }
  html[data-style="clean"] .hero-copy > :nth-child(4) { animation-delay: 0.4s; }
  html[data-style="clean"] .hero-copy > :nth-child(5) { animation-delay: 0.46s; }
  html[data-style="clean"] .ledger { animation: rise 0.9s var(--ease) 0.55s both; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-style="clean"] a, html[data-style="clean"] nav .mi, html[data-style="clean"] .btn { transition: none; }
}
@media (prefers-contrast: more) {
  html[data-style="clean"] body::after { display: none; }
}
@media print {
  html[data-style="clean"] body::after { display: none; }
}
