/* ==========================================================================
   tomosound.com — site styles
   Colours and type carried over from the original Bear Blog theme:
   Work Sans, #2c2c2c background, #5de3d6 / #46b1a7 teal accents.
   ========================================================================== */

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/work-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Work Sans";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/work-sans-latin-italic.woff2") format("woff2");
}

:root {
  --bg: #2c2c2c;
  --bg-deep: #252525;
  --surface: #323232;
  --surface-2: #393939;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);
  --text: #ffffff;
  --text-2: #d2d2d2;
  --muted: #a0a0a0;
  --teal: #5de3d6;
  --teal-2: #46b1a7;
  --teal-soft: rgba(93, 227, 214, 0.12);
  --rec: #ff5a4f;

  --font: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* One typeface everywhere: labels, timecodes and controls use Work Sans too
     (in capitals, with tabular figures so numbers don't jiggle as they change). */
  --mono: var(--font);

  --wrap: 1160px;
  --read: 700px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 68px;
  --band: 150px; /* height of the playable wave band in the hero */
}

/* ---------- Base ---------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

strong, b { color: var(--teal); font-weight: 600; }

::selection { background: var(--teal); color: #1d1d1d; }

/* Scrollbar in the site's teal. Firefox and Chrome use the standard property;
   Safari uses the -webkit- pseudo-elements below. */
html { scrollbar-color: var(--teal-2) var(--bg-deep); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: var(--teal-2);
  border: 3px solid var(--bg-deep);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--teal); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--teal);
  color: #1d1d1d;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--read { max-width: calc(var(--read) + var(--gutter) * 2); }

.mono {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Inline text links: teal underline that fills on hover (nod to the old theme) */
.prose a,
.link {
  color: var(--text);
  text-decoration: none;
  background-image: linear-gradient(var(--teal-2), var(--teal-2));
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 1px;
  transition: background-size 0.35s var(--ease), color 0.2s;
}
.prose a:hover,
.link:hover {
  background-size: 100% 100%;
  color: #fff;
}

/* ---------- Oscilloscope logo ---------------------------------------------- */

.scope {
  display: inline-block;
  flex: none;
  width: 36px;
  height: 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}
.scope svg { display: block; width: 100%; height: 100%; overflow: hidden; }
.scope__axis { stroke: rgba(93, 227, 214, 0.18); stroke-width: 0.6; stroke-dasharray: 1.2 1.6; }
.scope__trace {
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 1.5px rgba(93, 227, 214, 0.75));
  animation: scope-scroll 1.6s linear infinite;
}
.scope__amp {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: scope-amp 2.3s ease-in-out infinite alternate;
}
@keyframes scope-scroll { to { transform: translateX(-40px); } }
@keyframes scope-amp {
  0%   { transform: scaleY(0.55); }
  40%  { transform: scaleY(1); }
  70%  { transform: scaleY(0.75); }
  100% { transform: scaleY(0.95); }
}

/* ---------- Header -------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(44, 44, 44, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(40, 40, 40, 0.86);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand__name { font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.brand__sub { color: var(--muted); font-size: 0.68rem; margin-top: 3px; white-space: nowrap; }
@media (max-width: 1100px) { .brand__sub { display: none; } }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 8px 12px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
}
.nav .nav__ext::after {
  content: "↗";
  margin-left: 4px;
  font-size: 0.8em;
  color: var(--muted);
}

.header-actions { display: flex; align-items: center; gap: 8px; }
.nav .nav__mobile { display: none; }

.sfx-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.sfx-toggle:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.sfx-toggle svg { width: 16px; height: 16px; }
.sfx-toggle .on { display: none; }
.sfx-toggle[aria-pressed="true"] { color: var(--teal); border-color: var(--teal-2); background: var(--teal-soft); }
.sfx-toggle[aria-pressed="true"] .on { display: inline; }
.sfx-toggle[aria-pressed="true"] .off { display: none; }

/* Rec and sound toggles sit top-right, just above the line that marks the wave band. */
.scope-controls {
  position: absolute;
  z-index: 2;
  bottom: calc(var(--band) + 8px);
  right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  display: flex;
  align-items: center;
  gap: 8px;
}
.scope-toggle {
  height: 26px;
  gap: 7px;
  padding: 0 11px 0 9px;
  font-size: 0.66rem;
  background: rgba(44, 44, 44, 0.7);
}
.scope-toggle svg { width: 13px; height: 13px; }
.scope-toggle span.on { display: none; }
.scope-toggle[aria-pressed="true"] span.on { display: inline; }
.scope-toggle[aria-pressed="true"] span.off { display: none; }
.scope-toggle[aria-pressed="false"] { animation: toggle-glow 3.2s ease-in-out infinite; }
@keyframes toggle-glow {
  50% { border-color: rgba(93, 227, 214, 0.45); color: var(--text-2); }
}
.hero.in-band .scope-toggle { cursor: pointer; }

