:root {
  --black: #000;
  --pink: #ff3fa4;
  --red: #e8161d;
  --yellow: #f5c518;
  --serif: "Didot", "Bodoni 72", "Bodoni MT", "Playfair Display", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Courier New", monospace;
  --tv-w: min(100vw - 2.5rem, 34rem);
}

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

html, body { margin: 0; background: var(--black); color: #fff; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--mono);
  -webkit-tap-highlight-color: transparent;
}

.hero {
  display: flex;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top)) 0.75rem 2.75rem;
}

.tv { width: var(--tv-w); }

/* ---------- Glass screen ---------- */
.screen-wrap {
  filter: drop-shadow(0 0 18px rgba(255, 63, 164, 0.35)) drop-shadow(0 0 50px rgba(255, 63, 164, 0.15));
}

.screen {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.02;
  clip-path: url(#screen-clip);
  overflow: hidden;
  background: #050005;
  isolation: isolate;
}

.slides, .slide { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide {
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.35s ease;
  filter: saturate(1.15) contrast(1.05);
}
.slide.is-active { opacity: 1; }

/* convex glass: vignette, scanlines, curved highlight, rim */
.glass {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(120% 120% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.55) 100%),
    radial-gradient(70% 38% at 30% 6%, rgba(255, 255, 255, 0.2), transparent 70%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 28px rgba(0, 0, 0, 0.85),
    inset 0 0 70px rgba(255, 63, 164, 0.18);
}

.static {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.5) 0 2px, rgba(0, 0, 0, 0.6) 2px 4px),
    repeating-linear-gradient(90deg, rgba(255, 63, 164, 0.4) 0 3px, transparent 3px 7px);
}
.screen.is-switching .static { animation: flash 0.35s ease-out; }
@keyframes flash { 0% { opacity: 0.85; } 100% { opacity: 0; } }

.hud {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 7% 8%;
  font-size: clamp(0.7rem, 3.4vw, 1.05rem);
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 0 6px rgba(255, 63, 164, 0.8);
  pointer-events: none;
}
.hud span { display: block; }
.hud-right { text-align: right; }

/* ---------- Controls, loose on the black page ---------- */
.deck { margin-top: 1.4rem; }

/* chrome lettering on the black page: bright top, dark horizon line, bright lower band */
.nameplate {
  width: 100%;
  padding: 0.35rem 0;
  text-align: center;
  font-size: clamp(1rem, 5.6vw, 1.7rem);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  background: linear-gradient(180deg,
    #ffffff 0%, #d4d5dc 22%, #8a8b95 44%, #2a2a30 50%, #a4a5af 56%, #f4f4f8 78%, #9a9ba5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.9)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.22));
}
.nameplate span { font-weight: 700; }

.controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4%;
  margin-top: 1.1rem;
}

