/* ===== ShuHQ — Bay38 family design language =====
   Canvas: scratched near-black. Accent: metallic deep Cadbury purple (was Pantone 116 C yellow until 2026-07-12).
   Display: Archivo Black (stand-in for deuterium). Body: Inter. Mono: Space Mono. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* width/height attrs on img exist for CLS-free layout; ratio stays, CSS controls size */
img { max-width: 100%; height: auto; }

@font-face {
  font-family: 'Vandalust';
  src: url('assets/fonts/Vandalust.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'PressStart2P';
  src: url('assets/fonts/PressStart2P.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'QuickPhestor';
  src: url('assets/fonts/QuickPhestor.otf') format('opentype');
  font-display: swap;
}

:root {
  --black: #0a0a0a;
  --dark: #111111;
  --grey: #161616;
  --mid: #2a2a2a;
  --line: #262626;
  --text: #e6e6e6;
  --muted: #8f8f8f;
  --accent: #06b6d4;        /* cyan flagship, Shu's pick 2026-07-12 (was gold #fbb902 until 2026-07-12) */
  --accent-hi: #7de3fc;
  --accent-deep: #075985;
  --grad-accent: linear-gradient(135deg, var(--accent-hi) 0%, var(--accent) 45%, var(--accent-deep) 100%);
  --grad-accent-h: linear-gradient(90deg, var(--accent-deep), var(--accent) 35%, var(--accent-hi) 50%, var(--accent) 65%, var(--accent-deep));
  --grad-gold: linear-gradient(135deg, #ffd75e 0%, #fbb902 45%, #d29200 100%); /* work-section stat bars stay gold, Shu 2026-07-12 */
  --bone: #e8e2d0;
  --font-display: 'Archivo Black', Impact, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
  --font-marker: 'Caveat', cursive;
}

html { scroll-behavior: auto; }

/* visually hidden, read by screen readers and crawlers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

body {
  /* scrims deepened 2026-07-11 x2: canvas must read BLACK, not grey (Shu) */
  background:
    linear-gradient(rgba(8,8,8,0.86), rgba(8,8,8,0.93)),
    url('assets/texture.png') center / 1200px auto repeat fixed,
    var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  padding-bottom: 40px; /* room for ticker */
}

/* ===== NOISE / SCRATCH OVERLAY ===== */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ===== TOPBAR (bay38 pattern) ===== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 36px;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(38,38,38,0.6), color-mix(in srgb, var(--accent) 18%, transparent) 50%, rgba(38,38,38,0.6)) 1;
}

.topbar-brand {
  font-family: var(--font-display);
  font-size: 26px;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.topbar-logo { height: 34px; width: auto; }

.topbar-badge { height: 30px; width: auto; margin-left: 7px; }

.wordmark-badge {
  height: clamp(86px, 12.5vw, 148px);
  width: auto;
  margin-left: 4px;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.55));
}

.topbar-brand .hq-mini {
  font-family: var(--font-display);
  position: relative;
  background: #121212;
  color: #ffffff;
  border: 1px solid #2e2e2e;
  border-radius: 5px;
  padding: 5px 8px 6px;
  margin-left: 6px;
  line-height: 1;
}

.topbar-brand .hq-mini::before,
.topbar-brand .hq-mini::after {
  content: '';
  position: absolute;
  left: 15%;
  right: 15%;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
}

.topbar-brand .hq-mini::before { top: 2px; }
.topbar-brand .hq-mini::after { bottom: 2px; }

.topbar-nav { display: flex; align-items: center; gap: 28px; }

.topbar-nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.topbar-nav a:hover { color: var(--accent); }

.topbar-nav .topbar-cta {
  border: 1px solid #ffffff;
  padding: 10px 20px;
  color: #ffffff;
  transition: background 0.15s, color 0.15s;
}

.topbar-nav .topbar-cta:hover { background: var(--grad-accent); color: var(--black); border-color: var(--accent); }

/* ===== GRUNGE OVERLAY (site-wide, over photos too) ===== */
.grunge {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: url('assets/texture.png') center / 1400px auto repeat;
  mix-blend-mode: screen;
  opacity: 0.07;
}

/* ===== LANDING ===== */
#landing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  text-align: left;
  overflow: hidden;
}

/* Dissolve portrait: GTA sketch blends into the real photo.
   Hover left half = full sketch, hover right half = full photo. */