.rec-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 11px 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(44, 44, 44, 0.7);
  color: var(--muted);
  font-size: 0.66rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.rec-toggle::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rec);
  opacity: 0.5;
}
.rec-toggle:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.rec-toggle[aria-pressed="true"] { color: #fff; border-color: rgba(255, 90, 79, 0.6); }
.rec-toggle[aria-pressed="true"]::before { opacity: 1; }
html.tape-recording .rec-toggle::before { animation: blink 1.2s steps(2, jump-none) infinite; }

.no-js .scope-controls { display: none; }
@media (hover: none) { .scope-controls { display: none; } }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 16px; height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.menu-toggle span { position: relative; }
.menu-toggle span::before,
.menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }
.nav-open .menu-toggle span { background: transparent; }
.nav-open .menu-toggle span::before { transform: translateY(5px) rotate(45deg); }
.nav-open .menu-toggle span::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Buttons ------------------------------------------------------- */

.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--btn-bg);
  color: #fff;
  font: 500 0.98rem/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.35); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary {
  --btn-bg: var(--teal);
  color: #182322;
  border-color: var(--teal);
  font-weight: 600;
}
.btn--primary:hover {
  border-color: var(--teal);
  box-shadow: 0 10px 30px -10px rgba(93, 227, 214, 0.55);
}

.btn--sm { min-height: 38px; padding: 0 16px; font-size: 0.9rem; }

