/* Shared styles for the v2 project pages. Matches the notebook look of index.html. */

@font-face { font-family: 'm5x7'; src: url('hideout/m5x7.ttf') format('truetype'); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --desk: #16251c;
  --paper: #f3ecdb;
  --card: #fffdf7;
  --ink: #1e1b16;
  --ink-soft: #5b5446;
  --sage: #6e8a4d;
  --sage-deep: #4f6b36;
  --pen: #2340c4;
  --hi: #ffe14a;
  --serif: 'Fraunces', Georgia, serif;
  --hand: 'Caveat', 'Comic Sans MS', cursive;
  --type: 'Courier Prime', 'Courier New', monospace;
  --pixel: 'VT323', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --rail: 72px;
  --dash: rgba(30,27,22,.18);
  --lift: 0 18px 34px -16px rgba(0,0,0,.55);
  /* kept for inline styles carried over from the old pages */
  --border: rgba(30,27,22,.16);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35  0 0 0 0 .27  0 0 0 0 0  0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; }
body.project {
  background: var(--desk);
  color: var(--ink);
  font-family: var(--serif);
  overflow-x: hidden;
  padding: 0 calc(var(--rail) + 24px) 40px;
  -webkit-font-smoothing: antialiased;
}
body.project > :not(.rail):not(.strip):not(script):not(.cursor-img):not(.lb) {
  position: relative; z-index: 2;
  max-width: 1060px; margin-left: auto; margin-right: auto;
}
html.has-cursor body.project, html.has-cursor body.project * { cursor: none !important; }
img { max-width: 100%; }
.px-sprite { image-rendering: pixelated; image-rendering: crisp-edges; display: block; }

/* generic small label */
.dot-label { font-family: var(--type); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }

/* ─── Side rails: hand-drawn spot stickers ─ */
.rail {
  position: fixed; top: 0; bottom: 0; width: var(--rail);
  z-index: 5; pointer-events: none;
  overflow: hidden;
}
.rail.left { left: 0; }
.rail.right { right: 0; transform: scaleX(-1); }
/* one cell per sticker (rails.js), so each lifts a little when you hover it */
.rail-sticker {
  display: block; width: 72px; height: 84px; pointer-events: auto;
  background: url('rail-stickers.svg') 0 0 / 72px 1008px no-repeat;
  transition: transform .5s cubic-bezier(.3, 1.6, .5, 1);
}
.rail-sticker:hover { transform: translateY(-3px) rotate(-8deg) scale(1.14); transition-duration: .3s; }

/* phones: the same stickers as a band across the top */
.strip { display: none; }

/* ─── Top nav ────────────────────────────────────── */
.topnav {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 40px 4px 34px;
  font-family: var(--hand); font-weight: 700; font-size: 26px; color: var(--paper);
}
.topnav a { color: inherit; text-decoration: none; position: relative; }
.topnav .nav-back { display: inline-flex; align-items: center; gap: 10px; }
.topnav .nav-back img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 34px; }
.topnav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6 C 20 1, 40 10, 60 5 S 100 1, 118 6' fill='none' stroke='%23ffe14a' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.topnav a:hover::after, .topnav a:focus-visible::after { transform: scaleX(1); }

/* ─── Hero card: title sheet + info strip ────────── */
.proj-hero {
  background-color: var(--paper);
  background-image: url('paper-grid.svg'), var(--grain), var(--noise);
  background-size: 204px 204px, auto, auto;
  border: 14px solid var(--sage); border-bottom: 0;
  border-radius: 40px 34px 0 0 / 36px 42px 0 0;
  padding: 58px 58px 34px;
  animation: rise .7s var(--ease) both;
}
/* hand stitching around the cover, continued on the info strip below */
.proj-hero::after, .proj-info::after {
  content: ''; position: absolute; pointer-events: none;
  border: 2px dashed rgba(243,236,219,.55);
}
.proj-hero::after { inset: -8px -8px 0 -8px; border-bottom: 0; border-radius: 34px 28px 0 0 / 30px 36px 0 0; }
.proj-info::after { inset: 0 -8px -8px -8px; border-top: 0; border-radius: 0 0 38px 26px / 0 0 28px 34px; }
.proj-eyebrow.dot-label {
  display: inline-block; margin-bottom: 22px;
  font-family: var(--pixel); font-size: 28px; line-height: 1; letter-spacing: 0; color: var(--ink);
  background: var(--hi); padding: 5px 11px 3px;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-4deg);
  animation: popin .45s .5s cubic-bezier(.3,1.6,.6,1) both;
}
.proj-eyebrow::before { content: 'No. '; }
/* side projects, as opposed to the jobs: a pen-drawn tag beside the number */
.side-tag {
  display: inline-block; margin-left: 16px; vertical-align: 6px;
  font-family: var(--hand); font-weight: 700; font-size: 23px; line-height: 1; white-space: nowrap;
  color: var(--pen); padding: 3px 11px 5px; border: 2px dashed currentColor; border-radius: 9px;
  transform: rotate(3deg);
  animation: popin .45s .65s cubic-bezier(.3,1.6,.6,1) both;
}
.proj-title {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(46px, 8vw, 108px); line-height: .95; letter-spacing: -.035em;
  font-variation-settings: 'opsz' 144;
  color: var(--ink); margin-bottom: 18px; text-wrap: balance;
}
.proj-tags.dot-label { font-size: 14px; color: var(--sage-deep); }

