/* art.css · a Writing note set in the art direction of a The Brand Identity feature:
   a centred logotype that folds to its initials, a full bleed moving image, a rule with three columns under it
   (meta, headline, tags), a large serif lede, then serif text in a narrow column that moves between the left and
   the right of a 12 column grid, around wide 3:2 plates and full bleed pairs. Every color is a design system token. */

@font-face { font-family: "Inter Variable"; src: url("/originals/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+1-1F, U+7F-9F, U+AD, U+100-130, U+132-14C, U+14E-151, U+154-17D, U+17F-2BA, U+2BD-2C5, U+2C7-2D9, U+2DB, U+2DD-2FF, U+301-36E, U+370-3A2, U+3A4-3A8, U+3AA-3B4, U+3B7-3BB, U+3BD-3C0, U+3C2-3C3, U+3C5-3C8, U+3CA-1D61, U+1D63-1FFF, U+200C-200F, U+2028-202E, U+2056, U+2058-205E, U+2060-2073, U+2077-2081, U+2084-2092, U+2094-209A, U+209C-20AB, U+20AD-2121, U+2123-218F, U+219A-21B4, U+21B6-21E6, U+21E8-2211, U+2213-2219, U+221B-221D, U+221F-2247, U+2249-2302, U+2304-2317, U+2319-2324, U+2327-232A, U+232C-23CD, U+23CF-FEFE, U+FF00-10FFFF; }
@font-face { font-family: "Inter Variable"; src: url("/originals/InterVariable-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0, U+20-7E, U+A0-AC, U+AE-FF, U+131, U+14D, U+152-153, U+17E, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+300, U+36F, U+3A3, U+3A9, U+3B5-3B6, U+3BC, U+3C1, U+3C4, U+3C9, U+1D62, U+2000-200B, U+2010-2027, U+202F-2055, U+2057, U+205F, U+2074-2076, U+2082-2083, U+2093, U+209B, U+20AC, U+2122, U+2190-2199, U+21B5, U+21E7, U+2212, U+221A, U+221E, U+2248, U+2303, U+2318, U+2325-2326, U+232B, U+23CE, U+FEFF; }
@font-face { font-family: "Sentient"; src: url(fonts/sentient.woff2) format("woff2"); font-weight: 200 700; font-display: swap; }

:root {
  --serif: "Sentient", Georgia, serif;
  --page: var(--ground);
  --plate: color-mix(in oklab, var(--ink) 6%, var(--ground));
  --plate-2: color-mix(in oklab, var(--ink) 11%, var(--ground));
  --term: var(--gray-900);
  --term-ink: var(--gray-100);
  --m: 29px;        /* outer margin */
  --gut: 34px;      /* column gutter */
  --ease: cubic-bezier(.165, .84, .44, 1);
  --f0: var(--gray-300); --f1: var(--blue-500); --f2: var(--aqua-400); --f3: var(--yellow-400); --f4: var(--magenta-500);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --plate: color-mix(in oklab, var(--ink) 7%, var(--ground)); --plate-2: color-mix(in oklab, var(--ink) 12%, var(--ground)); --term: #0c0c0c; --f0: var(--gray-600); color-scheme: dark; }
}
:root[data-theme="dark"] { --plate: color-mix(in oklab, var(--ink) 7%, var(--ground)); --plate-2: color-mix(in oklab, var(--ink) 12%, var(--ground)); --term: #0c0c0c; --f0: var(--gray-600); color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); font-feature-settings: var(--font-features); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
::selection { background: var(--accent-tint); }
code { font-family: var(--font-mono); font-size: .82em; background: var(--plate); padding: .08em .3em; border-radius: 4px; }
canvas { image-rendering: pixelated; image-rendering: crisp-edges; display: block; }

/* ── the bar: section links left, the logotype in the middle, icons right ── */
.bar { position: fixed; inset: 0 0 auto; z-index: 40; height: 140px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; padding: 66px var(--m) 0; background: var(--page); transition: height .5s var(--ease), padding .5s var(--ease), background-color .5s var(--ease); }
.bar.small { height: 76px; padding-top: 24px; background: color-mix(in oklab, var(--page) 86%, transparent); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }
.bar-l { font-size: 20px; line-height: 28px; letter-spacing: -.005em; }
.bar-l a { text-decoration: none; background: linear-gradient(currentColor 0 0) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.bar-l a:hover, .bar-l a[aria-current] { background-size: 100% 1px; }
.mark { display: flex; align-items: center; text-decoration: none; font-size: 34px; line-height: 40px; font-weight: 450; letter-spacing: -.03em; white-space: nowrap; transition: font-size .5s var(--ease); }
.mark-x { display: inline-block; max-width: 7.5em; overflow: hidden; vertical-align: bottom; transition: max-width .5s var(--ease), opacity .35s var(--ease); }
.mark-line { display: inline-block; width: 1.1em; height: 1.5px; background: currentColor; margin: 0 .16em; transition: width .5s var(--ease); }
.bar.small .mark { font-size: 30px; }
.bar.small .mark-x { max-width: 0; opacity: 0; }
.bar.small .mark-line { width: .9em; }
.bar-r { justify-self: end; display: flex; align-items: center; gap: 14px; margin-top: -4px; }
.ic { width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; color: inherit; border-radius: 999px; cursor: default; transition: background-color .2s; }
.ic:hover { background: var(--plate); }
.ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.ic .fillc { fill: currentColor; stroke: none; }
.burger { width: 48px; height: 36px; border: 0; background: none; cursor: default; display: grid; align-content: center; gap: 6px; padding: 0 2px; color: inherit; }
.burger i { display: block; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.burger:hover i:first-child { transform: translateX(-4px); }
.burger:hover i:last-child { transform: translateX(4px); }

/* ── the hero ── */
.hero { padding-top: 140px; }
.hero-stage { position: relative; height: min(78vh, 760px); overflow: hidden; background: var(--plate-2); }
.hero-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s var(--ease); }
.hero-stage canvas.contain { object-fit: contain; inset: 10% 0; height: 80%; }
.hero-stage canvas.on { opacity: 1; }
.hero-stage .scan { position: absolute; left: 0; right: 0; height: 2px; background: color-mix(in oklab, #fff 70%, transparent); mix-blend-mode: difference; pointer-events: none; opacity: 0; }
.hero-cap { display: flex; justify-content: space-between; gap: 24px; margin: 0; padding: 12px var(--m) 0; font-size: 13px; line-height: 18px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hero-cap b { font-weight: 450; color: var(--ink); }

/* ── the grid ── */
.g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); padding: 0 var(--m); }
.rule { grid-column: 1 / -1; border: 0; border-top: 1.5px solid var(--ink); margin: 0; }

.head { margin-top: 32px; row-gap: 46px; }
.meta { grid-column: 1 / 3; margin: 0; display: grid; gap: 12px; align-content: start; font-family: var(--serif); font-size: 13px; line-height: 17px; }
.meta dt { font-family: var(--font); font-size: 10.5px; line-height: 14px; color: var(--ink-3); letter-spacing: .01em; }
.meta dd { margin: 0; }
.title { grid-column: 3 / 10; margin: -4px 0 0; font-size: clamp(36px, 3.85vw, 56px); line-height: 1.07; font-weight: 500; letter-spacing: -.024em; text-wrap: balance; }
.tags { grid-column: 10 / 13; display: flex; flex-direction: column; gap: 52px; align-items: start; }
.tags p { margin: 0; font-size: 20px; line-height: 27px; letter-spacing: -.005em; }
.tags a { text-decoration: none; transition: color .2s; }
.tags a:hover { color: var(--ink-3); }
.more-n { color: var(--ink-3); }
.save { border: 0; background: none; padding: 0; color: inherit; cursor: default; }
.save svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: fill .2s; }
.save[aria-pressed="true"] svg { fill: currentColor; }

.lede { margin: 120px 0 0; }
.lede span { grid-column: 2 / 12; font-family: var(--serif); font-size: clamp(28px, 2.85vw, 41px); line-height: 1.14; letter-spacing: -.012em; font-weight: 340; text-wrap: pretty; }
.lede a { font-family: var(--font); font-weight: 500; letter-spacing: -.02em; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ── plates ── */
figure { margin: 0; }
.plate { position: relative; background: var(--plate); overflow: hidden; }
.wide { margin-top: 150px; }
.wide > .plate, .wide > .cap { grid-column: 3 / 11; }
.shot { aspect-ratio: 16 / 9; }
.shot canvas { width: 100%; height: 100%; object-fit: cover; }
.word { position: absolute; left: 3.2%; right: 3.2%; bottom: 6%; width: 93.6%; height: auto; aspect-ratio: 1000 / 230; overflow: visible; }
.word text { fill: #fff; font-family: var(--font); font-size: 300px; font-weight: 340; letter-spacing: -.01em; }
.px { width: 62%; height: 62%; image-rendering: pixelated; display: block; }
.cap { margin-top: 12px; font-size: 13px; line-height: 18px; color: var(--ink-3); }
.cap b { color: var(--ink); font-weight: 500; }

/* ── text: serif in a narrow column, the section name in the margin beside it ── */
.text { margin-top: 110px; align-items: start; }
.text .col { font-family: var(--serif); font-weight: 360; font-size: 21px; line-height: 1.31; letter-spacing: -.003em; text-wrap: pretty; }
.text .col p { margin: 0; }
.text .col p + p { text-indent: 2.2em; }
.text .col .ind { text-indent: 4.6em; }
.text.at-l .col { grid-column: 4 / 9; }
.text.at-r .col { grid-column: 7 / 12; }
.side { margin: 4px 0 0; font-size: 13px; line-height: 18px; font-weight: 450; color: var(--ink-2); }
.text.at-l .side { grid-column: 2 / 4; }
.text.at-r .side { grid-column: 5 / 7; }
.side::before { content: ""; display: block; width: 18px; height: 1.5px; background: currentColor; margin-bottom: 10px; }
.col code { font-size: .74em; }
.out { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 14px; font-family: var(--font); font-size: 16px; font-weight: 500; }
.out a { text-decoration: none; }
.out a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── pairs: two plates across the whole width ── */
.pair { margin-top: 110px; grid-template-columns: 1fr 1fr; }
.pair .pane, .bleed .pane { min-width: 0; }
.sq { aspect-ratio: 1; display: grid; place-items: center; }
.sq canvas { width: 62%; height: 62%; }
.pair figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: 13px; line-height: 18px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pair figcaption b { color: var(--ink); font-weight: 500; }
.checker { background-color: var(--plate); background-image: conic-gradient(var(--plate-2) 25%, transparent 0 50%, var(--plate-2) 0 75%, transparent 0); background-size: 24px 24px; }

.picker { margin-top: 28px; row-gap: 20px; }
.verdict { grid-column: 1 / 5; margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.31; }
.strip { grid-column: 5 / 13; display: flex; gap: 4px; overflow-x: auto; padding: 3px 3px 10px; scrollbar-width: thin; scroll-snap-type: x proximity; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.strip .tile { flex: none; scroll-snap-align: start; }
.tile { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 4px; background: var(--plate); cursor: default; display: grid; place-items: center; outline: 1.5px solid transparent; outline-offset: 1px; transition: outline-color .2s, transform .25s var(--ease); }
.tile img { width: 32px; height: 32px; image-rendering: pixelated; display: block; }
.tile:hover { transform: translateY(-2px); }
.tile[aria-selected="true"] { outline-color: var(--ink); }
.tile.same { box-shadow: inset 0 -3px 0 var(--green-500); }
.tile.diff { box-shadow: inset 0 -3px 0 var(--red-500); }
.acts { grid-column: 5 / 13; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.acts-say { font-size: 13px; color: var(--ink-3); margin-left: 6px; font-variant-numeric: tabular-nums; }
.acts [data-variant="primary"] { color: var(--on-solid); }

/* ── the text plate ── */
.lz { padding: 56px 7% 48px; display: grid; gap: 28px; }
.lz textarea { width: 100%; resize: vertical; border: 0; border-bottom: 1px solid var(--line-3); background: transparent; color: var(--ink-3); font: 15px/22px var(--font); padding: 0 0 12px; outline: none; }
.lz textarea:focus { border-bottom-color: var(--ink); color: var(--ink); }
.lz-out { margin: 0; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 32px); line-height: 1.32; letter-spacing: -.01em; overflow-wrap: anywhere; cursor: default; }
.lz-out span { transition: background-color .15s, color .15s; border-radius: 2px; }
.lz-out .is-copy { color: var(--violet-600); background: color-mix(in oklab, var(--violet-500) 9%, transparent); }
.lz-out .is-copy.is-odd { background: color-mix(in oklab, var(--violet-500) 17%, transparent); }
.lz-out .is-hot { background: var(--violet-500); color: #fff; }
.lz-out .is-source { background: var(--yellow-300); color: var(--gray-900); }
.lz-codes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-3); }
.lz-codes > span:first-child { width: 100%; margin-bottom: 4px; }
.lz-code { display: inline-flex; align-items: baseline; gap: 6px; height: 26px; align-items: center; padding: 0 9px; border-radius: 999px; background: var(--page); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lz-code b { font-weight: 500; color: var(--ink); font-family: var(--serif); font-size: 15px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lz-out .is-copy { color: var(--violet-300); } }
:root[data-theme="dark"] .lz-out .is-copy { color: var(--violet-300); }

/* ── the rows: image and filter bars, full bleed ── */
.bleed { margin-top: 110px; grid-template-columns: 1fr 1fr; padding: 0; column-gap: 0; }
.bleed .sq canvas { width: 70%; height: 70%; }
.rows { display: grid; align-content: center; justify-items: stretch; padding: 15%; gap: 0; }
.rows i.bar-row { display: block; height: 100%; transform-origin: left; transform: scaleX(0); transition: transform .7s var(--ease); }
.rows.on i.bar-row { transform: scaleX(1); }
.row-hi { position: absolute; left: 0; right: 0; height: 0; pointer-events: none; outline: 1.5px solid var(--ink); opacity: 0; transition: opacity .15s; }
.bleed .plate:hover .row-hi, .bleed.hot .row-hi { opacity: 1; }
.f0 { background: var(--f0); } .f1 { background: var(--f1); } .f2 { background: var(--f2); } .f3 { background: var(--f3); } .f4 { background: var(--f4); }
.pair-cap { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; padding: 0 var(--m); }
.legend { display: inline-flex; gap: 8px; align-items: center; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-left: 6px; }
.seg { margin-left: auto; display: inline-flex; gap: 4px; }
.seg button { height: 28px; padding: 0 11px; border: 0; border-radius: 999px; background: var(--plate); color: var(--ink-2); font: 500 12px/1 var(--font); cursor: default; transition: background-color .2s, color .2s; }
.seg button:hover { background: var(--plate-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--page); }

/* ── the terminal plate ── */
.term { background: var(--term); color: var(--term-ink); padding: 52px 6%; display: grid; gap: 36px; }
.run-cmd { display: block; font-size: 13px; line-height: 18px; color: color-mix(in oklab, var(--term-ink) 55%, var(--term)); margin-bottom: 10px; font-family: var(--font-mono); }
.run-cmd::before { content: "$ "; }
.term pre { margin: 0; font-family: var(--font-mono); font-size: 13.5px; line-height: 21px; white-space: pre-wrap; }

.refused { place-items: center; }
.ref-msg { margin: 0; padding: 0 14%; text-align: center; font-family: var(--serif); font-size: clamp(20px, 2.2vw, 32px); line-height: 1.2; color: var(--ink-2); }

/* ── credits and tags ── */
.credits { margin-top: 140px; row-gap: 22px; }
.cred { grid-column: 1 / 8; margin: 0; display: grid; gap: 8px; font-size: 13px; line-height: 18px; }
.cred div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; }
.cred dt { font-weight: 500; }
.cred dd { margin: 0; font-family: var(--serif); font-size: 14px; }
.taglist { grid-column: 9 / 13; list-style: none; margin: 0; padding: 0; columns: 2; column-gap: var(--gut); font-size: 13px; line-height: 21px; }
.taglist a { text-decoration: none; }
.taglist a:hover { text-decoration: underline; }

.next { margin: 140px 0 120px; row-gap: 20px; }
.next h2 { grid-column: 1 / -1; margin: 6px 0 12px; font-size: clamp(30px, 2.6vw, 38px); line-height: 1.1; font-weight: 500; letter-spacing: -.024em; }
.card { grid-column: span 3; text-decoration: none; display: grid; gap: 8px; align-content: start; font-size: 13px; line-height: 17px; }
.card b { font-weight: 450; }
.card > span:last-child { color: var(--ink-3); }
.card-img { aspect-ratio: 3 / 2; background: var(--plate); overflow: hidden; display: block; margin-bottom: 4px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.card:hover .card-img img { transform: scale(1.04); }

/* ── reveal on scroll ── */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .hero-stage canvas { transition: none; } }

/* ── phone ── */
@media (max-width: 860px) {
  :root { --m: 16px; --gut: 16px; }
  .bar { height: 64px; padding-top: 18px; }
  .bar.small { height: 56px; padding-top: 14px; }
  .bar-l { display: none; }
  .bar { grid-template-columns: auto 1fr; }
  .mark { font-size: 24px; }
  .bar.small .mark { font-size: 22px; }
  .bar-r { gap: 4px; }
  .hero { padding-top: 64px; }
  .hero-stage { height: 62vh; }
  .hero-cap { flex-direction: column; gap: 2px; }
  .g > * { grid-column: 1 / -1 !important; }
  .head { row-gap: 22px; }
  .meta { display: flex; flex-wrap: wrap; gap: 6px 20px; order: 2; }
  .title { order: 1; font-size: 34px; }
  .tags { order: 3; flex-direction: row; justify-content: space-between; gap: 16px; }
  .tags p { font-size: 16px; line-height: 22px; }
  .lede { margin-top: 56px; }
  .lede span { font-size: 25px; }
  .wide, .text, .pair, .bleed { margin-top: 64px; }
  .side { margin-bottom: 14px; }
  .text .col { font-size: 18px; }
  .pair { grid-template-columns: 1fr 1fr; column-gap: 8px; }
  .pair .pane { grid-column: auto !important; }
  .pair figcaption { flex-direction: column; gap: 0; }
  .bleed .pane { grid-column: auto !important; }
  .pair-cap .seg { margin-left: 0; }
  .lz { padding: 28px 18px; }
  .term { padding: 28px 18px; }
  .card { grid-column: span 6 !important; }
  .taglist { margin-top: 20px; }
  .cred div { grid-template-columns: 8em 1fr; }
}
