/* The identity: the page's own chrome stays quiet (Neue Montreal, ink and
   cream) so the six directions carry the colour and the character. */

@font-face { font-family: "Neue Montreal"; font-weight: 400; font-display: swap; src: url(https://smash.studio/fonts/NeueMontreal-Regular.woff) format("woff"); }
@font-face { font-family: "Druk"; font-weight: 400; font-display: swap; src: url(https://smash.studio/fonts/Druk-Heavy-Trial.woff2) format("woff2"); }
@font-face { font-family: "Anton"; font-weight: 400; font-display: swap; src: url(https://smash.studio/fonts/Anton-Regular.woff2) format("woff2"); } /* Druk's stand-in where Druk can't go */
/* What Druk's Heavy lacks, as main.css: its licensed web build, and Anton for Å Ä Ö and the other accented capitals. */
@font-face { font-family: "Druk Fill"; font-weight: 400; font-display: swap; size-adjust: 107.2%; src: url(https://smash.studio/fonts/Druk-Heavy.woff2) format("woff2"); }
@font-face { font-family: "Druk Fill"; font-weight: 400; font-display: swap; size-adjust: 86.6%; unicode-range: U+00C0-00C5, U+00C7-00CF, U+00D1-00D6, U+00D9-00DD, U+0100-017F; src: url(https://smash.studio/fonts/Anton-Regular.woff2) format("woff2"); }
@font-face { font-family: "Season Mix"; font-weight: 400; font-display: swap; src: url(https://smash.studio/fonts/SeasonMix-Regular.woff) format("woff"); }
@font-face { font-family: "Season Mix"; font-weight: 400; font-style: italic; font-display: swap; src: url(https://smash.studio/fonts/SeasonMix-RegularItalic.woff) format("woff"); }
@font-face { font-family: "SMASH"; font-weight: 100 900; font-display: swap; src: url(https://smash.studio/typeface/SMASH-VF.ttf) format("truetype"); }

:root {
  /* Black and white (the focus round). */
  --page: #000;
  --text: #fff;
  --dim: #8c8c8c;
  --line: #262626;
  --mid: #6b6b6b;
  --margin: clamp(16px, 4vw, 64px);
  --gap: clamp(8px, 1.2vw, 16px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { overflow-x: clip; background: var(--page); color: var(--text); -webkit-font-smoothing: antialiased; scrollbar-width: none; } /* no scrollbar, as the site's landing; it still scrolls, but never sideways: only the section bar does (2026-10-14) */
html::-webkit-scrollbar { display: none; }
body { margin: 0; font: 400 16px/1.45 "Neue Montreal", "Helvetica Neue", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
figure { margin: 0; }
p { margin: 0; }
h1, h2 { font-weight: 400; margin: 0; }

.label { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.note { font-size: 13px; color: var(--dim); max-width: 46ch; margin-top: 6px; }
.error { font: 12px/1.4 ui-monospace, Menlo, monospace; color: #ff8f7a; background: #2a1411; border: 1px solid #5a2a22; padding: 12px; white-space: pre-wrap; border-radius: 2px; }

#page { padding: 0 var(--margin) 120px; }

/* Cover */
.cover { min-height: 88vh; display: grid; grid-template-rows: auto auto auto 1fr; gap: clamp(24px, 4vw, 48px); padding-top: 24px; }
.meta { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.cover h1 { font-size: clamp(56px, 11vw, 190px); line-height: 0.9; letter-spacing: -0.035em; margin-top: 8vh; }
.lede { font-size: clamp(18px, 1.8vw, 26px); line-height: 1.3; max-width: 38ch; }
.index { align-self: end; border-top: 1px solid var(--line); }
.idx { display: grid; grid-template-columns: 10ch 1.2fr 3fr; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.idx:hover { background: #111; }
.idx-n, .idx-lane { color: var(--dim); font-size: 13px; }
.idx-name { font-size: 22px; }
.idx-idea { color: var(--dim); }
.idx-sym { width: 56px; height: 56px; background: var(--d-ink); color: var(--text); display: grid; place-items: center; padding: 8px; }
.idx-sym svg { width: 100%; height: 100%; }
@media (max-width: 760px) {
  .idx { grid-template-columns: 10ch 1fr; }
  .idx-idea { grid-column: 2; }
}

/* A chapter */
.chapter { padding-top: clamp(80px, 12vw, 180px); display: grid; gap: var(--gap); }
.chapter > * { min-width: 0; } /* nothing in a chapter widens it past the window */
.ch-head { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); row-gap: 8px; margin-bottom: clamp(16px, 3vw, 40px); border-top: 1px solid var(--line); padding-top: 16px; }
.ch-lane { font-size: 13px; color: var(--dim); grid-column: 2; grid-row: 1; }
.ch-name { grid-column: 1; font-size: clamp(44px, 7vw, 112px); line-height: 0.95; letter-spacing: -0.03em; }
.ch-idea { grid-column: 2; align-self: end; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.3; max-width: 34ch; }
.ch-story { display: none; }
@media (max-width: 760px) {
  .ch-head { grid-template-columns: 1fr; }
  .ch-lane, .ch-idea, .ch-name { grid-column: 1; grid-row: auto; }
}

.ground-ink { background: var(--d-ink); color: var(--d-paper); }
.ground-paper { background: var(--d-paper); color: var(--d-ink); }
.ground-mid { background: #000; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }

.stage { position: relative; }
.motion-el { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.controls { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--page); color: var(--dim); font-size: 12px; }
.controls button, .controls a { font: inherit; color: var(--text); background: none; border: 1px solid var(--line); padding: 4px 10px; cursor: pointer; }
.controls .play { min-width: 64px; }
.controls .download { min-width: 56px; font-variant-numeric: tabular-nums; }
.controls .download[data-busy] { cursor: progress; }
.controls .sound, .controls .invert { color: var(--dim); }
.controls [data-on] { color: var(--text); border-color: var(--text); }
.controls .scrub { flex: 1; min-width: 0; accent-color: var(--d-accent, #fff); }
.controls:has(.knob) { flex-wrap: wrap; column-gap: 32px; }
.controls .knob { display: flex; align-items: center; gap: 12px; flex: 1 1 240px; min-width: 0; }
.controls .knob input { flex: 1; min-width: 0; max-width: 320px; accent-color: var(--d-accent, #fff); }
.controls .knob output { color: var(--text); font-variant-numeric: tabular-nums; min-width: 6ch; }
.controls .knob.switch { flex: 0 1 auto; flex-wrap: wrap; gap: 6px; max-width: 100%; } /* a long row (Slant's presets) wraps */
.controls .knob.each { flex: 1 1 100%; gap: 16px; }
.controls .knob.each label { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.controls .knob.each .col { color: var(--text); }
.controls .knob.each input { flex: 1; min-width: 0; accent-color: var(--d-accent, #fff); }
.controls .knob.each output { color: var(--text); font-variant-numeric: tabular-nums; min-width: 3ch; }
.controls .knob.letters { display: grid; grid-template-columns: auto repeat(var(--n), 20px); gap: 4px 6px; flex: 0 0 auto; align-items: center; }
.controls .knob.letters .col { color: var(--text); text-align: center; }
.controls .knob.letters button { width: 20px; height: 20px; padding: 0; border-radius: 50%; }
.controls .knob.letters button[data-on] { background: var(--text); }
.controls .knob.letters button:disabled { opacity: 0.3; cursor: default; }
.controls .knob.switch span { margin-right: 6px; }
.controls .knob[hidden] { display: none; }
/* The controls in folds (slant.js: GROUPS): a name to open or shut, the controls under it. */
.controls .knob-group { flex: 1 1 100%; border-top: 1px solid var(--line); padding-top: 8px; }
.controls .knob-group > summary { cursor: pointer; list-style: none; color: var(--text); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; }
.controls .knob-group > summary::-webkit-details-marker { display: none; }
.controls .knob-group > summary::before { content: '+'; display: inline-block; width: 1.5em; color: var(--dim); }
.controls .knob-group[open] > summary::before { content: '\2212'; }
.controls .knob-group > div { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; padding: 10px 0 4px; }
.controls :focus-visible { outline: 1px solid var(--text); outline-offset: 2px; }
.controls .hint { flex: 0 1 40%; text-align: right; }
@media (max-width: 760px) { .controls { flex-wrap: wrap; } .controls .hint { flex-basis: 100%; text-align: left; } .controls .scrub { flex-basis: 100%; order: -1; height: 32px; } }

.row { display: grid; gap: var(--gap); }
.row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .row.two, .row.three { grid-template-columns: 1fr; } }

.panel { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; }
.panel.square { aspect-ratio: 1; }
.panel.tall { aspect-ratio: auto; min-height: 360px; padding: 56px 0 64px; }
.mark.down svg { width: auto; height: auto; max-width: none; max-height: none; }
.panel > .label { position: absolute; left: 12px; bottom: 10px; color: inherit; opacity: 0.55; }
.mark { display: grid; place-items: center; width: 100%; height: 100%; }
.mark svg { display: block; max-width: 100%; max-height: 100%; }
.mark.wm { padding: 12% 12%; }
.mark.sym { padding: 22%; }
.mark.lock { padding: 16% 12%; }
.mark.lock-sm { padding: 12% 14%; }
.mark svg { width: 100%; height: 100%; }

.favicons { display: grid; gap: 28px; justify-items: center; }
.sizes { display: flex; align-items: end; gap: 20px; }
.fav { display: inline-block; flex: none; }
.fav svg { display: block; width: 100%; height: 100%; }
.tabs { display: grid; gap: 8px; }
.tab { display: flex; align-items: center; gap: 8px; width: 200px; padding: 8px 10px; border-radius: 8px 8px 0 0; font: 12px -apple-system, "Segoe UI", sans-serif; }
.tab.light { background: #f4f4f4; color: #222; }
.tab.dark { background: #2b2b2b; color: #eee; }
.tab i { margin-left: auto; font-style: normal; opacity: 0.5; }

.app { display: grid; gap: 8px; margin-top: var(--gap); }
.app-el { position: relative; overflow: hidden; background: #000; }

.type { margin-top: calc(var(--gap) * 3); align-items: start; }
.spec-headline { font-size: clamp(40px, 5.2vw, 88px); line-height: 0.98; margin-bottom: 16px; }
.spec-body { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.45; max-width: 52ch; margin-bottom: 16px; }

.notes { margin-top: calc(var(--gap) * 3); border-top: 1px solid var(--line); padding-top: 16px; }
.notes p:not(.label) { margin-top: 8px; color: #cfcac2; max-width: 44ch; }

/* Side by side */
.compare { padding-top: clamp(100px, 14vw, 200px); display: grid; gap: 40px; }
.compare h2, .next h2 { font-size: clamp(44px, 7vw, 112px); letter-spacing: -0.03em; line-height: 0.95; border-top: 1px solid var(--line); padding-top: 16px; }
.cmp-row { display: grid; gap: 10px; }
.cmp-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 1100px) { .cmp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cmp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cmp-cell { display: grid; grid-template-rows: 1fr auto; aspect-ratio: 4 / 3; padding: 10px; }
.cmp-cell.ground-ink { background: var(--d-ink); color: var(--d-paper); }
.cmp-cell.ground-paper { background: var(--d-paper); color: var(--d-ink); }
.cmp-cell .label { color: inherit; opacity: 0.55; }
.cmp-mark { display: grid; place-items: center; min-height: 0; }
.cmp-mark > svg { width: 100%; height: 100%; max-height: 100%; }
.cmp-cell.wm .cmp-mark { padding: 8%; }
.cmp-cell.sym .cmp-mark { padding: 14%; }

.next { padding-top: clamp(100px, 14vw, 200px); display: grid; gap: 24px; }
.next p { font-size: clamp(18px, 1.8vw, 26px); max-width: 40ch; line-height: 1.3; }

/* The original, live (lab.js): the landing's v2 with its settings open. */
.lab { padding-top: clamp(64px, 8vw, 120px); display: grid; gap: var(--gap); }
.lab-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--gap); align-items: start; }
.lab-stage { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.lab-stage.light { background: #fff; }
.lab-panel { max-height: min(80vh, 720px); overflow: auto; }
.lab-panel .tp-dfwv { width: 100% !important; }
.lab-note { max-width: 70ch; }
@media (max-width: 900px) { .lab-body { grid-template-columns: 1fr; } }

/* The sequence (sequence/section.js): its player in a stage like the motions', white on black or black on white. */
.seq-stage .motion-el { background: #000; color: #fff; }
.seq-stage[data-paper] .motion-el { background: #fff; color: #000; }
.seq-mark { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; }

/* No fluff (Jonas, 2026-09-28): a section is its name and its marks, no number either (2026-10-01: "for the
   identiy we dont need to write 00 · etc"). The tools'
   own headers carry a lane, an idea and notes; they are not shown. */
.ch-lane, .ch-idea, .ch-story, .lab-note, .controls .hint { display: none; }
/* A section's title small (Jonas, 2026-09-30), in the type's colour, on the column's edge. */
.ch-head { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: var(--gap); }
.ch-head .ch-name { grid-column: 1; grid-row: 1; font: 400 13px/1.45 "Neue Montreal", "Helvetica Neue", Arial, sans-serif; letter-spacing: 0; color: var(--text); }
#page { padding-top: 24px; }
.chapter, .lab { padding-top: clamp(56px, 8vw, 120px); }

/* The tools' panels in neutral greys, not Tweakpane's blue-grey: black and white only. */
.lab-panel {
  --tp-base-background-color: #161616;
  --tp-base-shadow-color: rgba(0, 0, 0, 0.4);
  --tp-button-background-color: #d9d9d9;
  --tp-button-background-color-active: #fff;
  --tp-button-background-color-focus: #f0f0f0;
  --tp-button-background-color-hover: #eaeaea;
  --tp-button-foreground-color: #000;
  --tp-container-background-color: rgba(255, 255, 255, 0.08);
  --tp-container-background-color-active: rgba(255, 255, 255, 0.2);
  --tp-container-background-color-focus: rgba(255, 255, 255, 0.16);
  --tp-container-background-color-hover: rgba(255, 255, 255, 0.12);
  --tp-container-foreground-color: #fff;
  --tp-groove-foreground-color: rgba(255, 255, 255, 0.12);
  --tp-input-background-color: rgba(255, 255, 255, 0.08);
  --tp-input-background-color-active: rgba(255, 255, 255, 0.2);
  --tp-input-background-color-focus: rgba(255, 255, 255, 0.16);
  --tp-input-background-color-hover: rgba(255, 255, 255, 0.12);
  --tp-input-foreground-color: #fff;
  --tp-label-foreground-color: rgba(255, 255, 255, 0.6);
  --tp-monitor-background-color: rgba(0, 0, 0, 0.3);
  --tp-monitor-foreground-color: rgba(255, 255, 255, 0.6);
}

/* The grid, previewed on the marks (grid.js): hidden until the Grid button or G shows it. */
.mk-grid { display: none; }
.show-grid .mk-grid { display: inline; }
/* Every line of a grid one device pixel wide, whatever the mark's scale (--hair: identity.js). */
.mk-grid *, .mk-hair, .mk-hair * { vector-effect: non-scaling-stroke; stroke-width: var(--hair, 1px); }
/* The Grid and Pixel buttons, bottom left (identity.js). */
.view-tools { position: fixed; left: 12px; bottom: 12px; z-index: 60; display: flex; gap: 6px; }
.view-toggle { padding: 6px 12px; background: #000; color: var(--dim); border: 1px solid var(--line); font: 400 12px/1 "Neue Montreal", "Helvetica Neue", Arial, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.view-toggle:hover, .view-toggle[aria-pressed="true"] { color: #ff29b8; border-color: #ff29b8; }
/* The sections, in a bar fixed at the top, the full width (identity.js: sectionNav); the one on screen lit. */
.section-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; gap: 0 20px; padding: 0 var(--margin); background: #000; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.section-nav::-webkit-scrollbar { display: none; }
.section-nav button { flex: none; padding: 12px 0; background: none; border: 0; color: var(--dim); font: 400 13px/16px "Neue Montreal", "Helvetica Neue", Arial, sans-serif; white-space: nowrap; cursor: pointer; }
.section-nav button:hover, .section-nav button[data-now] { color: var(--text); }
.has-section-nav { padding-top: 41px; }

/* Folded sections at the end of the page (Jonas, 2026-09-30): a line each, opened on a click; the line is the heading. */
.fold { border-top: 1px solid var(--line); }
.fold:not(.fold + .fold) { margin-top: clamp(56px, 8vw, 120px); }
.fold-head { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; cursor: pointer; list-style: none; font-size: 13px; color: var(--text); }
.fold-head::-webkit-details-marker { display: none; }
.fold-state::after { content: "Open"; color: var(--dim); }
.fold[open] .fold-state::after { content: "Close"; }
.fold-head:hover .fold-state::after { color: var(--text); }
.fold > .lab { padding-top: 0; }
.fold > .lab > .ch-head { display: none; }
.fold > .chapter { padding-top: 0; }
.fold > .chapter > .ch-head { display: none; }
