/* ============================================================
   B3BOP.render — home.css (the one-page portfolio, index.html)
   Self-contained. Colours = BRAND_BRIEF.md v3.1 (web ground switched to neutral graphite by Brett, 2026-10-27):
   60 ground / 30 cream / ~10 one red + teal accents. Red is a FILL on the dark ground (bars, buttons, pills, dots)
   and only text/outlines on cream.
   Layout (2026-10-27, "calm structure + whimsy moments"): one job per strip, nothing said twice.
   Moments, not a mode: with reduced motion every strip shows the same info, just still.
   Order: tokens · base · status bar · hero + Bebop · work · about · footer · player · phone · motion
   ============================================================ */
:root {
  /* 60: the ground and its shades */
  --ground: #19191B;        /* neutral graphite (never #000). Brett 2026-10-27: the warm #1A1714 read brown */
  --panel: #202023;
  --card: #27272B;
  --border: #37373C;
  --letterbox: #0E0E10;     /* inside the screens */
  /* 30: cream */
  --cream: #E9DCC4;         /* text on ground, listing band, window bodies */
  --cream-dim: #A39886;     /* metadata on ground */
  --cream-hover: #E0D0B3;   /* a listing row under the pointer (state, not a palette colour) */
  --ink: #4A4036;           /* small text on cream */
  /* ~7: the ONE red */
  --red: #AD3434;           /* cream on red 4.7:1 · red on cream 4.7:1 · red on ground 2.8:1 = shapes only */
  --red-hover: #9C2D2D;
  --red-pressed: #8F2828;
  /* ~3: accents, one job each */
  --teal: #3FA89A;          /* links, icons, structure */
  --sage: #6E8B5E;          /* // notes */
  --cyan: #00E5D1;          /* screen-only glow: focus ring, live dots, Bebop's LED face. Never a fill area */
  --camel: #C89A66;         /* a rare warm detail */

  --display: 'Orbitron', 'Eurostile', 'Bank Gothic', Arial, sans-serif;
  --mono: 'Share Tech Mono', 'Courier New', monospace;
  --fs-label: .72rem;       /* uppercase labels, captions, buttons */
  --fs-small: .85rem;
  --fs-body: 1rem;
  --fs-title: 1.05rem;
  --fs-head: clamp(1.45rem, 3.2vw, 2.3rem);
  --col: 1080px;
  --gutter: 16px;
  --snap: cubic-bezier(.2, .9, .3, 1.4);   /* a little overshoot for the moments */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--border) var(--ground); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--cream);
  font: 400 var(--fs-body)/1.7 var(--mono);
  overflow-x: hidden;
}
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; }
img, video { max-width: 100%; }
::selection { background: var(--red); color: var(--cream); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* faint scanlines over everything */
.scanlines {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .08) 0 1px, transparent 1px 3px);
}
.skip { position: absolute; left: -9999px; top: 8px; z-index: 60; background: var(--cream); color: var(--ground); padding: .4em .8em; border-radius: 6px; }
.skip:focus { left: 8px; }

.dot { color: var(--red); }
.lite { font-weight: 400; text-transform: lowercase; }

.status, .work-card__label, .work-card__play, .foot__links, .foot__small, .win__bar, .facts dt, .tab {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .15em; font-size: var(--fs-label);
}

/* ---------------- 1 · status bar: brand · on air · ONE rotating line · LA clock ---------------- */
.status {
  max-width: var(--col); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 10px 18px;
  border-bottom: 1px solid var(--border); color: var(--cream-dim);
}
.status__brand { font: 700 var(--fs-small)/1 var(--display); letter-spacing: .1em; text-transform: none; color: var(--cream); text-decoration: none; white-space: nowrap; }
.onair {
  display: inline-flex; align-items: center; gap: .55em; padding: 3px 10px 3px 8px; border-radius: 999px;
  background: var(--red); color: var(--cream); white-space: nowrap;
  animation: onair 2.4s ease-in-out infinite;
}
.onair__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cream); animation: onair-dot 1.2s steps(2, jump-none) infinite; }
@keyframes onair { 0%, 100% { box-shadow: 0 0 0 0 rgba(173, 52, 52, .55); } 60% { box-shadow: 0 0 0 7px rgba(173, 52, 52, 0); } }
@keyframes onair-dot { 0% { opacity: 1; } 100% { opacity: .25; } }
/* the line: without JS (or with reduced motion) every line shows, separated by dots; home.js turns on rotation */
.status__lines { flex: 1; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 2px 0; }
.status__lines li + li::before { content: "·"; padding: 0 .8em; color: var(--border); }
.status__lines a { color: var(--cream-dim); text-decoration: none; }
.status__lines a:hover { color: var(--teal); }
.status__lines.is-rotating { position: relative; display: block; height: 1.7em; overflow: hidden; }
.status__lines.is-rotating li { position: absolute; inset: 0 auto auto 0; white-space: nowrap; opacity: 0; transform: translateY(100%); transition: opacity .35s, transform .45s var(--snap); visibility: hidden; }
.status__lines.is-rotating li::before { content: none; }
.status__lines.is-rotating li.is-on { opacity: 1; transform: none; visibility: visible; }
.status__lines.is-rotating li.is-off { opacity: 0; transform: translateY(-100%); visibility: visible; }
.status__clock { white-space: nowrap; font-variant-numeric: tabular-nums; }
.status__time { color: var(--cream); }