/* ---------- Hero ---------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(48px, 9vw, 110px) 0 calc(var(--band) + clamp(48px, 4.5vw, 64px));
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* soft teal glow */
  content: "";
  position: absolute;
  z-index: -2;
  width: 900px; height: 900px;
  right: -300px; top: -420px;
  background: radial-gradient(closest-side, rgba(93, 227, 214, 0.13), transparent 70%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  /* As wide as the card can get while the headline keeps its three lines. */
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.95fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}
.hero__title {
  margin: 0 0 24px;
  font-size: clamp(2.6rem, 6.2vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--teal);
}
.hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em);
  animation: rise 0.9s var(--ease) forwards;
  animation-delay: calc(var(--i) * 70ms + 120ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* Typewriter (first load of the session). The headline is hidden until the script
   has split it into characters; a fallback shows it after 3s if the script fails. */
html.will-type .hero__title .word { animation: none; opacity: 1; transform: none; white-space: nowrap; }
html.will-type .hero__title:not(.typing) { visibility: hidden; animation: show-anyway 0s 3s forwards; }
@keyframes show-anyway { to { visibility: visible; } }
.hero__title.typing .tc { visibility: hidden; }
.hero__title.typing .tc.on { visibility: visible; }
.type-cursor {
  position: relative;
  display: inline-block;
  width: 0;
}
.type-cursor::after {
  content: "";
  position: absolute;
  left: 0.06em;
  bottom: -0.04em;
  width: 0.46em;
  height: 0.86em;
  background: var(--teal);
  box-shadow: 0 0 18px rgba(93, 227, 214, 0.45);
  animation: cursor-blink 1.05s steps(1, end) infinite;
}
.type-cursor.busy::after { animation: none; } /* solid while typing, like a terminal */
.type-cursor.gone::after { opacity: 0; transition: opacity 0.6s; animation: none; }
@keyframes cursor-blink { 50% { opacity: 0; } }

.hero__lead {
  max-width: 36em;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-2);
}
.hero__lead strong { color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__scope {
  position: absolute;
  z-index: -1;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: var(--band);
  opacity: 0.9;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

/* The playable band: a line marks its top edge, lit while the pointer is inside. */
.hero__band {
  position: absolute;
  z-index: -1;
  left: 0; right: 0; bottom: 0;
  height: var(--band);
  pointer-events: none;
}
.hero__band::before {
  --edge: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  content: "";
  position: absolute;
  top: 0;
  left: var(--edge);
  right: var(--edge);
  border-top: 1px solid var(--line);
  transition: border-color 0.4s;
}
.hero.in-band .hero__band::before { border-top-color: rgba(93, 227, 214, 0.35); }
.hero.in-band { cursor: none; user-select: none; }
html.wave-holding .hero__band::before { border-top-color: rgba(93, 227, 214, 0.6); }
.hero__band.shift::before { animation: band-flash 1.1s var(--ease); }
@keyframes band-flash {
  0% { border-top-color: var(--teal); box-shadow: 0 0 14px 1px rgba(93, 227, 214, 0.55); }
}

/* Echo-loop markers: one dot per remembered pluck, pulsing when it plays again. */
.loop-dot {
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--teal);
  transition: opacity 0.6s;
}
.loop-dot.ping { animation: loop-ping 0.9s var(--ease); }
@keyframes loop-ping {
  0% { transform: scale(1.9); box-shadow: 0 0 0 0 rgba(93, 227, 214, 0.55); }
  100% { transform: scale(1); box-shadow: 0 0 0 10px rgba(93, 227, 214, 0); }
}

/* Portrait "recorder" card */
.recorder {
  position: relative;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface);
  padding: 10px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
  opacity: 0;
  animation: fade-in 1s var(--ease) 0.5s forwards;
}
@keyframes fade-in { from { opacity: 0; translate: 0 20px; } to { opacity: 1; translate: 0 0; } }

@keyframes blink { 50% { opacity: 0.25; } }

.recorder__img {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-deep);
}
.recorder__img img { width: 100%; height: 100%; object-fit: cover; }

