/* Codena · retro-futurizam 70-ih */
:root {
  --espresso: #24140f;
  --espresso-2: #2f1b14;
  --cocoa: #6b3a22;
  --gold: #f2a922;
  --tangerine: #ec6a1f;
  --paprika: #c8371f;
  --almond: #f6e7cc;
  --almond-2: #d9c3a0;
  --ink: #24140f;

  --f-word: "Monoton", "Righteous", sans-serif;
  --f-display: "Righteous", "Arial Rounded MT Bold", sans-serif;
  --f-body: "Rubik", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scrollbar-color: var(--tangerine) var(--espresso); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; overflow-x: clip;
  background: var(--espresso);
  color: var(--almond);
  font-family: var(--f-body);
  font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold); color: var(--ink); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--espresso); }
::-webkit-scrollbar-thumb { background: var(--tangerine); border-radius: 6px; border: 3px solid var(--espresso); }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 10px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 400; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 10; background: var(--gold); color: var(--ink); padding: .6rem 1rem; border-radius: 999px; }
.skip:focus { top: 12px; }

/* ---------- pills ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-display); font-size: 1.2rem; letter-spacing: .02em;
  text-decoration: none; padding: 13px 28px 12px; border-radius: 999px;
  transition: transform 250ms var(--ease-out), background-color 250ms, color 250ms, box-shadow 250ms;
}
.pill:hover { transform: translateY(-2px); }
.pill:active { transform: translateY(0); }
.pill-gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 22px -12px rgba(242, 169, 34, .7); }
.pill-gold:hover { background: #ffbd3a; }
.pill-line { color: var(--almond); box-shadow: inset 0 0 0 2px var(--almond); }
.pill-line:hover { background: var(--almond); color: var(--ink); }
.pill-dark { background: var(--espresso); color: var(--almond); }
.pill-dark:hover { background: #000; }
.pill-line-dark { color: var(--ink); box-shadow: inset 0 0 0 2.5px var(--ink); }
.pill-line-dark:hover { background: var(--ink); color: var(--tangerine); }
.pill-big { font-size: clamp(1.25rem, 3vw, 2rem); padding: 16px 34px 15px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: clamp(12px, 3vw, 36px);
  padding: 12px var(--gutter);
  background: var(--espresso);
  box-shadow: 0 1px 0 rgba(246, 231, 204, .12);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-dot { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); }
.brand-name { font-family: var(--f-display); font-size: 1.6rem; color: var(--almond); }
.nav { display: flex; gap: clamp(14px, 2.2vw, 30px); }
.nav a { font-family: var(--f-display); font-size: 1.1rem; text-decoration: none; color: var(--almond); position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--tangerine); transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease-out); }
.nav a:hover::after { transform: scaleX(1); }
.lang { display: inline-flex; padding: 3px; border: 0; border-radius: 999px; cursor: pointer; background: var(--espresso-2); box-shadow: inset 0 0 0 2px var(--cocoa); font-family: var(--f-display); font-size: 1rem; color: var(--almond-2); }
.lang span { padding: 4px 11px; border-radius: 999px; transition: background-color 250ms, color 250ms; }
.lang .lang-on { background: var(--tangerine); color: var(--ink); }
.lang:hover .lang-off { color: var(--almond); }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  max-width: none; margin: 0 auto;
  padding: clamp(40px, 7vh, 88px) var(--gutter) clamp(170px, 22vh, 230px);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 4vw, 72px); align-items: center;
  min-height: min(calc(100svh - 66px), 900px);
}
.hero > * { position: relative; z-index: 1; }
.hero .stripes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.stripes-m { display: none; }
.hero-copy { max-width: 680px; justify-self: end; width: 100%; }
.wordmark {
  font-family: var(--f-word); color: var(--gold);
  font-size: clamp(3.4rem, 8.4vw, 6rem); line-height: 1; letter-spacing: .02em;
  margin: 0 0 18px;
}
.hero h1 { font-family: var(--f-display); font-size: clamp(1.9rem, 3.6vw, 3.25rem); line-height: 1.08; color: var(--almond); }
.lead { margin-top: 20px; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--almond-2); max-width: 52ch; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- TV ---------- */
.tv { margin: 0; position: relative; justify-self: start; width: min(100%, 560px); }
.tv-body {
  position: relative; display: grid; grid-template-columns: 1fr 74px; gap: 18px;
  background: var(--tangerine); border-radius: 38px; padding: 22px;
  box-shadow: 0 36px 60px -30px rgba(0, 0, 0, .75);
}
.screen {
  position: relative; overflow: hidden; background: #0d0705;
  border-radius: 22px; padding: 10px; box-shadow: 0 0 0 6px var(--ink);
}
.screen img { width: 100%; height: auto; aspect-ratio: 8 / 5; border-radius: 10px; }
.screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  inset: 10px; border-radius: 10px; background: repeating-linear-gradient(180deg, transparent 0 2px, rgba(0, 0, 0, .06) 2px 3px);
}
.screen.tuning img { animation: crt-off 220ms cubic-bezier(.5, 0, .75, 0) forwards; }
.screen.tuned img { animation: crt-on 480ms var(--ease-out); }
@keyframes crt-off { to { clip-path: inset(49.5% 0 49.5% 0); filter: brightness(3) saturate(0); } }
@keyframes crt-on { from { clip-path: inset(49.5% 6% 49.5% 6%); filter: brightness(3) saturate(0); } to { clip-path: inset(0 0 0 0); filter: none; } }
.osd { position: absolute; bottom: 20px; right: 20px; z-index: 2; font-family: var(--f-display); font-size: 1.1rem; line-height: 1; color: #b9f55a; background: rgba(13, 7, 5, .72); padding: 5px 9px 4px; border-radius: 6px; }
.tv-side { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 6px; }
.knob { width: 54px; height: 54px; border-radius: 50%; background: var(--ink); position: relative; }
.knob::after { content: ""; position: absolute; left: 50%; top: 7px; width: 5px; height: 18px; margin-left: -2.5px; border-radius: 3px; background: var(--gold); transform-origin: 50% 20px; transform: rotate(-35deg); }
.knob-b::after { transform: rotate(50deg); background: var(--almond); }
.grille { flex: 1; width: 54px; min-height: 60px; border-radius: 10px; background: repeating-linear-gradient(180deg, var(--ink) 0 4px, transparent 4px 9px); }
.antenna { position: absolute; left: 50%; top: -58px; width: 120px; height: 60px; transform: translateX(-50%); }
.antenna::before, .antenna::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 4px; height: 70px; border-radius: 2px; background: var(--almond-2); transform-origin: bottom center; }
.antenna::before { transform: rotate(-32deg); }
.antenna::after { transform: rotate(28deg); }
.legs { display: block; position: relative; height: 26px; margin: 0 18%; }
.legs::before, .legs::after { content: ""; position: absolute; top: 0; width: 14px; height: 26px; background: var(--ink); border-radius: 0 0 6px 6px; }
.legs::before { left: 0; transform: skewX(14deg); }
.legs::after { right: 0; transform: skewX(-14deg); }
.tv-caption { display: flex; flex-direction: column; margin-top: 10px; padding-right: 192px; min-height: 3.4em; }
.tv-name { font-family: var(--f-display); font-size: 1.6rem; color: var(--almond); line-height: 1.1; }
.tv-sub { color: var(--almond-2); font-size: .95rem; }
.tuner { position: absolute; right: 0; bottom: 6px; display: flex; gap: 10px; }
.tune { width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; background: var(--gold); color: var(--ink); display: grid; place-items: center; transition: transform 200ms var(--ease-out), background-color 200ms; }
.tune:hover { background: #ffbd3a; transform: translateY(-2px); }
.tune:active { transform: scale(.94); }
.tune svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vh, 140px) var(--gutter) 0; scroll-margin-top: 50px; }
.section h2 { font-family: var(--f-display); font-size: clamp(2.4rem, 5vw, 4.25rem); line-height: 1; color: var(--gold); }
.section-intro { margin-top: 18px; color: var(--almond-2); max-width: 56ch; font-size: 1.125rem; }