/* ---------------- 2 · hero: boot greeting · wordmark · the line  +  3 · Bebop's face ---------------- */
.hero {
  max-width: var(--col); margin: 0 auto; padding: 84px var(--gutter) 40px;
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: center; gap: 32px clamp(24px, 4vw, 56px);
}
.boot { margin: 0 0 18px; color: var(--sage); min-height: 1.7em; }
.boot__caret { display: inline-block; width: .55em; height: 1.05em; margin-left: .15em; vertical-align: -.15em; background: var(--cyan); box-shadow: 0 0 8px rgba(0, 229, 209, .6); animation: caret 1.05s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.hero__h { margin: 0; font-weight: 400; }
.hero__mark {
  display: block;
  font: 700 clamp(2.1rem, 5.4vw, 4.1rem)/1 var(--display); letter-spacing: .02em; color: var(--cream); white-space: nowrap;
}
.hero__line {
  display: block; margin-top: 22px; max-width: 24em;
  font: 400 clamp(1.1rem, 2.3vw, 1.55rem)/1.35 var(--display); letter-spacing: .03em; color: var(--cream);
  text-wrap: balance;
}

/* Bebop: a little headphone screen-head. The LED face is a canvas (led_still.js + data/b3bop_faces.js), drawn in cyan. */
.bebop { position: relative; justify-self: center; width: min(100%, 300px); padding: 0 16px; animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.bebop__screen {
  position: relative; padding: 12px; border-radius: 22px;
  background: linear-gradient(180deg, #2F2F33, var(--card) 45%, var(--panel));
  border: 2px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 30px 50px -28px rgba(0, 0, 0, .9);
}
.bebop__face { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 12px; background: #08110F; }
.bebop__ear { position: absolute; top: 30%; width: 18px; height: 40%; border-radius: 8px; background: var(--card); border: 2px solid var(--border); }
.bebop__ear--l { left: 0; } .bebop__ear--r { right: 0; }
.bebop__ear--l::after { content: ""; position: absolute; left: 50%; top: -34px; width: 2px; height: 34px; margin-left: -1px; background: var(--border); }
.bebop__ear--l::before { content: ""; position: absolute; left: 50%; top: -40px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--red); }
.bebop.is-happy { animation: hop .5s var(--snap); }
@keyframes hop { 40% { transform: translateY(-14px) rotate(-3deg); } }

/* ---------------- 4 · work: CH.01 tab · ghost 01 · listings on a cream band (the ONLY place titles appear) ---------------- */
.work { max-width: var(--col); margin: 0 auto; padding: 72px var(--gutter) 10px; scroll-margin-top: 12px; }
.work__head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; }
.tab {
  position: relative; z-index: 1; margin: 0; padding: 12px 20px 10px; border-radius: 8px 8px 0 0;
  background: var(--cream); color: var(--ground); font-weight: 400;
}
.tab__ch { color: var(--red); }
.ghost {
  position: absolute; right: 6px; bottom: -14px; z-index: 0; pointer-events: none; user-select: none;
  font: 700 clamp(5rem, 13vw, 9.5rem)/.8 var(--display); letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(233, 220, 196, .22);
}
.grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr);
  background: var(--cream); color: var(--ground); border-radius: 0 8px 8px 8px; padding: 8px clamp(14px, 2.6vw, 28px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
}
.work-card {
  position: relative;
  display: grid; align-items: center; column-gap: clamp(18px, 3vw, 36px);
  grid-template-columns: 9.5rem minmax(0, 1.45fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr;
  padding: 26px 14px; border-bottom: 1px dashed rgba(74, 64, 54, .45);
  text-decoration: none; color: var(--ground);
  transition: background .25s, transform .3s var(--snap);
}
.work-card:last-child { border-bottom: 0; }
.work-card:first-child { grid-template-columns: 9.5rem minmax(0, 1.9fr) minmax(0, 1fr); }   /* Dolce Wang leads: the biggest screen */
/* red corner brackets: snap on with hover AND keyboard focus (the focus treatment) */
.work-card::before {
  content: ""; position: absolute; inset: 6px; pointer-events: none; opacity: 0; transform: scale(1.025);
  --b: var(--red);
  background:
    linear-gradient(var(--b), var(--b)) top left / 16px 2px no-repeat, linear-gradient(var(--b), var(--b)) top left / 2px 16px no-repeat,
    linear-gradient(var(--b), var(--b)) top right / 16px 2px no-repeat, linear-gradient(var(--b), var(--b)) top right / 2px 16px no-repeat,
    linear-gradient(var(--b), var(--b)) bottom left / 16px 2px no-repeat, linear-gradient(var(--b), var(--b)) bottom left / 2px 16px no-repeat,
    linear-gradient(var(--b), var(--b)) bottom right / 16px 2px no-repeat, linear-gradient(var(--b), var(--b)) bottom right / 2px 16px no-repeat;
  transition: opacity .12s steps(2, jump-none), transform .18s var(--snap);
}
.work-card:hover, .work-card:focus-visible { background: var(--cream-hover); transform: translateX(4px); }
.work-card:hover::before, .work-card:focus-visible::before { opacity: 1; transform: none; }
.work-card:focus-visible { outline: none; }
.work-card__cap { display: contents; }
.work-card__media {
  grid-column: 2; grid-row: 1 / -1;
  position: relative; display: block; aspect-ratio: 16 / 9; background: var(--letterbox); overflow: hidden; border-radius: 10px;
  box-shadow: 0 16px 30px -20px rgba(25, 25, 27, .8);
}
.work-card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.work-card__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 3px); }
.work-card__play {
  position: absolute; z-index: 1; top: 10px; right: 10px; padding: 3px 8px; border-radius: 5px;
  background: rgba(25, 25, 27, .82); color: var(--cream); transition: background .2s;
}
.work-card:hover .work-card__play, .work-card:focus-visible .work-card__play { background: var(--red); }
/* the channel number: red outline on cream, fills in on hover/focus */
.work-card__ch {
  grid-column: 1; grid-row: 1 / -1; white-space: nowrap;
  font: 700 3.1rem/1 var(--display); letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.6px var(--red);
  transition: color .2s;
}
.work-card:hover .work-card__ch, .work-card:focus-visible .work-card__ch { color: var(--red); }
.work-card__title { grid-column: 3; grid-row: 2; display: block; font: 700 clamp(1.15rem, 2.1vw, 1.65rem)/1.15 var(--display); letter-spacing: .02em; color: var(--ground); text-wrap: balance; }
.work-card__label { grid-column: 3; grid-row: 3; display: block; margin-top: 10px; color: var(--ink); }