.hero-portrait {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  aspect-ratio: 1 / 1;
  /* fade the portrait into the canvas; hard left edge was too striking */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
  /* sit the whole portrait a touch darker into the canvas (Shu, 2026-07-11) */
  filter: brightness(0.84);
}

.hero-portrait .layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Glitch reveal (Shu's pick from the Transition Lab): sketch glitches off to the
   real photo on hover, glitches back on leave (script.js replays the jitter). */
.layer-sketch { transition: opacity 0.12s steps(2); }

.hero-portrait:hover .layer-sketch {
  opacity: 0;
  animation: heroGlitch 0.3s steps(2);
  transition: opacity 0.12s steps(2) 0.28s;
}

@keyframes heroGlitch {
  0%  { transform: translate(0); clip-path: inset(0); filter: none; }
  25% { transform: translate(-8px, 3px); clip-path: inset(10% 0 60% 0); filter: contrast(1.6); }
  50% { transform: translate(7px, -4px); clip-path: inset(55% 0 15% 0); filter: brightness(1.4); }
  75% { transform: translate(-5px, 2px); clip-path: inset(30% 0 40% 0); filter: contrast(1.8); }
  100%{ transform: translate(0); clip-path: inset(0); filter: none; }
}

/* left scrim so hero copy stays readable */
#landing::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,0.55) 28%, rgba(10,10,10,0) 62%);
  pointer-events: none;
}

.landing-inner { position: relative; z-index: 2; padding: 20px 20px 20px 9vw; max-width: 760px; }

#landing nav { justify-content: flex-start; }

/* half-screen windows: copy centred and BELOW the face (Shu), full-size
   wordmark, bottom-up scrim; full editorial left layout above 1280px */
@media (min-width: 901px) and (max-width: 1280px) {
  #landing { justify-content: center; align-items: flex-end; text-align: center; }
  /* face owns the top, copy owns the bottom: portrait pulled up + centred,
     faded on BOTH sides so it melts into the canvas symmetrically */
  .hero-portrait {
    top: 8%;
    height: 56%;
    right: 50%;
    transform: translateX(50%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
  }
  .landing-inner { padding: 20px 20px 48px; }
  /* topbar carries navigation; the in-hero links just tax the vertical budget.
     section#landing outguns the later base #landing nav rule in the cascade */
  section#landing nav { display: none; }
  .wordmark { justify-content: center; }
  .chip-row { margin-bottom: 22px; }
  #landing::after {
    background: linear-gradient(180deg, rgba(10,10,10,0.15) 25%, rgba(10,10,10,0.45) 55%, rgba(10,10,10,0.9) 85%);
  }
}

@media (max-width: 900px) {
  #landing {
    justify-content: center;
    align-items: flex-end;
    text-align: center;
  }
  /* same face-top / copy-bottom split as mid-width: the full-height portrait
     was still burying the copy on narrow windows */
  .hero-portrait {
    top: 8%;
    height: 54%;
    right: 50%;
    transform: translateX(50%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
  }
  #landing::after {
    background: linear-gradient(180deg, rgba(10,10,10,0.15) 30%, rgba(10,10,10,0.5) 60%, rgba(10,10,10,0.9) 85%);
  }
  .landing-inner { padding: 20px 20px 48px; }
  .wordmark { justify-content: center; }
  section#landing nav { display: none; }
}

.chip-row { margin-bottom: 28px; }

.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 6px 14px;
  /* scrim so the chip stays legible over the portrait at any accent (Shu 2026-07-12) */
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(3px);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: clamp(72px, 14vw, 150px);
  line-height: 0.95;
}

.wordmark-logo {
  height: clamp(110px, 16vw, 190px);
  width: auto;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.55));
}

.wordmark .hq {
  font-family: var(--font-display);
  font-size: clamp(58px, 10vw, 118px);
  position: relative;
  background: #121212;
  color: #ffffff;
  border-radius: 14px;
  padding: 0.28em 0.32em 0.3em;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0,0,0,0.55);
}

.wordmark .hq::before,
.wordmark .hq::after {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  height: 0.055em;
  background: #ffffff;
  border-radius: 999px;
}

.wordmark .hq::before { top: 0.12em; }
.wordmark .hq::after { bottom: 0.12em; }

.wordmark .hq { margin-left: 10px; display: inline-block; }

.hero-line {
  margin-top: 28px;
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
}

