/* Matt Workman — "workbench" theme.
   A black cutting mat with physical objects (Polaroids, press clippings, a notebook) mixed with
   clean modern UI (social tiles, story cards, video grid). One highlight color. */
:root {
  --accent: #ffb547;
  --accent-ink: #1a1408;
  --mat: #141516;
  --line-major: rgba(200, 208, 212, .17);
  --line-minor: rgba(200, 208, 212, .06);
  --fg: #eeede8;
  --muted: #a5a299;
  --surface: rgba(24, 25, 28, .86);
  --surface-2: rgba(34, 35, 39, .9);
  --border: rgba(255, 255, 255, .09);
  --photo-paper: #f6f3ec;
  --masking: rgba(233, 222, 192, .93);
  --shadow: 0 1px 1px rgba(0,0,0,.35), 0 6px 12px rgba(0,0,0,.35), 0 20px 36px rgba(0,0,0,.4);
  --shadow-lift: 0 2px 2px rgba(0,0,0,.3), 0 14px 22px rgba(0,0,0,.4), 0 34px 60px rgba(0,0,0,.45);
  --gutter: 18px;
  --max: 1180px;
  --ui: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --marker: "Permanent Marker", "Comic Sans MS", cursive;
  --hand: "Caveat", "Segoe Print", cursive;
  --type: "Special Elite", "Courier New", monospace;
  --display: "Playfair Display", Georgia, serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 20px; background: var(--mat); }