.recorder__meters {
  display: grid;
  gap: 4px;
  padding: 12px 6px 4px;
}
.meter {
  display: grid;
  grid-template-columns: 14px 1fr;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.65rem;
}
.meter__track {
  position: relative;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
/* The gradient stays fixed and the fill is revealed from the left,
   so yellow/red only show when the level actually gets there. */
.meter__fill {
  height: 100%;
  width: 100%;
  clip-path: inset(0 78% 0 0);
  background: linear-gradient(90deg, var(--teal-2) 0%, var(--teal) 68%, #e9f56a 86%, var(--rec) 97%);
}
.meter__peak {
  position: absolute;
  top: 0;
  left: 22%;
  width: 2px;
  height: 100%;
  margin-left: -2px;
  background: rgba(255, 255, 255, 0.75);
}
.meter__peak.is-hot { background: var(--rec); }
/* ---------- Stats strip --------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 28px 24px 26px;
  border-left: 1px dashed var(--line-strong);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num {
  display: block;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__num sup { font-size: 0.5em; color: var(--teal); margin-left: 2px; }
.stat__label { display: block; margin-top: 10px; color: var(--muted); }

/* ---------- Sections ------------------------------------------------------ */

.section { padding: clamp(64px, 10vw, 120px) 0; }
.section--tight { padding-top: 0; }
.section--alt { background: var(--bg-deep); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px 32px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--teal);
}
.section-head h2,
.page-head h1 {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  letter-spacing: -0.03em;
}
.section-head p {
  max-width: 34em;
  margin: 16px 0 0;
  color: var(--muted);
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 1px dashed var(--line-strong);
  transition: color 0.2s, border-color 0.2s, gap 0.25s var(--ease);
}
.more:hover { color: var(--teal); border-color: var(--teal-2); gap: 12px; }

/* ---------- Work cards ---------------------------------------------------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.work-card:hover {
  border-color: rgba(93, 227, 214, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.work-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-deep);
}
.work-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.5s;
  filter: saturate(0.92);
}
.work-card:hover .work-card__media img { transform: scale(1.045); filter: saturate(1.05); }
.work-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(30, 30, 30, 0.55));
}
.work-card__year {
  position: absolute;
  z-index: 1;
  top: 14px; left: 14px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(30, 30, 30, 0.75);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
}
.work-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.work-card__title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.work-card__title .arrow {
  flex: none;
  color: var(--muted);
  transition: transform 0.3s var(--ease), color 0.3s;
}
.work-card:hover .work-card__title .arrow { color: var(--teal); transform: translate(3px, -3px); }
.work-card__desc { margin: 0; color: var(--muted); font-size: 0.97rem; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tag {
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* "Classified" card for the unannounced project */
.classified {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.025) 0 10px, transparent 10px 20px),
    radial-gradient(circle at 30% 20%, rgba(93, 227, 214, 0.16), transparent 60%),
    #262626;
}
.classified__bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 46%;
}
.classified__bars i {
  width: 4px;
  height: 100%;
  border-radius: 2px;
  background: var(--teal);
  opacity: 0.85;
  transform: scaleY(var(--h, 0.3));
  animation: bar 1.4s ease-in-out infinite alternate;
  animation-delay: calc(var(--d, 0) * -1s);
}
@keyframes bar {
  from { transform: scaleY(calc(var(--h, 0.3) * 0.35)); }
  to   { transform: scaleY(var(--h, 0.3)); }
}
.classified__stamp {
  position: absolute;
  padding: 8px 14px;
  border: 2px solid var(--rec);
  border-radius: 6px;
  color: var(--rec);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  transform: rotate(-8deg);
  background: rgba(38, 38, 38, 0.8);
}

/* ---------- Reel banner --------------------------------------------------- */

