/* byfuente.com
   The rules of the look, kept from the first version of the site: white paper, black
   ink, and the colour is the water. No soft gradients, no rounded corners, no soft
   shadows, no transitions. Hard 2px rules, pixel art drawn from data/sprites.json,
   Silkscreen for labels only, and the furniture of an editing suite (timecode, rulers,
   tracks, film strip) wherever a plain rule would otherwise go. The one warm colour is
   the playhead.

   Every one column grid is pinned to minmax(0, 1fr): a plain one sizes its track to the
   widest thing in it, a pixel label in capitals is wide, and the page would scroll
   sideways on a phone. */

@font-face {
  font-family: "Silkscreen";
  src: url("/assets/fonts/silkscreen-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Silkscreen";
  src: url("/assets/fonts/silkscreen-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #000000;
  --paper: #ffffff;
  --stone: #555555;
  --stone-light: #aaaaaa;
  --wash: #eeeeee;
  --water-dark: #0000aa;
  --water-mid: #5555ff;
  --water-light: #55ffff;
  --head: #ff8800;                        /* the playhead, markers, the live clip */
  --line: 2px;
  --gutter: 16px;
  --max: 1200px;
  --px: 4px;                              /* one art pixel, overridden per sprite */
  --pixel: "Silkscreen", "Small Fonts", "MS Sans Serif", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--paper); scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

a { color: inherit; }
img, canvas { image-rendering: pixelated; }
[hidden] { display: none !important; }

:focus-visible { outline: var(--line) solid var(--water-dark); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 8px 12px;
  font-family: var(--pixel); font-size: 16px; text-decoration: none;
}
.skip:focus { top: 8px; }

/* ---------- pixel art ---------- */

.sprite { position: relative; display: block; flex: none; }
.sprite > i { position: absolute; top: 0; display: block; }

/* Sizes reserved before the drawing arrives, so nothing jumps when it does. */
[data-sprite="mark"]     { width: calc(var(--px) * 49); height: calc(var(--px) * 9); }
[data-sprite="fountain"] { width: calc(var(--px) * 40); height: calc(var(--px) * 20); }
[data-sprite="pool"]     { width: calc(var(--px) * 32); height: calc(var(--px) * 6); }
[data-icon]              { width: calc(var(--px) * 16); height: calc(var(--px) * 16); }

.stream { position: relative; display: block; width: calc(var(--px) * 4); }
.stream__f {
  position: absolute; inset: 0;
  background-repeat: repeat-y;
  opacity: 0;
  animation: frames 0.4s steps(1, end) infinite;
}
.stream__f:nth-child(2) { animation-delay: 0.1s; }
.stream__f:nth-child(3) { animation-delay: 0.2s; }
.stream__f:nth-child(4) { animation-delay: 0.3s; }
@keyframes frames { 0%, 24.99% { opacity: 1; } 25%, 100% { opacity: 0; } }

/* ---------- type ---------- */

.label {
  font-family: var(--pixel);
  font-size: 16px;
  line-height: 24px;
  text-transform: uppercase;
  -webkit-font-smoothing: none;
}
.tc { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); max-width: 15ch; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); max-width: 22ch; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.3; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 38em; }
.muted { color: var(--stone); }
p + p { margin-top: 0.9em; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  max-width: 100%;
  padding: 10px 18px;
  border: var(--line) solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 16px;
  line-height: 24px;
  text-transform: uppercase;
  text-decoration: none;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--water-dark); border-color: var(--water-dark); color: var(--paper); }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- top bar ---------- */

.bar { border-bottom: var(--line) solid var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.bar .wrap { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.bar__home { display: block; padding: 8px 0; --px: 2px; }
.bar__nav { display: none; gap: 16px; margin-left: auto; }
.bar__nav a { white-space: nowrap; }
.bar__nav a, .lang a { text-decoration: none; font-family: var(--pixel); font-size: 16px; text-transform: uppercase; }
.bar__nav a:hover, .lang a:hover { color: var(--water-dark); text-decoration: underline; text-underline-offset: 4px; }
.lang { display: flex; gap: 4px; margin-left: auto; font-family: var(--pixel); font-size: 16px; }
.lang [aria-current] { background: var(--ink); color: var(--paper); padding: 0 6px; }
.lang a { padding: 0 6px; }
@media (min-width: 1240px) {
  .bar__nav { display: flex; }
  .lang { margin-left: 8px; }
}
/* Pages without the section nav keep the language switch on the right. */
.bar__home + .lang { margin-left: auto; }

/* ---------- editing suite furniture ---------- */

/* A timeline ruler: a short tick every 8px, a tall one every 64px. Hard stops only. */
.ruler {
  height: 14px;
  background:
    linear-gradient(90deg, var(--ink) 2px, transparent 2px) 0 0 / 64px 14px repeat-x,
    linear-gradient(90deg, var(--ink) 1px, transparent 1px) 0 8px / 8px 6px repeat-x;
}

/* Film strip, between the big parts of the page. */
.strip {
  height: 28px;
  background:
    linear-gradient(90deg, var(--paper) 12px, transparent 12px) 6px 7px / 24px 14px repeat-x,
    var(--ink);
}

/* ---------- sections ---------- */

.sec { padding: 88px 0; position: relative; }
.sec + .sec { border-top: var(--line) solid var(--ink); }
.sec > .ruler { position: absolute; top: 0; left: 0; right: 0; }
.sec__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 48px; }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--water-dark); }
.kicker .tc { font-size: 14px; line-height: 22px; color: var(--paper); background: var(--ink); padding: 0 8px; }
@media (max-width: 719px) { .sec { padding: 64px 0; } .sec__head { margin-bottom: 36px; } }