.hero-em { font-weight: 800; color: #ffffff; }

.annotation {
  margin-top: 18px;
  font-family: var(--font-marker);
  font-size: 24px;
  color: var(--accent);
  transform: rotate(-2deg);
}

.annotation-arrow { margin-right: 6px; }

.annotation-text { color: var(--accent); text-decoration: none; }
.annotation-text:hover { text-decoration: underline; }

.beanie-boy {
  position: absolute;
  right: -110px;
  bottom: -30px;
  width: 130px;
  transform: rotate(8deg);
  filter: drop-shadow(4px 6px 8px rgba(0,0,0,0.6));
}

@media (max-width: 900px) { .beanie-boy { display: none; } }

#landing nav { margin-top: 48px; display: flex; gap: 36px; justify-content: center; }

#landing nav a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}

#landing nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ===== BANNER ===== */
/* ===== SECTIONS (full screen) ===== */
section {
  padding: 110px 0;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.section-inner { width: 100%; }

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.section-title {
  /* header font: Shu picking from header-font-lab.html; Archivo Black until then */
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #ffffff;
  margin-bottom: 34px;
}

.section-title.title-long { font-size: clamp(30px, 4.4vw, 54px); }

.section-title .title-accent {
  display: block;
  /* heavy brush script to match the Anima wordmark (Shu, 2026-07-11) —
     replaces the graffiti trials; mixed case, scripts hate all-caps */
  font-family: 'Lobster', var(--font-display);
  font-size: 1.08em;
  letter-spacing: 2px;
  text-transform: none;
  color: var(--accent);
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: rotate(-1deg) translateX(24px);
}

/* ===== ABOUT ===== */
#about {
  background:
    linear-gradient(rgba(10,10,10,0.91), rgba(10,10,10,0.95)),
    url('assets/bg-bmx.jpg') center 30% / cover no-repeat;
}

.about-content {
  display: grid;
  grid-template-columns: 240px 1fr 220px;
  gap: 48px;
  align-items: start;
}

.about-photo img {
  width: 100%;
  display: block;
  border: 3px solid var(--mid);
  box-shadow: 10px 10px 0 var(--accent);
}

.about-text .lede { font-size: 20px; font-weight: 800; color: #ffffff; margin-bottom: 18px; }

.about-text p { margin-bottom: 16px; font-size: 15px; line-height: 1.8; color: var(--muted); }
.about-text p.lede { color: #ffffff; }

.about-text .about-now {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  line-height: 1.9;
  color: var(--accent);
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(3px);
  padding: 12px 16px;
  margin-top: 8px;
}
.about-text .about-now a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}
.about-text .about-now a:hover { color: #ffffff; }
.now-cursor { animation: nowBlink 1.1s steps(1) infinite; }
@keyframes nowBlink { 50% { opacity: 0; } }

/* sent-confirmation sticker (bay38 slap pattern; gold = fixed motif, not accent) */
.sent-sticker {
  display: block;
  background: var(--grad-gold);
  border: 4px solid var(--black);
  padding: 34px 40px;
  margin: 30px auto;
  max-width: 420px;
  text-align: center;
  opacity: 0;
  transform: scale(1.6) rotate(-6deg);
  box-shadow: 8px 8px 0 rgba(0,0,0,0.55);
}
.sent-sticker.slap { animation: stickerSlap 0.3s cubic-bezier(0.9, 0, 1, 1) forwards; }
@keyframes stickerSlap {
  0%   { opacity: 0; transform: scale(1.6) rotate(-6deg); }
  100% { opacity: 1; transform: scale(1) rotate(2deg); }
}
.sent-sticker h3 {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--black);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.sent-sticker p { color: var(--black); font-size: 15px; opacity: 0.8; }

.signature {
  width: 190px;
  margin-top: 26px;
  opacity: 0.92;
  transform: rotate(-2deg);
}

.about-stats { display: flex; flex-direction: column; gap: 18px; }

.stat {
  border: 1px solid var(--line);
  padding: 18px 20px;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(3px);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--accent);
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== WORK ===== */
#work {
  overflow: hidden;
  padding: 70px 0;
  background:
    linear-gradient(rgba(10,10,10,0.91), rgba(10,10,10,0.95)),
    url('assets/bg-amiga.jpg') center 60% / cover no-repeat;
}

/* wider lane for the cards: less text wrap, shorter cards, fits 100vh */
#work .section-inner { max-width: 1240px; }

#work .section-title { margin-bottom: 22px; }

#work .chip-row { margin-bottom: 22px; }

.ghost {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(160px, 28vw, 380px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.045);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

/* THPS menu treatment (Shu pick 2026-07-12, work-lab option 1):
   tilted torn panels, stat bars, scores. Replaces the bay38 mosaic. */
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 22px;
}

.work-card {
  position: relative;
  background: #121212;
  padding: 16px 18px 14px;
  clip-path: polygon(2% 3%, 31% 0%, 66% 2%, 98% 0%, 100% 30%, 98% 62%, 100% 96%, 70% 100%, 34% 97%, 3% 100%, 0% 68%, 1% 33%);
  border: 1px solid #2e2e2e;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.work-card:nth-child(8n+1) { transform: rotate(-2.2deg); }
.work-card:nth-child(8n+2) { transform: rotate(1.6deg) translateY(6px); }
.work-card:nth-child(8n+3) { transform: rotate(-1.2deg) translateY(-4px); }
.work-card:nth-child(8n+4) { transform: rotate(2.4deg) translateY(4px); }
.work-card:nth-child(8n+5) { transform: rotate(1.8deg) translateY(-3px); }
.work-card:nth-child(8n+6) { transform: rotate(-1.6deg) translateY(5px); }
.work-card:nth-child(8n+7) { transform: rotate(2.1deg); }
.work-card:nth-child(8n)   { transform: rotate(-2.4deg) translateY(3px); }

.work-card:hover {
  transform: rotate(0deg) scale(1.06);
  z-index: 2;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.card-num {
  font-family: var(--font-marker);
  font-size: 24px;
  color: var(--accent);
  display: inline-block;
  transform: rotate(-4deg);
  line-height: 1;
}

.work-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  margin: 3px 0 7px;
  line-height: 1.25;
}

.work-card p { font-size: 12px; color: #999999; line-height: 1.5; margin-bottom: 10px; }

.work-card.retro h3 { font-family: 'PressStart2P', var(--font-display); font-size: 13px; line-height: 1.45; }

.statrow span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 2px;
  color: #8f8f8f;
  display: block;
  margin: 6px 0 2px;
}

.bar { display: flex; gap: 3px; }

.bar i {
  width: 14px;
  height: 7px;
  background: #2a2a2a;
  transform: skewX(-18deg);
}

.bar i.on { background: var(--grad-gold); }

.work-card:hover .bar i.on { animation: barPulse 0.7s ease-out; }

@keyframes barPulse {
  0% { transform: skewX(-18deg) scaleY(0.2); }
  100% { transform: skewX(-18deg) scaleY(1); }
}

.card-score {
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
}

/* column tiers: never a one-column shopping list above phone widths */
@media (max-width: 1280px) and (min-width: 641px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== BRANDS ===== */
#brands {
  background:
    linear-gradient(rgba(10,10,10,0.93), rgba(10,10,10,0.96)),
    url('assets/bg-crew.jpg') center 35% / cover no-repeat;
}

#brands .chip-row { margin-bottom: 22px; }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.brand-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 106px;
  background: #121212;
  padding: 18px;
  text-decoration: none;
  border: 1px solid #2e2e2e;
  transition: transform 0.15s, border-color 0.15s;
}

.brand-tile.inv img { filter: invert(1); }

.brand-tile:hover {
  transform: translate(-3px, -3px);
  border-color: var(--accent);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 14%, transparent), 3px 3px 0 color-mix(in srgb, var(--accent) 28%, transparent);
}

.brand-tile img { max-width: 78%; max-height: 70px; object-fit: contain; }

.brand-tile.brand-dark { background: #161616; border: 1px solid #2e2e2e; }

/* the dark-variant rule outguns .brand-tile:hover in the cascade; restate it */
.brand-tile.brand-dark:hover { border-color: var(--accent); }

.brand-text span {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff;
  text-align: center;
}

.brand-script span {
  font-family: var(--font-marker);
  font-size: 42px;
  text-transform: none;
  letter-spacing: 0;
}

@media (max-width: 900px) { .brand-grid { grid-template-columns: 1fr; } }

/* ===== OFF THE CLOCK =====
   (restored 2026-07-12: lost as collateral when the old work-card hover themes
   were excised by marker range) */
#offclock {
  /* blacklight arcade (Shu 2026-07-11), greyscale+grain like the other sections */
  background:
    linear-gradient(rgba(10,10,10,0.88), rgba(10,10,10,0.94)),
    url('assets/bg-arcade-bw.jpg') center 40% / cover no-repeat;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.interest-tile {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(3px);
  border: 1px solid #2e2e2e;
  padding: 24px 26px;
  transition: transform 0.15s, border-color 0.15s;
}

.interest-tile:hover { transform: translate(-3px, -3px); border-color: var(--accent); }

.interest-tile h3 {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.interest-tile p { font-size: 13px; color: #999999; line-height: 1.6; }

/* ===== CONTACT ===== */
#contact {
  /* gig posters moved here from Off The Clock (Shu 2026-07-11); album wall retired */
  background:
    linear-gradient(rgba(10,10,10,0.93), rgba(10,10,10,0.96)),
    url('assets/bg-posters.jpg') center 25% / cover no-repeat;
  text-align: center;
}

.contact-stamp {
  width: 120px;
  margin: 44px auto 0;
  display: block;
  opacity: 0.55;
  transform: rotate(-7deg);
}

#contact .section-title .title-accent { transform: rotate(-1deg); }

.contact-text { font-size: 18px; color: var(--muted); margin-bottom: 40px; }

/* ===== CONTACT FORM (Netlify Forms — live once deployed) ===== */
.contact-form {
  max-width: 620px;
  margin: 0 auto 46px;
  text-align: left;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(3px);
  border: 1px solid #2e2e2e;
  padding: 28px;
}

.contact-form .bot-field { position: absolute; left: -9999px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field { display: block; margin-bottom: 18px; }

.form-field span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--black);
  border: 1px solid #2e2e2e;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 14px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: #5a5a5a; }

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--accent) 28%, transparent);
}