.reel {
  position: relative;
  display: block;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  min-height: 280px;
  border: 1px solid var(--line);
  text-decoration: none;
  isolation: isolate;
}
.reel img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  z-index: -2;
  transition: transform 1.2s var(--ease);
}
.reel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(28, 28, 28, 0.92) 0%, rgba(28, 28, 28, 0.55) 45%, rgba(28, 28, 28, 0.1) 100%);
}
.reel:hover img { transform: scale(1.04); }
.reel__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 48px);
  gap: 24px;
}
.reel__title {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  max-width: 12em;
}
.reel__cta { display: flex; align-items: center; gap: 18px; }
.play {
  position: relative;
  display: grid;
  place-items: center;
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--teal);
  color: #182322;
  transition: transform 0.35s var(--ease);
}
.play::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--teal);
  animation: ripple 2.2s var(--ease) infinite;
}
.play svg { width: 24px; height: 24px; margin-left: 3px; }
.reel:hover .play { transform: scale(1.08); }
@keyframes ripple {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ---------- Services ------------------------------------------------------ */

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.service {
  position: relative;
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}
.service::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 2px;
  width: 100%;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.service:hover { border-color: var(--line-strong); }
.service:hover::before { transform: scaleX(1); }
.service__num { color: var(--teal); }
.service h3 { font-size: 1.4rem; margin: 26px 0 12px; }
.service p { color: var(--muted); margin: 0; }
.service__icon {
  position: absolute;
  top: 24px; right: 24px;
  width: 36px; height: 36px;
  color: var(--text-2);
  opacity: 0.6;
}

/* ---------- Credits list (home + credits page) ---------------------------- */

.credits { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.credit {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, padding 0.35s var(--ease);
}
.credit::before {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  height: 1px; width: 100%;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.credit:hover::before { transform: scaleX(1); }
.credit__year { color: var(--teal); font-size: 0.85rem; }
.credit__title { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.credit__role { color: var(--muted); font-size: 0.97rem; }
.credit:hover .credit__title { color: var(--teal); }
.credit__title { transition: color 0.2s; }

/* ---------- Toolkit marquee ----------------------------------------------- */

.marquee {
  --gap: 14px;
  position: relative;
  display: flex;
  overflow: hidden;
  gap: var(--gap);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee + .marquee { margin-top: 14px; }
.marquee__track {
  display: flex;
  flex: none;
  gap: var(--gap);
  min-width: 100%;
  margin: 0; padding: 0;
  list-style: none;
  animation: scroll 48s linear infinite;
}
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(calc(-100% - var(--gap))); } }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  white-space: nowrap;
  font-size: 1rem;
  color: var(--text-2);
}
.chip span { color: var(--muted); font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Contact ------------------------------------------------------- */

.contact {
  position: relative;
  padding: clamp(40px, 7vw, 88px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(93, 227, 214, 0.14), transparent 60%),
    var(--surface);
  overflow: hidden;
  isolation: isolate;
}
.contact::after {
  /* dashed frame, echoing the old site's dashed rules */
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(93, 227, 214, 0.18);
  border-radius: calc(var(--radius) + 2px);
  pointer-events: none;
  z-index: -1;
}
.contact h2 {
  font-size: clamp(2.2rem, 5.6vw, 4.4rem);
  letter-spacing: -0.035em;
  max-width: 12em;
}
.contact h2 em { font-style: italic; font-weight: 400; color: var(--teal); }
.contact p { color: var(--text-2); max-width: 34em; margin-top: 20px; }

.email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}
.email {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  margin-right: 8px;
  background-image: linear-gradient(var(--teal), var(--teal));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s var(--ease);
}
.email:hover { background-size: 100% 2px; }

.copy-btn[data-copied="true"] { color: var(--teal); border-color: var(--teal-2); }

/* ---------- Footer -------------------------------------------------------- */

.site-footer {
  margin-top: clamp(64px, 10vw, 120px);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.footer-bottom a { text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--teal); }
kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-align: center;
  color: var(--text-2);
}

/* ---------- Inner pages --------------------------------------------------- */

.page-head {
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(32px, 5vw, 56px);
}
.page-head p.lead {
  margin-top: 20px;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-2);
  max-width: 38em;
}

.banner {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 21 / 9;
  background: var(--bg-deep);
}
.banner img { width: 100%; height: 100%; object-fit: cover; }

.prose { font-size: 1.08rem; color: var(--text-2); }
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 {
  color: #fff;
  margin-top: 2.2em;
  margin-bottom: -0.2em;
}
.prose h2 { font-size: 1.7rem; }
.prose h3 { font-size: 1.35rem; }
.prose ul { padding-left: 1.2em; margin: 0; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--teal); }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); }
.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--teal);
  font-size: 1.3rem;
  font-style: italic;
  color: #fff;
}
.prose del { color: var(--muted); }
.prose details {
  padding: 18px 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.prose summary { cursor: pointer; color: #fff; font-weight: 600; transition: color 0.2s; }
.prose summary:hover { color: var(--teal); }
.prose details[open] summary { margin-bottom: 10px; }
.prose details p { margin: 0; }

/* About page: two-column intro */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: stretch;
}
/* Both columns run the same height: the quote starts level with the photo, and the
   offer card ends level with the facts list. Spare space goes into the middle gaps. */
.split > aside,
.split > .prose { display: flex; flex-direction: column; }
.split > aside > .photo-card { margin-bottom: 20px; }
.split > aside > .facts { margin-top: auto; }
.split > .prose > blockquote:first-child { margin: 0 0 0.4em; }
.split > .prose > h2 { margin-top: auto; padding-top: 1.6em; }

/* "What else can I offer you?": one card, with the numbers 01–06 down its left side. */
.prose .offer-tabs { margin-top: 24px; }
.offer-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.offer-tabs__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 10px;
  border-right: 1px solid var(--line);
}
.offer-tab {
  position: relative;
  width: 48px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.offer-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.offer-tab[aria-selected="true"] { color: var(--teal); background: var(--teal-soft); font-weight: 600; }
.offer-tab[aria-selected="true"]::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--teal);
}
.offer-panels { display: grid; align-content: center; padding: 28px 30px; }
.offer-panel h3 { color: #fff; font-size: 1.35rem; margin: 0 0 12px; }
.offer-panel p { margin: 0; color: var(--text-2); max-width: 34em; }
.offer-panel + .offer-panel { margin-top: 24px; } /* no-JS: all six stacked */

/* With JS: all panels share one cell (the card keeps the tallest height), one shows at a time. */
.js .offer-panel { grid-area: 1 / 1; margin-top: 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0s 0.45s; }
.js .offer-panel.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0s; }
.no-js .offer-tabs__nav { display: none; }
.no-js .offer-card { grid-template-columns: 1fr; }