/* program blocks */
.block { margin-top: clamp(56px, 8vw, 96px); }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; padding-bottom: 16px; margin-bottom: 30px; position: relative; }
.block-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: linear-gradient(180deg, var(--gold) 0 25%, var(--tangerine) 25% 50%, var(--paprika) 50% 75%, var(--cocoa) 75%); border-radius: 2px; }
.block-title { font-family: var(--f-display); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; color: var(--almond); }
.block-meta { color: var(--almond-2); font-size: 1rem; }

.block-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(26px, 3vw, 44px) clamp(20px, 2.4vw, 36px); align-items: start; }
.block-grid > .shot-lead { grid-column: span 7; }
.block-grid:not(.block-grid-4) > .shot-lead { grid-row: span 2; position: sticky; top: 96px; }
.block-grid > .block-text { grid-column: span 5; }
.block-grid > .shot:not(.shot-lead) { grid-column: span 5; }
.block-grid > .shot:not(.shot-lead):last-child { grid-column: 8 / span 5; }
.block-grid-4 > .shot-lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(20px, 3vw, 44px); align-items: end; }
.block-grid-4 > .shot-lead figcaption { margin-top: 0; padding-bottom: 8px; }
.block-grid-4 > .shot:not(.shot-lead), .block-grid-4 > .shot:not(.shot-lead):last-child { grid-column: span 4; }