.form-send { display: block; width: fit-content; margin: 6px auto 0; cursor: pointer; }

@media (max-width: 900px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 20px; }
}

.contact-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--black);
  background: var(--grad-accent);
  border: 2px solid #ffffff;
  outline: 3px solid var(--black);
  padding: 16px 38px;
  text-decoration: none;
  transition: transform 0.12s, background 0.12s;
}

.contact-btn svg { width: 18px; height: 18px; display: block; }

.contact-btn:hover { background: #ffffff; transform: translate(-2px, -2px); }

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 34px 20px 54px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-anima {
  height: 20px;
  width: auto;
  vertical-align: -5px;
  margin-left: 2px;
}

/* ===== TICKER ===== */
.ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--grad-accent-h);
  overflow: hidden;
  z-index: 9000;
  border-top: 2px solid var(--black);
}

.ticker-track {
  display: inline-flex;
  gap: 34px;
  padding: 9px 0;
  white-space: nowrap;
  animation: ticker-scroll 42s linear infinite;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--tick-text, var(--black));
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== DEV MODE (?dev on the URL) ===== */
/* script.js gives static [data-dev] elements position:relative so labels pin
   to their own top-left corner, and adds the fixed DEV MODE badge. */
body.dev-mode [data-dev] {
  outline: 1px dashed rgba(255, 205, 0, 0.55);
  outline-offset: -1px;
}