body {
  margin: 0; color: var(--fg); font: 16px/1.55 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-color: var(--mat);
  background-image:
    linear-gradient(var(--line-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-major) 1px, transparent 1px),
    linear-gradient(var(--line-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-minor) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}
.lamp { position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 238, 210, .08), transparent 70%),
              radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0,0,0,.42) 100%); }
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }
button { font: inherit; color: inherit; }
.wrap { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

.marker { font-family: var(--marker); font-weight: 400; }
.hand { font-family: var(--hand); font-weight: 700; }
.typed { font-family: var(--type); }

/* ── Physical objects ─────────────────────────── */
.obj { position: relative; transform: rotate(var(--r, 0deg)); transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, filter .3s; }
.reveal { opacity: 0; translate: 0 16px; scale: 1.03; transition: opacity .6s ease, translate .7s cubic-bezier(.2,.7,.2,1), scale .7s cubic-bezier(.2,.7,.2,1), transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, filter .3s; }
.reveal.in { opacity: 1; translate: 0 0; scale: 1; }
@media (hover: hover) and (pointer: fine) {
  .polaroid:hover, .clip:hover { transform: rotate(0deg) translateY(-5px); z-index: 5; }
  .polaroid:hover { box-shadow: var(--shadow-lift); }
}

.masking {
  display: inline-block; position: relative; padding: .42em 1.1em .36em; transform: rotate(-1.6deg);
  background: var(--masking); color: #26231d; font: 400 17px/1.1 var(--marker); letter-spacing: .02em;
  box-shadow: 0 1px 2px rgba(0,0,0,.35);
  clip-path: polygon(1.5% 4%, 98% 0, 99.5% 28%, 97.8% 52%, 100% 78%, 98% 100%, 2% 97%, 0 72%, 1.6% 46%, 0 20%);
}

/* Label-maker tape (badge) */
.dymo {
  --tape-c: #1b1b1d;
  display: inline-flex; align-items: center; gap: .55em; padding: .62em .95em .56em; border-radius: 2px;
  font: 800 12.5px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: #f4f3ee; text-decoration: none; white-space: nowrap;
  background-color: var(--tape-c);
  background-image: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 42%, rgba(0,0,0,.22));
  text-shadow: 0 1px 0 rgba(0,0,0,.6), 0 -1px 0 rgba(255,255,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 2px 3px rgba(0,0,0,.55);
}
.dymo-accent { --tape-c: var(--accent); color: var(--accent-ink); text-shadow: 0 1px 0 rgba(255,255,255,.4); }

/* ── Hero ─────────────────────────────────────── */
.hero { position: relative; padding: calc(var(--safe-top) + 34px) 0 30px; overflow-x: clip; }
.hero-grid { display: grid; justify-items: center; gap: 26px; }
.polaroid {
  display: block; width: 100%; padding: 11px 11px 0; border: 0; border-radius: 2px; text-align: center; cursor: zoom-in;
  background: var(--photo-paper); color: #2b2926; box-shadow: var(--shadow);
  background-image: linear-gradient(160deg, rgba(255,255,255,.7), rgba(255,255,255,0) 40%);
}
.polaroid .pic { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #222; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.polaroid .pic img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.04) sepia(.06); }
.polaroid .hand { display: block; padding: 12px 6px 16px; font-size: 23px; line-height: 1; color: #2a2723; }
.tape { position: absolute; z-index: 2; top: -13px; left: 50%; width: 96px; height: 28px; translate: -50% 0; rotate: -4deg;
  background: rgba(236, 226, 198, .8); box-shadow: 0 1px 2px rgba(0,0,0,.25);
  clip-path: polygon(0 8%, 4% 0, 96% 6%, 100% 0, 98% 52%, 100% 100%, 3% 94%, 0 100%, 2% 50%); }
.rail > :nth-child(3n+2) .tape { rotate: 5deg; left: 40%; }
.rail > :nth-child(3n) .tape { rotate: -9deg; left: 62%; }
.hero-photo { width: min(76vw, 340px); cursor: default; }
.hero-photo .pic { aspect-ratio: 1; }
.hero-photo .pic img { filter: none; }
.hero-photo .hand { font-size: 30px; padding: 14px 6px 20px; }
.hero-text { text-align: center; display: grid; justify-items: center; gap: 14px; }
.name { margin: 4px 0 0; font: 800 clamp(42px, 12.5vw, 88px)/.95 var(--ui); letter-spacing: -.045em; color: var(--fg); }
.socials { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 460px; margin: 8px 0 0; padding: 0; list-style: none; }
.social { display: grid; justify-items: center; gap: 8px; text-decoration: none; color: var(--fg); }
.social-icon { display: grid; place-items: center; width: 100%; max-width: 72px; aspect-ratio: 1; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 10px 24px rgba(0,0,0,.35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background-color .2s, border-color .2s, transform .2s; }
.social-icon .ico { width: 44%; height: 44%; }
.social-name { font: 600 12.5px/1 var(--ui); color: #cfccc4; }
.social:hover .social-icon { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: translateY(-3px); }
.social:hover .social-name { color: var(--fg); }

/* ── Era layout ───────────────────────────────── */
.era { position: relative; padding: 62px 0 34px; overflow-x: clip; }
.era-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.era-num { font: 800 13px/1 var(--ui); color: var(--accent-ink); background: var(--accent); padding: 6px 9px; border-radius: 8px; }
.era-name { font: 700 14px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--fg); }
.spread { display: grid; gap: 30px; }
.side { display: grid; gap: 26px; align-content: start; }

/* Story card (modern rounded box) */
.story-card {
  position: relative; padding: 22px 18px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}
.kicker { margin: 0 0 10px; font: 600 12px/1.3 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.headline { margin: 0 0 10px; font: 800 clamp(32px, 9vw, 58px)/1 var(--ui); letter-spacing: -.035em; }
.deck { margin: 0 0 18px; font-size: 18px; line-height: 1.45; color: #cfccc4; }
.card-photo { position: relative; display: block; margin: 0 0 18px; overflow: hidden; border-radius: 16px; text-decoration: none; color: inherit; background: #000; }
.card-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-photo .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; font: 500 12.5px/1.35 var(--ui); color: rgba(255,255,255,.9);
  background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.card-photo .play { top: calc(50% - 16px); }
.story { font-size: 16.5px; line-height: 1.62; color: #dedbd3; }
.story p { margin: 0 0 .9em; }
.story a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.story b { color: var(--fg); font-weight: 700; }
.pull { margin: 18px 0 0; padding: 4px 0 2px 16px; border-left: 3px solid var(--accent); }
.pull p { margin: 0 0 8px; font: 600 19px/1.38 var(--ui); letter-spacing: -.01em; color: var(--fg); }
.pull p::before { content: "“"; } .pull p::after { content: "”"; }
.pull cite { font: normal 500 12.5px/1.4 var(--ui); color: var(--muted); }
.pull cite a { color: var(--muted); }

/* Notebook timeline (black hardcover, elastic band, ribbon, dotted ivory page) */
.notebook { padding: 10px 10px 10px 14px; border-radius: 8px 16px 16px 8px; background: #121212;
  background-image: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,0) 20%), linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.2));
  box-shadow: var(--shadow); }
.notebook .page {
  position: relative; padding: 26px 34px 14px 22px; border-radius: 4px 12px 12px 4px; color: #26231e;
  background-color: #f2ecdd;
  background-image: radial-gradient(circle, rgba(60,50,30,.22) 1px, transparent 1.3px);
  background-size: 18px 18px; background-position: 9px 9px;
  box-shadow: inset 6px 0 10px -6px rgba(0,0,0,.35), 2px 2px 0 #e3dccb, 4px 4px 0 #d9d1be;
}
.notebook .band { position: absolute; z-index: 2; top: -2px; bottom: -2px; right: 26px; width: 12px; border-radius: 2px;
  background: linear-gradient(90deg, #050505, #2a2a2a 45%, #0a0a0a); box-shadow: 0 0 6px rgba(0,0,0,.5); }
.notebook .ribbon { position: absolute; z-index: 2; bottom: -34px; left: 46%; width: 10px; height: 60px; background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 86%, 0 100%); box-shadow: 0 2px 4px rgba(0,0,0,.4); }
.nb-title { margin: 0 0 10px; font-size: 30px; line-height: 1; color: #1d1b17; }
.notebook ol { margin: 0; padding: 0; list-style: none; }
.notebook li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px dashed rgba(60,50,30,.25); }
.notebook li:first-child { border-top: 0; }
.notebook .when { font-size: 20px; line-height: 1.05; color: #2b2720; }
.notebook b { display: block; font: 700 15px/1.3 var(--ui); color: #1b1915; }
.notebook p { margin: 3px 0 0; font: 400 14px/1.5 var(--ui); color: #4a4439; }
.notebook a { color: #1b1915; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 2px; }


/* Conference badge */
.badge { display: grid; justify-items: center; gap: 8px; width: min(100%, 320px); margin: 56px auto 6px; padding: 40px 20px 22px;
  background: #fbfbf9; color: #121212; border-radius: 14px; text-align: center; box-shadow: var(--shadow); }
.lanyard { position: absolute; z-index: -1; left: 50%; top: -70px; width: 30px; height: 84px; translate: -50% 0;
  background: repeating-linear-gradient(180deg, var(--accent) 0 14px, #121212 14px 28px); border-radius: 3px; }
.clip-hole { position: absolute; top: 12px; left: 50%; width: 52px; height: 9px; translate: -50% 0; border-radius: 5px; background: #2a2a2a; box-shadow: inset 0 2px 2px rgba(0,0,0,.6); }
.badge-top { display: flex; justify-content: space-between; align-items: baseline; width: 100%; padding-bottom: 10px; border-bottom: 2px solid #121212; }
.badge-org { font: 800 30px/1 var(--ui); letter-spacing: -.03em; }
.badge-event { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.badge-name { margin-top: 6px; font: 800 27px/1.05 var(--ui); letter-spacing: -.02em; }
.badge-role { font: 700 12px/1.2 var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 6px 10px; }
.badge-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.badge-tools .dymo { font-size: 10.5px; padding: .55em .75em .5em; }

/* ── Rows / rails ─────────────────────────────── */
.row { margin-top: 18px; }
.row-label { display: flex; justify-content: space-between; align-items: center; margin: 36px 0 6px; font-weight: 400; }
.rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; margin: 0; padding: 22px 0 8px; }
.row-tvs .rail { gap: 12px; padding-top: 16px; }
.row-polaroids .polaroid { padding: 8px 8px 0; }
.row-polaroids .polaroid .hand { font-size: 18px; padding: 9px 4px 12px; }
.row-polaroids .tape { width: 64px; height: 20px; top: -9px; }
.row-clippings .clip-paper { padding: 8px 8px 18px; }
.row-clippings .clip-meta b { font-size: 13.5px; }
.row-clippings .clip-meta .typed { font-size: 10px; }

/* Video cards: modern 16:9 grid with rounded corners */
.video-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; text-decoration: none; color: var(--fg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 10px 28px rgba(0,0,0,.35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .2s, transform .2s; }
.video-card:hover { border-color: color-mix(in oklab, var(--accent) 60%, transparent); transform: translateY(-3px); }
.vc-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.vc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.video-card:hover .vc-thumb img { transform: scale(1.04); }
.vc-body { display: grid; gap: 3px; padding: 10px 12px 13px; }
.vc-title { font: 700 14.5px/1.3 var(--ui); letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vc-meta { font: 500 12px/1.35 var(--ui); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.play { position: absolute; z-index: 3; left: 50%; top: 50%; width: 44px; height: 44px; translate: -50% -50%; border-radius: 50%;
  background: rgba(10,10,10,.55); border: 1.5px solid rgba(255,255,255,.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.play::after { content: ""; position: absolute; left: 53%; top: 50%; translate: -50% -50%; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.dur { position: absolute; z-index: 3; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 6px; background: rgba(0,0,0,.78); color: #fff; font: 600 11px/1.3 var(--ui); }

/* Clipping (torn-out press page) */
.clip { display: block; color: #1d1c1a; text-decoration: none; filter: drop-shadow(0 8px 10px rgba(0,0,0,.5)) drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.clip-paper { display: block; padding: 12px 12px 26px; background: #fbfaf5; background-image: linear-gradient(170deg, #fff, #f1eee5); }
.clip-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; border: 1px solid #e2ded3; }
.clip-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.clip-quote { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 18px; text-align: center; border: 1px solid #e2ded3; font: italic 800 21px/1.25 var(--display); }
.clip-meta { display: block; padding-top: 10px; }
.clip-meta .typed { display: block; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: #6d675c; }
.clip-meta b { display: block; margin-top: 3px; font: 700 16px/1.25 var(--ui); letter-spacing: -.01em; }
.pin { position: absolute; z-index: 3; top: -7px; left: 50%; width: 18px; height: 18px; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff1c9, var(--accent) 50%, #8a5a10); box-shadow: 2px 4px 4px rgba(0,0,0,.5); }

/* ── Footer ───────────────────────────────────── */
.foot { position: relative; padding: 50px 0 calc(60px + var(--safe-bottom)); overflow-x: clip; }
.index-card { max-width: 640px; margin: 0 auto; padding: 22px 20px 16px; color: #23211d; box-shadow: var(--shadow);
  background: #fdfcf8; background-image: linear-gradient(180deg, transparent 52px, rgba(214,64,64,.5) 52px 53.5px, transparent 53.5px), repeating-linear-gradient(180deg, transparent 0 25px, rgba(70,110,170,.22) 25px 26px); background-position: 0 0, 0 54px; }
.index-card .marker { margin: 0 0 22px; font-size: 30px; line-height: 1; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 999px; background: #18181a; color: #f2f0ea; text-decoration: none; font: 600 13.5px/1 var(--ui); }
.pill .ico { width: 15px; height: 15px; }
.pill:hover { background: var(--accent); color: var(--accent-ink); }
.index-card .small { margin: 0; font-size: 12px; color: #5f5a50; }

/* ── Modal (video / photo viewer) ─────────────── */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: var(--gutter); background: rgba(8,8,9,.93); opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal .frame { width: 100%; max-width: min(1100px, calc(80svh * 16 / 9)); aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.modal .frame.r43 { aspect-ratio: 4 / 3; max-width: min(960px, calc(80svh * 4 / 3)); }
.modal .frame.photo { aspect-ratio: auto; width: auto; max-width: min(92vw, 980px); padding: 14px 14px 0; background: var(--photo-paper); border-radius: 2px; transform: rotate(-1deg); }
.modal .frame.photo img { max-height: 74svh; width: auto; margin: 0 auto; }
.modal .frame.photo p { margin: 0; padding: 12px 6px 16px; text-align: center; font: 700 26px/1 var(--hand); color: #2a2723; }
.modal iframe { width: 100%; height: 100%; border: 0; }
.modal .close { position: absolute; top: calc(var(--safe-top) + 12px); right: 12px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); font-size: 26px; line-height: 1; cursor: pointer; }
.modal .ext { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-bottom) + 18px); margin: 0; text-align: center; color: var(--muted); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; scale: none; transition: none; }
  .obj { transition: none; }
}

/* Phones: a lone last item in a 2-column grid sits centered */
@media (max-width: 699px) {
  .rail > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 8px); }
}

/* ── Tablet / desktop ─────────────────────────── */
@media (min-width: 700px) {
  :root { --gutter: 30px; }
  .story-card { padding: 28px 28px 26px; }
  .rail { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 22px; }
  .row-tvs .rail { gap: 16px; }
  .row-polaroids .polaroid { padding: 10px 10px 0; }
  .row-polaroids .polaroid .hand { font-size: 21px; padding: 11px 6px 14px; }
  .row-polaroids .tape { width: 84px; height: 25px; top: -12px; }
  .row-clippings .clip-paper { padding: 11px 11px 24px; }
  .row-clippings .clip-meta b { font-size: 16px; }
  .row-clippings .clip-meta .typed { font-size: 11px; }
}
@media (min-width: 1000px) {
  .hero { padding-top: calc(var(--safe-top) + 64px); padding-bottom: 50px; }
  .hero-grid { grid-template-columns: auto 1fr; justify-items: start; align-items: center; gap: 56px; }
  .hero-photo { width: 380px; }
  .hero-text { text-align: left; justify-items: start; }

  .spread { grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); gap: 44px; align-items: start; }
  .story-card { padding: 34px 36px 30px; }
  .story { column-count: 2; column-gap: 30px; }
  .card-photo.wide img { aspect-ratio: 1520 / 516; }
  .rail, .row-polaroids .rail, .row-tvs .rail, .row-clippings .rail {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 40px 34px; margin: 0; padding: 26px 6px 10px; }
  .rail > * { flex: 0 0 calc((100% - 68px) / 3); }
  .row-polaroids .rail > * { flex-basis: calc((100% - 102px) / 4); }
  .row-tvs .rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding: 18px 0 6px; }
  .row-tvs .rail > * { flex: none; }
}