/* ---------- hero ---------- */

.hero { padding: 56px 0 64px; }
.hero__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-bottom: 44px; }
.hero__left { display: grid; gap: 24px; align-content: start; }
.hero__side { display: grid; gap: 24px; align-content: end; }
.hero__status {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start; max-width: 100%;
  border: var(--line) solid var(--ink); padding: 4px 12px;
}
.rec { width: 10px; height: 10px; background: var(--head); flex: none; animation: blink 1s steps(1, end) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (min-width: 960px) {
  .hero__top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: end; }
}

/* ---------- the editor window ---------- */

.nle { border: var(--line) solid var(--ink); background: var(--paper); font-size: 13px; line-height: 1.35; }
.nle__bar {
  display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--paper);
  padding: 6px 10px; font-family: var(--pixel); font-size: 16px; text-transform: uppercase;
}
.nle__dots { display: flex; gap: 6px; }
.nle__dots i { width: 10px; height: 10px; border: 2px solid var(--paper); display: block; }
.nle__bar .grow { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nle__bar .tag { color: var(--ink); background: var(--water-light); padding: 0 6px; white-space: nowrap; }

.nle__body { display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: var(--line) solid var(--ink); }
.pane { min-width: 0; }
.pane__h {
  display: flex; justify-content: space-between; gap: 8px;
  font-family: var(--pixel); font-size: 16px; text-transform: uppercase;
  padding: 6px 10px; border-bottom: var(--line) solid var(--ink); background: var(--wash);
}
.pane__h .tc { font-size: 12px; text-transform: none; color: var(--stone); }
.pane--bin { display: none; }

/* bin: every item is a button. Video inserts at the playhead, audio mutes its track. */
.bin { list-style: none; padding: 6px; display: grid; gap: 2px; }
.bin__it {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 8px; align-items: center;
  width: 100%; padding: 4px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.bin__it:hover { background: var(--water-dark); color: var(--paper); }
.bin__it:hover .tg { color: var(--water-light); }
.bin__it .add { font-family: var(--pixel); font-size: 16px; color: var(--water-dark); padding: 0 4px; }
.bin__it:hover .add { color: var(--water-light); }
.bin__it.is-muted .nm { text-decoration: line-through; color: var(--stone); }
.bin__it.is-muted .add { background: var(--head); color: var(--ink); }
.bin .th { height: 24px; border: 1px solid var(--ink); }
.bin .nm { font-family: var(--mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.bin .tg { display: block; font-size: 11px; color: var(--stone); }
.th--a { background: var(--water-mid); }
.th--b { background: var(--stone-light); }
.th--c { background: var(--water-light); }
.th--d { background: var(--water-dark); }
.th--au { background: var(--paper); color: var(--water-dark); padding: 2px; }
.th--au svg, .clip svg { width: 100%; height: 100%; fill: currentColor; display: block; }

/* viewer */
.viewer { background: var(--ink); padding: 14px; }
.screen {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--water-dark); cursor: pointer;
}
.screen::after {                         /* title safe guide */
  content: ""; position: absolute; inset: 10%; z-index: 4;
  border: 1px dashed var(--water-mid); pointer-events: none;
}
.screen__img { position: absolute; inset: 0; transform-origin: 50% 40%; }
.shot { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.shot--fountain { justify-content: flex-start; padding-top: 7%; --px: 4px; }
.shot--fountain .stream { flex: 1; }
.shot--pool { justify-content: flex-end; padding-bottom: 12%; --px: 6px; background: var(--ink); }
.shot--fish { --px: 8px; background: var(--water-mid); }
.shot--drop { --px: 8px; background: var(--water-light); }
.shot--title { --px: 5px; background: var(--paper); gap: 12px; }
.shot--title .label { color: var(--water-dark); }
@media (min-width: 1100px) {
  .shot--fountain { --px: 5px; }
  .shot--fish, .shot--drop { --px: 9px; }
  .shot--title { --px: 6px; }
}
.screen.is-slow .stream__f { animation-duration: 1.2s; }
.screen.is-fast .stream__f { animation-duration: 0.2s; }
.screen__tc {
  position: absolute; left: 8px; bottom: 6px; z-index: 5;
  color: var(--paper); background: var(--ink); padding: 0 6px; font-size: 12px;
}

/* effects the assistant can put on the picture */
.fx-flash { position: absolute; inset: 0; z-index: 3; background: var(--paper); opacity: 0; pointer-events: none; }
.fx-flash.go { animation: flash 0.5s steps(5, end) 1; }
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } }
.fx-spark { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.fx-spark i {
  position: absolute; width: 4px; height: 4px; background: var(--paper);
  box-shadow: 4px 0 0 var(--paper), -4px 0 0 var(--paper), 0 4px 0 var(--paper), 0 -4px 0 var(--paper);
  animation: twinkle 0.6s steps(1, end) infinite;
}
.fx-spark i:nth-child(odd) {
  background: var(--water-light); animation-delay: 0.3s;
  box-shadow: 4px 0 0 var(--water-light), -4px 0 0 var(--water-light), 0 4px 0 var(--water-light), 0 -4px 0 var(--water-light);
}
.fx-spark i:nth-child(3n) { transform: scale(2); }
@keyframes twinkle { 50% { opacity: 0; } }
.fx-rain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='40' shape-rendering='crispEdges'%3E%3Crect x='3' y='2' width='2' height='8' fill='%2355ffff'/%3E%3Crect x='15' y='22' width='2' height='8' fill='%23ffffff'/%3E%3C/svg%3E") 0 0 / 24px 40px;
  animation: rain 0.4s steps(8, end) infinite;
}
@keyframes rain { to { background-position: -6px 40px; } }
.fx-lower { position: absolute; left: 12%; bottom: 13%; z-index: 2; max-width: 76%; }
.fx-lower span {
  display: block; background: var(--ink); color: var(--paper); border-left: 6px solid var(--water-light);
  padding: 2px 10px; font-family: var(--pixel); font-size: 16px; line-height: 24px; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fx-crop { position: absolute; inset: 0; z-index: 4; display: flex; justify-content: space-between; pointer-events: none; }
.fx-crop i { display: block; height: 100%; width: 0; background: rgba(0, 0, 0, 0.82); }
.fx-crop.is-916 i { width: 34.2%; }
.fx-crop.is-11 i { width: 21.9%; }
.fx-crop.is-916 i:first-child, .fx-crop.is-11 i:first-child { border-right: 2px solid var(--water-light); }
.fx-crop.is-916 i:last-child, .fx-crop.is-11 i:last-child { border-left: 2px solid var(--water-light); }
@media (prefers-reduced-motion: reduce) {
  .fx-flash.go, .fx-spark i, .fx-rain { animation: none; }
}

/* transport */
.transport {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--paper); padding-top: 12px;
}
.transport .big { font-size: clamp(16px, 2vw, 22px); }
.transport .keys { display: flex; gap: 6px; }
.key { width: 32px; height: 26px; border: 2px solid var(--paper); background: var(--ink); display: block; position: relative; cursor: pointer; padding: 0; }
.key:hover { background: var(--water-dark); }
.key:focus-visible { outline: 2px solid var(--water-light); outline-offset: 2px; }
.key--play { background: var(--paper); }
.key--play:hover { background: var(--water-light); }
.key--play::after {
  content: ""; position: absolute; left: 11px; top: 5px;
  border-left: 9px solid var(--ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.key--play.is-playing::after {
  left: 9px; top: 5px; width: 3px; height: 12px; border: 0; background: var(--ink);
  box-shadow: 7px 0 0 var(--ink);
}
.key--back::after, .key--fwd::after {
  content: ""; position: absolute; top: 6px; left: 10px; width: 8px; height: 10px;
  border-left: 2px solid var(--paper); border-right: 2px solid var(--paper);
}
.fmtbox { display: flex; gap: 10px; align-items: center; }
.transport .fmt { font-family: var(--pixel); font-size: 16px; color: var(--stone-light); }
.speed { font-family: var(--pixel); font-size: 16px; color: var(--head); }

/* assistant: a chat that edits the sequence */
.pane--ai { display: flex; flex-direction: column; height: 440px; border-top: var(--line) solid var(--ink); min-height: 0; }
.chat { flex: 1; min-height: 0; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.msg { border: var(--line) solid var(--ink); padding: 7px 9px; display: grid; gap: 5px; font-size: 13px; max-width: 100%; }
.msg--me { align-self: flex-end; background: var(--ink); color: var(--paper); max-width: 88%; }
.msg--ai .k { font-family: var(--pixel); font-size: 16px; text-transform: uppercase; color: var(--water-dark); }
.msg--ai .k .tc { font-family: var(--mono); font-size: 11px; color: var(--stone); text-transform: none; }
.msg.is-done { border-color: var(--stone-light); color: var(--stone); }
.msg.is-done .k { color: var(--stone); }
.msg .call {
  display: block; font-family: var(--mono); font-size: 11px; line-height: 1.4;
  color: var(--water-dark); background: var(--wash); padding: 2px 5px; overflow-wrap: anywhere;
}
.msg .acts { display: flex; gap: 6px; }
.msg .acts button { border: 2px solid var(--ink); background: var(--paper); padding: 1px 8px; font: inherit; font-size: 12px; cursor: pointer; }
.msg .acts button:first-child { background: var(--ink); color: var(--paper); }
.msg .acts button:hover { background: var(--water-dark); border-color: var(--water-dark); color: var(--paper); }
.msg .ok { font-size: 12px; color: var(--water-dark); font-weight: 700; }
.msg .prog { display: block; height: 10px; border: 2px solid var(--ink); position: relative; }
.msg .prog i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--water-dark); }
.msg .done { color: var(--water-dark); font-weight: 700; }
.dots { display: flex; gap: 4px; padding: 4px 0; }
.dots i { width: 6px; height: 6px; background: var(--water-dark); animation: twinkle 0.6s steps(1, end) infinite; }
.dots i:nth-child(2) { animation-delay: 0.2s; }
.dots i:nth-child(3) { animation-delay: 0.4s; }
.chat__chips { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; border-top: var(--line) solid var(--ink); background: var(--wash); }
.chat__chips button {
  border: 1px solid var(--ink); background: var(--paper); padding: 2px 7px; cursor: pointer;
  font-family: var(--mono); font-size: 11px; line-height: 1.4;
}
.chat__chips button:hover { background: var(--ink); color: var(--paper); }
.chat__form { display: flex; border-top: var(--line) solid var(--ink); }
.chat__form input { flex: 1; min-width: 0; border: 0; padding: 10px; font-family: var(--mono); font-size: 14px; background: var(--paper); color: var(--ink); }
.chat__form input:focus-visible { outline: 3px solid var(--water-mid); outline-offset: -3px; }
.chat__form button {
  border: 0; border-left: var(--line) solid var(--ink); background: var(--water-dark); color: var(--paper);
  font-family: var(--pixel); font-size: 16px; text-transform: uppercase; padding: 0 14px; cursor: pointer;
}
.chat__form button:hover { background: var(--ink); }

@media (min-width: 760px) {
  .nle__body { grid-template-columns: minmax(0, 1fr) 270px; }
  /* height 0 with a min of 100%: the chat fills the row the viewer sets, and never
     makes it taller however long the conversation gets */
  .pane--ai { height: 0; min-height: 100%; border-top: 0; border-left: var(--line) solid var(--ink); }
}
@media (min-width: 1100px) {
  .nle__body { grid-template-columns: 220px minmax(0, 1fr) 290px; }
  .pane--bin { display: block; border-right: var(--line) solid var(--ink); }
}

/* timeline */
.tl { display: grid; grid-template-columns: 44px minmax(0, 1fr); }
.tl__heads { border-right: var(--line) solid var(--ink); background: var(--wash); }
.tl__heads div, .lane { height: 34px; border-bottom: 1px solid var(--stone-light); }
.tl__heads div { display: flex; align-items: center; justify-content: center; font-family: var(--pixel); font-size: 16px; }
.tl__heads .rh, .rl { height: 30px; border-bottom: var(--line) solid var(--ink); }
.tl__heads div:last-child, .lane:last-child { border-bottom: 0; }
.tl__lanes { position: relative; overflow: hidden; }
.rl { position: relative; }
.rl .ruler { position: absolute; left: 0; right: 0; bottom: 0; }
.rl .t { position: absolute; top: 1px; font-size: 11px; color: var(--stone); padding-left: 3px; }
.mk { position: absolute; top: 3px; width: 12px; height: 12px; margin-left: -6px; background: var(--head); border: 2px solid var(--ink); z-index: 1; }
.lane { position: relative; }
.clip {
  position: absolute; top: 4px; bottom: 4px;
  border: var(--line) solid var(--ink);
  font-size: 11px; line-height: 1; padding: 5px; overflow: hidden; white-space: nowrap;
  font-family: var(--mono);
}
.clip--v { background: var(--water-mid); color: var(--paper); }
.clip--v2 { background: var(--water-light); color: var(--ink); }
.clip--t { background: var(--paper); color: var(--ink); }
.clip--a { background: var(--water-dark); color: var(--water-light); padding: 3px; }
.clip--m { background: var(--wash); color: var(--stone); padding: 3px; }
.clip.is-live { outline: 3px solid var(--head); outline-offset: -3px; }
button.clip { cursor: pointer; text-align: left; }
.clip--v:hover { background: var(--water-dark); }
.clip--v.is-sel { background: var(--ink); color: var(--water-light); }
.clip--fx { background: var(--head); color: var(--ink); }
.clip .badge { margin-left: 6px; padding: 0 3px; background: var(--ink); color: var(--water-light); font-size: 10px; }
.clip--v.is-sel .badge { background: var(--water-light); color: var(--ink); }
.clip.is-new { animation: fresh 0.6s steps(2, end) 2; }
@keyframes fresh { 50% { background: var(--head); color: var(--ink); } }
span.clip { pointer-events: none; }
.lane.is-muted .clip { opacity: 0.3; }
.tl__lanes { touch-action: pan-y; cursor: col-resize; }
.nle__playhead {
  position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px;
  background: var(--head); z-index: 2; pointer-events: none;
}
.nle__playhead::before {
  content: ""; position: absolute; top: 0; left: -6px;
  border-top: 10px solid var(--head); border-left: 7px solid transparent; border-right: 7px solid transparent;
}

.figcap { margin-top: 12px; font-size: 14px; color: var(--stone); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.figcap .label { color: var(--ink); background: var(--water-light); padding: 0 6px; flex: none; }

/* ---------- problem / product ---------- */

.cols { display: grid; grid-template-columns: minmax(0, 1fr); border-top: var(--line) solid var(--ink); }
.cols > * { padding: 28px 0; border-bottom: var(--line) solid var(--ink); }
.cols h3 { margin: 10px 0 8px; }
.cols .tc { font-size: 13px; color: var(--water-dark); }
@media (min-width: 820px) {
  .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: var(--line) solid var(--ink); }
  .cols > * { padding: 28px 28px 32px 0; border-bottom: 0; }
  .cols > * + * { padding-left: 28px; border-left: var(--line) solid var(--ink); }
}

.answer { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 900px) { .answer { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; } }
.answer .label { color: var(--water-dark); }

/* ---------- the six steps ---------- */

/* The sequence: six clips on one track with a playhead looping across them. */
.seq { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: var(--line) solid var(--ink); margin-bottom: 24px; }
.seq a {
  display: block; padding: 10px 4px; text-decoration: none; font-family: var(--pixel); font-size: 16px;
  background: var(--water-mid); color: var(--paper); text-align: center; overflow: hidden; white-space: nowrap;
}
.seq a:nth-child(even) { background: var(--water-dark); }
.seq a + a { border-left: var(--line) solid var(--ink); }
.seq a:hover { background: var(--ink); }
.seq a span { display: none; }
@media (min-width: 900px) { .seq a span { display: inline; } }
.seq__head {
  position: absolute; top: -8px; bottom: -8px; width: 3px; background: var(--head); left: 0; pointer-events: none;
  animation: sweep 12s steps(300, end) infinite;
}
@keyframes sweep { to { left: 100%; } }

.board {
  display: grid; grid-template-columns: minmax(0, 1fr);
  border-top: var(--line) solid var(--ink);
  border-left: var(--line) solid var(--ink);
  list-style: none;
}
.board > li {
  border-right: var(--line) solid var(--ink);
  border-bottom: var(--line) solid var(--ink);
  padding: 22px;
  display: grid; gap: 12px; align-content: start;
}
.board__top { display: flex; justify-content: space-between; align-items: center; --px: 2px; }
.board__n { color: var(--water-dark); }
@media (min-width: 640px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .board { grid-template-columns: repeat(3, minmax(0, 1fr)); } .board > li { padding: 26px; } }

/* Each step gets a small working drawing of what happens in it. */
.mini {
  border: var(--line) solid var(--ink); background: var(--paper);
  height: 136px; padding: 10px; overflow: hidden; font-size: 11px; line-height: 1.25;
  font-family: var(--mono);
}
.search { display: flex; gap: 6px; align-items: center; border: 1px solid var(--ink); padding: 3px 6px; margin-bottom: 7px; }
.search::before { content: ""; width: 7px; height: 7px; border: 2px solid var(--ink); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.chip { border: 1px solid var(--ink); padding: 1px 5px; background: var(--paper); font-family: var(--mono); font-size: 11px; line-height: 1.3; }
.chip.is-on { background: var(--ink); color: var(--paper); }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.thumbs i { display: block; height: 22px; border: 1px solid var(--ink); }
.thumbs i.is-sel { outline: 3px solid var(--head); outline-offset: 1px; }

.script { display: grid; grid-template-columns: 1fr 1fr; height: 100%; border: 1px solid var(--ink); }
.script > div { padding: 6px; display: grid; gap: 6px; align-content: start; }
.script > div + div { border-left: 1px solid var(--ink); }
.script b { font-family: var(--pixel); font-weight: 400; font-size: 16px; line-height: 1; color: var(--water-dark); }
.script i { display: block; height: 5px; background: var(--stone-light); }
.script i.d { background: var(--ink); }
.script i.h { background: var(--water-mid); }

.frames { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; height: 100%; }
.frames > div { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 4px; }
.frames .f { border: var(--line) solid var(--ink); position: relative; overflow: hidden; background: var(--paper); }
.frames .f::after { content: ""; position: absolute; background: var(--water-mid); }
.frames .ws::after { left: 8%; right: 8%; bottom: 0; height: 28%; }
.frames .ms::after { left: 28%; right: 28%; bottom: 0; height: 62%; }
.frames .cu::after { left: 12%; right: 12%; top: 18%; bottom: 0; background: var(--water-dark); }
.frames .in::after { left: 30%; right: 30%; top: 32%; bottom: 32%; background: var(--water-light); border: 2px solid var(--ink); }
.frames .f.is-miss { border-style: dashed; border-color: var(--head); }
.frames .f.is-miss::after { display: none; }
.frames .f.is-miss::before { content: "?"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--pixel); font-size: 16px; color: var(--head); }
.frames span { text-align: center; }

.tracks { display: grid; gap: 4px; position: relative; }
.tracks > div { position: relative; height: 24px; border-bottom: 1px solid var(--stone-light); }
.tracks .c { position: absolute; top: 3px; bottom: 3px; border: 2px solid var(--ink); background: var(--water-mid); }
.tracks .c.a { background: var(--water-dark); }
.tracks .c.g { background: var(--paper); border-style: dashed; border-color: var(--stone); }
.tracks .ph { position: absolute; top: -2px; bottom: 0; width: 2px; background: var(--head); left: 62%; }
.tracks .lb { position: absolute; left: 0; top: 4px; color: var(--stone); }

.note { display: grid; gap: 8px; }
.note .bar { height: 20px; border: 2px solid var(--ink); position: relative; background: var(--water-mid); margin-top: 8px; }
.note .bar .pin { position: absolute; top: -9px; width: 12px; height: 12px; background: var(--head); border: 2px solid var(--ink); }
.note .msg { border: 2px solid var(--ink); padding: 4px 7px; display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.note .msg.is-done { border-color: var(--stone-light); color: var(--stone); }
.note .msg.is-done .t { text-decoration: line-through; }
.note .ok { color: var(--water-dark); font-weight: 700; white-space: nowrap; }

.queue { list-style: none; display: grid; gap: 8px; }
.queue li { display: grid; grid-template-columns: 24px minmax(0, 1fr) 56px; gap: 8px; align-items: center; }
.queue .ar { border: 2px solid var(--ink); justify-self: center; background: var(--water-light); }
.queue .r169 { width: 24px; height: 14px; }
.queue .r916 { width: 12px; height: 20px; }
.queue .r11 { width: 17px; height: 17px; }
.queue .r45 { width: 15px; height: 19px; }
.queue .pb { height: 9px; border: 1px solid var(--ink); position: relative; background: var(--paper); }
.queue .pb i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--water-dark); }

/* ---------- technology, on the water ---------- */

.tech { background: var(--water-dark); color: var(--paper); }
.tech .kicker { color: var(--water-light); }
.tech .kicker .tc { background: var(--paper); color: var(--water-dark); }
.tech a { color: var(--water-light); }
.tech .muted { color: #d6d6ff; }

/* the pipeline diagram */
.pipe { display: grid; grid-template-columns: minmax(0, 1fr); margin-bottom: 48px; }
.node { border: var(--line) solid var(--paper); padding: 16px; display: grid; gap: 8px; align-content: start; background: var(--water-dark); min-width: 0; }
.node .label { color: var(--water-light); }
.node h3 { font-size: 1.1rem; }
.node ul { list-style: none; display: grid; gap: 4px; font-size: 14px; }
.node li { padding-left: 14px; position: relative; }
.node li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; background: var(--water-light); }
.node--core { background: var(--paper); color: var(--ink); }
.node--core .label { color: var(--water-dark); }
.node--core li::before { background: var(--water-dark); }
.node--core h3 { font-size: 1.4rem; }
.node--you { border-style: dashed; }
.arrow { display: flex; align-items: center; justify-content: center; height: 34px; }
.arrow::before { content: ""; border-top: 12px solid var(--water-light); border-left: 9px solid transparent; border-right: 9px solid transparent; }
@media (min-width: 1000px) {
  .pipe { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1.25fr) 36px minmax(0, 1fr) 36px minmax(0, 0.9fr); }
  .arrow { height: auto; }
  .arrow::before { border-left: 12px solid var(--water-light); border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-right: 0; }
}

.tech__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; background: var(--water-mid); border: var(--line) solid var(--water-mid); }
.tech__grid > div { background: var(--water-dark); padding: 24px; }
.tech__grid h3 { margin-bottom: 8px; }
.tech__grid .label { color: var(--water-light); display: block; margin-bottom: 12px; }
@media (min-width: 720px) { .tech__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .tech__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.tech__build { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
@media (min-width: 960px) { .tech__build { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; } }
.tech__build .icon { --px: 3px; margin-bottom: 16px; }
.tech__build .label { color: var(--water-light); display: block; margin-bottom: 8px; }

.code { border: var(--line) solid var(--paper); background: var(--ink); color: var(--paper); min-width: 0; }
.code__h { display: flex; justify-content: space-between; gap: 8px; padding: 4px 10px; background: var(--paper); color: var(--ink); font-family: var(--pixel); font-size: 16px; text-transform: uppercase; }
.code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.55; }
.code .s { color: var(--water-light); }
.code .k { color: #aaaaff; }
.code__note { padding: 8px 12px; border-top: var(--line) solid var(--paper); font-size: 13px; color: #d6d6ff; }

.tech__fine { margin-top: 48px; font-size: 14px; color: #d6d6ff; max-width: 52em; }

/* ---------- services ---------- */

.svc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 960px) { .svc { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: start; } }
.list { list-style: none; border-top: var(--line) solid var(--ink); }
.list > li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 20px 0; border-bottom: var(--line) solid var(--ink); }
.list .tc { font-size: 13px; color: var(--water-dark); }
@media (min-width: 720px) { .list > li { grid-template-columns: 110px minmax(0, 1fr); gap: 4px 20px; } .list > li p { grid-column: 2; } }

.formats { border: var(--line) solid var(--ink); }
.formats__h { padding: 4px 12px; border-bottom: var(--line) solid var(--ink); background: var(--ink); color: var(--paper); display: flex; justify-content: space-between; gap: 8px; }
.formats__grid { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-around; gap: 20px; padding: 28px 16px 20px; }
.fr { display: grid; justify-items: center; gap: 8px; }
.fr i { display: block; border: var(--line) solid var(--ink); background: var(--water-mid); position: relative; }
.fr i::after { content: ""; position: absolute; inset: 12%; border: 1px dashed var(--paper); }
.fr .a { width: 128px; height: 72px; }
.fr .b { width: 54px; height: 96px; background: var(--water-dark); }
.fr .c { width: 80px; height: 80px; background: var(--water-light); }
.fr .c::after { border-color: var(--ink); }
.fr .d { width: 72px; height: 90px; }
.fr span { font-family: var(--mono); font-size: 12px; text-align: center; line-height: 1.3; }
.formats__foot { border-top: var(--line) solid var(--ink); padding: 14px 16px; display: flex; gap: 14px; align-items: center; --px: 3px; }
.after { margin-top: 32px; }

/* ---------- roadmap ---------- */

.rm { border: var(--line) solid var(--ink); position: relative; }
.rm__ruler { position: relative; height: 30px; border-bottom: var(--line) solid var(--ink); }
.rm__ruler .ruler { position: absolute; left: 0; right: 0; bottom: 0; }
.rm__track { display: grid; grid-template-columns: minmax(0, 1fr); position: relative; list-style: none; }
.rm__track > li { padding: 22px; display: grid; gap: 6px; align-content: start; position: relative; }
.rm__track > li + li { border-top: var(--line) solid var(--ink); }
.rm__track .label { color: var(--stone); }
.rm__track .is-now { background: var(--water-mid); color: var(--paper); }
.rm__track .is-now .label { color: var(--paper); }
.rm__track .is-now .muted { color: #eeeeff; }
.rm__track li:not(.is-now) { background: repeating-linear-gradient(45deg, var(--wash) 0 6px, var(--paper) 6px 12px); }
.rm__now {
  position: absolute; top: 0; bottom: 0; left: 20%; width: 3px; background: var(--head); z-index: 1;
  display: none; pointer-events: none;
}
.rm__now span {
  position: absolute; top: 3px; left: 6px; background: var(--head); color: var(--ink);
  font-family: var(--pixel); font-size: 16px; line-height: 22px; padding: 0 6px; white-space: nowrap;
}
@media (min-width: 900px) {
  .rm__track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rm__track > li { padding: 28px 24px 32px; min-height: 200px; }
  .rm__track > li + li { border-top: 0; border-left: var(--line) solid var(--ink); }
  .rm__now { display: block; }
}

/* ---------- team ---------- */

.team { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 820px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
.person { border: var(--line) solid var(--ink); display: grid; align-content: start; }
.person__slate {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--ink); color: var(--paper); padding: 6px 16px;
  font-family: var(--pixel); font-size: 16px; text-transform: uppercase;
}
.person__slate .tc { font-size: 13px; color: var(--water-light); text-transform: none; }
.person__body { padding: 24px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; --px: 4px; }
.person__body .label { color: var(--water-dark); display: block; margin-bottom: 6px; }
.person__tools { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- contact, as an export dialog ---------- */

.dialog { border: var(--line) solid var(--ink); max-width: 780px; }
.dialog__bar { display: flex; justify-content: space-between; gap: 12px; background: var(--ink); color: var(--paper); padding: 4px 12px; font-family: var(--pixel); font-size: 16px; text-transform: uppercase; }
.dialog__body { padding: 24px; display: grid; gap: 16px; }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.field .label { color: var(--stone); }
.field .val { font-family: var(--mono); font-size: 15px; border: var(--line) solid var(--ink); padding: 6px 10px; }
@media (min-width: 640px) { .field { grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 16px; } }
.contact__mail {
  font-size: clamp(1.3rem, 3.6vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em;
  color: var(--water-dark); text-decoration-thickness: 3px; text-underline-offset: 6px;
  overflow-wrap: anywhere;
}
.contact__mail:hover { color: var(--ink); }
.dialog__foot { border-top: var(--line) solid var(--ink); padding: 16px 24px; background: var(--wash); }

/* ---------- footer ---------- */

.foot { padding: 40px 0; }
.foot .wrap { display: grid; gap: 24px; }
.foot__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.foot__pool { --px: 4px; }
.foot__end { font-size: 13px; color: var(--stone); }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; font-size: 15px; }
.foot__links a { color: var(--ink); }
.foot__small { font-size: 14px; color: var(--stone); max-width: 60em; }

/* ---------- legal pages ---------- */

.doc { padding: 64px 0 88px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 12px 0 8px; max-width: none; }
.doc h2 { font-size: 1.35rem; margin: 40px 0 12px; max-width: none; letter-spacing: -0.01em; }
.doc p, .doc li { max-width: 46em; }
.doc ul { padding-left: 1.2em; margin: 8px 0; }
.doc li + li { margin-top: 6px; }
.doc dl { display: grid; gap: 4px 24px; margin-top: 12px; }
.doc dt { font-weight: 700; }
.doc dd { margin-bottom: 10px; }
@media (min-width: 720px) { .doc dl { grid-template-columns: 220px 1fr; } .doc dd { margin-bottom: 0; } }

/* Data that only the owner of the site can supply. Visible on purpose, so a page with a
   gap can never be mistaken for a finished one. Search the html for FALTA. */
.todo { background: #ffff55; color: var(--ink); padding: 0 4px; font-weight: 700; }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .stream__f, .rec, .seq__head { animation: none; }
  .stream__f:first-child { opacity: 1; }
  .seq__head { left: 31%; }
}

/* The viewer pane is as tall as the tallest pane beside it; the black runs to the floor. */
.pane--viewer { display: flex; flex-direction: column; background: var(--ink); }
.pane--viewer .viewer { flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* ---------- proof: the one number we publish ---------- */

.proof { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 15px; color: var(--stone); justify-self: start; }
.proof strong { font-family: var(--pixel); font-size: 16px; font-weight: 400; color: var(--paper); background: var(--water-dark); padding: 0 8px; }
.stat {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: center;
  border: var(--line) solid var(--ink); margin-bottom: 40px;
}
.stat strong {
  font-size: clamp(2.6rem, 7vw, 4.5rem); line-height: 1; letter-spacing: -0.03em;
  background: var(--water-dark); color: var(--paper); padding: 18px 24px;
}
.stat span { padding: 0 24px 18px; font-size: 1.1rem; }
@media (min-width: 720px) {
  .stat { grid-template-columns: auto minmax(0, 1fr); gap: 24px; }
  .stat span { padding: 0 24px 0 0; }
}

/* ---------- private engagement ---------- */

.case { background: var(--wash); }

.io { display: grid; grid-template-columns: minmax(0, 1fr); border: var(--line) solid var(--ink); background: var(--paper); margin-bottom: 32px; }
.io__cell { padding: 16px 20px; display: grid; gap: 4px; }
.io__cell .label { color: var(--water-dark); }
.io__cell strong { font-size: 1.1rem; line-height: 1.3; }
.io__cell--out { background: var(--water-dark); color: var(--paper); }
.io__cell--out .label { color: var(--water-light); }
.io__cell--gate { border-top: var(--line) solid var(--ink); }
.io__arrow { display: flex; justify-content: center; padding: 6px 0; }
.io__arrow::before { content: ""; border-top: 12px solid var(--ink); border-left: 9px solid transparent; border-right: 9px solid transparent; }
@media (min-width: 900px) {
  .io { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1.4fr) minmax(0, 1fr); }
  .io__arrow { align-items: center; padding: 0; }
  .io__arrow::before { border-left: 12px solid var(--ink); border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-right: 0; }
  .io__cell--gate { border-top: 0; border-left: var(--line) solid var(--ink); }
}

/* the five stages, as clips on one track */
.pl {
  list-style: none; display: grid; grid-template-columns: minmax(0, 1fr);
  border-top: var(--line) solid var(--ink); border-left: var(--line) solid var(--ink); background: var(--paper);
}
.pl > li { border-right: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink); padding: 20px; display: grid; gap: 10px; align-content: start; }
.pl > li:nth-child(3) { background: var(--water-mid); color: var(--paper); }
.pl > li:nth-child(3) .muted { color: #eeeeff; }
.pl > li:nth-child(3) .pl__n { color: var(--paper); }
.pl > li:nth-child(3) .chip { border-color: var(--paper); background: var(--water-dark); color: var(--paper); }
.pl__n { display: flex; align-items: center; gap: 8px; color: var(--water-dark); }
.pl__n .tc { font-size: 13px; background: var(--ink); color: var(--paper); padding: 0 6px; line-height: 20px; }
.pl h3 { font-size: 1.05rem; }
.pl .muted { font-size: 15px; }
@media (min-width: 640px) { .pl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pl { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.case__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 32px; align-items: start; }
@media (min-width: 960px) { .case__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }

.plan { border: var(--line) solid var(--ink); background: var(--ink); color: var(--paper); min-width: 0; }
.plan__scroll { overflow-x: auto; }
.plan table { border-collapse: collapse; width: 100%; font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.plan th { text-align: left; font-weight: 400; color: var(--stone-light); padding: 8px 12px; border-bottom: 1px solid var(--stone); }
.plan td { padding: 6px 12px; border-bottom: 1px solid #222222; }
.plan td:nth-child(2) { color: var(--water-light); }
.plan tr.is-cut td { color: var(--stone-light); text-decoration: line-through; }
.plan tr.is-cut td:nth-child(2) { color: var(--head); text-decoration: none; }
.plan__note { padding: 8px 12px; border-top: var(--line) solid var(--paper); font-size: 13px; color: var(--stone-light); }

.gate { border: var(--line) solid var(--ink); background: var(--paper); }
.gate .code__h { background: var(--ink); color: var(--paper); }
.gate__ok { background: var(--water-light); color: var(--ink); padding: 0 6px; }
.gate ul { list-style: none; padding: 12px 16px; display: grid; gap: 10px; font-size: 15px; }
.gate li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.gate .box {
  width: 22px; height: 22px; border: var(--line) solid var(--ink); background: var(--water-dark); color: var(--paper);
  display: flex; align-items: center; justify-content: center; font-size: 13px; line-height: 1;
}
.gate__note { border-top: var(--line) solid var(--ink); padding: 12px 16px; font-size: 14px; color: var(--stone); }

.case__foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 32px; }
.case__foot .label { color: var(--water-dark); display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.case__status { border: var(--line) solid var(--ink); background: var(--paper); padding: 16px 18px; }
@media (min-width: 960px) { .case__foot { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