body.dev-mode [data-dev]::before {
  content: attr(data-dev);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9998;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  background: var(--accent);
  color: var(--black);
  padding: 2px 7px;
  pointer-events: none;
}

/* section-level tags get a stronger box so the hierarchy reads at a glance */
body.dev-mode section[data-dev],
body.dev-mode header[data-dev],
body.dev-mode footer[data-dev],
body.dev-mode main[data-dev] {
  outline: 2px solid color-mix(in srgb, var(--accent) 80%, transparent);
  outline-offset: -2px;
}

body.dev-mode section[data-dev]::before,
body.dev-mode header[data-dev]::before,
body.dev-mode footer[data-dev]::before {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  z-index: 9999;
}

/* work cards use ::before/::after for their hover themes, which swallows the
   dev label; in dev mode the label takes the pseudo-element over. */
body.dev-mode .work-card::before {
  content: attr(data-dev);
  inset: auto;
  top: 0;
  left: 0;
  right: auto;
  bottom: auto;
  width: auto;
  height: auto;
  background: var(--accent);
  color: var(--black);
  clip-path: none;
  transform: none;
  animation: none !important;
  box-shadow: none;
  border: 0;
  overflow: visible;
  white-space: nowrap;
  opacity: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1px;
  padding: 2px 7px;
}