.shot { margin: 0; }
.crt {
  position: relative; overflow: hidden; background: #0d0705;
  border-radius: 20px; padding: 10px; box-shadow: 0 0 0 6px var(--cocoa), 0 26px 40px -24px rgba(0,0,0,.8);
}
.crt img { width: 100%; height: auto; aspect-ratio: 8 / 5; border-radius: 9px; }

.shot-lead .crt { box-shadow: 0 0 0 7px var(--tangerine), 0 30px 50px -26px rgba(0,0,0,.8); }
.shot figcaption { margin-top: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--almond-2); font-size: 1rem; max-width: 60ch; }
.shot-name { font-family: var(--f-display); font-size: 1.5rem; color: var(--almond); line-height: 1.1; }
.shot-lead .shot-name { font-size: 1.9rem; color: var(--gold); }

.block-text { display: flex; flex-direction: column; gap: 22px; padding-top: 4px; }
.block-text > p { font-size: 1.15rem; color: var(--almond); }
.deliver { display: grid; gap: 14px; }
.deliver li { display: grid; gap: 2px; padding-left: 22px; position: relative; color: var(--almond-2); font-size: .98rem; }
.deliver li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: var(--tangerine); }
.deliver b { font-family: var(--f-display); font-weight: 400; font-size: 1.15rem; color: var(--almond); }
.ext { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-display); font-size: 1.2rem; color: var(--gold); text-decoration: none; }
.ext:hover { text-decoration: underline; }
.ext svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* guide */
.guide { margin-top: clamp(64px, 9vw, 110px); max-width: 920px; }
.guide-title { font-family: var(--f-display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--tangerine); margin-bottom: 18px; }
.guide-table { width: 100%; border-collapse: collapse; }
.guide-table tr { border-top: 1px solid rgba(246, 231, 204, .16); }
.guide-table tr:last-child { border-bottom: 1px solid rgba(246, 231, 204, .16); }
.guide-table th, .guide-table td { text-align: left; padding: 12px 12px 12px 0; vertical-align: baseline; }
.guide-table th { font-family: var(--f-display); font-weight: 400; font-size: 1.2rem; color: var(--almond); white-space: nowrap; }
.guide-table td { color: var(--almond-2); }
.guide-table td:last-child { padding-right: 0; }