/* the door to the stall (camel = the rare warm detail) */
.door {
  display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 14px 18px;
  border: 1.5px dashed rgba(200, 154, 102, .55); border-radius: 8px; color: var(--camel); text-decoration: none;
  transition: background .2s, color .2s;
}
.door__icon { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.door__arrow { margin-left: auto; transition: transform .3s var(--snap); }
.door:hover { background: rgba(200, 154, 102, .08); color: var(--cream); }
.door:hover .door__arrow, .door:focus-visible .door__arrow { transform: translateX(4px); }

/* ---------------- about: one cream window ---------------- */
.win {
  max-width: calc(var(--col) - 2 * var(--gutter)); margin: 88px auto 0;
  background: var(--cream); color: var(--ground); border-radius: 8px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); scroll-margin-top: 12px;
}
.win__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--red); color: var(--cream); padding: 7px 12px; user-select: none; }
.win__ctl { opacity: .75; letter-spacing: .3em; }
.win__body { padding: 22px clamp(18px, 3vw, 32px) 26px; }
.win__h { margin: 0 0 16px; font: 700 clamp(1.1rem, 2vw, 1.35rem)/1.3 var(--display); letter-spacing: .03em; color: var(--ground); text-wrap: balance; }
.win__cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px clamp(24px, 4vw, 48px); }
.win__copy p { margin: 0 0 12px; max-width: 62ch; }
.win__copy p::before { content: "> "; color: var(--red); }
.facts { margin: 0; display: grid; gap: 10px; align-content: start; }
.facts div { display: grid; gap: 2px; }
.facts dt { color: var(--red); }
.facts dd { margin: 0; }
.win :focus-visible { outline-color: var(--ground); }   /* cyan disappears on cream */