body.dev-mode .work-card::after { content: none; }

/* leaf elements: box always, label only on hover (permanent labels at this
   density bury each other). imgs can't render ::before — script.js gives
   them a native title tooltip instead. */
body.dev-mode :is(span, p, h3, a:not(.brand-tile))[data-dev]::before {
  opacity: 0;
  transition: opacity 0.1s;
}

body.dev-mode :is(span, p, h3, a:not(.brand-tile))[data-dev]:hover::before {
  opacity: 1;
  z-index: 10001;
}

body.dev-mode [data-dev]:hover {
  outline-color: rgba(255, 255, 255, 0.9);
}

.dev-badge {
  display: none;
  position: fixed;
  right: 14px;
  bottom: 52px;
  z-index: 10000;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  background: var(--grad-accent);
  color: var(--black);
  padding: 6px 12px;
  border: 2px solid var(--black);
}

body.dev-mode .dev-badge { display: block; }

/* ===== REVEAL (script.js) ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== RETRO TOGGLES + SHU FM (footer easter eggs) ===== */
.retro-toggles { margin-top: 16px; display: flex; justify-content: center; gap: 22px; }

.retro-btn {
  background: none;
  border: 0;
  font-family: 'PressStart2P', var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 4px;
}

.retro-btn:hover { color: var(--accent); }

.retro-toggles { align-items: flex-end; }

.retro-btn-img img { height: 64px; width: auto; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); }

/* eyeballed size parity — the artworks have wildly different aspect ratios */
#retro-2600 img { height: 100px; }
#retro-spectrum img { height: 58px; }
#retro-amiga img { height: 68px; }
#retro-win95 img { height: 80px; }

.retro-btn-img:hover img { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 45%, transparent)); }

/* SHU FM easter egg: unexplained pixel boombox at the ticker's end (bottom-left,
   Shu's art). Click opens a small YouTube player above it; click again kills it. */
.shufm {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 9100;
  background: none;
  border: 0;
  padding: 0 6px 2px 4px;
  cursor: pointer;
}
.shufm-box {
  width: 84px;
  height: auto;
  display: block;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}
.shufm:hover .shufm-box,
.shufm.playing .shufm-box { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 55%, transparent)); }

/* bop to the beat while playing (~120bpm house = 0.5s cycle) */
.shufm.playing .shufm-box {
  animation: boomboxBop 0.5s ease-in-out infinite;
  transform-origin: 50% 100%;
}
@keyframes boomboxBop {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-5px) rotate(-2deg) scale(1.03); }
  50%      { transform: translateY(-1px) rotate(0deg); }
  75%      { transform: translateY(-4px) rotate(2deg) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) { .shufm.playing .shufm-box { animation: none; } }

/* ===== MODE: 2600 (Atari) ===== */
body.mode-2600 {
  --accent: #e25822;
  --accent-hi: #ff7f3f;
  --accent-deep: #b23000;
  background: #000000;
  color: #e8d5b5;
}

body.mode-2600 .grunge { display: none; }

body.mode-2600 #landing,
body.mode-2600 #about,
body.mode-2600 #work,
body.mode-2600 #brands,
body.mode-2600 #offclock,
body.mode-2600 #contact { background: #000000; }

body.mode-2600 .work-card,
body.mode-2600 .brand-tile,
body.mode-2600 .interest-tile,
body.mode-2600 .stat,
body.mode-2600 .contact-form {
  background: #000000;
  border: 2px solid var(--accent);
  box-shadow: none;
}

body.mode-2600 .work-grid { background: transparent; }

body.mode-2600 .work-card p,
body.mode-2600 .interest-tile p,
body.mode-2600 .about-text p,
body.mode-2600 .contact-text { color: #e8d5b5; }

body.mode-2600 .hero-portrait,
body.mode-2600 section img:not(.signature),
body.mode-2600 .about-photo img {
  filter: grayscale(1) sepia(1) saturate(2.6) hue-rotate(-16deg) contrast(1.1) brightness(1.3);
}

body.mode-2600 .ghost {
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px rgba(226, 88, 34, 0.16);
}

body.mode-2600::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.22) 0 2px, transparent 2px 4px);
}