/* partners */
.partners { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.partner { border-radius: 30px; padding: clamp(26px, 3vw, 40px); background: var(--cocoa); }
.partner:nth-child(2) { background: #a82b17; }
.partner-name { font-family: var(--f-word); font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1; color: var(--gold); margin-bottom: 18px; }
.partner:nth-child(2) .partner-name { color: var(--almond); }
.partner p:not(.partner-name) { font-size: 1.1rem; color: var(--almond); max-width: 46ch; }

/* services */
.services { margin-top: 40px; display: grid; gap: 0; }
.svc { display: grid; grid-template-columns: 90px minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: center; padding: 24px 0; border-top: 1px solid rgba(246, 231, 204, .16); }
.svc:last-child { border-bottom: 1px solid rgba(246, 231, 204, .16); }
.svc-band { height: 34px; border-radius: 999px; background: var(--gold); }
.svc:nth-child(2) .svc-band { background: var(--tangerine); }
.svc:nth-child(3) .svc-band { background: var(--paprika); }
.svc:nth-child(4) .svc-band { background: var(--cocoa); }
.svc:nth-child(5) .svc-band { background: linear-gradient(90deg, var(--gold) 0 50%, var(--tangerine) 50%); }
.svc:nth-child(6) .svc-band { background: linear-gradient(90deg, var(--paprika) 0 50%, var(--cocoa) 50%); }
.svc:nth-child(7) .svc-band { background: linear-gradient(90deg, var(--gold) 0 25%, var(--tangerine) 25% 50%, var(--paprika) 50% 75%, var(--cocoa) 75%); }
.svc h3 { font-family: var(--f-display); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; color: var(--almond); }
.svc p { color: var(--almond-2); }

/* contact */
.contact { margin-top: clamp(96px, 14vh, 160px); background: var(--tangerine); color: var(--ink); border-radius: clamp(40px, 7vw, 96px) clamp(40px, 7vw, 96px) 0 0; scroll-margin-top: 50px; }
.contact-inner { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 10vw, 120px) var(--gutter) clamp(64px, 9vw, 110px); }
.contact h2 { font-family: var(--f-word); font-size: clamp(2.6rem, 7.6vw, 6rem); line-height: 1.02; color: var(--ink); }
.contact-intro { margin-top: 20px; font-size: 1.2rem; max-width: 52ch; color: #3b1d10; }
.contact-row { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px; }
.elsewhere { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.elsewhere a { font-family: var(--f-display); font-size: 1.2rem; color: var(--ink); }

/* footer */
.foot { background: var(--espresso); }
.testcard { display: grid; grid-template-columns: repeat(7, 1fr); height: 22px; }
.testcard span:nth-child(1) { background: var(--almond); }
.testcard span:nth-child(2) { background: var(--gold); }
.testcard span:nth-child(3) { background: #7fb8a4; }
.testcard span:nth-child(4) { background: #8aa63a; }
.testcard span:nth-child(5) { background: #b3478a; }
.testcard span:nth-child(6) { background: var(--paprika); }
.testcard span:nth-child(7) { background: #2f4f9a; }
.foot-row { max-width: var(--max); margin: 0 auto; padding: 22px var(--gutter) 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .92rem; color: var(--almond-2); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .block-grid:not(.block-grid-4) > .shot-lead { position: static; grid-row: auto; }
  .block-grid > .shot-lead, .block-grid > .block-text { grid-column: 1 / -1; }
  .block-grid > .shot:not(.shot-lead), .block-grid > .shot:not(.shot-lead):last-child { grid-column: span 6; }
  .block-grid-4 > .shot-lead { grid-template-columns: 1fr; }
  .block-grid-4 > .shot-lead figcaption { margin-top: 20px; }
  .block-grid-4 > .shot:not(.shot-lead) { grid-column: span 6; }
  .block-grid-4 > .shot:not(.shot-lead):last-child { grid-column: 4 / span 6; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 32px; padding-bottom: 150px; }
  .hero .stripes { display: none; }
  .tv { isolation: isolate; }
  .tv .stripes-m { display: block; position: absolute; z-index: -1; right: calc(-1 * var(--gutter)); bottom: 92px; width: calc(100% + 2 * var(--gutter)); height: 300px; }
  .tv .legs { height: 120px; }
  .hero-copy { display: contents; }
  .wordmark { order: 1; } .hero h1 { order: 2; } .tv { order: 3; } .lead { order: 4; margin-top: 0; } .actions { order: 5; margin-top: 0; }
  .hero { gap: 22px; padding-bottom: 72px; }
  .hero-copy { justify-self: start; }
  .tv { justify-self: center; margin: 54px 0 14px; }
  .partners { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 60px 1fr; }
  .svc-body { grid-column: 2; }
}
@media (max-width: 640px) {
  .nav { order: 3; width: 100%; gap: 18px; }
  .top { flex-wrap: wrap; row-gap: 6px; padding-block: 10px; }
  .block-grid > .shot:not(.shot-lead), .block-grid > .shot:not(.shot-lead):last-child,
  .block-grid-4 > .shot:not(.shot-lead):last-child { grid-column: 1 / -1; }
  .tv-body { grid-template-columns: 1fr; padding: 14px; border-radius: 28px; }
  .tv-side { flex-direction: row; justify-content: flex-end; padding: 0 6px; }
  .knob { width: 34px; height: 34px; }
  .knob::after { top: 4px; height: 11px; width: 4px; margin-left: -2px; transform-origin: 50% 13px; }
  .grille { flex: 0 0 70px; min-height: 0; height: 34px; background: repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 9px); }
  .tv-caption { padding-right: 168px; }
  .tune { width: 46px; height: 46px; }
  .guide-table td:nth-child(2) { display: none; }
  .guide-table th { white-space: nowrap; }
  .svc { grid-template-columns: 1fr; gap: 10px; }
  .svc-band { width: 70px; height: 20px; }
  .svc-body { grid-column: auto; }
}

/* channel badges + watch buttons */
.guide-table td:nth-child(3) { text-align: right; color: var(--gold); font-family: var(--f-display); white-space: nowrap; }

.tune-play .i-play { display: none; }
.tune-play.is-paused .i-play { display: block; }
.tune-play.is-paused .i-pause { display: none; }
.tune-play svg path { stroke-width: 3; }
.tune-play .i-play path { fill: currentColor; }

/* richer services */
.svc { align-items: start; }
.svc-band { margin-top: 6px; }
.svc-body { display: grid; gap: 10px; }
.svc-body p:first-child { color: var(--almond); }
.svc-tags { font-size: .92rem; color: var(--gold) !important; letter-spacing: .01em; }

/* stack dial: a 70s radio tuning panel */
.dial { margin: 40px 0 0; padding: clamp(18px, 3vw, 34px); border-radius: 30px; background: var(--espresso-2); box-shadow: inset 0 0 0 3px var(--cocoa); display: grid; gap: 0; }
.band { --f: 20%; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 8px 24px; align-items: baseline; padding: 16px 0 30px; position: relative; }
.band + .band { border-top: 1px solid rgba(246, 231, 204, .10); }
.band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 10px;
  background:
    repeating-linear-gradient(90deg, rgba(246, 231, 204, .45) 0 1.5px, transparent 1.5px 3%) bottom / 100% 10px no-repeat,
    linear-gradient(var(--cocoa), var(--cocoa)) bottom / 100% 2px no-repeat;
}
.band::before { content: ""; position: absolute; bottom: 4px; left: var(--f); width: 4px; height: 22px; border-radius: 2px; background: var(--tangerine); z-index: 1; }
.band:nth-child(1) { --f: 12%; } .band:nth-child(2) { --f: 31%; } .band:nth-child(3) { --f: 47%; } .band:nth-child(4) { --f: 58%; }
.band:nth-child(5) { --f: 71%; } .band:nth-child(6) { --f: 84%; } .band:nth-child(7) { --f: 93%; }
.band:nth-child(odd)::before { background: var(--gold); }
.band dt { font-family: var(--f-display); font-size: clamp(1.3rem, 2vw, 1.7rem); color: var(--almond); }
.band dd { margin: 0; color: var(--almond-2); font-size: 1.05rem; }
@media (max-width: 640px) { .band { grid-template-columns: 1fr; gap: 6px; } }

.ext-host { color: var(--almond); }
.shot figcaption .ext { margin-top: 4px; font-size: 1.05rem; }