.toolkit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}
.toolkit__group { padding: 22px 24px; background: var(--bg); }
.toolkit__group h3 { color: var(--teal); margin-bottom: 12px; font-weight: 400; }
.toolkit__group .tags .tag { font-family: var(--font); text-transform: none; font-size: 0.88rem; letter-spacing: 0; padding: 5px 10px; }
.toolkit__group--wide { grid-column: 1 / -1; }

.langs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lang {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.lang__level { font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; color: var(--teal); line-height: 1; }
.lang__name { margin-top: 8px; color: var(--text-2); }
.lang__bar { margin-top: 14px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.08); overflow: hidden; }
.lang__bar i { display: block; height: 100%; width: var(--w); background: var(--teal); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease) 0.2s; }
.is-in .lang__bar i, .no-js .lang__bar i { transform: scaleX(1); }

/* Credits page timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  border-left: 2px dashed rgba(70, 177, 167, 0.35);
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  padding: 0 0 48px 44px;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--teal-2);
  transition: background 0.4s, box-shadow 0.4s;
}
.tl-item.is-in::before { background: var(--teal); box-shadow: 0 0 0 6px var(--teal-soft); }
.tl-item__year { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; color: var(--teal); line-height: 1.2; }
.tl-item h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: -0.02em; margin-bottom: 10px; }
.tl-item p { color: var(--text-2); margin: 12px 0 0; max-width: 40em; }
.tl-item .studio { color: var(--muted); }

/* 404 */
.notfound { min-height: 60vh; display: grid; align-content: center; justify-items: start; padding-block: 80px; }
.notfound h1 { font-size: clamp(4rem, 14vw, 9rem); letter-spacing: -0.05em; line-height: 1; }
.notfound .scope { width: 150px; height: 90px; margin-bottom: 24px; }
.notfound .scope__trace { stroke-width: 1.2; }

/* ---------- Scroll reveal ------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------------------------------------------------- */

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .recorder { max-width: 380px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px dashed var(--line-strong); }
  .services { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .credit { grid-template-columns: 70px minmax(0, 1fr); gap: 6px 24px; }
  .credit__role { grid-column: 2; grid-row: 2; }
}

@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .nav .nav__mobile { display: block; }
  .header-cta { display: none; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg-deep);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
  }
  .nav-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 14px 4px; font-size: 1.15rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"]::after { left: auto; right: 4px; top: 50%; bottom: auto; width: 8px; height: 8px; border-radius: 50%; translate: 0 -50%; }
  .no-js .nav { position: static; opacity: 1; visibility: visible; transform: none; flex-direction: row; flex-wrap: wrap; background: none; border: 0; padding: 0; }
}