.proj-info {
  position: relative;
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr) minmax(0, .7fr) minmax(0, 1.2fr); gap: 26px;
  background-color: var(--paper); background-image: var(--noise);
  border: 14px solid var(--sage); border-top: 0;
  border-radius: 0 0 44px 32px / 0 0 34px 40px;
  padding: 30px 58px 46px;
  box-shadow: 0 30px 60px -22px rgba(0,0,0,.6);
  animation: rise .7s .08s var(--ease) both;
}
.proj-info::before { content: ''; position: absolute; left: 58px; right: 58px; top: 0; border-top: 2px dashed rgba(79,107,54,.45); }
.info-label.dot-label {
  font-family: var(--hand); font-weight: 700; font-size: 25px; line-height: 1;
  letter-spacing: 0; text-transform: lowercase; color: var(--pen); margin-bottom: 8px;
}
.info-value { font-family: var(--serif); font-size: 16.5px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
/* links inside the copy, like a collaborator's profile */
.info-value a, .content-text a { color: var(--pen); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.info-value a:hover, .content-text a:hover { color: var(--ink); }

/* ─── Hero image: a taped photo ──────────────────── */
.proj-img {
  margin-top: 56px;
  height: min(64vh, 600px);
  background: var(--card); padding: 12px; border-radius: 22px;
  box-shadow: 0 30px 50px -20px rgba(0,0,0,.75);
  transform: rotate(-.6deg);
  animation: drop .9s .3s cubic-bezier(.2,1.2,.4,1) both;
}
.proj-img::before {
  content: ''; position: absolute; z-index: 4; top: -15px; left: 50%; width: 130px; height: 30px; margin-left: -65px;
  background: rgba(255,225,74,.78); transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(0,0,0,.15);
  transform-origin: 0 50%; animation: stick .35s 1s ease-out both;
}

/* opening: the card settles, the photo is dropped on and taped down */
@keyframes rise { from { opacity: 0; translate: 0 18px; } }
@keyframes drop { from { opacity: 0; translate: 0 -40px; rotate: 3deg; } }
@keyframes stick { from { opacity: 0; scale: .2 1; } }
@keyframes popin { from { opacity: 0; scale: .2; } }

/* keyboard focus */
:focus-visible { outline: 3px solid var(--hi); outline-offset: 3px; border-radius: 6px; }
.main-col :focus-visible, .proj-hero :focus-visible, .proj-info :focus-visible { outline-color: var(--pen); }
.proj-img > img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.proj-img-placeholder {
  height: 100%; display: flex; align-items: center; justify-content: center;
  border: 2px dashed var(--dash); border-radius: 14px;
}

/* ─── Body: paper page + sticky-note sidebar ─────── */
.proj-body { margin-top: 64px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 36px; align-items: start; }
.main-col {
  background-color: var(--paper); background-image: var(--noise);
  border-radius: 30px; padding: 16px 58px 36px;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.6);
  min-width: 0;
}
.content-block, .story-section, .clips-section, .press-section { padding: 40px 0; border-bottom: 2px dashed var(--dash); }
.main-col > :last-child { border-bottom: 0; }

.content-label.dot-label {
  position: relative; isolation: isolate; display: inline-block;
  font-family: var(--hand); font-weight: 700; font-size: 36px; line-height: 1;
  letter-spacing: 0; text-transform: lowercase; color: var(--pen);
  margin-bottom: 18px;
}
.content-label.dot-label.keep-case { text-transform: none; } /* for labels with a capital I */
.content-label.dot-label::after {
  content: ''; position: absolute; z-index: -1; left: -5px; right: -5px; bottom: 1px; height: 11px;
  background: var(--hi); opacity: .75; border-radius: 3px; transform: skew(-10deg) rotate(-1deg);
}
.content-text { font-family: var(--serif); font-size: 18px; line-height: 1.7; color: #2d2a24; }
/* the overview reads as a standfirst: bigger and tighter than the story below it */
.content-text.lede { font-size: 22px; line-height: 1.5; color: var(--ink); max-width: 700px; letter-spacing: -.005em; }
.content-text.lede + .content-text.lede { margin-top: 14px; }
.content-placeholder { color: var(--ink-soft); font-style: italic; opacity: .7; }

/* short points, each with a pen-drawn dash */
.points { list-style: none; max-width: 680px; display: grid; gap: 12px; margin: 20px 0 0; }
.points li {
  position: relative; padding-left: 32px;
  font-family: var(--serif); font-size: 18px; line-height: 1.6; color: #2d2a24;
}
.points li::before {
  content: ''; position: absolute; left: 2px; top: .68em; width: 18px; height: 9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 9'%3E%3Cpath d='M1.5 5.5 C 5 3, 9 6.5, 12 4.5 M12 4.5 L 9.5 1.8 M12 4.5 L 9 7.4' fill='none' stroke='%232340c4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.points b { font-weight: 600; color: var(--ink); }
.story-text .points { margin-top: 16px; }
.story-text .points + .content-text { margin-top: 20px; }

/* what each project taught me: an index card pinned at the end of the story */
.lesson {
  position: relative; max-width: 600px; margin: 54px 0 8px;
  padding: 26px 30px 24px;
  background-color: var(--card);
  background-image: linear-gradient(transparent 62px, rgba(214,60,60,.45) 62px 64px, transparent 64px), var(--noise);
  border-radius: 4px;
  box-shadow: var(--lift);
  transform: rotate(-.8deg);
}
.lesson::before {
  content: ''; position: absolute; top: -13px; left: 46px; width: 92px; height: 26px;
  background: rgba(255,225,74,.78); transform: rotate(-4deg); box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.lesson-head {
  font-family: var(--hand); font-weight: 700; font-size: 30px; line-height: 1; color: var(--pen);
  margin: 0 0 30px;
}
.lesson ul { list-style: none; display: grid; gap: 14px; }
.lesson li {
  position: relative; padding-left: 40px;
  font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.4; color: var(--ink); letter-spacing: -.005em;
}
.lesson li::before {
  counter-increment: lesson; content: counter(lesson, decimal-leading-zero);
  position: absolute; left: 0; top: 2px;
  font-family: var(--pixel); font-weight: 400; font-size: 22px; line-height: 1; color: var(--sage-deep);
}
.lesson ul { counter-reset: lesson; }

/* the page's own sticker, die-cut and stuck over the corner of the title card */
.proj-sticker {
  position: absolute; z-index: 3; right: 46px; top: 40px; width: 96px; height: 96px;
  display: grid; place-items: center; pointer-events: none;
  transform: rotate(8deg);
  animation: popin .45s .8s cubic-bezier(.3,1.6,.6,1) both;
}
.proj-sticker img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  filter: drop-shadow(0 0 0 #fff) drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(3px 5px 4px rgba(30,27,22,.3));
}
.proj-sticker.px img { image-rendering: pixelated; }
.proj-sticker.cell { background: url('rail-stickers.svg') 0 calc(var(--cell, 0) * -84px) / 72px 1008px no-repeat; width: 72px; height: 84px; scale: 1.45; }
.story-text { max-width: 680px; margin-bottom: 46px; }
.story-text:last-child { margin-bottom: 0; }
.story-text p + p { margin-top: 20px; }
.story-heading {
  display: block; max-width: 680px; margin: 46px 0 14px;
  font-family: var(--serif); font-weight: 800; font-size: 26px; letter-spacing: -.02em; line-height: 1.25; color: var(--ink);
  /* a highlighter stroke under each line, so wrapped headings are marked line by line */
  text-decoration-line: underline; text-decoration-color: rgba(255,225,74,.85);
  text-decoration-thickness: .4em; text-underline-offset: -.26em; text-decoration-skip-ink: none;
}
.story-heading:first-child, .content-label + .story-heading { margin-top: 0; }

/* photos and video stills become taped prints */
.story-img {
  max-width: 760px; margin-bottom: 50px;
  background: var(--card); padding: 10px 10px 6px; border-radius: 16px;
  box-shadow: var(--lift); transform: rotate(.6deg);
}
.story-img img { display: block; width: 100%; height: auto; border-radius: 10px; }
.story-img iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; background: #1e1b16; }
.story-img video { display: block; width: 100%; height: auto; border-radius: 10px; background: #000; }
.story-img .story-caption.dot-label {
  margin: 0; padding: 8px 6px 4px;
  font-family: var(--hand); font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: 0; text-transform: none; color: var(--ink);
}
.story-img-ph {
  aspect-ratio: 16 / 9; background: #e6dfcd; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.story-imgs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 860px; margin-bottom: 50px; }
.story-img-pair {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--card); padding: 10px 10px 8px; border-radius: 16px;
  box-shadow: var(--lift); transform: rotate(-1deg);
}
.story-img-pair:nth-child(even) { transform: rotate(1.2deg); }
.story-img-caption {
  font-family: var(--hand); font-weight: 700; font-size: 20px; line-height: 1.2; color: var(--ink); padding: 2px 4px;
}
/* a paragraph with a tall screenshot beside it (Bloxd's event board) */
.story-split { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 36px; align-items: center; max-width: 760px; margin-bottom: 50px; }
.story-split .story-img { margin-bottom: 0; transform: rotate(1.4deg); }
.story-img-tall img { background: #2a2540; }
/* pages of a plan laid out like printed sheets (Badlion's Discord revamp) */
.doc-fan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 760px; margin-bottom: 50px; }
.doc-fan .story-img { margin-bottom: 0; padding: 6px 6px 2px; transform: rotate(-2deg); }
.doc-fan .story-img:nth-child(2) { transform: rotate(1.2deg) translateY(14px); }
.doc-fan .story-img:nth-child(3) { transform: rotate(-.8deg); }
.doc-fan .story-caption.dot-label { font-size: 18px; padding: 6px 4px 4px; }
/* two tall Stories side by side (Badlion's cosmetic polls) */
.poll-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 520px; margin-bottom: 50px; }
.poll-pair .story-img { margin-bottom: 0; transform: rotate(-1.4deg); }
.poll-pair .story-img + .story-img { transform: rotate(1.6deg) translateY(18px); }
.media-ph { font-family: var(--type); font-size: 12px; letter-spacing: .2em; color: var(--ink-soft); }
/* smaller prints, for photos that would go soft at full column width */
.story-img.story-img-sm { max-width: 440px; }
/* a pair of prints that keep their own shape instead of a 16:9 crop (charts, screenshots) */
.story-imgs-2.natural { align-items: center; }
.story-imgs-2.natural .story-img-pair > img,
.story-imgs-2.natural .story-img-pair > video { display: block; width: 100%; height: auto; border-radius: 10px; background: #e6dfcd; }
/* phone-shaped clips and screenshots in a row (Hyperliminal's Discord feature) */
.feature-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; max-width: 640px; margin-bottom: 48px; }
.feature-row .duo-video-pair { transform: rotate(-1.2deg); }
.feature-row .duo-video-pair:nth-child(2) { transform: rotate(1deg) translateY(10px); }
.feature-row .duo-video-pair:nth-child(3) { transform: rotate(-.6deg); }
.feature-row .duo-video-pair img, .feature-row .duo-video-pair video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; background: #1e1b16; }
/* a live embed of the game, framed like the hero */
.play-frame { max-width: 900px; background: var(--card); padding: 10px; border-radius: 16px; box-shadow: var(--lift); }
.play-frame iframe { display: block; width: 100%; height: 600px; border: 0; border-radius: 10px; background: #1e1b16; }
.play-note { font-family: var(--type); font-size: 13px; color: var(--ink-soft); margin: 0 0 16px; }

/* clips */
.clips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 860px; }
.clip-slot { background: var(--card); padding: 8px; border-radius: 16px; box-shadow: var(--lift); }
.clip-slot iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }
.clip-ph { aspect-ratio: 16 / 9; background: #e6dfcd; border-radius: 10px; display: flex; align-items: center; justify-content: center; }

/* chunky hand-drawn button */
.doc-btn {
  display: inline-block; margin-top: 22px; text-decoration: none;
  font-family: var(--hand); font-weight: 700; font-size: 26px; color: var(--ink);
  padding: 6px 24px 8px; background: var(--hi);
  border: 2.5px solid var(--ink); border-radius: 14px 18px 12px 20px;
  box-shadow: 4px 4px 0 var(--ink); transform: rotate(-1.5deg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.doc-btn:hover { transform: rotate(0) translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }

/* press: a clippings list */
.press-list { max-width: 860px; }
.press-item {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px 14px; text-decoration: none; color: var(--ink);
  border-bottom: 2px dashed var(--dash); border-radius: 10px;
  transition: background .25s;
}
.press-item:first-child { border-top: 2px dashed var(--dash); }
.press-item:hover { background: rgba(255,225,74,.45); }
.press-pub.dot-label { font-size: 12px; color: var(--sage-deep); margin-bottom: 4px; }
.press-title { font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1.3; }
.press-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.press-date.dot-label { font-family: var(--pixel); font-size: 21px; letter-spacing: 0; text-transform: none; }
.press-arrow { font-size: 20px; color: var(--pen); transition: transform .3s var(--ease); }
.press-item:hover .press-arrow { transform: translate(3px, -3px); }

/* sidebar: a yellow sticky note */
.sidebar {
  position: sticky; top: 24px;
  background-color: var(--hi); background-image: var(--noise);
  padding: 30px 26px 24px;
  box-shadow: 0 22px 40px -16px rgba(0,0,0,.65);
  transform: rotate(1deg);
}
.sidebar:not(:has(.sidebar-stat, .sidebar-links)) { display: none; } /* an empty note is hidden */
/* a note taller than the screen can't stick, or its last numbers would never show */
.sidebar.tall { position: relative; top: 0; }
.sidebar::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 30px; background: linear-gradient(rgba(0,0,0,.06), transparent); }
.sidebar .sidebar-heading.dot-label {
  font-family: var(--hand); font-weight: 700; font-size: 32px; line-height: 1;
  letter-spacing: 0; text-transform: none; color: var(--ink); margin-bottom: 12px;
}
.sidebar .sidebar-period {
  font-family: var(--hand); font-weight: 700; font-size: 23px; line-height: 1.1;
  letter-spacing: 0; text-transform: none; color: var(--pen);
  padding: 18px 0 4px; margin-top: 8px; border-top: 2px dashed rgba(30,27,22,.3);
}
.sidebar-stat { padding: 10px 0 9px; border-bottom: 1.5px dashed rgba(30,27,22,.2); }
/* a label and the numbers it covers stay together, label first, when the note splits into columns */
.sidebar-group { break-inside: avoid; }
.sidebar-num { font-family: var(--pixel); font-size: 42px; line-height: .8; color: var(--ink); }
.sidebar .sidebar-lbl { font-family: var(--type); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: #4a4232; margin-top: 5px; }

/* next project */
.proj-next { margin-top: 100px; margin-bottom: 40px; text-align: center; color: var(--paper); }
.proj-next > .dot-label {
  font-family: var(--hand); font-weight: 700; font-size: 28px; letter-spacing: 0; text-transform: lowercase; color: var(--hi);
  margin-bottom: 6px !important;
}
.proj-next-link { display: inline-flex; align-items: baseline; gap: 18px; text-decoration: none; color: var(--paper); }
.proj-next-title {
  position: relative; isolation: isolate;
  font-family: var(--serif); font-weight: 800; font-size: clamp(44px, 7vw, 96px); letter-spacing: -.035em; line-height: 1.05;
}
.proj-next-title::after {
  content: ''; position: absolute; z-index: -1; left: -8px; right: -8px; bottom: 8%; height: 26%;
  background: var(--hi); opacity: .9; border-radius: 4px; transform: scaleX(0) skew(-10deg); transform-origin: left;
  transition: transform .5s var(--ease);
}
.proj-next-link:hover .proj-next-title::after { transform: scaleX(1) skew(-10deg); }
.proj-next-arrow { font-family: var(--hand); font-weight: 700; font-size: 64px; color: var(--hi); transition: transform .4s var(--ease); }
.proj-next-link:hover .proj-next-arrow { transform: translateX(10px); }

/* ─── MrCoco: photo + video carousels, TikTok embeds ─ */
.carousel {
  position: relative; user-select: none;
  background: var(--card); padding: 10px 10px 12px; border-radius: 16px; box-shadow: var(--lift);
}
.carousel-track-wrap { overflow: hidden; border-radius: 10px; }
.carousel-track { display: flex; transition: transform .45s var(--ease); }
.carousel-slide { flex: 0 0 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #e6dfcd; }
.carousel-slide img, .carousel-slide video { display: block; width: 100%; height: 100%; object-fit: contain; }
.carousel-slide-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
/* full web pages (Badlion's redesign) keep their own widescreen shape */
.carousel-wide .carousel-slide { aspect-ratio: 1600 / 901; background: #1e1b16; }
.carousel-btn {
  position: absolute; top: calc(50% - 34px); width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--hand); font-weight: 700; font-size: 24px; line-height: 1; color: var(--ink);
  cursor: pointer; transition: background .2s, transform .2s;
}
.carousel-btn:hover { background: var(--hi); transform: scale(1.06); }
.carousel-prev { left: 18px; }
.carousel-next { right: 18px; }
.carousel-dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(30,27,22,.2); border: 0; padding: 0; transition: background .3s; }
.carousel-dot.active { background: var(--pen); }
.carousel-caption {
  font-family: var(--hand); font-weight: 700; font-size: 20px; line-height: 1.25; color: var(--ink);
  margin-top: 10px; min-height: 2.6em; padding: 0 4px;
}
.carousel-pair { display: flex; gap: 26px; max-width: 1100px; margin-bottom: 50px; }
.carousel-pair .carousel { flex: 1 1 0; min-width: 0; transform: rotate(-1deg); }
.carousel-pair .carousel + .carousel { transform: rotate(1deg); }
.p-mrcoco .clips-grid { display: flex; flex-wrap: wrap; gap: 12px; max-width: 1020px; }
.clips-grid .tiktok-embed { flex: 1 1 300px; min-width: 300px; margin: 0 !important; }

/* ─── MrCoco: the numbers print out as a till receipt ─ */
.sidebar.receipt {
  background-color: #fbfaf5; background-image: var(--noise);
  padding: 34px 24px 40px; transform: rotate(-1deg);
  box-shadow: 0 18px 30px -16px rgba(0,0,0,.6);
  /* torn zigzag top and bottom */
  -webkit-mask: linear-gradient(#000 0 0) 0 7px / 100% calc(100% - 14px) no-repeat, conic-gradient(from 135deg at 50% 0, #000 90deg, #0000 0) 0 0 / 14px 7px repeat-x, conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) 0 100% / 14px 7px repeat-x;
          mask: linear-gradient(#000 0 0) 0 7px / 100% calc(100% - 14px) no-repeat, conic-gradient(from 135deg at 50% 0, #000 90deg, #0000 0) 0 0 / 14px 7px repeat-x, conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) 0 100% / 14px 7px repeat-x;
}
.sidebar.receipt::before { display: none; }
.sidebar.receipt .sidebar-heading.dot-label {
  font-family: var(--type); font-weight: 700; font-size: 15px; letter-spacing: .18em; text-transform: uppercase;
  text-align: center; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1.5px dashed rgba(30,27,22,.35);
}
.sidebar.receipt .sidebar-stat { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-direction: row-reverse; border-bottom: 1.5px dashed rgba(30,27,22,.18); }
.sidebar.receipt .sidebar-num { font-family: var(--type); font-weight: 700; font-size: 20px; line-height: 1.2; white-space: nowrap; }
.sidebar.receipt .sidebar-lbl { margin-top: 0; font-size: 11.5px; }
.receipt-foot { margin-top: 14px; text-align: center; font-family: var(--type); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.receipt-foot b { display: block; font-family: var(--pixel); font-weight: 400; font-size: 26px; letter-spacing: 0; color: var(--ink); margin-bottom: 2px; }

/* ─── Hyperliminal: pixel props, results cards ────── */
.p-hyperliminal .proj-img { background: var(--card); }
.p-hyperliminal .proj-img > img { image-rendering: pixelated; filter: blur(1.2px); }
.p-hyperliminal .proj-img::after {
  content: ''; position: absolute; inset: 12px; border-radius: 14px; pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(0,0,0,.05) 3px 4px);
}
.proj-img-overlay { position: absolute; inset: 12px; z-index: 2; display: flex; align-items: center; justify-content: center; }
.proj-img-overlay img { width: 300px; filter: drop-shadow(0 0 48px rgba(0,0,0,.7)); }
.p-hyperliminal .story-heading { font-family: 'm5x7', var(--pixel); font-weight: 400; font-size: 36px; letter-spacing: .03em; }
.sidebar-character { margin-bottom: 22px; }
.sidebar-character-row { display: flex; gap: 14px; align-items: flex-end; }
.sidebar-character img { height: 96px; width: auto; margin-bottom: 8px; }
.sidebar-character-cap { font-family: var(--hand); font-weight: 700; font-size: 21px; line-height: 1; color: var(--ink); }
.sprite-shelf { display: flex; align-items: flex-end; gap: 20px; margin-top: 22px; padding-top: 18px; border-top: 2px dashed rgba(30,27,22,.3); }
.sprite-shelf .px-sprite { height: 60px; width: auto; }
.poster-row {
  display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; max-width: 900px; margin-bottom: 46px;
  padding: 20px; background: #e7dfca; border-radius: 16px; box-shadow: inset 0 0 0 2px rgba(30,27,22,.08);
}
.poster-row .px-sprite { height: 130px; width: auto; transition: transform .25s var(--ease); }
.poster-row .px-sprite:hover { transform: translateY(-4px) scale(1.04); }
.map-display { max-width: 900px; margin-bottom: 46px; background: var(--card); padding: 10px; border-radius: 16px; box-shadow: var(--lift); }
.map-display img { width: 100%; height: auto; border-radius: 8px; }
.map-display .map-caption.dot-label {
  padding: 8px 6px 2px; font-family: var(--hand); font-weight: 700; font-size: 22px;
  letter-spacing: 0; text-transform: none; color: var(--ink);
}
.discord-items { display: flex; gap: 20px; align-items: flex-end; margin-bottom: 46px; }
.discord-items .px-sprite { height: 72px; width: auto; }
.item-shelf {
  display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; max-width: 900px;
  padding: 22px 20px; background: #e7dfca; border-radius: 16px; box-shadow: inset 0 0 0 2px rgba(30,27,22,.08);
}
.item-shelf .px-sprite { height: 80px; width: auto; transition: transform .2s var(--ease); }
.item-shelf .px-sprite:hover { transform: scale(1.1); }
/* a handwritten label under a shelf of sprites */
.shelf-caption { font-family: var(--hand); font-weight: 700; font-size: 21px; line-height: 1.2; color: var(--ink-soft); margin: 10px 0 44px 6px; }
.results-block {
  max-width: 720px; margin-top: 38px; padding: 22px 24px 18px;
  background-color: #fbf8ef;
  background-image: linear-gradient(90deg, transparent 0 22px, rgba(214,60,60,.4) 22px 24px, transparent 24px);
  border-radius: 12px; box-shadow: var(--lift); padding-left: 44px;
}
.results-block .results-block-label.dot-label {
  font-family: var(--hand); font-weight: 700; font-size: 27px; letter-spacing: 0; text-transform: none; color: var(--pen); margin-bottom: 12px;
}
.results-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.results-num { font-family: var(--pixel); font-size: 40px; line-height: .8; color: var(--ink); }
.results-lbl { font-family: var(--type); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-top: 5px; }
.results-notes { font-size: 15px; font-style: italic; color: var(--ink-soft); }
.outfits-row { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 50px; }
.outfit-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--card); padding: 12px 12px 8px; border-radius: 14px; box-shadow: var(--lift);
}
.outfit-card:nth-child(odd) { transform: rotate(-2deg); }
.outfit-card:nth-child(even) { transform: rotate(2deg); }
.outfit-clip { width: 120px; height: 192px; overflow: hidden; image-rendering: pixelated; }
.outfit-clip img { display: block; width: 960px; max-width: none; height: auto; image-rendering: pixelated; }
.outfit-label { display: block; width: 120px; text-align: center; font-family: var(--hand); font-weight: 700; font-size: 20px; color: var(--ink); }
.duo-videos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; }
.duo-video-pair {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--card); padding: 8px 8px 6px; border-radius: 14px; box-shadow: var(--lift);
}
.duo-video-pair video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.duo-video-pair iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; }
.duo-ph { aspect-ratio: 16 / 9; background: #e6dfcd; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.duo-caption { font-family: var(--hand); font-weight: 700; font-size: 19px; line-height: 1.2; color: var(--ink); padding: 0 4px 2px; }

/* ─── MrCoco: a row of three photos in the hero frame ─ */
.proj-img-trio { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.proj-img-trio > img { min-width: 0; border-radius: 12px; }
.proj-img-trio > img:nth-child(2) { object-position: 50% 62%; }

/* ─── Pixel Fishing: the record-book carousel of fish ─ */
.fish-carousel { max-width: 780px; margin: 6px 0 50px; transform: rotate(-.6deg); }
.fish-carousel .carousel-slide {
  aspect-ratio: 2 / 1; display: grid; place-items: center;
  background-color: #f3e9cf; background-image: var(--grain);
  box-shadow: inset 0 0 0 2px rgba(122,84,40,.18);
}
.fish-carousel .carousel-slide img { width: auto; height: auto; max-width: 86%; max-height: 80%; object-fit: contain; image-rendering: pixelated; }
.fish-carousel-label {
  position: absolute; z-index: 2; left: 22px; top: 20px;
  font-family: 'Silkscreen', var(--pixel); font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
  color: #6b4a22; background: #ffd56a; padding: 3px 7px 2px; border: 2px solid #6b4a22;
}

/* ─── Pixel Fishing: the header is a playable slice of the game ─ */
/* The scene is the bot's 240 x 106 grid scaled up: the backdrop GIF underneath,
   and a canvas on top for the float, the bite, the fish and the captions. */
@font-face { font-family: 'Silkscreen'; src: url('Pixel Fishing/fonts/silkscreen-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Silkscreen'; src: url('Pixel Fishing/fonts/silkscreen-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
.p-pixel-fishing .proj-img { height: auto; }
.pf-hint {
  position: absolute; top: -42px; right: 34px; z-index: 5; pointer-events: none;
  font-family: var(--hand); font-weight: 700; font-size: 26px; color: var(--hi); transform: rotate(4deg);
}
.pf-scene {
  position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 240 / 106;
  user-select: none; -webkit-user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.pf-bg, .pf-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.pf-canvas { z-index: 2; pointer-events: none; }
.pf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pf-controls { position: absolute; right: 2.5%; bottom: 5.5%; z-index: 3; display: flex; flex-direction: column; gap: 4px; }
.pf-btn {
  font-family: 'Silkscreen', var(--pixel); font-weight: 700; text-transform: uppercase;
  font-size: clamp(11px, 1.8vw, 18px); line-height: 1; color: #fff;
  background: #5865f2; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  padding: .55em 1.1em .5em; cursor: pointer; transition: filter .15s;
}
.pf-btn:hover { filter: brightness(1.1); }
.pf-btn:active { translate: 2px 2px; box-shadow: 1px 1px 0 var(--ink); }
.pf-btn[data-mode="wait"] { background: #4f545c; }
.pf-btn[data-mode="reel"] { background: #ffb627; color: var(--ink); animation: pf-pulse .35s ease-in-out infinite alternate; }
@keyframes pf-pulse { to { scale: 1.08; } }
.pf-bar { height: 5px; background: rgba(0,0,0,.45); overflow: hidden; }
.pf-bar i { display: block; height: 100%; background: #ffb627; transform-origin: left; transform: scaleX(0); }
@keyframes pf-drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.pf-log { font-family: var(--type); font-size: 14px; line-height: 1.55; color: var(--ink); padding: 12px 8px 4px; min-height: 5.4em; }
.pf-log b { font-family: var(--serif); font-weight: 800; font-size: 16px; }
.pf-log i { font-family: var(--serif); color: var(--ink-soft); }
.pf-log small { font-size: 12.5px; color: var(--ink-soft); }
.pf-chip { font-family: 'Silkscreen', var(--pixel); font-size: 11px; text-transform: uppercase; padding: 2px 6px 1px; border-radius: 3px; background: #c9ced6; vertical-align: 1px; }
.pf-chip.pf-uncommon { background: #8fd18a; }
.pf-chip.pf-rare { background: #7fb2ff; }

/* ─── A row of tall scene cards (Grow A Tree's seasons and skies) ─ */
.art-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 14px; max-width: 860px; margin-bottom: 46px; }
.art-strip figure { margin: 0; background: var(--card); padding: 6px 6px 4px; border-radius: 12px; box-shadow: var(--lift); transform: rotate(-1.5deg); }
.art-strip figure:nth-child(even) { transform: rotate(1.5deg); }
.art-strip img { width: 100%; aspect-ratio: 800 / 1040; object-fit: cover; border-radius: 8px; }
/* these scenes are shrunk to a fraction of their size, where nearest-neighbour drops pixels; smooth reads better */
.art-strip img.px-sprite { image-rendering: auto; }
.art-strip figcaption { font-family: var(--hand); font-weight: 700; font-size: 19px; line-height: 1.2; text-align: center; padding-top: 4px; color: var(--ink); }

/* ─── Refract: the clients as a gig-poster lineup ─ */
.lineup {
  position: relative; max-width: 700px; margin: 30px 0 10px; padding: 34px 30px 28px;
  background-color: #1e1b16; background-image: var(--grain); color: var(--paper);
  border-radius: 8px; text-align: center; box-shadow: var(--lift); transform: rotate(-.8deg);
}
.lineup::before {
  content: ''; position: absolute; top: -13px; left: 50%; width: 110px; height: 26px; margin-left: -55px;
  background: rgba(255,225,74,.78); transform: rotate(2deg);
}
.lineup-top { font-family: var(--hand); font-weight: 700; font-size: 24px; color: var(--hi); margin-bottom: 10px; }
.lineup-row { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; }
.lineup-row li { white-space: nowrap; }
/* stars between names, trailing so a wrapped line never starts with one */
.lineup-row li:not(:last-child)::after { content: '\2726'; display: inline-block; margin: 0 .55em; color: var(--hi); font-size: .5em; vertical-align: .35em; }
.lineup-head { flex-direction: column; font-family: var(--serif); font-weight: 800; font-size: clamp(24px, 6vw, 52px); line-height: 1.05; letter-spacing: -.02em; text-transform: uppercase; }
.lineup-head li::after { display: none !important; }
.lineup-mid { margin-top: 12px; font-family: var(--serif); font-weight: 600; font-size: clamp(17px, 2.3vw, 24px); line-height: 1.3; color: var(--hi); text-transform: uppercase; }
.lineup-low { margin-top: 12px; font-family: var(--type); font-weight: 700; font-size: clamp(14px, 1.8vw, 18px); line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; }
.lineup-foot { margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(243,236,219,.3); font-family: var(--type); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: rgba(243,236,219,.75); }
.lineup-labels { margin-top: 8px; font-family: var(--hand); font-weight: 700; font-size: 21px; color: rgba(243,236,219,.8); }

/* ─── About: beliefs with their evidence, a reading list, a note ─ */
.p-about .proj-eyebrow::before { content: none; }
.beliefs-list { list-style: none; counter-reset: belief; display: grid; gap: 30px; max-width: 680px; }
.beliefs-list li { position: relative; padding-left: 58px; }
.beliefs-list li::before {
  counter-increment: belief; content: counter(belief, decimal-leading-zero);
  position: absolute; left: 0; top: -2px;
  font-family: var(--pixel); font-size: 34px; line-height: 1; color: var(--ink);
  background: var(--hi); padding: 3px 7px 1px; box-shadow: 2px 2px 0 var(--ink); transform: rotate(-4deg);
}
.belief { font-family: var(--serif); font-weight: 800; font-size: 24px; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); margin-bottom: 6px; }
.shelf { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 640px; margin-top: 26px; }
.shelf-col {
  background-color: #fbf8ef;
  background-image: linear-gradient(90deg, transparent 0 26px, rgba(214,60,60,.4) 26px 28px, transparent 28px), repeating-linear-gradient(transparent 0 33px, rgba(35,64,196,.16) 33px 34px);
  background-position: 0 0, 0 52px;
  padding: 18px 16px 18px 42px; border-radius: 4px; box-shadow: var(--lift); transform: rotate(-1deg);
}
.shelf-col + .shelf-col { transform: rotate(1.2deg) translateY(12px); }
.shelf-head { font-family: var(--hand); font-weight: 700; font-size: 25px; line-height: 1; color: var(--pen); margin-bottom: 16px; }
.shelf-col ul { list-style: none; }
.shelf-col li { font-family: var(--serif); font-size: 17px; line-height: 34px; color: var(--ink); }
.thought-note {
  max-width: 520px; padding: 20px 22px 18px; background: var(--card);
  border-radius: 18px; box-shadow: inset 0 0 0 2.5px var(--ink), 5px 5px 0 var(--ink); transform: rotate(-.8deg);
}
.thought-note time { font-family: var(--type); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--sage-deep); }
.thought-note p { font-family: var(--serif); font-size: 19px; line-height: 1.4; margin-top: 6px; color: var(--ink); }
.sidebar-links { list-style: none; }
.sidebar-links li { border-bottom: 1.5px dashed rgba(30,27,22,.2); }
.sidebar-links a { display: block; padding: 10px 0 8px; font-family: var(--hand); font-weight: 700; font-size: 27px; line-height: 1; color: var(--ink); text-decoration: none; }
.sidebar-links a:hover { color: var(--pen); }

/* ─── ESL: hero keeps its natural height ──────────── */
.p-esl-faceit .proj-img { height: auto; }
.p-esl-faceit .proj-img > img { height: auto; }

/* ─── Grow A Tree: the whole scene on wide screens; phones crop in on the tree ─ */
.p-grow-a-tree .proj-img { height: auto; }
.p-grow-a-tree .proj-img > img { height: auto; aspect-ratio: 2 / 1; }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 1100px) {
  /* stats move above the story as one wide sticky note */
  .page-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .sidebar { position: static; order: -1; transform: rotate(-.5deg); column-width: 200px; column-gap: 34px; }
  .sidebar > * { break-inside: avoid; }
  .sidebar .sidebar-heading, .sidebar-character, .sprite-shelf { column-span: all; }
  .p-about .sidebar { order: 0; } /* links read last on the About page */
  .sidebar.receipt { columns: auto; width: 100%; max-width: 380px; justify-self: center; } /* a receipt stays one long strip */
  .sidebar .sidebar-period:first-of-type { margin-top: 0; }
  .sidebar-group > .sidebar-period { margin-top: 0; border-top: 0; padding-top: 0; }
  .main-col { padding: 12px 44px 30px; }
}
@media (max-width: 900px) {
  :root { --rail: 0px; }
  body.project { padding: 0 16px 30px; }
  .rail { display: none; }
  .strip {
    display: block; height: 68px; margin: 0 -16px; position: relative; z-index: 3;
    background: url('rail-stickers-h.svg') 0 0 / 1008px 68px repeat-x;
    animation: drift 60s linear infinite;
  }
  @keyframes drift { to { background-position-x: -1008px; } }
  .topnav { padding: 22px 2px 26px; font-size: 22px; }
  .nav-links { gap: 16px; }
  .proj-hero { border-width: 10px; border-bottom: 0; border-radius: 30px 24px 0 0 / 26px 30px 0 0; padding: 34px 22px 22px; }
  .proj-hero::after { inset: -6px -6px 0 -6px; }
  .proj-info::after { inset: 0 -6px -6px -6px; }
  .proj-info { border-width: 10px; border-top: 0; border-radius: 0 0 26px 26px; padding: 22px 22px 30px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
  .proj-info::before { left: 22px; right: 22px; }
  /* long collaborator lists get the full width; duration slides up beside the role */
  .proj-info { grid-auto-flow: row dense; }
  .proj-info-col:nth-child(2) { grid-column: 1 / -1; }
  .doc-btn { font-size: 22px; padding: 6px 18px 8px; }
  .proj-img { height: 56vw; min-height: 220px; margin-top: 40px; padding: 8px; border-radius: 18px; }
  .proj-img > img, .proj-img-placeholder { border-radius: 11px; }
  .p-grow-a-tree .proj-img > img { aspect-ratio: 4 / 3; object-fit: cover; }
  .proj-body { margin-top: 44px; }
  .page-grid { grid-template-columns: 1fr; gap: 34px; }
  .main-col { padding: 6px 22px 22px; border-radius: 22px; }
  .content-block, .story-section, .clips-section, .press-section { padding: 30px 0; }
  .content-label.dot-label { font-size: 32px; }
  .content-text { font-size: 17px; }
  .sidebar { column-count: 2; column-width: auto; column-gap: 20px; padding: 24px 20px 18px; }
  .sidebar-num { font-size: 36px; }
  .story-imgs-2, .clips-grid, .duo-videos { grid-template-columns: 1fr; }
  .beliefs-list li { padding-left: 50px; }
  .belief { font-size: 21px; }
  .story-split { grid-template-columns: 1fr; gap: 26px; }
  .lineup { padding: 30px 14px 24px; }
  .story-split .story-img { max-width: 260px; justify-self: center; }
  /* Hyperliminal's Discord feature row uses fixed 280px-tall media inline */
  .duo-video-pair { max-width: 100%; }
  .duo-video-pair img, .duo-video-pair video { max-width: 100%; height: auto !important; }
  .carousel-pair { flex-direction: column; }
  .clips-grid .tiktok-embed { min-width: 0; }
  .press-item { gap: 12px; padding: 16px 6px; }
  .press-right { gap: 10px; }
  .proj-next { margin-top: 70px; }
  .proj-next-link { gap: 10px; }
  .proj-next-arrow { font-size: 44px; }
  .content-text.lede { font-size: 19px; line-height: 1.55; }
  .points li { font-size: 17px; padding-left: 28px; }
  .lesson { padding: 22px 20px 20px; margin-top: 44px; background-image: linear-gradient(transparent 56px, rgba(214,60,60,.45) 56px 58px, transparent 58px), var(--noise); }
  .lesson-head { font-size: 27px; margin-bottom: 26px; }
  .lesson li { font-size: 17px; padding-left: 34px; }
  .proj-sticker { width: 64px; height: 64px; right: 18px; top: 22px; }
  .feature-row { grid-template-columns: 1fr 1fr; gap: 14px; }
  .play-frame { padding: 6px; }
  .play-frame iframe { height: 460px; }
  .pf-hint { top: -34px; right: 18px; font-size: 21px; }
  .pf-btn { font-size: 9px; padding: .5em .8em .45em; border-width: 2px; box-shadow: 2px 2px 0 var(--ink); }
  .pf-bar { height: 3px; }
  .pf-log { font-size: 13px; }
}
@media (max-width: 560px) {
  .shelf { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