/* AV jacks */
.jacks { display: flex; gap: 0.7rem; }
.jack { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; min-width: 2.7rem; }
.jack span { font-size: 0.5rem; letter-spacing: 0.04em; color: #bdbdc4; }

.ring {
  --c: #fff;
  display: block;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #000 0 26%, #2a2a2a 28% 40%, transparent 42%),
    radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 45%, #000));
  box-shadow:
    0 0 0 2px #1a1a1a,
    0 0 0 3px rgba(255, 255, 255, 0.22),
    0 3px 6px rgba(0, 0, 0, 0.8),
    inset 0 -2px 3px rgba(0, 0, 0, 0.5);
}
.ring.red { --c: var(--red); }
.ring.yellow { --c: var(--yellow); }
.ring.white { --c: #f2f2f2; }

/* speaker grille */
.speaker {
  height: 3.4rem;
  min-width: 2rem;
  border-radius: 0.5rem;
  background:
    radial-gradient(circle, #000 0 1.2px, transparent 1.6px) 0 0 / 7px 7px,
    #1b1b1e;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.07);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

/* channel buttons */
.channel { display: flex; align-items: center; gap: 0.5rem; }
.ch-label { font-size: 0.55rem; letter-spacing: 0.1em; color: #bdbdc4; }

.knob {
  appearance: none;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  font: 700 1.2rem/1 var(--mono);
  color: #d8d8de;
  cursor: pointer;
  background: radial-gradient(circle at 35% 28%, #4a4a50, #17171a 62%, #050506);
  box-shadow:
    0 0 0 2px #0b0b0c,
    0 0 0 3px rgba(255, 255, 255, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.85),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.knob:active {
  transform: translateY(1px) scale(0.96);
  box-shadow:
    0 0 0 2px #0b0b0c,
    0 0 0 3px rgba(255, 63, 164, 0.6),
    inset 0 2px 4px rgba(0, 0, 0, 0.8);
}
.knob:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }

/* narrow phones: let the speaker shrink, tighten the row */
@media (max-width: 24rem) {
  .jacks { gap: 0.45rem; }
  .ring { width: 1.8rem; height: 1.8rem; }
  .knob { width: 2.3rem; height: 2.3rem; }
}

/* larger screens: keep it phone-sized and centred, give it room */
@media (min-width: 48rem) {
  .hero { padding-top: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
  .screen.is-switching .static { animation: none; }
}

/* ---------- Intro + remote keypad ---------- */
.intro {
  --kgap: 1.9rem;
  /* keys fill the page width: 3 keys + 2 gaps + the 7px glow ring on each side = the content width */
  --kw: min(11rem, calc((var(--tv-w) - 14px - 2 * var(--kgap)) / 3));
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 2rem;
  width: var(--tv-w);
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.intro-copy { width: 100%; }

.intro-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 6.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--pink);
  text-shadow: 0 0 12px rgba(255, 63, 164, 0.55);
}
.intro-copy p {
  margin: 0;
  font-size: clamp(0.8rem, 3.3vw, 1rem);
  line-height: 1.7;
  color: #d9d9de;
}

.remote { padding-inline: 7px; display: flex; flex-direction: column; gap: 3rem; width: max-content; }

.remote-top {
  display: grid;
  grid-template-columns: repeat(3, var(--kw));
  gap: 0 var(--kgap);
  justify-items: center;
  align-items: end;
}
.remote-top .key-wrap:first-child { grid-column: 1; }
.remote-top .key-wrap-projects { grid-column: 3; }

.key-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
/* top-row labels hang off the buttons so the button bottoms line up */
.remote-top .key-wrap { position: relative; gap: 0; }
.remote-top .key-wrap .key-label { position: absolute; left: 50%; transform: translateX(-50%); }
.remote-top .key-wrap:first-child .key-label { top: calc(100% + 0.9rem); }
.remote-top .key-wrap-projects .key-label { bottom: calc(100% + 0.9rem); }
.remote-top .key-wrap-projects { align-items: center; }

.key-label { font-size: clamp(0.72rem, 3.3vw, 0.9rem); letter-spacing: 0.08em; color: #fff; white-space: nowrap; }

.keypad {
  display: grid;
  grid-template-columns: repeat(3, var(--kw));
  gap: var(--kgap);
  justify-items: center;
  align-items: start;
}

.key {
  appearance: none;
  position: relative;
  display: grid;
  place-items: center;
  width: var(--kw);
  height: calc(var(--kw) * 0.46);
  padding: 0;
  border: 0;
  border-radius: 999px;
  font: 700 calc(var(--kw) * 0.27) / 1 var(--mono);
  color: #1a1a1d;
  cursor: pointer;
  background: linear-gradient(180deg, #f0e2e7 0%, #cdb9c0 55%, #a89099 100%);
  box-shadow:
    0 0 0 2px #14040d,
    0 0 0 4px #e0307f,
    0 0 0 5px #14040d,
    0 0 0 7px #ff5fb0,
    0 0 14px rgba(255, 63, 164, 0.55),
    0 4px 6px rgba(0, 0, 0, 0.8),
    inset 0 -3px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.08s ease, filter 0.08s ease;
}
.key:active { transform: translateY(2px) scale(0.97); filter: brightness(0.85); }
.key:focus-visible { outline: 2px solid #fff; outline-offset: 8px; }

/* power: smaller round button, brushed pink centre in a silver ring */
.key-power {
  width: calc(var(--kw) * 0.6);
  height: calc(var(--kw) * 0.6);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 46%, #d8d8de 47% 58%, #14040d 59% 62%, transparent 63%),
    conic-gradient(from 20deg, #ff8fc9, #c0156f, #ff8fc9, #c0156f, #ff8fc9);
  box-shadow:
    0 0 0 2px #14040d,
    0 0 0 4px #e0307f,
    0 0 0 5px #14040d,
    0 0 0 7px #ff5fb0,
    0 0 16px rgba(255, 63, 164, 0.6),
    0 4px 6px rgba(0, 0, 0, 0.8);
}

.key-pill { height: calc(var(--kw) * 0.35); background: linear-gradient(180deg, #e6dade, #a89099); }

@media (min-width: 48rem) {
  .intro { padding-bottom: 5rem; }
}

/* ---------- Desktop: full-width, horizontal screen ---------- */
@media (min-width: 48rem) {
  .hero { padding-inline: 1.5rem; }

  /* as wide as the window (capped on very large monitors) */
  .tv { width: min(100vw - 5rem, 90rem); min-width: 30rem; }

  .screen { aspect-ratio: 3 / 2; clip-path: url(#screen-clip-wide); }

  .hud { padding: 5% 5.5%; font-size: clamp(0.9rem, 1.7vw, 1.6rem); }

  .intro { --kw: 4.3rem; --kgap: 1.9rem; grid-template-columns: 1fr auto; justify-items: stretch; align-items: center; width: min(100vw - 5rem, 60rem); padding-bottom: 5rem; gap: 3rem; }
  .intro-copy { width: auto; }
  .intro-copy h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
  .intro-copy p { font-size: 1.05rem; max-width: 34rem; }
  .remote { justify-self: end; }
}

/* ---------- Remote-controlled text panel ---------- */
/* all views share one grid cell, so the panel is always as tall as the longest one */
.views { display: grid; }
.view {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.view.is-active { visibility: visible; opacity: 1; }

.view-tag {
  margin: 0 0 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e6e6ea;
}

.cats { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.9rem; }
.cats li { font-size: clamp(0.8rem, 3.3vw, 1rem); line-height: 1.55; color: #d9d9de; }
.cats b {
  display: block;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
}
.intro-copy .hint { color: var(--pink); }

/* the key that is currently showing on the panel */
.key.is-on { filter: drop-shadow(0 0 7px var(--pink)) brightness(1.1); }

/* ---------- Inquiry page ---------- */
a.key { text-decoration: none; }

.page-inquire { padding: max(1rem, env(safe-area-inset-top)) 1.25rem 3rem; }

.inquire {
  width: min(100%, 34rem);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 1.75rem;
  color: #fff;
  background: #0a0a0a;
  border: 1px solid var(--pink);
  border-radius: 1.25rem;
  box-shadow: 0 0 30px rgba(255, 63, 164, 0.4);
  font-family: var(--mono);
}
.inquire h1 {
  margin: 1rem 0 0.5rem;
  font-size: clamp(1.4rem, 6vw, 1.9rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--pink);
  text-shadow: 0 0 12px rgba(255, 63, 164, 0.55);
}
.inquire-intro { margin: 0 0 1.5rem; color: #d9d9de; font-size: 0.9rem; line-height: 1.6; }

.back {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e6e6ea;
  text-decoration: none;
}
.back:hover { color: var(--pink); }
.back:focus-visible, .btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.inquire label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e6e6ea;
}
.inquire input, .inquire select, .inquire textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.7rem 0.8rem;
  font: 1rem var(--mono); /* 16px keeps iOS from zooming on focus */
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  background: #151515;
  border: 1px solid #444;
  border-radius: 0.6rem;
}
.inquire textarea { resize: vertical; }
.inquire input:focus, .inquire select:focus, .inquire textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 2px rgba(255, 63, 164, 0.35);
}

.btn {
  display: block;
  width: 100%;
  padding: 0.9rem 1rem;
  font: 700 0.95rem var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, #ff6fbd, #c0156f);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(255, 63, 164, 0.5);
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.form-status { min-height: 1.2em; margin: 0.9rem 0 0; font-size: 0.8rem; line-height: 1.5; color: var(--pink); }

/* ---------- Now serving ---------- */
.serif {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
}

.serving, .cta, .site-footer { width: var(--tv-w); margin-inline: auto; }
.serving { padding: 0 0 2.5rem; }

.serving-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(255, 63, 164, 0.55);
  border-bottom: 1px solid rgba(255, 63, 164, 0.55);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.serving-head h2 { margin: 0; font: inherit; color: #fff; }
.spark { margin-right: 0.5rem; color: var(--pink); }
.serving-ch { color: var(--pink); }

.channel-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "tag" "title" "text" "thumb" "spec";
  align-items: start;
  padding-top: 1.1rem;
}
.channel-card + .channel-card { margin-top: 1.5rem; }

.ch-tag { grid-area: tag; margin: 0 0 0.2rem; font-size: 0.8rem; letter-spacing: 0.1em; color: #fff; }
.channel-card h3 { grid-area: title; margin: 0 0 0.6rem; font-size: clamp(1.7rem, 8.5vw, 2.4rem); line-height: 1.05; color: #fff; }

.card-body { display: contents; }
.card-text { grid-area: text; }
.card-text p { margin: 0; font-size: clamp(0.72rem, 3vw, 0.9rem); line-height: 1.55; color: #d9d9de; }
.thumb { grid-area: thumb; margin-top: 1rem; }

.thumb { position: relative; border-radius: 0.7rem; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 63, 164, 0.5), 0 0 16px rgba(255, 63, 164, 0.3); }
.thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
/* decorative for now; becomes a real play button when a video is added */
.play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 2.4rem;
  height: 2.4rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(2px);
}
.play::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.45rem 0 0.45rem 0.75rem;
  border-color: transparent transparent transparent #fff;
}

/* TV-guide grid: time-slot header, channel labels on the left, a cell per slot */
.spec {
  grid-area: spec;
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid rgba(255, 63, 164, 0.7);
  font-size: clamp(0.62rem, 2.6vw, 0.8rem);
  line-height: 1.35;
}
.spec th, .spec td {
  padding: 0.5rem 0.45rem;
  text-align: left;
  vertical-align: top;
  font-weight: 400;
  border: 1px solid rgba(255, 63, 164, 0.55);
}
.spec thead th {
  padding-block: 0.45rem;
  color: #fff;
  letter-spacing: 0.08em;
  background: rgba(255, 63, 164, 0.18);
  border-bottom-width: 2px;
}
.spec thead th:first-child { color: var(--pink); }
.spec tbody th {
  width: 26%;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 63, 164, 0.08);
}
.spec td { color: #e6e6ea; }
.spec td.span { position: relative; padding-left: 1.2rem; color: #fff; background: rgba(255, 63, 164, 0.1); }
.spec td.span::before { content: "\25C2"; position: absolute; left: 0.4rem; color: var(--pink); }

/* ---------- CTA ---------- */
.cta {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem 1.25rem;
  border: 1px solid rgba(255, 126, 196, 0.8);
  border-radius: 1.1rem;
  background:
    radial-gradient(120% 140% at 85% 20%, rgba(255, 150, 210, 0.55), transparent 60%),
    linear-gradient(135deg, #8a1a5e, #d6268f 55%, #a01a6c);
  box-shadow: 0 0 28px rgba(255, 63, 164, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.cta-tag { margin: 0 0 0.6rem; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.cta h2 { margin: 0 0 0.6rem; font-size: clamp(1.9rem, 9vw, 2.6rem); line-height: 1.05; }
.cta-copy p:last-child { margin: 0; font-size: 0.85rem; line-height: 1.6; color: #fde9f4; }
.cta-btn {
  align-self: stretch;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.8rem;
}
.cta-btn:hover { background: #151515; }
.cta-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  padding: 1.75rem 0 2.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-name { color: var(--pink); }
.footer-copy { color: var(--pink); }
.socials { display: flex; gap: 1rem; }
.socials a { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; color: #fff; }
.socials a:hover { color: var(--pink); }
.socials a:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.socials svg { width: 100%; height: 100%; }

@media (min-width: 48rem) {
  .serving, .cta, .site-footer { width: min(100vw - 5rem, 60rem); }

  .serving-head { font-size: 1rem; }
  /* TV-guide card: title, text and video side by side, grid underneath */
  .channel-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    grid-template-areas: "tag thumb" "title thumb" "text thumb" "spec spec";
    grid-template-rows: auto auto 1fr auto;
    column-gap: 2.5rem;
    padding-top: 1.75rem;
  }
  .channel-card h3 { margin-bottom: 0.9rem; }
  .card-text p { font-size: 0.95rem; }
  .thumb { align-self: stretch; margin-top: 0; min-height: 18rem; }
  .thumb img { height: 100%; aspect-ratio: auto; }
  .play { width: 4rem; height: 4rem; }
  .play::after { border-width: 0.7rem 0 0.7rem 1.15rem; }
  .spec { margin-top: 1.5rem; }
  .spec th, .spec td { font-size: 0.85rem; padding: 0.7rem 0.9rem; }

  .cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 2.5rem 3rem; }
  .cta-btn { align-self: center; min-width: 17rem; }
  .cta h2 { font-size: clamp(2.4rem, 4.5vw, 3.4rem); }
  .cta-copy p:last-child { font-size: 1rem; }
}

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* bottom edge of the TV: a full-width white bar, edge to edge */
.tv-base {
  width: 100%;
  height: 5px;
  background: linear-gradient(180deg, #44444a 0%, #2a2a2e 50%, #17171a 100%);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.08);
}

@media (min-width: 48rem) {
  .nameplate { padding: 0.5rem 0; font-size: clamp(1.6rem, 3vw, 2.9rem); }
}

/* ---------- Project thumbnail + modal ---------- */
.project-thumb {
  width: min(100%, 15rem);
  margin: 0.8rem 0 1rem;
  border-radius: 0.7rem;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 63, 164, 0.5), 0 0 16px rgba(255, 63, 164, 0.3);
}
.project-thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.view-more {
  margin-top: 1rem;
  padding: 0.7rem 1.4rem;
  font: 0.8rem var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: transparent;
  border: 1px solid var(--pink);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(255, 63, 164, 0.35);
  cursor: pointer;
}
.view-more:hover { background: rgba(255, 63, 164, 0.18); }
.view-more:focus-visible, .modal-close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.project-modal {
  width: min(92vw, 44rem);
  max-height: 90vh;
  max-height: 90dvh;
  padding: 1.5rem 1.25rem 2rem;
  overflow: auto;
  color: #fff;
  background: #0a0a0a;
  border: 1px solid var(--pink);
  border-radius: 1.25rem;
  box-shadow: 0 0 30px rgba(255, 63, 164, 0.4);
  font-family: var(--mono);
}
.project-modal::backdrop { background: rgba(0, 0, 0, 0.85); }
body:has(dialog[open]) { overflow: hidden; }

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 2.2rem;
  height: 2.2rem;
  margin: -0.3rem -0.2rem 0 0.5rem;
  border: 0;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: #fff;
  background: #1a1a1d;
  cursor: pointer;
}
.project-modal h2 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: #fff;
}
.project-modal p { margin: 0 0 1rem; font-size: 0.9rem; line-height: 1.7; color: #d9d9de; }
.project-modal .view-tag { color: var(--pink); }
.modal-img { display: block; width: 100%; margin: 0 0 1.25rem; border-radius: 0.7rem; box-shadow: 0 0 0 1px rgba(255, 63, 164, 0.5); }
.modal-facts { margin: 0 0 1.25rem; border: 1px solid rgba(255, 63, 164, 0.55); }
.modal-facts > div { display: grid; grid-template-columns: 42% 1fr; }
.modal-facts > div + div { border-top: 1px solid rgba(255, 63, 164, 0.55); }
.modal-facts dt, .modal-facts dd { margin: 0; padding: 0.6rem 0.75rem; font-size: 0.8rem; line-height: 1.4; }
.modal-facts dt { color: var(--pink); text-transform: uppercase; letter-spacing: 0.06em; border-right: 1px solid rgba(255, 63, 164, 0.55); }
.modal-facts dd { color: #e6e6ea; }

@media (min-width: 48rem) {
  .project-thumb { width: min(100%, 18rem); }
}