@media (max-width: 720px) {
  .site-header .wrap { gap: 12px; }
  .brand__sub { display: none; }
  .work-grid { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .reel { aspect-ratio: 4 / 5; min-height: 0; max-height: 520px; }
  .reel::before { background: linear-gradient(0deg, rgba(28, 28, 28, 0.95) 10%, rgba(28, 28, 28, 0.3) 70%, rgba(28,28,28,0.1)); }
  .reel__inner { justify-content: flex-end; }
  .toolkit { grid-template-columns: 1fr; }
  .langs { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; padding-left: 40px; }
  .banner { aspect-ratio: 16 / 10; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 14px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .credit { grid-template-columns: 1fr; gap: 4px; }
  .credit__year, .credit__title, .credit__role { grid-column: 1; grid-row: auto; }
}

/* ---------- Reduced motion ------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { flex: 1 1 100%; flex-wrap: wrap; min-width: 0; gap: 10px; }
  .marquee__track[aria-hidden="true"] { display: none; }
}

@media print {
  .site-header, .hero__scope, .sfx-toggle, .scope-hint { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- About: photo in a plain grey card ---------------------------- */

.photo-card {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}
.photo-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
}

/* ---------- About: quick facts -------------------------------------------- */

.facts { margin: 20px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--text); text-align: right; }

/* ---------- Playable wave hint -------------------------------------------- */

.scope-hint {
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
  text-align: right;
  color: var(--muted);
  font-size: 0.66rem;
  opacity: 0.75;
  pointer-events: none;
  transition: color 0.4s, opacity 0.4s;
}
.scope-hint span { display: none; }
.scope-hint kbd { font-size: 0.62rem; padding: 0 5px; }
html:not(.sfx-on) .scope-hint .h-off,
html.sfx-on.sfx-asleep .scope-hint .h-sleep,
html.sfx-on:not(.sfx-asleep):not(.wave-playing) .scope-hint .h-on,
html.wave-playing:not(.mute-toast) .scope-hint .h-now { display: inline; }
/* Briefly replaces the hint when a mute key is pressed. */
html.mute-toast .scope-hint span:not(.h-mute) { display: none !important; }
html.mute-toast .scope-hint .h-mute { display: inline; color: var(--teal); }
html.wave-playing .scope-hint { color: var(--teal); opacity: 1; }
.no-js .scope-hint { display: none; }
@media (hover: none) { .scope-hint { display: none; } }

/* ---------- Tape deck (OP-1 style) in the portrait card ------------------ */

/* Side by side with the text, the card runs from the top of the headline to the
   bottom of the buttons; the photo (or the deck) fills whatever height that is. */
@media (min-width: 961px) {
  .hero__grid { align-items: stretch; }
  .recorder { display: flex; flex-direction: column; }
  .recorder__img { flex: 1; aspect-ratio: auto; min-height: 340px; }
  .recorder__img img { position: absolute; inset: 0; object-position: 50% 35%; }
}