body.mode-2600 .section-title,
body.mode-2600 .wordmark .hq {
  font-family: 'PressStart2P', var(--font-display);
  font-size: clamp(26px, 4.2vw, 52px);
  line-height: 1.25;
}

body.mode-2600 .topbar::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 8px;
  background: linear-gradient(180deg, #d7402b 0 25%, #e25822 25% 50%, #f0a12e 50% 75%, #2e6db4 75% 100%);
}

body.mode-2600 .ticker { background: #000000; border-top: 2px solid #33ff33; }
body.mode-2600 .ticker-track { color: #33ff33; font-family: 'PressStart2P', var(--font-mono); font-size: 10px; }
/* ===== MODE: AMIGA (Workbench 1.3) ===== */
body.mode-amiga {
  --accent: #ff8800;
  --accent-hi: #ffaa33;
  --accent-deep: #cc6600;
  background: #0055aa;
  color: #ffffff;
}

body.mode-amiga .grunge { display: none; }

body.mode-amiga #landing,
body.mode-amiga #about,
body.mode-amiga #work,
body.mode-amiga #brands,
body.mode-amiga #offclock,
body.mode-amiga #contact { background: #0055aa; }

body.mode-amiga .section-title { color: #ffffff; }
body.mode-amiga .topbar { background: #0055aa; border-bottom: 2px solid #ffffff; backdrop-filter: none; }
body.mode-amiga .topbar-nav a { color: #ffffff; }

body.mode-amiga .work-card,
body.mode-amiga .brand-tile,
body.mode-amiga .interest-tile,
body.mode-amiga .stat,
body.mode-amiga .contact-form {
  background: #0055aa;
  border: 2px solid #ffffff;
  box-shadow: none;
}

body.mode-amiga .work-grid { background: transparent; }

body.mode-amiga .work-card p,
body.mode-amiga .interest-tile p,
body.mode-amiga .about-text p,
body.mode-amiga .contact-text,
body.mode-amiga .stat-label { color: #dcecff; }

body.mode-amiga .hero-portrait,
body.mode-amiga section img:not(.signature):not(.brand-tile img),
body.mode-amiga .about-photo img {
  filter: grayscale(1) sepia(1) saturate(2.4) hue-rotate(165deg) brightness(0.95);
}

body.mode-amiga .ghost {
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
}

body.mode-amiga .form-field input,
body.mode-amiga .form-field textarea { background: #ffffff; color: #000000; border-color: #003366; }

body.mode-amiga .ticker { background: #ffffff; border-top: 2px solid #0055aa; }
body.mode-amiga .ticker-track { color: #0055aa; }
.guru {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10002;
  background: #000000;
  border: 5px solid #cc0000;
  color: #cc0000;
  font-family: var(--font-mono);
  font-size: 15px;
  text-align: center;
  padding: 18px 12px;
  cursor: pointer;
  animation: guruBlink 1.2s step-end infinite;
}

@keyframes guruBlink { 50% { border-color: transparent; } }

/* ===== MODE: ZX SPECTRUM (yellow/black monochrome, Shu's first machine) ===== */
body.mode-spectrum {
  --accent: #ffdd00;
  --accent-hi: #ffdd00;
  --accent-deep: #ffdd00;
  background: #000000;
}

body.mode-spectrum .grunge { display: none; }

/* tape-loading border stripes around the whole viewport */
body.mode-spectrum::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9996;
  border: 14px solid transparent;
  border-image: repeating-linear-gradient(45deg, #ffdd00 0 10px, #000000 10px 20px) 14;
}

body.mode-spectrum #landing,
body.mode-spectrum #about,
body.mode-spectrum #work,
body.mode-spectrum #brands,
body.mode-spectrum #offclock,
body.mode-spectrum #contact { background: #000000; }

/* everything speaks yellow */
body.mode-spectrum :is(p, h1, h2, h3, a, span, div, button, li, input, textarea, label) {
  color: #ffdd00;
  -webkit-text-fill-color: #ffdd00;
}

/* the ghost watermark must stay an outline, not a solid slab */
body.mode-spectrum .ghost {
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px rgba(255, 221, 0, 0.14);
}

/* except things sitting ON yellow */
body.mode-spectrum .contact-btn,
body.mode-spectrum .ticker-track,
body.mode-spectrum .ticker-track span,
/* photos and logos go mono-yellow duotone */
body.mode-spectrum .hero-portrait,
body.mode-spectrum section img:not(.signature),
body.mode-spectrum .about-photo img {
  filter: grayscale(1) sepia(1) saturate(3.4) hue-rotate(12deg) contrast(1.05);
}

body.mode-spectrum .work-card,
body.mode-spectrum .brand-tile,
body.mode-spectrum .interest-tile,
body.mode-spectrum .stat,
body.mode-spectrum .contact-form {
  background: #000000;
  border: 2px solid #ffdd00;
  box-shadow: none;
}

body.mode-spectrum .work-grid { background: transparent; }

body.mode-spectrum .form-field input,
body.mode-spectrum .form-field textarea { background: #000000; border-color: #ffdd00; }

body.mode-spectrum .contact-btn { background: #ffdd00; border-color: #000000; outline-color: #ffdd00; }

/* ===== MODE: WIN95 (old skool Windows) ===== */
body.mode-win95 {
  --accent: #000080;
  --accent-hi: #1084d0;
  --accent-deep: #000080;
  background: #008080;
  color: #000000;
}

body.mode-win95 .noise,
body.mode-win95 .grunge { display: none; }

body.mode-win95 .topbar {
  background: #c0c0c0;
  border-bottom: 2px solid #808080;
  box-shadow: inset 1px 1px 0 #ffffff;
  backdrop-filter: none;
}

body.mode-win95 .topbar-nav a { color: #000000; }
body.mode-win95 .topbar-nav a:hover { color: #000080; }
body.mode-win95 .topbar-nav .topbar-cta {
  background: #c0c0c0;
  color: #000000;
  border: 2px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
}

body.mode-win95 section,
body.mode-win95 #landing,
body.mode-win95 #about,
body.mode-win95 #work,
body.mode-win95 #brands,
body.mode-win95 #offclock,
body.mode-win95 #contact { background: #008080; }

body.mode-win95 .section-title { color: #ffffff; }
body.mode-win95 .section-title .title-accent {
  font-family: Tahoma, 'MS Sans Serif', var(--font-body);
  font-weight: 700;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: #000080;
  color: #000080;
}

body.mode-win95 .work-card,
body.mode-win95 .brand-tile,
body.mode-win95 .interest-tile,
body.mode-win95 .stat,
body.mode-win95 .contact-form {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  box-shadow: none;
}

body.mode-win95 .work-card { background: #c0c0c0; }
body.mode-win95 .work-card h3 { color: #000080; }
body.mode-win95 .work-card p,
body.mode-win95 .interest-tile p { color: #222222; }
body.mode-win95 .work-grid { background: transparent; }
body.mode-win95 .card-num,
body.mode-win95 .stat-number,
body.mode-win95 .interest-tile h3 {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: #000080;
  color: #000080;
}

body.mode-win95 .chip { color: #000080; border-color: #000080; }

body.mode-win95 .about-text p { color: #073642; }
body.mode-win95 .about-text p.lede,
body.mode-win95 .hero-line,
body.mode-win95 .contact-text { color: #ffffff; }

body.mode-win95 .form-field input,
body.mode-win95 .form-field textarea {
  background: #ffffff;
  color: #000000;
  border: 2px solid;
  border-color: #404040 #ffffff #ffffff #404040;
}

body.mode-win95 .form-field span { color: #000080; }

body.mode-win95 .contact-btn {
  background: #c0c0c0;
  color: #000000;
  border: 2px solid;
  border-color: #ffffff #404040 #404040 #ffffff;
  outline: none;
}

body.mode-win95 .ticker {
  background: #c0c0c0;
  border-top: 2px solid #ffffff;
}

body.mode-win95 .ticker-track { color: #000000; font-family: Tahoma, var(--font-mono); }

body.mode-win95 footer { background: #008080; color: #ffffff; border-top: 0; }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-portrait:hover .layer-sketch { animation: none; transition: opacity 0.2s; }
  .work-card::before, .work-card::after { animation: none !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-content { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { max-width: 240px; }
  .about-stats { flex-direction: row; flex-wrap: wrap; }
  .stat { flex: 1; min-width: 130px; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .interest-grid { grid-template-columns: repeat(2, 1fr); }
  .section-title .title-accent { transform: rotate(-1deg) translateX(12px); }
}

@media (max-width: 640px) {
  .work-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: 1fr; }
  .interest-grid { grid-template-columns: 1fr; }
}