/* ---------------- 5 · footer: one Say hi ---------------- */
.foot {
  max-width: var(--col); margin: 88px auto 0; padding: 40px var(--gutter) 34px;
  border-top: 1px solid var(--border);
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 22px 32px;
}
.foot__hi { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.4em;
  font: 700 var(--fs-title)/1 var(--display); letter-spacing: .08em; text-decoration: none;
  border-radius: 8px; transition: background .15s, transform .25s var(--snap);
}
.btn--solid { background: var(--red); color: var(--cream); box-shadow: 0 3px 0 #5E1C1C; }
.btn--solid:hover { background: var(--red-hover); }
.btn--solid:active { background: var(--red-pressed); transform: translateY(2px); box-shadow: 0 1px 0 #5E1C1C; }
.foot__bebop { display: block; width: 72px; padding: 5px; border-radius: 10px; background: var(--card); border: 2px solid var(--border); }
.foot__bebop .bebop__face { border-radius: 5px; }
.foot__bebop.is-happy { animation: hop .5s var(--snap); }
.foot__reply { margin: 0; min-height: 1.7em; color: var(--sage); }
.foot__links { justify-self: end; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot__links a { color: var(--cream-dim); text-decoration: none; }
.foot__links a:hover { color: var(--teal); }
.foot__small { grid-column: 1 / -1; margin: 0; color: var(--cream-dim); }

/* ---------------- pop-up player ---------------- */
.player {
  padding: 0; border: 0; background: transparent; color: var(--cream);
  width: min(960px, calc(100vw - 2 * var(--gutter))); max-width: none;
  max-height: calc(100dvh - 2 * var(--gutter)); overflow: auto;
}
.player::backdrop { background: rgba(14, 14, 16, .84); backdrop-filter: blur(3px); }
.player__win { background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); }
.player__bar { display: flex; justify-content: space-between; align-items: center; background: var(--red); padding: 4px 6px 4px 12px; }
.player__ch { font: var(--fs-label)/1 var(--mono); letter-spacing: .15em; color: var(--cream); }
.player__close { width: 36px; height: 32px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--cream); font: 1.3rem/1 var(--mono); cursor: pointer; }
.player__close:hover { background: var(--red-pressed); }
/* contain = landscape cuts letterbox, the portrait B3BOP cut pillarboxes; never cropped or stretched */
.player__video { display: block; width: 100%; height: auto; aspect-ratio: var(--ar, 16 / 9); max-height: min(62vh, 62dvh); object-fit: contain; background: var(--letterbox); }   /* --ar = the cut's own shape (home.js) */
.player__info { padding: 14px 18px 18px; }
.player__title { margin: 0; font: 700 var(--fs-title)/1.3 var(--display); letter-spacing: .05em; color: var(--cream); }
.player__label { margin: 4px 0 8px; font: var(--fs-label)/1.4 var(--mono); letter-spacing: .15em; text-transform: uppercase; color: var(--cream-dim); }
.player__text { margin: 0; max-width: 62ch; }

/* ---------------- phone ---------------- */
@media (max-width: 720px) {
  .status { flex-wrap: wrap; row-gap: 8px; }
  .status__clock { margin-left: auto; }
  .status__lines { order: 4; flex-basis: 100%; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 44px; padding-bottom: 24px; }
  .bebop { justify-self: start; width: min(60%, 190px); }
  .hero__line { margin-top: 16px; }
  .work { padding-top: 56px; }
  /* listings stack: loop on top, then the channel number beside the title */
  .work-card, .work-card:first-child { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto; row-gap: 0; padding: 18px 10px 20px; }
  .work-card__media { grid-column: 1 / -1; grid-row: 1; margin-bottom: 14px; }
  .work-card__ch { grid-row: 2 / 4; font-size: 2.1rem; align-self: start; }
  .work-card__title { grid-column: 2; grid-row: 2; font-size: 1.05rem; }
  .work-card__label { grid-column: 2; grid-row: 3; margin-top: 6px; }
  .win { margin: 64px var(--gutter) 0; }
  .win__cols { grid-template-columns: minmax(0, 1fr); }
  .foot { grid-template-columns: minmax(0, 1fr); margin-top: 64px; }
  .foot__links { justify-self: start; }
  .player__video { max-height: min(60vh, 60dvh); }
}

/* ---------------- motion: moments off = the same page, still ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .onair, .onair__dot, .boot__caret, .bebop, .bebop.is-happy, .foot__bebop.is-happy { animation: none; }
  .work-card:hover, .work-card:focus-visible { transform: none; }
  *, *::before, *::after { transition: none !important; }
}