.recorder__img img { transition: opacity 0.45s var(--ease), transform 0.6s var(--ease); }
.recorder.is-tape .recorder__img img { opacity: 0; transform: scale(1.03); }
/* The deck fills the photo square: reel screen on top, meters and controls below. */
.deck {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #1b1b1b;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease) 0.1s, visibility 0s 0.55s;
}
.recorder.is-tape .deck { opacity: 1; visibility: visible; transition: opacity 0.45s var(--ease) 0.1s, visibility 0s; }
.tape { display: block; flex: 1; min-height: 0; width: 100%; }
.deck .recorder__meters { padding: 4px 14px 2px; }
.tape__bg { fill: #1b1b1b; }
.tape__tc { fill: var(--teal); font-family: var(--mono); font-size: 25px; font-weight: 500; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.tape__ticks line, .tape__marks line { stroke: rgba(255, 255, 255, 0.4); stroke-width: 1; }
.tape__dot { fill: rgba(255, 90, 79, 0.3); }
html.tape-recording .tape__dot { fill: var(--rec); animation: blink 1.2s steps(2, jump-none) infinite; }
.tape__playhead { stroke: rgba(255, 255, 255, 0.25); stroke-width: 1; }
.tape__path { stroke: rgba(255, 255, 255, 0.65); stroke-width: 1.3; fill: none; }
.tape__guide { fill: #1b1b1b; stroke: #ececec; stroke-width: 1.5; }
.tape__roller { fill: #8c8c8c; }
.tape__head { fill: #ececec; }
.tape__flange { fill: none; stroke: rgba(255, 255, 255, 0.2); stroke-width: 1.5; }
.tape__pack { fill: rgba(93, 227, 214, 0.32); stroke: var(--teal); stroke-width: 1.5; }
.tape__spoke { stroke: #ececec; stroke-width: 2; stroke-linecap: round; }
.tape__ring { fill: none; stroke: #ececec; stroke-width: 4; }
.tape__inner { fill: #1b1b1b; }
.tape__center { fill: #ececec; }

.tape-controls { display: grid; gap: 8px; padding: 8px 12px 12px; }
.tape-transport { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tape-transport .tape-btn { justify-content: center; padding: 0 6px; }
.tape-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tape-label { color: var(--muted); font-size: 0.62rem; margin-right: auto; }
.tape-rev { height: 30px; }
.tape-rev svg { width: 9px; height: 9px; }
.tape-rev[aria-pressed="true"] { color: var(--teal); border-color: var(--teal-2); background: var(--teal-soft); }
.tape-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 0.66rem;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, opacity 0.2s;
}
.tape-btn:hover:not(:disabled) { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.tape-btn:disabled { opacity: 0.35; cursor: default; }
.tape-btn i { display: block; width: 8px; height: 8px; }
.tape-arm i { border-radius: 50%; background: var(--rec); opacity: 0.45; transition: opacity 0.2s; }
.tape-arm[aria-pressed="true"] { color: #fff; border-color: rgba(255, 90, 79, 0.6); }
.tape-arm[aria-pressed="true"] i { opacity: 1; }
html.tape-recording .tape-arm i { animation: blink 1.2s steps(2, jump-none) infinite; }
.tape-start svg { width: 9px; height: 9px; }
.deck.is-running .tape-start { color: var(--teal); border-color: var(--teal-2); opacity: 1; }
.tape-stop i { border-radius: 1px; background: currentColor; }
.tape-save svg { width: 11px; height: 11px; }
/* Once something is recorded, the reels can be turned by hand. */
.tape__hint { fill: rgba(255, 255, 255, 0.4); font-family: var(--mono); font-size: 9px; font-weight: 500; letter-spacing: 1.2px; opacity: 0; transition: opacity 0.4s; }
.deck.has-tape:not(.is-running) .tape__hint { opacity: 1; }
.deck.has-tape:not(.is-running) .tape { cursor: grab; touch-action: none; }
.deck.is-spooling .tape { cursor: grabbing; }
.tape-speed { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 7px; overflow: hidden; }
.tape-speed button {
  height: 28px;
  min-width: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.7rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.tape-speed button + button { border-left: 1px solid var(--line); }
.tape-speed button:hover { color: #fff; }
.tape-speed button[aria-checked="true"] { background: var(--teal-soft); color: var(--teal); }
.tape-speed button:focus-visible { outline-offset: -3px; border-radius: 5px; }

/* ---------- Projects page ------------------------------------------------- */

.wip-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 7px 14px 7px 12px;
  border: 1px dashed rgba(93, 227, 214, 0.35);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.7rem;
}
.wip-note__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.project {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.project::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 2px;
  width: 100%;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.project:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.project:hover::before { transform: scaleX(1); }
.project__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.project__num { color: var(--teal); }
.project__status {
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.65rem;
}
.project__title { font-size: 1.4rem; margin-top: 8px; }
.project p { margin: 0; color: var(--text-2); }
.project .tags { margin-top: auto; padding-top: 6px; }
.project .more { align-self: flex-start; margin-top: 4px; font-size: 0.95rem; }
