/* The plain pages: what a hiring manager lands on from the CV. Same room as the 3D home
   (dark living room, camcorder labels, a lit bench for process), built for reading fast. */
:root {
  --room: #121110; --room-2: #1a1816; --line: #2c2a27; --osd: #f6f3ea; --muted: #a39d93; --faint: #6f6a62;
  --rec: #e04a3c; --lightbox: #f2eee6; --lightbox-edge: #e3ddd1; --stock: #141210; --ink: #1b1916; --ink-soft: #5d574e; --grease: #c0342a;
  --screen: "VT323", "Courier New", monospace; --hand: "Permanent Marker", cursive;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif; --body: "Karla", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--room); color: var(--osd); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--osd); outline-offset: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }

/* header: camcorder OSD */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.logo { font-family: var(--screen); font-size: 40px; line-height: 1; text-decoration: none; letter-spacing: .04em; }
.top nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { font-family: var(--screen); font-size: 21px; text-decoration: none; padding: 3px 11px; border: 2px solid var(--osd); line-height: 1.15; transition: background .15s, color .15s, transform 160ms ease-out; }
.top nav a[aria-current="page"] { background: var(--osd); color: #000; }
.top nav a:active, .btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .top nav a:hover { background: var(--osd); color: #000; } }

.crumb { font-family: var(--screen); font-size: 20px; color: var(--muted); margin: 36px 0 8px; }
.crumb a { text-decoration: none; } .crumb a:hover { color: var(--osd); }
h1 { font-family: var(--display); font-weight: 900; font-size: clamp(38px, 5.4vw, 72px); line-height: .95; margin: 0 0 18px; text-transform: uppercase; max-width: 22ch; }
h2 { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; margin: 0 0 16px; text-transform: uppercase; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: #ddd7cb; max-width: 62ch; margin: 0 0 28px; }
.chip { display: inline-block; font-family: var(--screen); font-size: 20px; line-height: 1; padding: 6px 10px 5px; border: 2px solid currentColor; }
.chip.rec::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--rec); margin-right: 8px; vertical-align: 1px; }

/* the TV: a click-to-play YouTube frame (nothing loads from YouTube until you press play) */
.tv { background: #000; border-radius: 20px; padding: clamp(8px, 1.4vw, 18px); box-shadow: inset 0 0 0 2px #262320, 0 40px 80px -40px rgba(0,0,0,.9); }
.tv.vertical { max-width: 420px; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: #050505; cursor: pointer; border-radius: 12px / 16px; overflow: hidden; }
.tv.vertical .yt { aspect-ratio: 9 / 16; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
@media (hover: hover) and (pointer: fine) { .yt:hover img { opacity: 1; } }
.yt .osd { position: absolute; inset: 14px 18px; font-family: var(--screen); font-size: clamp(20px, 2vw, 30px); color: var(--osd); text-shadow: 2px 2px 0 rgba(0,0,0,.7); display: flex; flex-direction: column; justify-content: space-between; text-align: left; pointer-events: none; }
.yt .osd span:last-child { align-self: flex-end; }
.yt .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--screen); font-size: 30px; background: var(--osd); color: #000; padding: 8px 20px; }
.yt iframe, .tv iframe { width: 100%; height: 100%; border: 0; display: block; }

/* piece page */
.piece { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 8px; }
.piece.vertical { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); }
.credits { border-top: 1px solid var(--line); }
.credits dl { display: grid; grid-template-columns: 110px 1fr; gap: 0; margin: 0; }
.credits dt, .credits dd { padding: 11px 0; border-bottom: 1px solid var(--line); margin: 0; }
.credits dt { font-family: var(--screen); font-size: 20px; color: var(--muted); line-height: 1.3; }
.credits ul { margin: 0; padding-left: 18px; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--screen); font-size: 23px; text-decoration: none; padding: 7px 16px; border: 2px solid var(--osd); transition: background .15s, color .15s, transform 160ms ease-out; }
.btn.solid { background: var(--osd); color: #000; }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--osd); color: #000; } .btn.solid:hover { background: transparent; color: var(--osd); } }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* the bench: process on a lightbox */
.bench { margin: clamp(56px, 8vw, 112px) clamp(8px, 2vw, 24px) 0; border-radius: 10px; color: var(--ink); padding-block: clamp(48px, 7vw, 88px);
  background: radial-gradient(120% 70% at 50% 20%, #faf8f3 0%, var(--lightbox) 55%, var(--lightbox-edge) 100%); box-shadow: 0 0 90px -30px rgba(242,238,230,.14); overflow: hidden; }
.bench h2 { color: var(--ink); }
.bench p { color: var(--ink-soft); max-width: 60ch; }
.grease { font-family: var(--hand); color: var(--grease); font-size: clamp(22px, 2.4vw, 30px); transform: rotate(-2deg); display: inline-block; margin-bottom: 10px; }
.strip { --hole: 10px; margin: 32px calc(-1 * var(--gutter)) 0; padding: 32px 0; overflow-x: auto; scroll-snap-type: x mandatory;
  background: radial-gradient(circle, var(--lightbox) 0 4.5px, transparent 5px) 0 8px / 26px 26px repeat-x,
              radial-gradient(circle, var(--lightbox) 0 4.5px, transparent 5px) 0 calc(100% - 8px) / 26px 26px repeat-x, var(--stock); }
.strip-track { display: flex; gap: 12px; padding-inline: var(--gutter); width: max-content; }
.bench .strip { margin-inline: 0; }
.strip figure { margin: 0; width: clamp(260px, 34vw, 440px); scroll-snap-align: start; }
.strip img { border-radius: 3px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.strip figcaption { font-family: var(--screen); font-size: 18px; color: #d9c79a; padding-top: 8px; line-height: 1.25; }

/* index: tapes and prints */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: clamp(48px, 6vw, 80px) 0 20px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.section-head h2 { margin: 0; }
.section-head span { font-family: var(--screen); font-size: 21px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 28px 24px; }
.grid.shorts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.card { text-decoration: none; display: block; }
.card .thumb { position: relative; background: #000; border-radius: 12px; padding: 7px; box-shadow: inset 0 0 0 2px #262320; }
.card .thumb img { border-radius: 7px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: opacity 200ms ease-out; }
.grid.shorts .card .thumb img { aspect-ratio: 9 / 16; }
.card .thumb .osd { position: absolute; right: 16px; bottom: 12px; font-family: var(--screen); font-size: 22px; text-shadow: 2px 2px 0 rgba(0,0,0,.8); }
@media (hover: hover) and (pointer: fine) { .card:hover .thumb img { opacity: .85; } }
.card h3 { font-size: 19px; line-height: 1.3; margin: 14px 0 4px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.print { background: #fbfaf6; color: var(--ink); padding: 12px 12px 18px; box-shadow: 0 16px 40px -18px rgba(0,0,0,.6); transform: rotate(var(--r, -1deg)); transition: transform 250ms cubic-bezier(0.23, 1, 0.32, 1); }
@media (hover: hover) and (pointer: fine) { .card:hover .print { transform: rotate(0deg) scale(1.01); } }
.print img { aspect-ratio: 4 / 3; object-fit: cover; object-position: top; width: 100%; background: #141210; }
.print .noimg { aspect-ratio: 4 / 3; background: #141210; color: var(--osd); display: grid; place-items: center; font-family: var(--screen); font-size: 48px; }
.print h3 { font-family: var(--hand); font-weight: 400; font-size: 24px; margin: 12px 4px 2px; }
.print p { color: var(--ink-soft); margin: 0 4px; font-size: 15px; }
.print .chip { color: var(--ink); font-size: 17px; margin: 10px 4px 0; }

/* case study */
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px 28px; border-block: 1px solid var(--line); padding-block: 16px; margin: 0 0 36px; }
.meta div span { display: block; font-family: var(--screen); font-size: 19px; color: var(--muted); }
.story { max-width: 760px; }
.story h2 { margin-top: 64px; }
.story p { margin: 0 0 16px; color: #ddd7cb; }
.story ul { padding-left: 20px; color: #ddd7cb; } .story li { margin-bottom: 10px; }
.shot { margin: 28px 0 8px; }
.shot img { border-radius: 8px; box-shadow: 0 24px 60px -30px rgba(0,0,0,.9); }
.shot figcaption { font-size: 15px; color: var(--muted); margin-top: 10px; }
.shot.narrow { max-width: 380px; }
@media (min-width: 1000px) { .shot.wide { width: min(1100px, 92vw); max-width: none; } }

/* CV */
.cvs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; margin-top: 28px; }
.cv { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: var(--room-2); }
.cv h3 { margin: 0 0 6px; font-size: 20px; } .cv p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }

footer { margin-top: clamp(72px, 10vw, 140px); border-top: 1px solid var(--line); padding-block: 36px 56px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: end; }
footer h2 { font-family: var(--hand); font-weight: 400; text-transform: none; font-size: clamp(30px, 4vw, 52px); margin: 0 0 8px; }
footer p { margin: 0; color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; flex-wrap: wrap; }
.pager a { font-family: var(--screen); font-size: 21px; text-decoration: none; color: var(--muted); max-width: 46%; }
.pager a:hover { color: var(--osd); }

@media (max-width: 820px) {
  .piece, .piece.vertical { grid-template-columns: minmax(0, 1fr); }
  .top nav a { font-size: 19px; padding: 2px 8px; }
  .logo { font-size: 34px; }
  .credits dl { grid-template-columns: 96px 1fr; }
}
/* reduced motion: fewer and gentler, not zero. Keep colour and opacity changes (they help you follow state); drop movement. */
@media (prefers-reduced-motion: reduce) {
  .btn, .top nav a, .print { transition-property: background-color, color, opacity; }
  .btn:active, .top nav a:active { transform: none; }
  .card:hover .print { transform: rotate(var(--r, -1deg)); }
}

/* channel names keep their own spelling: BridgeDGap, never BRIDGEDGAP (Nath, 19 Oct + 17 Nov) */
h2.as-named { text-transform: none; }
