/* Layout: one narrow reading column, work as a two-up grid of cards; the kill grid is the one loud element. */
:root {
  --ink: #FFFFFF;
  --panel: #F4F3F0;
  --rule: #E3E1DC;
  --dim: #6E6A63;
  --text: #262523;
  --paper: #0B0B0A;
  --flame: #FF6A2B;
  --display: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  --on-flame: #0B0B0A;
  --wide: 1120px;
  --read: 680px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  padding-inline: 20px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--paper); text-underline-offset: 3px; text-decoration-color: var(--flame); }
a:hover { color: var(--flame); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; }
.wrap { max-width: var(--wide); margin-inline: auto; }
.read { max-width: var(--read); }

/* header */
.top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; padding-block: 28px; border-bottom: 1px solid var(--rule); }
.brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.brand b { font: 800 22px/1 var(--display); color: var(--paper); letter-spacing: -0.01em; }
.brand span { font: 400 12px/1.4 var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.nav { display: flex; gap: 24px; font: 400 13px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.nav a { color: var(--dim); text-decoration: none; }
.nav a:hover, .nav a[aria-current] { color: var(--flame); }

/* type */
.eyebrow { font: 400 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--flame); margin: 0; }
h1, h2, h3 { font-family: var(--display); color: var(--paper); text-wrap: balance; margin: 0; }
h1 { font-weight: 800; font-size: clamp(40px, 7vw, 72px); line-height: 1; letter-spacing: -0.02em; }
h2 { font-weight: 800; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.1; }
h3 { font-weight: 800; font-size: 22px; line-height: 1.15; }
p { margin: 0; }
.lede { font-size: 20px; line-height: 1.55; color: var(--paper); }
.flat { font: 800 clamp(22px, 2.6vw, 28px)/1.25 var(--display); color: var(--paper); }
.flat em { font-style: normal; color: var(--flame); }

section { padding-block: 64px; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 28px; }
section:last-of-type { border-bottom: 0; }
.stack { display: flex; flex-direction: column; gap: 18px; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 72px; border-bottom: 1px solid var(--rule); }
.hero .big { font: 800 clamp(88px, 16vw, 176px)/0.85 var(--display); color: var(--paper); letter-spacing: -0.04em; margin: 0; }
.hero .big span { color: var(--flame); }
.cta { font: 400 14px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--flame); text-decoration: none; align-self: flex-start; border-bottom: 1px solid var(--flame); padding-bottom: 4px; }
.cta:hover { color: var(--paper); border-color: var(--paper); }

