/* Dan Parry's showcase. One idea: his desk. A small warm room where everything on the desk opens a body of work. Two moods, day and evening. */
:root {
  --paper: #f7eee1;     /* day: warm paper */
  --ink: #2a1f18;       /* day: coffee-dark text and outlines */
  --soft: #6f5d50;
  --rule: #e2d3bf;
  --wash: #efe2cf;
  --builds: #d9482f;    /* the arcade red */
  --hosts: #2f5fc4;     /* screen blue */
  --gathers: #7a4fc4;
  --camera: #e9a23b;    /* lamp amber: the accent for anything you can press */
  --display: "Hammersmith One", "Gill Sans", "Trebuchet MS", sans-serif;
  --text: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(18px, 4.5vw, 48px);
  --ease: cubic-bezier(.22, .8, .3, 1);
}
:root[data-mood="evening"] { --paper: #211712; --ink: #f4e7d6; --soft: #bfa995; --rule: #3d2c22; --wash: #2c1f18; }
:root { transition: background-color .6s; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; transition: background-color .6s, color .6s; }
body.has-player { padding-bottom: 86px; }
::selection { background: var(--ink); color: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; }

/* accent colours for the archive pages */
.l-builds { --line: var(--builds); --on: #fff; }
.l-ironhack { --line: var(--hosts); --on: #fff; }
.l-journey { --line: var(--gathers); --on: #fff; }
.l-transit { --line: var(--camera); --on: var(--ink); }
.bullet {
  display: inline-grid; place-items: center; flex: none; width: 1.75em; height: 1.75em; border-radius: 50%;
  background: var(--line, var(--ink)); color: var(--on, #fff); font: 400 .82em/1 var(--display); letter-spacing: .01em;
}

/* header */
.top { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px var(--gutter); background: color-mix(in srgb, var(--paper) 92%, transparent); border-bottom: 2px solid var(--ink); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.top .name { display: flex; align-items: center; gap: 10px; font: 400 1.2rem var(--display); text-decoration: none; white-space: nowrap; }
.top nav { display: flex; gap: clamp(12px, 2.4vw, 26px); font-size: .95rem; font-weight: 500; white-space: nowrap; }
.top nav .btn { padding: 6px 14px; font-size: .92rem; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; cursor: pointer; white-space: nowrap;
  font: 600 .98rem var(--text); text-decoration: none; color: var(--paper); background: var(--ink); border: 2px solid var(--ink); border-radius: 999px;
  transition: transform .12s var(--ease), background-color .15s, color .15s;
}
.btn:hover { background: var(--line, var(--paper)); color: var(--on, var(--ink)); border-color: var(--ink); }
.btn:active { transform: scale(.97); }
.btn.quiet { background: var(--paper); color: var(--ink); }
.btn.quiet:hover { background: var(--ink); color: var(--paper); }
.btn svg { width: 11px; height: 13px; flex: none; fill: currentColor; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* ---------- the desk ---------- */
.desk { position: relative; height: 100vh; height: 100svh; min-height: 520px; background: var(--room, var(--wash)); overflow: hidden; }
.desk canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; opacity: 0; transition: opacity .8s; }
.desk.is-ready canvas { opacity: 1; }
.desk-copy { position: absolute; z-index: 2; left: var(--gutter); top: clamp(18px, 4vh, 44px); max-width: min(30rem, 80vw); pointer-events: none; color: var(--ink); }
.desk-copy h1 { font-size: clamp(2.1rem, 3.6vw + 1rem, 4rem); line-height: 1; }
.desk-copy p { margin-top: 10px; font-size: clamp(1rem, .5vw + .9rem, 1.2rem); max-width: 21ch; }
/* In the evening the words sit in the pool of light from the lamp, so they are dark ink with a little of that light around them.
   On a narrow screen they sit above the room on the dark page instead, and stay light. */
.desk[data-mood="evening"] .desk-copy { color: #f4e7d6; }
@media (min-width: 901px) {
  .desk[data-mood="evening"] .desk-copy { color: #1f0f07; text-shadow: 0 0 8px rgba(255, 226, 184, .85), 0 0 26px rgba(255, 208, 150, .7), 0 0 60px rgba(255, 196, 130, .45); }
  .desk[data-mood="evening"] .desk-copy p { font-weight: 600; }
}
.desk-ui { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(14px, 3vh, 28px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.desk-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.desk-ui button.is-on { background: var(--camera); color: #2a1f18; border-color: #2a1f18; }
/* the areas by name, for screens that cannot hover */
.chips { display: none; }
@media (hover: none), (max-width: 760px) {
  .chips { display: flex; flex: 0 0 calc(100% + var(--gutter) * 2); gap: 8px; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .chips::-webkit-scrollbar { display: none; }
  .chip-link { flex: none; padding: 8px 14px; border: 2px solid #2a1f18; border-radius: 999px; background: #f7eee1; color: #2a1f18; font: 400 .95rem var(--display); text-decoration: none; white-space: nowrap; box-shadow: 0 3px 0 rgba(42, 31, 24, .28); }
  .chip-link:active { background: var(--camera); transform: translateY(2px); box-shadow: 0 1px 0 rgba(42, 31, 24, .28); }
  .desk-hint { display: none; }
}
.desk-hint { color: var(--ink); font-size: .92rem; opacity: .8; }
.desk[data-mood="evening"] .desk-hint { color: #fff4e2; text-shadow: 0 0 2px #1a0e09, 0 1px 3px rgba(26, 14, 9, .95), 0 0 14px rgba(26, 14, 9, .9); }
.desk-ui button { padding: 7px 14px; border-radius: 999px; border: 2px solid var(--ink); background: color-mix(in srgb, var(--paper) 86%, transparent); color: var(--ink); font: 600 .9rem var(--text); cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background-color .15s, color .15s, transform .12s var(--ease); }
.desk-ui button:hover { background: var(--camera); color: #2a1f18; border-color: #2a1f18; }
.desk-ui button:active { transform: scale(.97); }
/* the labels: pinned to their objects, and shown only when one is pointed at or reached with the keyboard */
.spots { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.spot { position: absolute; left: 0; top: 0; pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px; border-radius: 999px; border: 2px solid #2a1f18; background: #f7eee1; color: #2a1f18; font: 400 1rem var(--display); white-space: nowrap; cursor: pointer; box-shadow: 0 3px 0 rgba(42, 31, 24, .28); transition: background-color .15s, box-shadow .15s, margin .15s var(--ease); }
.spot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--camera); border: 2px solid #2a1f18; }
.spot::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 14px; background: #2a1f18; transform: translateX(-50%); }
.spot:hover, .spot:focus-visible, .spot.is-on { background: var(--camera); margin-top: -4px; box-shadow: 0 7px 0 rgba(42, 31, 24, .28); }
.spot:focus-visible { outline: 3px solid #f7eee1; outline-offset: 3px; }
/* a label that only shows once its object is pointed at or reached with the keyboard: something to find */
.spot.is-quiet { opacity: 0; pointer-events: none; transition: opacity .2s, background-color .15s, box-shadow .15s, margin .15s var(--ease); }
.spot.is-quiet.is-on, .spot.is-quiet:focus-visible { opacity: 1; pointer-events: auto; }
.desk.no-3d .spots { position: static; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.desk.no-3d .spot { position: static; transform: none !important; text-decoration: none; }
.desk.no-3d .spot::after { display: none; }
@media (max-width: 700px) { .spot { font-size: .86rem; padding: 5px 10px 5px 8px; } }
.desk.no-3d { height: auto; min-height: 0; padding: clamp(28px, 5vw, 60px) var(--gutter); }
.desk.no-3d .desk-copy, .desk.no-3d .desk-ui { position: static; }
.desk.no-3d .desk-ui { margin-top: 18px; }
body.has-sheet .desk-copy { opacity: 0; transition: opacity .3s; }

/* the detail panel */
.sheet { position: fixed; z-index: 7; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border-left: 2px solid var(--ink); animation: sheet-in .32s var(--ease); }
.sheet[hidden] { display: none; }
@keyframes sheet-in { from { transform: translateX(48px); opacity: 0; } }
.sheet-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 20px; border-bottom: 2px solid var(--ink); }
.sheet-bar span { font: 400 1rem var(--display); color: var(--soft); }
.sheet-bar .btn { padding: 6px 14px; font-size: .92rem; }
.sheet-body { flex: 1; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 22px 20px 30px; display: grid; gap: 14px; align-content: start; }
/* one column that never grows wider than the panel, however wide a drifting strip inside it is */
.sheet-body, #sheet-content, #sheet-content .block, .stack, .stack-card, .case { grid-template-columns: minmax(0, 1fr); }
.sheet h2 { font-size: clamp(1.7rem, 1.4vw + 1.3rem, 2.3rem); }
.sheet h2:focus { outline: none; }
.sheet h3 { font-size: 1.35rem; }
.sheet .part { padding: 10px 14px; border-left: 5px solid var(--camera); background: var(--wash); font-weight: 500; }
.sheet .part:empty, #sheet-kind:empty { display: none; }
#sheet-content { display: grid; gap: 14px; }
#sheet-content .block { display: grid; gap: 12px; padding-bottom: 20px; border-bottom: 2px solid var(--rule); }
#sheet-content .block:last-child { border-bottom: 0; padding-bottom: 0; }
#sheet-content .links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
#sheet-content .shot { aspect-ratio: 16 / 9; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; }
#sheet-content .eps { margin: 0; border-bottom: 0; }
#sheet-content .ep { border-top: 0; padding: 0; }
.on-air { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; }
.on-air img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 2px solid var(--ink); }
/* episodes as record sleeves */
.sleeves { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; }
.sleeves li { display: grid; gap: 6px; align-content: start; }
.ep-play.sleeve { position: relative; width: 100%; height: auto; aspect-ratio: 1; border-radius: 6px; border: 2px solid var(--ink); overflow: hidden; background: var(--wash); box-shadow: 4px 4px 0 color-mix(in srgb, var(--ink) 22%, transparent); transition: transform .16s var(--ease), box-shadow .16s var(--ease); }
.ep-play.sleeve img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ep-play.sleeve:hover, .ep-play.sleeve:focus-visible { transform: translate(-2px, -4px) rotate(-1.5deg); box-shadow: 7px 9px 0 color-mix(in srgb, var(--ink) 22%, transparent); background: var(--wash); }
.sleeve-n { position: absolute; left: 6px; top: 6px; padding: 1px 7px; border-radius: 999px; background: #2a1f18; color: #f7eee1; font: 400 .78rem var(--display); }
.sleeve-n:empty { display: none; }
.sleeve-play { position: absolute; right: 6px; bottom: 6px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #f7eee1; color: #2a1f18; border: 2px solid #2a1f18; }
.sleeve-play svg { width: 11px; height: 11px; }
.ep-play.sleeve.is-playing { outline: 3px solid var(--camera); outline-offset: 2px; }
.ep-play.sleeve.is-playing .sleeve-play { background: var(--camera); }
.sleeve-title { font-size: .8rem; line-height: 1.3; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shelf { list-style: none; margin: 0; padding: 0; }
.shelf a { display: block; padding: 11px 0; text-decoration: none; border-bottom: 2px solid var(--rule); }
.shelf strong { display: block; font: 400 1.15rem var(--display); }
.shelf span { display: block; color: var(--soft); font-size: .92rem; line-height: 1.4; }
.shelf a:hover strong { text-decoration: underline; text-decoration-color: var(--camera); text-decoration-thickness: 3px; text-underline-offset: 4px; }
@media (max-width: 760px) { .sheet { width: 100vw; border-left: 0; top: auto; height: 62vh; border-top: 2px solid var(--ink); border-radius: 18px 18px 0 0; animation-name: sheet-up; } }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }

.reel { border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; }
.reel-main { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: var(--ink); cursor: pointer; overflow: hidden; }
.reel-main img { width: 100%; height: 100%; object-fit: cover; }
.reel-main.is-video::after {
  content: ""; position: absolute; left: 14px; bottom: 14px; width: 46px; height: 46px; border-radius: 50%; border: 2px solid #2a1f18;
  background: #f7eee1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath fill='%23141a27' d='M3 1l10 6-10 6z'/%3E%3C/svg%3E") 55% 50% / 15px no-repeat;
}
.reel-bar { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 30px; align-items: center; gap: 6px; padding: 5px 6px; border-top: 2px solid var(--ink); font-size: .84rem; }
.reel-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reel-n { color: var(--soft); white-space: nowrap; }
.reel-nav { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.reel-nav:hover { background: var(--ink); color: var(--paper); }
.reel-nav svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.shot { display: block; width: 100%; padding: 0; cursor: pointer; background: var(--wash); }
.shot img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- movement: things rise in, numbers count, strips drift (see src/fx.js) ---------- */
.fx [data-rise] { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease) var(--d, 0ms), transform .6s var(--ease) var(--d, 0ms); }
.fx [data-rise].is-in { opacity: 1; transform: none; }
.tallies { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.tally { display: grid; gap: 3px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 14px; background: var(--wash); }
.tally strong { font: 400 1.9rem/1 var(--display); font-variant-numeric: tabular-nums; }
.tally span { color: var(--soft); font-size: .86rem; line-height: 1.2; }
.talking { display: flex; flex-wrap: wrap; align-items: center; gap: 6px .4em; font: 400 1.3rem/1.3 var(--display); }
.cycle { display: inline-grid; overflow: hidden; padding: 2px 11px 3px; border-radius: 9px; background: var(--camera); color: #2a1f18; }
.cycle > span { grid-area: 1 / 1; white-space: nowrap; }
.marquee { overflow: hidden; margin-inline: -20px; padding: 8px 0 10px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; width: max-content; animation: drift var(--t, 50s) linear infinite; }
.marquee.is-reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-row { display: flex; flex: none; gap: 12px; margin: 0; padding: 0 6px; list-style: none; }
.marquee-row li { flex: none; width: 108px; }
.marquee-row li:has(.vid), .marquee-row li:has(.photo) { width: 172px; }
@keyframes drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-row[aria-hidden] { display: none; }
}
/* cards that pile up as the panel scrolls */
.stack { display: grid; gap: 16px; }
.stack-card { display: grid; gap: 12px; padding: 16px; border: 2px solid var(--ink); border-radius: 16px; background: var(--paper); box-shadow: 0 -10px 24px -18px color-mix(in srgb, var(--ink) 70%, transparent); }
@media (min-width: 761px) { .stack-card { position: sticky; top: var(--stick, 0px); } }
.mini-eps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mini-eps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; }
.mini-eps strong { display: block; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.mini-eps em { font-style: normal; color: var(--soft); font-size: .84rem; }
/* a list that folds open, one at a time */
.folds { border-top: 2px solid var(--ink); }
.fold { border-bottom: 2px solid var(--rule); }
.fold summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 14px; gap: 12px; align-items: baseline; padding: 12px 2px; cursor: pointer; list-style: none; font: 400 1.08rem/1.25 var(--display); }
.fold summary::-webkit-details-marker { display: none; }
.fold summary em { font: 500 .84rem var(--text); color: var(--soft); white-space: nowrap; }
.fold summary::after { content: ""; width: 9px; height: 9px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .25s var(--ease); }
.fold[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.fold summary:hover span { text-decoration: underline; text-decoration-color: var(--camera); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.fold-body { display: grid; gap: 10px; padding: 0 2px 16px; }
.fold-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
@supports (interpolate-size: allow-keywords) {
  .fold { interpolate-size: allow-keywords; }
  .fold::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
  .fold[open]::details-content { block-size: auto; }
}

/* ---------- professional work and shorts ---------- */
.case { display: grid; gap: 12px; padding-bottom: 26px; margin-bottom: 12px; border-bottom: 2px solid var(--rule); }
.case:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.case-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
/* a company's mark, on its own light tile so it reads the same in the day and the evening */
.logo { flex: none; display: grid; place-items: center; width: 46px; height: 46px; padding: 6px; border: 2px solid #2a1f18; border-radius: 12px; background: #fffaf1; }
.logo img { width: 100%; height: 100%; object-fit: contain; }
.sign .logo { width: 40px; height: 40px; padding: 5px; }
/* a plain one-colour icon, drawn in the text colour */
.brand { display: block; width: 22px; height: 22px; margin-bottom: 6px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.case-head h3 { font-size: 1.8rem; }
.chip { padding: 3px 11px; border-radius: 999px; border: 2px solid #2a1f18; background: var(--camera); color: #2a1f18; font: 600 .8rem/1.4 var(--text); white-space: nowrap; }
.case-summary { font: 400 1.3rem/1.25 var(--display); text-wrap: balance; }
.feature { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; background: #1a120d; cursor: pointer; }
.feature img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.feature:hover img { transform: scale(1.03); }
.feature::after { content: ""; position: absolute; inset: 45% 0 0 0; background: linear-gradient(transparent, rgba(16, 11, 8, .82)); }
.feature::before { content: ""; position: absolute; z-index: 1; left: 14px; bottom: 14px; width: 52px; height: 52px; border-radius: 50%; border: 2px solid #2a1f18; background: #f7eee1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath fill='%23141a27' d='M3 1l10 6-10 6z'/%3E%3C/svg%3E") 55% 50% / 17px no-repeat; transition: transform .16s var(--ease); }
.feature:hover::before { transform: scale(1.08); }
.feature-title { position: absolute; z-index: 1; left: 80px; right: 16px; bottom: 20px; color: #fff; font: 600 1rem/1.25 var(--text); text-align: left; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding: 2px 20px 10px; scroll-padding-inline: 20px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.rail .vid-title { font-size: .86rem; }
.rail.tall { grid-auto-columns: 29%; }
.short { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.short-thumb { display: block; position: relative; aspect-ratio: 9 / 16; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: #1a120d; }
.short-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s var(--ease); }
.short:hover .short-thumb img { transform: scale(1.04); }
.short-thumb::after { content: ""; position: absolute; left: 8px; bottom: 8px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #2a1f18; background: #f7eee1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath fill='%23141a27' d='M3 1l10 6-10 6z'/%3E%3C/svg%3E") 55% 50% / 11px no-repeat; }
.short-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 7px; font-size: .82rem; font-weight: 600; line-height: 1.3; }
.vid-thumb.is-square { aspect-ratio: 1; }
/* where to find me, and what I have been posting */
.profiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.profile { display: grid; gap: 2px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 14px; background: var(--wash); text-decoration: none; transition: transform .14s var(--ease), background-color .15s, color .15s; }
.profile strong { font: 400 1.2rem/1.1 var(--display); }
.profile span { color: var(--soft); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile:hover { background: var(--camera); color: #2a1f18; transform: translateY(-2px); }
.profile:hover span { color: #2a1f18; }
.products { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.products a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: start; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 14px; background: var(--wash); text-decoration: none; transition: transform .14s var(--ease); }
.products a:hover { transform: translateY(-2px); }
.product-text { display: grid; gap: 4px; }
.products strong { font: 400 1.25rem/1.15 var(--display); }
.product-text > span { font-size: .95rem; line-height: 1.45; }
.products em { font-style: normal; font-size: .84rem; color: var(--soft); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feed a { display: grid; gap: 6px; padding: 12px 14px; border: 2px solid var(--rule); border-radius: 14px; text-decoration: none; transition: border-color .15s, transform .14s var(--ease); }
.feed a:hover { border-color: var(--ink); transform: translateY(-1px); }
.feed-on { display: flex; justify-content: space-between; gap: 12px; font-size: .84rem; }
.feed-on strong { font-weight: 700; }
.feed-on em { font-style: normal; color: var(--soft); }
.feed p { font-size: .95rem; line-height: 1.45; }

/* the arcade: every game at a glance, then a card each */
.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pick { display: grid; align-content: start; padding: 0; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; background: #1b1420; color: #fff3d6; cursor: pointer; box-shadow: 0 4px 0 color-mix(in srgb, var(--ink) 28%, transparent); transition: transform .14s var(--ease), box-shadow .14s var(--ease); }
.pick img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pick span { padding: 10px 6px 9px; font: 400 .58rem/1.5 "Press Start 2P", var(--display); text-transform: uppercase; text-align: center; }
.pick:hover, .pick:focus-visible { transform: translateY(-3px); box-shadow: 0 7px 0 color-mix(in srgb, var(--ink) 28%, transparent); }
.pick:hover span, .pick:focus-visible span { color: #ffd166; }
.pick:active { transform: translateY(0); box-shadow: 0 2px 0 color-mix(in srgb, var(--ink) 28%, transparent); }
.game { border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; background: var(--paper); }
.game-shot { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-bottom: 2px solid var(--ink); background: #05020f; cursor: pointer; overflow: hidden; }
.game-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.game-shot:hover img { transform: scale(1.04); }
.game-no { position: absolute; left: 12px; top: 12px; padding: 7px 8px 5px; border-radius: 8px; background: rgba(5, 2, 15, .82); color: #ffd166; font: 400 .62rem/1 "Press Start 2P", var(--display); }
.game-go { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 999px; border: 2px solid #2a1f18; background: var(--camera); color: #2a1f18; font: 700 .95rem var(--text); transition: transform .14s var(--ease); }
.game-go svg { width: 11px; height: 13px; fill: currentColor; }
.game-shot:hover .game-go, .game-shot:focus-visible .game-go { transform: scale(1.07); }
.game-body { display: grid; gap: 8px; padding: 16px 18px 18px; }
.game-kind { color: var(--soft); font-size: .84rem; font-weight: 600; }
.game-body h3 { font-size: 1.65rem; }
.game-points { margin: 0; padding-left: 1.1em; display: grid; gap: 2px; color: var(--soft); font-size: .92rem; }
.game .links { margin-top: 4px; }
.footnote { color: var(--soft); font-size: .88rem; }

/* ---------- the guitar: tracks to play, and a line-up of who Dan listens to ---------- */
.tracks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tracks li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 14px; background: var(--wash); overflow: hidden; }
.tracks li:has(.is-playing) { background: color-mix(in srgb, var(--camera) 26%, var(--wash)); }
.tracks strong { display: block; font: 400 1.08rem/1.2 var(--display); }
.tracks em { display: block; font-style: normal; color: var(--soft); font-size: .86rem; line-height: 1.35; }
.tracks .linkish { margin-top: 3px; font-size: .86rem; }
.track-len { position: relative; z-index: 1; color: var(--soft); font-size: .86rem; font-variant-numeric: tabular-nums; }
.track-no { position: absolute; right: 8px; bottom: -22px; font: 400 4.2rem/1 var(--display); color: var(--ink); opacity: .07; pointer-events: none; }
.lineup { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 0; font-family: var(--display); text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; }
.lineup li { display: inline-flex; align-items: baseline; font-size: 1.3rem; }
.lineup li:nth-child(4n + 1) { font-size: 1.9rem; }
.lineup li:nth-child(4n + 3) { font-size: 1.55rem; }
.lineup li:not(:last-child)::after { content: ""; flex: none; width: 8px; height: 8px; margin: 0 12px; border-radius: 50%; background: var(--camera); border: 2px solid var(--ink); align-self: center; }
.lineup li.is-big { font-size: 1.9rem; }
.lineup a, .tune, .tune-box { text-decoration: none; padding: 3px 0; border: 0; border-radius: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: left; cursor: pointer; background: linear-gradient(var(--camera), var(--camera)) 0 100% / 0 3px no-repeat; transition: background-size .2s var(--ease); }
.lineup a:hover, .lineup a:focus-visible, .tune:hover, .tune:focus-visible, .tune-box:hover, .tune-box:focus-visible { background-size: 100% 3px; }
.bandcamp { display: block; width: 100%; height: 42px; margin-top: 8px; border: 0; }
.lineup li.lineup-embed { flex: 0 0 100%; display: block; margin: 4px 0 10px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 14px; background: var(--wash); font: 400 .9rem/1.45 var(--text); letter-spacing: 0; text-transform: none; color: var(--soft); }
.lineup li.lineup-embed::after { content: none; }
.lineup-embed strong { color: var(--ink); }
.lineup-embed a { padding: 0; background: none; text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.tune.is-playing, .tune-box.is-playing { background-size: 100% 100%; color: #2a1f18; padding-inline: 6px; margin-inline: -6px; border-radius: 6px; }
.tune-now strong { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .lineup a, .tune, .tune-box { transition: none; } }
/* leaving a note: a page of the notepad */
.note { display: grid; gap: 14px; }
.note-page { display: block; padding: 18px 18px 14px 34px; border: 2px solid #2a1f18; border-radius: 6px 14px 14px 6px; background: #fbf4e4 linear-gradient(90deg, transparent 22px, #e3a9a0 22px, #e3a9a0 24px, transparent 24px); box-shadow: 5px 6px 0 color-mix(in srgb, var(--ink) 22%, transparent); transform: rotate(-.6deg); }
.note-page textarea { display: block; width: 100%; min-height: 10.5em; padding: 0; border: 0; outline: none; resize: vertical; background: repeating-linear-gradient(transparent 0 1.74em, #cfdbe6 1.74em calc(1.74em + 1px)); color: #2a1f18; font: 500 1.02rem/1.75em var(--text); }
.note-page textarea::placeholder { color: #8d7f72; }
.note-page:focus-within { box-shadow: 5px 6px 0 var(--camera); }
.note-who { display: grid; gap: 10px; }
.note-who label { display: grid; gap: 4px; font-size: .9rem; font-weight: 600; }
.note-who em { font-style: normal; font-weight: 400; color: var(--soft); }
.note-who input { width: 100%; padding: 9px 13px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); color: var(--ink); font: 400 16px var(--text); }
.note-status { font-size: .9rem; color: var(--soft); }
.note button[disabled] { opacity: .6; cursor: default; }
.note-done { padding: 18px 20px; border: 2px solid var(--ink); border-radius: 14px; background: var(--wash); font-size: 1.05rem; }
.portrait { width: 160px; height: 160px; object-fit: cover; border-radius: 50%; border: 2px solid var(--ink); }

/* the pages for Minns and NodeScript */
.l-work { --line: var(--ink); --on: var(--paper); }
.case-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(20px, 3.4vw, 44px); align-items: start; margin-top: 28px; }
.case-lead .case-summary { font-size: clamp(1.6rem, 2vw + 1rem, 2.5rem); }
.case-lead .intro { margin-top: 14px; }
.case-lead .part { margin-top: 16px; padding: 10px 14px; border-left: 5px solid var(--camera); background: var(--wash); font-weight: 500; max-width: 62ch; }
@media (max-width: 820px) { .case-lead { grid-template-columns: 1fr; } }
main .wrap > div > .tallies { margin-top: 26px; max-width: 380px; }
.sub-h { font-size: 1.5rem; margin-top: 46px; }
.shorts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 14px; margin-top: 18px; }

/* archive pages: each opens with a coloured sign */
.band { padding: clamp(36px, 6vw, 72px) var(--gutter); }
.band + .band { padding-top: 0; }
.sign { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; padding: 14px 20px; background: var(--line); color: var(--on); border-radius: 14px; }
.sign .bullet { background: var(--on); color: var(--line); font-size: 1.1rem; }
.sign h1, .sign h2 { font-size: clamp(1.45rem, 2vw + .9rem, 2.1rem); }
.sign p { margin-left: auto; font-weight: 500; }
.intro { margin-top: 20px; max-width: 62ch; font-size: 1.06rem; }
.band h3.sub { margin-top: 40px; font-size: 1.35rem; }

/* game cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; margin-top: 26px; }
.card { display: flex; flex-direction: column; border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; background: var(--paper); scroll-margin-top: 96px; }
.card-shot { display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-bottom: 2px solid var(--ink); background: var(--wash); overflow: hidden; }
button.card-shot { cursor: pointer; }
.card-shot img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; }
.card-body h3 { font-size: 1.7rem; }
.kind { color: var(--soft); font-size: .93rem; }
.card-body ul { margin: 0; padding-left: 1.1em; color: var(--soft); font-size: .96rem; }
.card-body .actions { margin-top: auto; padding-top: 10px; }

/* list rows: earlier projects */
.rows { margin-top: 14px; border-bottom: 2px solid var(--rule); }
.row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 2.3fr) auto; gap: 6px 30px; align-items: baseline; padding: 16px 0; border-top: 2px solid var(--rule); scroll-margin-top: 96px; }
.row h3 { font-size: 1.2rem; }
.row .kind { display: block; margin-top: 2px; }
.row p { color: var(--soft); }
.row .links { display: flex; gap: 18px; font-size: .95rem; white-space: nowrap; }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; } }
:is(.card, .row, .ep, .event).is-target { animation: arrive 1.6s var(--ease); }
@keyframes arrive { from { background: color-mix(in srgb, var(--line, var(--camera)) 28%, var(--paper)); } }

/* podcasts */
.show { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: clamp(20px, 3.4vw, 40px); margin-top: 26px; align-items: start; }
.show-cover { width: 100%; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--ink); border-radius: 14px; background: var(--wash); }
.show h3, .show h1 { font-size: clamp(1.5rem, 1.6vw + 1rem, 2.2rem); }
.show .about { margin-top: 8px; max-width: 60ch; }
.show .facts { margin-top: 6px; color: var(--soft); }
.show .logo { height: 54px; width: auto; margin-bottom: 12px; }
@media (max-width: 640px) { .show { grid-template-columns: 1fr; } .show-cover { width: 136px; } }
.shows { display: grid; gap: clamp(36px, 5vw, 64px); }

.eps { list-style: none; margin: 18px 0 0; padding: 0; border-bottom: 2px solid var(--rule); }
.ep { display: grid; grid-template-columns: auto 44px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; border-top: 2px solid var(--rule); scroll-margin-top: 96px; }
.ep-art { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--wash); }
.eps.plain .ep { grid-template-columns: 44px minmax(0, 1fr); }
.ep-title { font-weight: 600; line-height: 1.35; }
.ep-meta { color: var(--soft); font-size: .9rem; margin-top: 2px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ep-sum { color: var(--soft); font-size: .95rem; margin-top: 6px; max-width: 78ch; }
.ep-play {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; padding: 0; transition: transform .12s var(--ease), background-color .15s, color .15s;
}
.ep-play:hover { background: var(--ink); color: var(--paper); }
.ep-play:active { transform: scale(.94); }
.ep-play svg { width: 14px; height: 14px; fill: currentColor; }
.ep-play .i-pause, .ep-play.is-playing .i-play { display: none; }
.ep-play.is-playing .i-pause { display: block; }
.ep-play.is-playing { background: var(--line, var(--ink)); color: var(--on, var(--paper)); }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 600; text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.linkish:hover { text-decoration-color: currentColor; }

.search { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.search input { width: min(100%, 420px); padding: 11px 16px; font: 400 16px var(--text); color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; }
.search input::placeholder { color: var(--soft); }
.count { color: var(--soft); font-size: .92rem; }
.empty { padding: 26px 0; color: var(--soft); }

/* videos and photos */
.vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; margin-top: 18px; }
.vids.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; max-width: 760px; }
.vid { display: block; width: 100%; padding: 0; background: none; border: 0; text-align: left; cursor: pointer; }
.vid-thumb { display: block; position: relative; aspect-ratio: 16 / 9; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--ink); }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s var(--ease); }
.vid:hover .vid-thumb img { transform: scale(1.04); }
.vid-thumb::after { /* play badge */
  content: ""; position: absolute; left: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; background: #f7eee1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath fill='%23141a27' d='M3 1l10 6-10 6z'/%3E%3C/svg%3E") 55% 50% / 13px no-repeat; border: 2px solid #2a1f18;
}
.vid-title { display: block; margin-top: 8px; font-weight: 600; font-size: .95rem; line-height: 1.35; }
.vid-meta { display: block; color: var(--soft); font-size: .86rem; }
.vids.three .vid-title { font-size: .86rem; font-weight: 500; }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-top: 14px; }
.photo { display: block; padding: 0; border: 0; background: var(--wash); border-radius: 10px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s var(--ease); }
.photo:hover img { transform: scale(1.05); }
.strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.strip a { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--wash); }
.strip a:nth-child(3n + 1) { border-radius: 50%; }
.strip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) { .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } .strip a:nth-child(n + 5) { display: none; } .vids.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vids.three .vid:nth-child(n + 3) { display: none; } }

/* Journey into Product: one entry per meetup */
.event { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); padding: 28px 0; border-top: 2px solid var(--rule); scroll-margin-top: 96px; }
.event-poster { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 2px solid var(--ink); background: var(--wash); }
.event-date { color: var(--gathers); font-weight: 700; }
.event h3 { font-size: 1.45rem; margin-top: 4px; }
.event .kind { margin-top: 4px; }
.event-text { margin-top: 12px; max-width: 70ch; display: grid; gap: 10px; }
.event details summary { cursor: pointer; font-weight: 600; width: fit-content; }
.event details > div { display: grid; gap: 10px; margin-top: 10px; }
@media (max-width: 760px) { .event { grid-template-columns: 1fr; } .event-poster { max-width: 320px; } }

/* about + footer */
.about-text { margin-top: 20px; max-width: 60ch; display: grid; gap: 14px; font-size: 1.06rem; }
.foot { border-top: 2px solid var(--ink); padding: 22px var(--gutter) 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; color: var(--soft); font-size: .93rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { color: var(--ink); }

/* dialogs: playing a game, watching a video, looking at a photo */
dialog { color: var(--ink); }
.arcade, .lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--ink); color: var(--paper); }
.arcade[open], .lightbox[open] { display: flex; flex-direction: column; animation: dialog-in .2s var(--ease); }
dialog::backdrop { background: rgba(20, 26, 39, .8); }
@keyframes dialog-in { from { opacity: 0; transform: scale(.985); } }
.bar { display: flex; align-items: center; gap: 18px; padding: 10px var(--gutter); }
.bar h2 { font-size: 1.15rem; margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar a { font-size: .93rem; white-space: nowrap; color: inherit; text-decoration-color: rgba(255, 255, 255, .4); }
.bar .btn { padding: 6px 14px; font-size: .93rem; background: var(--paper); color: var(--ink); border-color: var(--paper); }
.arcade-stage { position: relative; flex: 1; min-height: 0; background: #05020f; }
.arcade-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wake { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; text-align: center; padding: 24px; background: var(--ink); }
.wake[hidden] { display: none; }
.wake strong { font: 400 1.5rem var(--display); }
.wake span { opacity: .8; max-width: 40ch; }
.video { width: min(1100px, 94vw); padding: 0; border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; background: var(--ink); color: var(--paper); }
.video[open] { animation: dialog-in .2s var(--ease); }
.video .frame { aspect-ratio: 16 / 9; background: #000; }
.video.is-tall { width: min(420px, 94vw, calc((100dvh - 130px) * 9 / 16)); } /* shorts are upright */
.video.is-tall .frame { aspect-ratio: 9 / 16; }
/* a post from LinkedIn or Instagram in that site's own player: a tall, scrolling card */
.video.is-post { width: min(560px, 94vw); }
.video.is-post.is-narrow { width: min(420px, 94vw); }
.video.is-post .frame { aspect-ratio: auto; height: min(760px, calc(100dvh - 130px)); background: #fff; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox .stage { flex: 1; min-height: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 0 8px 16px; }
.lightbox img { max-width: 100%; max-height: 100%; margin: auto; border-radius: 8px; object-fit: contain; min-height: 0; }
.lightbox .pic { height: 100%; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.lightbox .nav { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--paper); background: none; color: var(--paper); cursor: pointer; font-size: 1.2rem; display: grid; place-items: center; }
.lightbox .nav:hover { background: var(--paper); color: var(--ink); }
.lightbox .nav svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* audio player, shown once something is playing */
.player {
  position: fixed; inset: auto 0 0 0; z-index: 8; display: grid; grid-template-columns: 44px minmax(0, 1.2fr) minmax(80px, 2fr) auto; gap: 16px; align-items: center;
  padding: 12px var(--gutter); padding-bottom: max(12px, env(safe-area-inset-bottom)); background: var(--ink); color: var(--paper);
  transform: translateY(105%); transition: transform .26s var(--ease); visibility: hidden;
}
.player.is-on { transform: none; visibility: visible; }
.player .ep-play { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.player-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-time { opacity: .75; font-size: .88rem; font-variant-numeric: tabular-nums; }
.player input[type=range] { width: 100%; accent-color: var(--camera); }
.player .close { background: none; border: 0; color: var(--paper); font: 600 .93rem var(--text); cursor: pointer; padding: 8px 4px; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 640px) { .player { grid-template-columns: 44px minmax(0, 1fr) auto; } .player input[type=range] { grid-column: 1 / -1; grid-row: 2; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }

}

/* tools from Bits & Bobs: Clip to GIF */
.tool { display: grid; gap: 22px; }
.tool .sign h1 { font-size: clamp(1.6rem, 2.4vw + .9rem, 2.4rem); }
.tool-lead { max-width: 62ch; font-size: 1.08rem; }
.tool-note { min-height: 1.4em; font-weight: 600; color: var(--builds); }
.tool-note:empty { display: none; }
.tool-small { color: var(--soft); font-size: .92rem; }
.drop { display: grid; place-items: center; gap: 4px; padding: clamp(30px, 6vw, 56px) 20px; text-align: center; cursor: pointer; border: 2px dashed var(--ink); border-radius: 18px; background: var(--wash); transition: background-color .15s, transform .15s var(--ease); }
.drop strong { font: 400 clamp(1.3rem, 1.5vw + .9rem, 1.7rem) var(--display); }
.drop span { color: var(--soft); }
.drop:hover, .drop.over { background: color-mix(in srgb, var(--builds) 12%, var(--wash)); }
.drop.over { transform: scale(1.01); }
.drop:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.editor { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.editor[hidden], .result[hidden], .working[hidden] { display: none; }
.editor video { width: 100%; max-height: 62vh; background: #000; border: 2px solid var(--ink); border-radius: 14px; }
.controls { display: grid; gap: 18px; }
.trim { margin: 0; padding: 14px 16px; border: 2px solid var(--rule); border-radius: 14px; display: grid; gap: 10px; }
.trim legend { padding: 0 6px; font-weight: 700; }
.trim label { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; font-weight: 600; }
.trim output { justify-self: end; font-variant-numeric: tabular-nums; color: var(--soft); font-weight: 500; }
.trim input { grid-column: 1 / -1; width: 100%; accent-color: var(--builds); }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.opts label { display: grid; gap: 4px; min-width: 0; font-weight: 600; font-size: .95rem; }
.opts select { width: 100%; min-width: 0; padding: 8px 10px; font: 500 .98rem var(--text); color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; }
.makes { display: flex; flex-wrap: wrap; gap: 10px; }
.makes .btn[hidden] { display: none; }
.makes .btn:disabled { opacity: .5; cursor: default; }
.working { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.working progress { flex: 1 1 160px; height: 12px; accent-color: var(--builds); }
.working span { font-variant-numeric: tabular-nums; color: var(--soft); }
.result { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 22px; border-top: 2px solid var(--ink); }
.result img, .result video { width: 100%; height: auto; border: 2px solid var(--ink); border-radius: 14px; background: repeating-conic-gradient(var(--rule) 0 25%, var(--paper) 0 50%) 0 0 / 20px 20px; }
.about-result { display: grid; gap: 12px; justify-items: start; }
@media (max-width: 760px) { .editor, .result { grid-template-columns: 1fr; } }

/* the Bits & Bobs panel: one card per idea, its picture or clip above what it is */
.idea { border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; background: var(--paper); }
.idea + .idea { margin-top: 16px; }
.idea-shot { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #0d0a14; border-bottom: 2px solid var(--ink); }
.idea-body { display: grid; gap: 8px; padding: 16px 18px 18px; }
.idea-body h3 { font-size: 1.5rem; }
.idea .links { margin-top: 4px; }