/* kill grid */
.kill { display: flex; flex-direction: column; gap: 16px; min-width: 0; max-width: 620px; }
.squares { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 4px; }
.squares i { aspect-ratio: 1; background: var(--rule); display: block; }
.squares i.k { background: var(--flame); }
.squares i.p { background: #8C8880; }
.squares i.t { background: transparent; box-shadow: inset 0 0 0 2px var(--paper); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font: 400 12px/1.4 var(--mono); color: var(--text); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; display: inline-block; background: var(--rule); }
.legend i.k { background: var(--flame); }
.legend i.p { background: #8C8880; }
.legend i.t { background: transparent; box-shadow: inset 0 0 0 2px var(--paper); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.stat { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--flame); padding-top: 16px; }
.stat b { font: 800 clamp(40px, 5vw, 56px)/1 var(--display); color: var(--paper); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat span { font-size: 15px; line-height: 1.45; color: var(--text); }

/* work grid */
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
.card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--text); }
.card .thumb { aspect-ratio: 16 / 9; background: var(--panel); overflow: hidden; max-width: 100%; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.card:hover .thumb img { transform: scale(1.03); }
.card .meta { font: 400 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.card h3 { transition: color 150ms; }
.card:hover h3 { color: var(--flame); }
.card .result { color: var(--flame); font: 400 14px/1.4 var(--mono); }
.thumb.killthumb { display: flex; align-items: center; justify-content: center; padding: 24px; }
.thumb.killthumb .squares { width: 70%; gap: 3px; }

/* project page */
.phead { padding-block: 64px 48px; display: flex; flex-direction: column; gap: 20px; border-bottom: 1px solid var(--rule); }
.phead .result { font: 400 15px/1.4 var(--mono); color: var(--flame); }
.reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 32px 24px; }
.reel { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.reel a.play { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--panel); overflow: hidden; max-width: 100%; }
.reel a.play img { width: 100%; height: 100%; object-fit: cover; }
.reel a.play::after { content: ""; position: absolute; left: 16px; bottom: 16px; width: 44px; height: 44px; background: var(--flame) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%230F0F0E'/%3E%3C/svg%3E") center / 22px no-repeat; transition: transform 150ms; }
.reel a.play:hover::after { transform: scale(1.1); }
.reel iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; background: #000; }
.reel figcaption { font: 400 13px/1.4 var(--mono); color: var(--text); display: flex; justify-content: space-between; gap: 12px; }
.reel figcaption span { color: var(--dim); }
.photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.concepts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.concept { background: var(--panel); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.concept .tag { font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--flame); }

.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 15px; }
th { font: 400 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
td.v { font: 400 13px/1.4 var(--mono); white-space: nowrap; }
td.y { color: var(--paper); }
td.n { color: var(--dim); }
tr.kept td.verdict { color: var(--flame); }
td.verdict { font: 400 13px/1.4 var(--mono); text-transform: uppercase; }

.next { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font: 400 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; padding-block: 40px; border-top: 1px solid var(--rule); }
.next a { text-decoration: none; color: var(--dim); }
.next a:hover { color: var(--flame); }

/* footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-block: 40px 56px; border-top: 1px solid var(--rule); font: 400 13px/1.5 var(--mono); color: var(--dim); }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { color: var(--flame); }
.foot .links { display: flex; flex-wrap: wrap; gap: 24px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 48px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work, .concepts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  body { padding-inline: 16px; font-size: 16px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .photos { grid-template-columns: minmax(0, 1fr); }
  section { padding-block: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- home v2 ---------- */
.mono { font: 400 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.hero2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-block: 72px 80px; border-bottom: 1px solid var(--rule); }
.hcopy { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.shout { font: 800 clamp(44px, 6.6vw, 92px)/0.95 var(--display); letter-spacing: -0.035em; color: var(--paper); }
.shout em { font-style: normal; color: var(--flame); display: block; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.btn { font: 600 14px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; background: var(--flame); color: var(--on-flame); padding: 16px 22px; transition: background 150ms; }
.btn:hover { background: var(--paper); color: var(--ink); }
.hviz { display: flex; flex-direction: column; gap: 16px; min-width: 0; background: var(--panel); padding: 24px; }
.vizhead { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vizhead .count { color: var(--paper); }
.vizhead .count b { font-weight: 400; color: var(--flame); font-variant-numeric: tabular-nums; }
.squares.live i { transition: background 400ms ease, box-shadow 400ms ease, opacity 200ms; }
.squares.gen i { background: var(--rule); box-shadow: none; opacity: .35; }
.squares.gen i.on { background: var(--paper); opacity: 1; }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.feed li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--rule); font: 400 13px/1.3 var(--mono); transition: opacity 300ms, transform 300ms; }
.feed li span { color: var(--text); min-width: 0; }
.feed li b { font-weight: 400; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; white-space: nowrap; }
.feed li.fk span { color: var(--paper); }
.feed li.fk b { color: var(--flame); }
.feed li.wait { opacity: 0; transform: translateX(-8px); }
.early { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.early li { display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 28px 0; border-bottom: 1px solid var(--rule); counter-increment: e; }
.early li .when { font: 400 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--flame); }
.early li p { color: var(--paper); font-size: 17px; line-height: 1.45; }
.early li:last-child { background: var(--panel); padding-left: 24px; }
.builds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bld { display: flex; flex-direction: column; gap: 10px; background: var(--panel); padding: 24px; text-decoration: none; color: var(--text); min-width: 0; }
.bld b { font: 800 44px/1 var(--display); color: var(--flame); letter-spacing: -0.02em; margin-top: 8px; }
.bld p { font-size: 15px; line-height: 1.45; }
a.bld:hover h3 { color: var(--flame); }
@media (max-width: 960px) {
  .hero2 { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 48px 56px; }
  .early { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .builds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .early, .builds { grid-template-columns: minmax(0, 1fr); }
  .early li:last-child { padding-left: 16px; }
  .hviz { padding: 16px; }
}

/* ---------- home: hero + scroll story ---------- */
.mono { font: 400 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.btn { font: 600 14px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; background: var(--flame); color: var(--on-flame); padding: 16px 22px; align-self: flex-start; transition: background 150ms; }
.btn:hover { background: var(--paper); color: var(--ink); }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }

.hero3 { display: flex; flex-direction: column; gap: 32px; padding-block: 80px 88px; border-bottom: 1px solid var(--rule); }
.shout { font: 800 clamp(46px, 8.4vw, 124px)/0.92 var(--display); letter-spacing: -0.04em; color: var(--paper); }
.shout em { font-style: normal; color: var(--flame); display: block; }
.cyc { display: inline-block; color: var(--paper); box-shadow: inset 0 -0.12em 0 var(--flame); }
.pop { animation: pop 380ms cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(0.25em); } to { opacity: 1; transform: none; } }
.hsub { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: end; }

.storygrid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 56px; align-items: start; }
.dial { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 24px); background: var(--panel); padding: 28px; display: flex; flex-direction: column; gap: 24px; }
.dtop, .dbot { display: flex; flex-direction: column; gap: 8px; }
.dyr { font: 800 clamp(64px, 8vw, 112px)/0.9 var(--display); color: var(--paper); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.dch { font: 800 clamp(26px, 2.8vw, 36px)/1.05 var(--display); color: var(--paper); min-height: 2.1em; }
.dbar { height: 3px; background: var(--rule); }
.dbar i { display: block; height: 100%; width: 14%; background: var(--flame); transition: width 400ms ease; }
.dq { font: 800 clamp(30px, 3.4vw, 44px)/1 var(--display); color: var(--flame); }
.dnote { color: var(--text); }

.eras { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.era { display: flex; flex-direction: column; gap: 14px; padding-block: 40px; border-top: 1px solid var(--rule); transition: opacity 300ms; }
.era:first-child { border-top: 0; padding-top: 0; }
.era .etop { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.era .eyr { font: 400 14px/1 var(--mono); color: var(--flame); }
.era h3 { font-size: clamp(28px, 3vw, 38px); }
.era .accts { font: 400 13px/1.5 var(--mono); color: var(--paper); }
.era > p:not(.accts) { max-width: 60ch; }
.obj { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; margin: 6px 0 0; padding-top: 16px; border-top: 1px dashed var(--rule); }
.obj dt { font: 400 12px/1.6 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.obj dd { margin: 0; color: var(--paper); }
.obj dd.res { color: var(--flame); font-weight: 500; }
.era.last { background: var(--panel); padding: 32px; margin-top: 8px; border-top: 0; }
.era.last .kill { max-width: 100%; }

.squares.live i { transition: background 400ms ease, box-shadow 400ms ease, opacity 200ms; }
.squares.gen i { background: var(--rule); box-shadow: none; opacity: .3; }
.squares.gen i.on { background: var(--paper); opacity: 1; }

.builds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bld { display: flex; flex-direction: column; gap: 10px; background: var(--panel); padding: 24px; text-decoration: none; color: var(--text); min-width: 0; }
.bld b { font: 800 44px/1 var(--display); color: var(--flame); letter-spacing: -0.02em; margin-top: 8px; }
.bld p { font-size: 15px; line-height: 1.45; }
a.bld:hover h3 { color: var(--flame); }

@media (max-width: 960px) {
  .hsub { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .storygrid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dial { top: env(safe-area-inset-top, 0px); z-index: 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 12px 16px; margin-inline: -16px; border-bottom: 1px solid var(--rule); }
  .dtop, .dbot { flex-direction: row; align-items: baseline; gap: 10px; }
  .dtop .mono, .dbot .mono { display: none; }
  .dyr { font-size: 32px; }
  .dch { font-size: 18px; min-height: 0; }
  .dq { font-size: 18px; }
  .dbar { order: 3; flex-basis: 100%; }
  .eras { padding-top: 32px; }
  .builds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .builds { grid-template-columns: minmax(0, 1fr); }
  .era.last { padding: 20px; margin-inline: -4px; }
  .hero3 { padding-block: 48px 56px; }
}

/* ---------- interactive timeline player ---------- */
.shead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.ctrl { display: flex; gap: 8px; }
.ctrl button { font: 400 13px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; background: transparent; color: var(--paper); border: 1px solid var(--rule); padding: 12px 16px; min-width: 48px; cursor: pointer; transition: border-color 150ms, color 150ms; }
.ctrl button:hover { border-color: var(--flame); color: var(--flame); }
.player { background: var(--panel); display: flex; flex-direction: column; outline: none; }
.player:focus-visible { box-shadow: 0 0 0 2px var(--flame); }

.rail { list-style: none; margin: 0; padding: 28px 28px 20px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); position: relative; border-bottom: 1px solid var(--rule); }
.rline { position: absolute; left: calc(28px + (100% - 56px) / 14); right: calc(28px + (100% - 56px) / 14); top: 39px; height: 2px; background: var(--rule); }
.rline i { display: block; height: 100%; width: 0; background: var(--flame); transition: width 600ms cubic-bezier(.2,.8,.2,1); }
.stop { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; position: relative; padding-top: 0; width: 100%; }
.stop::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--rule); position: relative; z-index: 1; transition: background 300ms, box-shadow 300ms, transform 300ms; }
.stop.past::before { background: var(--flame); box-shadow: 0 0 0 2px var(--flame); }
.stop.on::before { background: var(--flame); box-shadow: 0 0 0 5px rgba(255,106,43,.25); transform: scale(1.3); }
.stop b { font: 400 13px/1 var(--mono); color: var(--dim); transition: color 200ms; }
.stop span { font: 400 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); opacity: .7; }
.stop.on b, .stop:hover b { color: var(--paper); }
.stop.on span { color: var(--flame); opacity: 1; }
.stop:focus-visible::before { box-shadow: 0 0 0 3px var(--paper); }

.slides { display: grid; }
.player:not(.js) .slides { gap: 1px; background: var(--rule); }
.slide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; padding: 40px 28px; background: var(--panel); min-height: 460px; align-items: center; }
.slide.in .sviz { animation: vizIn 700ms cubic-bezier(.2,.8,.2,1) both; }
.slide.in .stext > * { animation: txtIn 600ms cubic-bezier(.2,.8,.2,1) both; }
.slide.in .stext > *:nth-child(2) { animation-delay: 60ms; }
.slide.in .stext > *:nth-child(3) { animation-delay: 120ms; }
.slide.in .stext > *:nth-child(4) { animation-delay: 180ms; }
.slide.in .stext > *:nth-child(5) { animation-delay: 260ms; }
.slide.in .stext > *:nth-child(6) { animation-delay: 340ms; }
@keyframes vizIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes txtIn { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 24px)); } to { opacity: 1; transform: none; } }
.stext { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sch { font-size: clamp(34px, 4vw, 52px); line-height: 1; letter-spacing: -0.02em; }
.slide .etop { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.slide .eyr { font: 400 14px/1 var(--mono); color: var(--flame); }
.slide .accts { font: 400 13px/1.5 var(--mono); color: var(--paper); }
.sviz { min-width: 0; }
.motif { aspect-ratio: 4 / 3; max-width: 100%; background: var(--ink); display: flex; align-items: center; justify-content: center; padding: 24px; position: relative; overflow: hidden; }

.constant { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; padding: 20px 28px 24px; border-top: 1px solid var(--rule); position: relative; }
.constant .dq { font-size: clamp(26px, 3vw, 36px); }
.tick { position: absolute; left: 0; right: 0; top: -1px; height: 2px; overflow: hidden; }
.tick i { display: block; height: 100%; width: 0; background: var(--paper); opacity: .5; }
.tick.run i { animation: tick var(--d, 7000ms) linear forwards; }
@keyframes tick { to { width: 100%; } }

/* motifs */
.m-count { font: 400 13px/1.4 var(--mono); color: var(--text); position: absolute; left: 20px; bottom: 16px; }
.m-count b { font: 800 28px/1 var(--display); color: var(--flame); font-variant-numeric: tabular-nums; }
.m-web { width: 82%; background: var(--panel); border: 1px solid var(--rule); }
.m-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--rule); }
.m-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); }
.m-url { font: 400 11px/1 var(--mono); color: var(--paper); margin-left: 8px; overflow: hidden; white-space: nowrap; border-right: 2px solid var(--flame); }
.slide.in .m-url { animation: type 1.2s steps(14) both; }
@keyframes type { from { width: 0; } to { width: 14ch; } }
.m-page { padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-page b { height: 22px; background: var(--rule); }
.m-page b:first-child { grid-column: 1 / -1; height: 40px; background: var(--flame); }
.slide.in .m-page b { animation: blk 400ms both; }
.slide.in .m-page b:nth-child(1) { animation-delay: 1.2s; } .slide.in .m-page b:nth-child(2) { animation-delay: 1.4s; } .slide.in .m-page b:nth-child(3) { animation-delay: 1.55s; } .slide.in .m-page b:nth-child(4) { animation-delay: 1.7s; } .slide.in .m-page b:nth-child(5) { animation-delay: 1.85s; }
@keyframes blk { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.m-rich { width: 86%; height: 70%; position: relative; display: flex; align-items: flex-start; }
.m-ghost { position: absolute; inset: 0; border: 1px dashed var(--rule); }
.m-unit { width: 100%; height: 18%; background: var(--flame); display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.m-unit span { font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-flame); }
.slide.in .m-unit { animation: expand 3.2s cubic-bezier(.6,0,.2,1) 400ms infinite; }
@keyframes expand { 0%, 20% { height: 18%; } 45%, 75% { height: 100%; } 100% { height: 18%; } }

.m-phone { width: 34%; aspect-ratio: 9 / 18; border: 2px solid var(--paper); border-radius: 18px; overflow: hidden; position: relative; background: var(--panel); }
.m-feed { display: flex; flex-direction: column; gap: 6px; padding: 6px; }
.m-feed b { height: 72px; background: var(--rule); border-radius: 4px; flex: none; }
.m-feed b:nth-child(3n+1) { background: var(--flame); }
.slide.in .m-feed { animation: feed 4s linear infinite; }
@keyframes feed { from { transform: translateY(0); } to { transform: translateY(-234px); } }
.m-loop { position: absolute; right: 8px; bottom: 8px; font: 400 10px/1 var(--mono); color: var(--ink); background: var(--paper); padding: 4px 6px; }

.m-tv { width: 86%; aspect-ratio: 16 / 10; border: 2px solid var(--paper); position: relative; background: linear-gradient(160deg, #2a2926, #161513); }
.m-screen { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 12px; }
.m-chip { font: 400 12px/1 var(--mono); background: var(--flame); color: var(--on-flame); padding: 8px 10px; }
.m-tv + .m-count, .m-cal + .m-count { position: static; }
.m-tv { margin-bottom: 36px; }
.m-tv ~ .m-count { position: absolute; }

.m-cal { width: 88%; display: flex; flex-direction: column; gap: 24px; }
.m-days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.m-days span { font: 400 13px/1.2 var(--mono); color: var(--dim); border: 1px solid var(--rule); padding: 16px 8px; display: flex; flex-direction: column; gap: 6px; min-height: 84px; }
.m-days small { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.m-days span.hot { background: var(--flame); color: var(--on-flame); border-color: var(--flame); }
.slide.in .m-days span { animation: blk 300ms both; }
.slide.in .m-days span:nth-child(2) { animation-delay: 250ms; } .slide.in .m-days span:nth-child(3) { animation-delay: 500ms; } .slide.in .m-days span:nth-child(4) { animation-delay: 750ms; }

.m-ar { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.m-view { width: 52%; aspect-ratio: 3 / 4; border: 2px solid var(--paper); border-radius: 14px; position: relative; background: radial-gradient(circle at 50% 70%, #2a2926, #121110); }
.m-view i { position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--flame); }
.m-view i:nth-child(2) { background: var(--paper); width: 16%; }
.m-view i:nth-child(4) { background: #8C8880; width: 18%; }
.m-view i:nth-child(1) { left: 16%; top: 22%; } .m-view i:nth-child(2) { left: 60%; top: 16%; } .m-view i:nth-child(3) { left: 44%; top: 48%; width: 26%; } .m-view i:nth-child(4) { left: 14%; top: 64%; } .m-view i:nth-child(5) { left: 66%; top: 66%; width: 14%; }
.slide.in .m-view i { animation: bob 2.4s ease-in-out infinite alternate; }
.slide.in .m-view i:nth-child(2n) { animation-duration: 3s; animation-delay: -1s; }
@keyframes bob { from { transform: translateY(-8px) scale(.95); } to { transform: translateY(8px) scale(1.05); } }
.m-corner { position: absolute; inset: 10px; border: 2px solid transparent; border-image: linear-gradient(var(--flame), var(--flame)) 1; clip-path: polygon(0 0, 18% 0, 18% 2px, 2px 2px, 2px 18%, 0 18%, 0 82%, 2px 82%, 2px calc(100% - 2px), 18% calc(100% - 2px), 18% 100%, 82% 100%, 82% calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) 82%, 100% 82%, 100% 18%, calc(100% - 2px) 18%, calc(100% - 2px) 2px, 82% 2px, 82% 0); }

.m-ai { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.m-ai .m-count { position: static; }

@media (max-width: 860px) {
  .slide { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 16px 28px; min-height: 0; align-items: start; }
  .rail { padding: 20px 8px 14px; }
  .rline { left: calc(8px + (100% - 16px) / 14); right: calc(8px + (100% - 16px) / 14); top: 31px; }
  .stop span { display: none; }
  .stop b { font-size: 11px; }
  .constant { padding: 16px; }
  .motif { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) {
  .slide.in .sviz, .slide.in .stext > *, .slide.in .m-unit, .slide.in .m-feed, .slide.in .m-view i, .slide.in .m-url, .slide.in .m-page b, .slide.in .m-days span { animation: none !important; }
}
.m-stack { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.m-stack .m-count { position: static; align-self: flex-start; }
.m-stack .m-tv { margin-bottom: 0; width: 80%; }
.m-stack .m-ar { height: auto; flex: 1; min-height: 0; width: 100%; }
.m-stack .m-view { height: 100%; width: auto; max-width: 60%; }
.cycline { display: block; }
.cyc { display: inline; box-shadow: none; text-decoration: underline; text-decoration-color: var(--flame); text-decoration-thickness: 0.08em; text-underline-offset: 0.08em; text-decoration-skip-ink: none; }
.cyc.pop { display: inline-block; }
.rail { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.rline { left: calc(28px + (100% - 56px) / 16); right: calc(28px + (100% - 56px) / 16); }
@media (max-width: 860px) { .rline { left: calc(8px + (100% - 16px) / 16); right: calc(8px + (100% - 16px) / 16); } }
.m-post { width: 78%; background: var(--panel); border: 1px solid var(--rule); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.m-who { display: flex; align-items: center; gap: 10px; font: 400 13px/1 var(--mono); color: var(--paper); }
.m-who i { width: 28px; height: 28px; border-radius: 50%; background: #3FA34D; }
.m-lines { display: flex; flex-direction: column; gap: 8px; }
.m-lines b { height: 10px; background: var(--rule); transform-origin: left; }
.m-lines b:nth-child(2) { width: 88%; } .m-lines b:nth-child(3) { width: 54%; background: var(--flame); }
.slide.in .m-lines b { animation: grow 600ms cubic-bezier(.2,.8,.2,1) both; }
.slide.in .m-lines b:nth-child(2) { animation-delay: 300ms; } .slide.in .m-lines b:nth-child(3) { animation-delay: 600ms; }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
.rail { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.rline { left: calc(28px + (100% - 56px) / 14); right: calc(28px + (100% - 56px) / 14); }
@media (max-width: 860px) { .rline { left: calc(8px + (100% - 16px) / 14); right: calc(8px + (100% - 16px) / 14); } }
.builds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .builds { grid-template-columns: minmax(0, 1fr); } }

/* light theme + Raleway adjustments */
body { font-variant-numeric: lining-nums; font-weight: 500; }
.shout { letter-spacing: -0.03em; }
.eyebrow, .mono, .nav, .cta, .card .meta, .stop b, .stop span, .obj dt, th, .legend, .foot, .next { font-weight: 600; }
.reel a.play::after { background-color: var(--flame); }
.m-tv { border-color: var(--paper); }
.m-view { border-color: var(--paper); }
.m-phone { border-color: var(--paper); background: var(--ink); }
.m-loop { color: var(--ink); background: var(--paper); }
.m-web, .m-post { background: var(--ink); }
.motif { background: var(--ink); border: 1px solid var(--rule); }
.squares.gen i { background: var(--rule); }
.hviz, .concept, .bld, .player, .slide { color: var(--text); }
* { font-feature-settings: "lnum" 1; }
.result, .card .result, .phead .result, .obj dd.res, .m-count, .eyr { font-weight: 600; }
*, *::before, *::after { font-variant-numeric: lining-nums !important; font-feature-settings: "lnum" 1, "onum" 0 !important; }
.stat b, .dyr, .m-count b, .stats b { font-variant-numeric: lining-nums tabular-nums !important; }
.hsub { grid-template-columns: minmax(0, 1fr); max-width: 720px; align-items: start; gap: 32px; }
.hero3 .ctas { flex-direction: column; align-items: flex-start; gap: 18px; }
.hero3 .ctas { align-items: center; justify-self: start; width: max-content; }
.hero3 .ctas .btn { align-self: center; }
.hero3 .ctas .cta { align-self: center; }

/* palette: deep navy, lighter panels */
:root { --ink: #1D222A; --panel: #2D3441; --rule: #444C5B; --dim: #A3A9B4; --text: #D9DCE1; --paper: #F4F2EE; color-scheme: dark; }
.brand b { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.015em; }
.brand span { font-size: 13px; }
.brand span strong { font-weight: 800; color: var(--paper); }
.hero3 .lede { font-weight: 400; }
.constant { padding: 0; border-top: 0; height: 3px; }
.constant .tick { top: 0; height: 3px; }
.slide { align-items: stretch; }
.sviz { display: flex; align-items: flex-end; }
.sviz .motif { width: 100%; }
.stext .obj { margin-top: auto; }
@media (max-width: 860px) { .stext .obj { margin-top: 6px; } }
.obj { align-items: baseline; row-gap: 10px; }
.obj dt { line-height: 1.4; }
.obj dd { line-height: 1.4; }
.rail { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.rline { left: calc(28px + (100% - 56px) / 12); right: calc(28px + (100% - 56px) / 12); }
.rail .stop b span.rfull, .rail .stop.on b span.rfull { display: inline; font: inherit; color: inherit; opacity: 1; text-transform: none; letter-spacing: 0; }
.rail .stop b span.rshort, .rail .stop.on b span.rshort { display: none; font: inherit; color: inherit; opacity: 1; }
@media (max-width: 860px) {
  .rline { left: calc(8px + (100% - 16px) / 12); right: calc(8px + (100% - 16px) / 12); }
  .rail .stop b span.rfull, .rail .stop.on b span.rfull { display: none; }
  .rail .stop b span.rshort, .rail .stop.on b span.rshort { display: inline; }
}
.story .shead .read { max-width: 760px; }
.sbody .res { color: var(--flame); font-weight: 700; }

/* ---------- period hardware ---------- */
.motif { padding: 20px; }
.motif img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-stack { gap: 14px; }

/* 2000: CRT */
.d-crt { width: 74%; display: flex; flex-direction: column; align-items: center; }
.crt-face { width: 100%; background: #D9D3C2; border-radius: 10px 10px 6px 6px; padding: 8% 8% 10%; position: relative; box-shadow: inset 0 -6px 0 rgba(0,0,0,.12); }
.crt-screen { background: #0E3A3A; border-radius: 14px / 10px; padding: 6%; aspect-ratio: 4 / 3; box-shadow: inset 0 0 18px rgba(0,0,0,.6); overflow: hidden; }
.crt-led { position: absolute; right: 9%; bottom: 4%; width: 6px; height: 6px; border-radius: 50%; background: #5BD16A; }
.crt-neck { width: 34%; height: 10px; background: #C9C2AF; }
.crt-foot { width: 52%; height: 10px; background: #BFB8A4; border-radius: 3px; }
.w9x { background: #C0C0C0; height: 100%; display: flex; flex-direction: column; border: 1px solid #fff; box-shadow: 1px 1px 0 #404040; }
.w9x-bar { background: #000080; color: #fff; font: 700 9px/1 Tahoma, Verdana, sans-serif; padding: 3px 4px; display: flex; gap: 3px; align-items: center; }
.w9x-bar span { flex: 1; }
.w9x-bar i { width: 9px; height: 8px; background: #C0C0C0; }
.w9x-loc { display: flex; gap: 4px; align-items: center; padding: 3px 4px; font: 400 8px/1 Tahoma, Verdana, sans-serif; color: #000; }
.w9x-loc .m-url { background: #fff; color: #000; font: 400 8px/1.3 Tahoma, Verdana, sans-serif; padding: 1px 3px; border: 1px inset #808080; border-right: 2px solid #000; letter-spacing: 0; }
.w9x-page { flex: 1; background: #fff; margin: 0 4px 4px; padding: 6%; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; align-content: start; }
.w9x-page b { height: 10px; background: #DDD; }
.w9x-page b:first-child { grid-column: 1 / -1; height: 22px; background: var(--flame); }
.slide.in .w9x-page b { animation: blk 400ms both; }
.slide.in .w9x-page b:nth-child(1) { animation-delay: 1.2s; } .slide.in .w9x-page b:nth-child(2) { animation-delay: 1.4s; } .slide.in .w9x-page b:nth-child(3) { animation-delay: 1.55s; } .slide.in .w9x-page b:nth-child(4) { animation-delay: 1.7s; } .slide.in .w9x-page b:nth-child(5) { animation-delay: 1.85s; }

/* 2008: keyboard phone */
.d-bb { width: 38%; background: #23262B; border-radius: 18px 18px 22px 22px; padding: 8% 7% 7%; display: flex; flex-direction: column; gap: 8%; box-shadow: inset 0 0 0 2px #3A3E45; }
.bb-screen { background: #E8EEF2; aspect-ratio: 4 / 3.2; border-radius: 3px; padding: 6%; display: flex; flex-direction: column; gap: 5%; overflow: hidden; }
.bb-top { display: flex; justify-content: space-between; font: 600 8px/1 var(--body); color: #4A5560; border-bottom: 1px solid #C9D3DA; padding-bottom: 3px; }
.bb-post { display: flex; gap: 6%; align-items: flex-start; }
.bb-post i { width: 16%; aspect-ratio: 1; border-radius: 3px; background: #B9C4CC; flex: none; }
.bb-post.on i { background: #3FA34D; }
.bb-post div { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bb-post b { font: 700 8px/1 var(--body); color: #1C2B36; }
.bb-lines { display: flex; flex-direction: column; gap: 3px; }
.bb-lines em { display: block; height: 4px; background: #B9C4CC; }
.bb-post.on .bb-lines em { background: #7E8E99; transform-origin: left; }
.bb-post.on .bb-lines em:nth-child(2) { width: 60%; }
.slide.in .bb-post.on .bb-lines em { animation: grow 600ms cubic-bezier(.2,.8,.2,1) both; }
.slide.in .bb-post.on .bb-lines em:nth-child(2) { animation-delay: 300ms; }
.bb-keys { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.bb-keys i { aspect-ratio: 1.3; background: #3A3E45; border-radius: 2px; }

/* 2012: iPhone-era phone, landscape */
.d-ip5 { width: 86%; aspect-ratio: 2.05; background: #F2F2F2; border-radius: 28px; display: flex; align-items: center; gap: 4%; padding: 0 4%; box-shadow: inset 0 0 0 2px #BFBFBF; }
.ip-cam { width: 8px; height: 8px; border-radius: 50%; background: #555; flex: none; }
.ip-screen { flex: 1; aspect-ratio: 16 / 9; background: #000; position: relative; overflow: hidden; }
.skip { position: absolute; right: 0; bottom: 14%; background: rgba(0,0,0,.75); color: #fff; font: 600 11px/1 var(--body); padding: 7px 10px; border: 1px solid rgba(255,255,255,.4); border-right: 0; }
.skip.ready { color: #fff; border-color: #fff; }
.skip.ready::after { content: " ▸"; }
.ip-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.25); }
.ip-bar i { display: block; height: 100%; width: 0; background: #F5C518; }
.slide.in .ip-bar i { animation: tick 5s linear forwards; }
.ip-home { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px #BFBFBF; flex: none; }

/* 2019: flat-screen TV */
.d-tv { width: 86%; display: flex; flex-direction: column; align-items: center; }
.tv-screen { width: 100%; aspect-ratio: 16 / 9; background: #000; border: 8px solid #0D0F12; border-bottom-width: 12px; position: relative; overflow: hidden; }
.tv-screen .m-chip { position: absolute; left: 10px; bottom: 10px; }
.tv-stand { width: 30%; height: 10px; background: #0D0F12; border-radius: 0 0 6px 6px; }

/* 2022: modern phone, AR camera */
.d-phone { height: 100%; aspect-ratio: 9 / 18; max-width: 46%; background: #0D0F12; border-radius: 26px; padding: 8px; position: relative; }
.ph-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 28%; height: 10px; border-radius: 8px; background: #000; z-index: 2; }
.ph-screen { width: 100%; height: 100%; border-radius: 19px; overflow: hidden; position: relative; }
.ph-screen img { filter: saturate(1.1); }
.ph-screen i { position: absolute; width: 18%; aspect-ratio: 1; border-radius: 50%; background: var(--flame); box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.ph-screen i:nth-child(2) { left: 14%; top: 22%; } .ph-screen i:nth-child(3) { left: 60%; top: 16%; background: #3FA34D; width: 14%; } .ph-screen i:nth-child(4) { left: 46%; top: 50%; background: #F5C518; width: 22%; } .ph-screen i:nth-child(5) { left: 18%; top: 66%; background: #2F6FDB; width: 15%; }
.slide.in .ph-screen i { animation: bob 2.4s ease-in-out infinite alternate; }
.slide.in .ph-screen i:nth-child(2n) { animation-duration: 3s; animation-delay: -1s; }
.ar-ret { position: absolute; inset: 22% 16%; border: 2px solid rgba(255,255,255,.85); border-radius: 10px; clip-path: polygon(0 0, 25% 0, 25% 6%, 6% 6%, 6% 25%, 0 25%, 0 75%, 6% 75%, 6% 94%, 25% 94%, 25% 100%, 75% 100%, 75% 94%, 94% 94%, 94% 75%, 100% 75%, 100% 25%, 94% 25%, 94% 6%, 75% 6%, 75% 0); }
.ar-tag { position: absolute; top: 26px; right: 12px; font: 700 10px/1 var(--body); background: var(--flame); color: var(--on-flame); padding: 4px 6px; border-radius: 4px; }

/* 2023–Now: laptop with prompt */
.d-lap { width: 92%; display: flex; flex-direction: column; align-items: center; }
.lap-lid { width: 84%; background: #0D0F12; border-radius: 10px 10px 0 0; padding: 3.5%; }
.lap-screen { background: var(--ink); padding: 5%; display: flex; flex-direction: column; gap: 10px; aspect-ratio: 16 / 10.5; overflow: hidden; }
.prompt { background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: 6px 8px; font: 500 10px/1.3 var(--body); color: var(--paper); white-space: nowrap; overflow: hidden; }
.pr-q { display: inline-block; overflow: hidden; vertical-align: bottom; border-right: 2px solid var(--flame); max-width: 100%; }
.slide.in .pr-q { animation: typeq 1.4s steps(40) both; }
@keyframes typeq { from { width: 0; } to { width: 100%; } }
.lap-screen .squares { gap: 2px; }
.lap-base { width: 100%; height: 10px; background: #3A3E45; border-radius: 0 0 10px 10px; position: relative; }
.lap-base::after { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 4px; background: #23262B; border-radius: 0 0 4px 4px; }

@media (max-width: 860px) {
  .d-phone { height: auto; width: 36%; }
  .motif { aspect-ratio: 4 / 3; }
}
.d-bb { width: 46%; }
.bb-top { font-size: 10px; } .bb-post b { font-size: 10px; }
.skip { bottom: 11%; padding: 10px 16px; font-size: 13px; background: #000; border-color: rgba(255,255,255,.5); min-width: 42%; text-align: center; }
.m-stack .d-phone { height: calc(100% - 44px); }
.lap-screen .squares { width: 70%; margin: 0 auto; gap: 2px; }
.prompt { font-size: 11px; }
@media (max-width: 860px) { .m-stack .d-phone { width: auto; height: calc(100% - 40px); } }
.shout em { letter-spacing: -0.008em; margin-top: 0.16em; }
.shout em { letter-spacing: -0.015em; line-height: 1.02; }
.shout em { font-size: 0.82em; }
.shout em { margin-top: 0.3em; }
/* device video loops */
.dv { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.w9x-vid { flex: 1; margin: 0 4px 4px; background: #000; min-height: 0; overflow: hidden; }
.bb-screen.bb-vid { padding: 0; overflow: hidden; }
.ip-screen .dv, .tv-screen .dv { object-fit: cover; }
.ph-screen .dv { object-fit: cover; object-position: top; }
.m-stack { gap: 0; }
/* 2005–2012: large tablet, landscape */
.d-tab { width: 92%; aspect-ratio: 1.42; background: #111317; border-radius: 22px; display: flex; align-items: center; gap: 3%; padding: 0 3.2%; box-shadow: inset 0 0 0 2px #2C3038, 0 10px 30px rgba(0,0,0,.35); }
.tab-cam { width: 7px; height: 7px; border-radius: 50%; background: #2C3038; flex: none; }
.tab-screen { flex: 1; aspect-ratio: 4 / 3; background: #000; overflow: hidden; border-radius: 3px; }
.tab-home { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px #2C3038; flex: none; }
/* larger screens for Addressable and Augmented Reality */
.motif[data-m="2019"], .motif[data-m="2022"], .motif[data-m="2008"] { padding: 10px; }
.motif[data-m="2019"] .d-tv { width: 100%; }
.motif[data-m="2019"] .tv-screen { border-width: 6px 6px 10px; }
.motif[data-m="2022"] .m-stack .d-phone { height: 100%; max-width: 70%; padding: 6px; border-radius: 30px; }
.motif[data-m="2022"] .ph-screen { border-radius: 24px; }
.motif[data-m="2008"] .d-tab { width: 100%; }

/* 2000: iMac G3 + Safari */
.motif[data-m="2000"] { padding: 10px; }
.d-imac { width: 86%; display: flex; flex-direction: column; align-items: center; }
.imac-face { width: 100%; border-radius: 34px 34px 46px 46px / 30px 30px 60px 60px; padding: 7% 7% 0; position: relative;
  background: linear-gradient(160deg, rgba(120,200,215,.95), rgba(40,140,165,.95) 55%, rgba(20,95,120,.98));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.45), inset 0 -10px 24px rgba(0,40,60,.45), 0 10px 24px rgba(0,0,0,.35); }
.imac-face::before { content:""; position:absolute; inset:3% 3% auto; height:40%; border-radius:30px 30px 0 0; background:linear-gradient(rgba(255,255,255,.18),transparent); pointer-events:none; }
.imac-screen { background: #1a1d22; padding: 3.2%; border-radius: 10px; aspect-ratio: 4 / 3; box-shadow: 0 0 0 5px #E8ECEE, inset 0 0 12px rgba(0,0,0,.7); overflow: hidden; }
.imac-chin { height: 0; padding-bottom: 15%; position: relative; background: repeating-linear-gradient(90deg, transparent 0 3px, rgba(0,50,70,.18) 3px 4px); margin: 0 6%; border-radius: 0 0 40px 40px; }
.imac-logo { position: absolute; left: 50%; top: 40%; width: 12px; height: 14px; transform: translate(-50%,-50%); border-radius: 45% 45% 50% 50%; background: rgba(255,255,255,.55); }
.imac-foot { width: 44%; height: 14px; margin-top: -2px; border-radius: 0 0 14px 14px; background: linear-gradient(rgba(60,150,170,.9), rgba(25,95,115,.95)); }
.saf { height: 100%; display: flex; flex-direction: column; background: linear-gradient(#D6D6D6,#A9A9A9); border-radius: 5px 5px 2px 2px; overflow: hidden; }
.saf-bar { position: relative; display: flex; align-items: center; gap: 4px; padding: 4px 6px 2px; font: 500 9px/1 "Lucida Grande", "Helvetica Neue", Helvetica, sans-serif; color: #222; }
.saf-bar span { position: absolute; left: 0; right: 0; text-align: center; pointer-events: none; }
.saf-bar i { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 -1px 2px rgba(0,0,0,.35), inset 0 1px 1px rgba(255,255,255,.7); }
.saf-bar .r { background: #E24B41; } .saf-bar .y { background: #E8B53B; } .saf-bar .g { background: #5DB547; }
.saf-tool { display: flex; align-items: center; gap: 3px; padding: 2px 6px 4px; }
.saf-tool .nav { font: 400 6px/1 sans-serif; color: #444; background: linear-gradient(#fff,#ccc); border: 1px solid #888; border-radius: 3px; padding: 2px 3px; }
.saf-tool .m-url { flex: 1; background: #fff; color: #111; font: 400 8px/1.3 "Lucida Grande", "Helvetica Neue", Helvetica, sans-serif; padding: 1px 5px; border: 1px solid #7b7b7b; border-radius: 3px; box-shadow: inset 0 1px 2px rgba(0,0,0,.25); letter-spacing: 0; white-space: nowrap; overflow: hidden; }
.saf-vid { flex: 1; background: #000; min-height: 0; overflow: hidden; border-top: 1px solid #777; }

/* No box behind devices; bigger devices */
.motif, .motif[data-m] { background: transparent !important; border: 0 !important; padding: 0 !important; overflow: visible; }
@media (min-width: 861px) { .slide { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; } }
.motif .d-imac, .motif .d-tab, .motif .d-ip5, .motif .d-tv, .motif .d-lap { width: 100% !important; }
.d-imac { padding-top: 2px; }
.imac-face { padding: 5% 5% 0; }
.d-tab { padding: 0 2.4%; gap: 2%; }
.d-ip5 { padding: 0 3%; gap: 3%; }
.motif[data-m="2022"] .m-stack .d-phone { max-width: 80%; }
.lap-lid { width: 88%; padding: 2.5%; }
@media (min-width: 861px) { .motif[data-m="2022"] { aspect-ratio: auto; height: 480px; } }

/* Web 2.0 tablet: white iPad with aluminum edge */
.d-tab { background: #F4F4F2 !important; box-shadow: inset 0 0 0 2px #C9CCD1, 0 0 0 3px #A9AEB6, 0 0 0 4px #E6E8EB, 0 12px 30px rgba(0,0,0,.35) !important; }
.tab-cam { background: #B9BDC4; }
.tab-home { box-shadow: inset 0 0 0 2px #B9BDC4; }
/* Addressable: silver chrome TV */
.motif[data-m="2019"] .tv-screen { border: 10px solid transparent !important; border-bottom-width: 16px !important;
  background: linear-gradient(#000,#000) padding-box, linear-gradient(160deg,#F7F8FA 0%,#B8BDC5 28%,#EEF0F3 48%,#8E949D 72%,#D9DCE1 100%) border-box !important;
  border-radius: 4px; box-shadow: 0 0 0 1px #7C828B, 0 12px 30px rgba(0,0,0,.35); }
.motif[data-m="2019"] .tv-stand { width: 34%; height: 12px; background: linear-gradient(90deg,#8E949D,#E9EBEE 50%,#8E949D); border-radius: 0 0 8px 8px; }
.motif[data-m="2000"] .d-imac { width: 90% !important; }

/* 2026: the cull */
.lap-screen { gap: 8px; padding: 4%; }
.cull { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.c-bar { display: flex; align-items: baseline; gap: 8px; font: 600 10px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.c-q { flex: 1; color: var(--paper); text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 700; }
.c-n { font: 800 20px/1 var(--body); color: var(--paper); min-width: 2.2em; text-align: right; }
.c-minus { font: 800 14px/1 var(--body); color: var(--flame); min-width: 2.4em; opacity: 0; }
.c-minus.pop { animation: cpop 1.2s ease both; }
@keyframes cpop { 0% { opacity: 0; transform: translateY(6px); } 20%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
.c-stage { flex: 1; min-height: 0; position: relative; }
.c-deck { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; }
.cull.deal .c-deck, .cull.judge .c-deck { opacity: 1; }
.c-card { width: 72%; aspect-ratio: 2.1; background: var(--paper); color: #1D222A; border-radius: 8px; padding: 10px 14px; display: flex; flex-direction: column; justify-content: center; gap: 6px; position: relative;
  box-shadow: 6px 6px 0 -1px #C9CCD1, 12px 12px 0 -2px #9EA3AB, 0 14px 30px rgba(0,0,0,.4); }
.c-card em { font: 700 9px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--flame); font-style: normal; }
.c-card span { font: 700 15px/1.2 var(--body); }
.c-card.flip { animation: cflip .12s ease-out; }
@keyframes cflip { from { transform: translateY(-8px) rotate(-1.5deg); opacity: .4; } to { transform: none; opacity: 1; } }
.c-card::after { content: ""; position: absolute; left: 8%; right: 8%; top: 50%; height: 3px; background: var(--flame); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.c-card.kill::after { transform: scaleX(1); }
.c-card.kill { opacity: .55; transform: scale(.96); transition: opacity .3s, transform .3s; }
.c-win { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.c-win .w { background: var(--paper); color: #1D222A; border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; justify-content: center; gap: 4px; position: relative; opacity: 0; transform: scale(.85); }
.c-win em { font: 700 8px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: #6B717C; font-style: normal; }
.c-win b { font: 800 14px/1.1 var(--body); }
.c-win i { position: absolute; top: 7px; right: 8px; font: 800 9px/1 var(--body); font-style: normal; color: var(--on-flame); background: var(--flame); padding: 3px 5px; border-radius: 3px; }
.cull.done .c-win .w { animation: wIn .45s cubic-bezier(.2,.8,.2,1) both; }
.cull.done .c-win .w:nth-child(2) { animation-delay: .15s; } .cull.done .c-win .w:nth-child(3) { animation-delay: .3s; } .cull.done .c-win .w:nth-child(4) { animation-delay: .45s; }
@keyframes wIn { to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .c-card span { font-size: 12px; } .c-win b { font-size: 12px; } .c-n { font-size: 16px; } }
/* big X instead of strike line */
.c-card::before, .c-card::after { content: ""; position: absolute; left: 50%; top: 50%; width: 92%; height: 6px; margin-left: -46%; margin-top: -3px; background: var(--flame); border-radius: 3px; transform-origin: center; transform: rotate(var(--r)) scaleX(0); transition: transform .3s ease; right: auto; }
.c-card::before { --r: 24deg; } .c-card::after { --r: -24deg; transition-delay: .12s; }
.c-card.kill::before, .c-card.kill::after { transform: rotate(var(--r)) scaleX(1); }
.c-card.kill { opacity: 1; } .c-card.kill em, .c-card.kill span { opacity: .45; transition: opacity .3s; } .c-card::before, .c-card::after { height: 8px; margin-top: -4px; z-index: 2; }
.motif[data-m="2008"] .d-tab { width: 90% !important; }
/* line through dot centers */
.rline { top: 33px; }
@media (max-width: 860px) { .rline { top: 25px; } }
.motif[data-m="2026"] .lap-lid { width: 96%; padding: 2%; } .motif[data-m="2026"] .d-lap { width: 104% !important; }
/* builds: logos, 4 across */
.builds { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .builds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .builds { grid-template-columns: minmax(0, 1fr); } }
.blogo { height: 120px; display: flex; align-items: center; justify-content: center; background: var(--ink); margin: -24px -24px 8px; padding: 16px; }
.blogo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.blogo-txt span { font: 800 20px/1.1 var(--display); color: var(--dim); text-align: center; letter-spacing: -0.01em; }
.blogo { background: rgba(0,0,0,.22); border-bottom: 1px solid var(--rule); }
.blogo { height: 150px; padding: 12px; }
.workh { margin: 0 0 32px; }
/* center devices vertically with copy */
@media (min-width: 861px) { .slide { align-items: center !important; } .sviz { align-items: center !important; align-self: center; } .stext { align-self: center; } }
.brand { gap: 10px; }
.top { align-items: flex-start !important; } .nav { align-self: flex-start; margin-top: 0; }
@media (min-width: 600px) { .nav { margin-top: 3px; } }
#work { scroll-margin-top: 24px; } html { scroll-behavior: smooth; }
/* IPWT case study */
.shot img{width:100%;display:block;border:1px solid var(--rule)}
.shot figcaption{font-size:13px;color:var(--dim);margin-top:8px}
.ipgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:28px}
.ipgrid figure{margin:0;background:#F2EEE6;display:flex;align-items:center;justify-content:center}
.ipgrid img{width:100%;height:auto;display:block}
@media (max-width:860px){.ipgrid{grid-template-columns:minmax(0,1fr)}}
.barh{margin-top:36px}
.bars{display:flex;flex-direction:column;gap:10px;max-width:760px;margin-top:16px}
.bar{display:grid;grid-template-columns:150px 1fr 64px;align-items:center;gap:14px;font-size:15px;color:var(--text)}
.bar .bt{height:22px;background:var(--panel);border-radius:3px;overflow:hidden}
.bar .bt i{display:block;height:100%;background:var(--flame)}
.bar b{font-weight:700;text-align:right;color:var(--paper)}
.bar.rel .bt i{background:#2FB5A3}.bar.abs .bt i{background:#F2A62A}
.bar.hi .bt i{background:#2FB5A3}.bar.md .bt i{background:#F2A62A}.bar.lo .bt i{background:#E8505B}
.barkey{display:flex;gap:20px;font-size:13px;color:var(--dim);margin-top:12px}
.barkey span::before{content:"";display:inline-block;width:12px;height:12px;border-radius:2px;margin-right:6px;vertical-align:-1px}
.barkey .rel::before{background:#2FB5A3}.barkey .abs::before{background:#F2A62A}
.src{font-size:13px;color:var(--dim)}
.conds{list-style:none;padding:0;margin:32px 0 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}
.conds li{border:2px solid var(--paper);padding:20px 22px;font-size:16px;line-height:1.5;color:var(--text)}
.conds b{display:block;font:700 20px/1.2 var(--display);color:var(--paper);margin-bottom:8px}
.shot{margin:32px 0 0}
.hero3{padding-block:70px 40px}
@media (max-width:760px){.hero3{padding-block:48px 28px}}
#projects{scroll-margin-top:24px}
.lb{position:fixed;inset:0;z-index:1000;background:rgba(5,10,30,.88);display:flex;align-items:center;justify-content:center;padding:56px 24px;animation:lbin .2s ease}
@keyframes lbin{from{opacity:0}to{opacity:1}}
.lb-frame{width:min(1200px,100%,calc((100vh - 112px)*16/9));aspect-ratio:16/9;background:#000;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.lb-frame iframe{width:100%;height:100%;border:0;display:block}
.lb-x{position:absolute;top:12px;right:16px;width:44px;height:44px;border:0;border-radius:50%;background:#fff;color:#0F1E4A;font:400 30px/44px Arial,sans-serif;cursor:pointer;padding:0}
.lb-x:hover{background:#FFEA00}
.reel a.play::after{left:50%;top:50%;bottom:auto;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:50%;background:#FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.5 5.5v13l10.5-6.5z' fill='%231638D6'/%3E%3C/svg%3E") 55% 50% / 30px no-repeat;box-shadow:0 4px 18px rgba(0,0,0,.35);transition:transform 150ms,background-color 150ms}
.reel a.play:hover::after,.reel a.play:focus-visible::after{transform:scale(1.1);background-color:#FFEA00}
.reel a.play::after{width:48px;height:48px;margin:-24px 0 0 -24px;background-size:22px}
.reel a.play::after{background-size:30px}
.stats5{grid-template-columns:repeat(5,minmax(0,1fr))}@media (max-width:900px){.stats5{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:700px){
  .tablewrap{overflow:visible}
  .tablewrap table{min-width:0!important;width:100%!important;table-layout:auto}
  .tablewrap tr{max-width:100%}
  .tablewrap td.v{font-size:14px}
  .tablewrap table,.tablewrap tbody,.tablewrap tr,.tablewrap td{display:block;width:auto}
  .tablewrap thead{display:none}
  .tablewrap tr{border:1px solid var(--rule);border-radius:12px;padding:14px 16px;margin:0 0 12px;background:var(--panel)}
  .tablewrap td{border:0!important;padding:3px 0!important;display:flex;gap:12px;justify-content:space-between;text-align:right}
  .tablewrap td::before{font:600 11px/1.6 var(--mono);text-transform:uppercase;letter-spacing:.08em;color:var(--dim);text-align:left;flex:none}
  .tablewrap td:nth-child(1){display:block;text-align:left;font:700 17px/1.3 var(--display);color:var(--paper);padding-bottom:8px!important}
  .tablewrap td:nth-child(2)::before{content:"Missing category?"}
  .tablewrap td:nth-child(3)::before{content:"Earns the price?"}
  .tablewrap td:nth-child(4)::before{content:"True?"}
  .tablewrap td:nth-child(5)::before{content:"Verdict"}
  .tablewrap td:nth-child(6){display:block;text-align:left;padding-top:8px!important;margin-top:6px;border-top:1px solid var(--rule)!important}
  .blogo{height:110px!important}
  section[aria-labelledby="build"] .bld{padding:20px}
  section[aria-labelledby="build"] .blogo{margin:-20px -20px 8px}
  .cycline{display:block}
  .cyc.pop{display:inline}
}
.c-win .w{background:#FFFFFF}
