/* handler1.com — the countdown card, live.
   Palette and type follow the handler1 countdown brand system. */

@font-face {
  font-family: "Handler Pen";
  src: url("../fonts/HandlerPen-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Handler Pen";
  src: url("../fonts/HandlerPen-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/Barlow-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/Barlow-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/Barlow-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("../fonts/BarlowSemiCondensed-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("../fonts/BarlowSemiCondensed-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("../fonts/ZenKakuGothicNew-500-jp.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Shippori Mincho";
  src: url("../fonts/ShipporiMincho-500-jp.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --haze: #d7e0e1;
  --haze-lite: #e8eded;
  --uniform: #39386f;
  --night: #27254f;
  --ink: #18152b;
  --shade: #66526a;
  --silver: #a395a8;
  --brass: #be946c;
  --gem: #b3181b;
  --midnight: #0c1128;
  --link-light: #cfe6ff;

  --pen: "Handler Pen", "Barlow Semi Condensed", sans-serif;
  --text: "Barlow", system-ui, sans-serif;
  --label: "Barlow Semi Condensed", "Barlow", sans-serif;
  --jp: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;

  --m: clamp(10px, 1.55vw, 26px);
  --gutter: clamp(20px, 5.2vw, 88px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-pen: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--paper);
  color: var(--night);
  scroll-padding-top: 72px;
}

html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  font: 400 1.0625rem/1.55 var(--text);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--uniform);
  color: var(--paper);
  font: 600 0.875rem var(--label);
  transform: translateY(-160%);
}
.skip:focus {
  transform: none;
}

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

/* ---------------------------------------------------------------- shared */

.panel {
  position: relative;
  background: var(--haze);
}

.hex {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em 1.1em;
  font: 600 0.78rem/1.2 var(--label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--shade);
}

.jp {
  font-family: var(--jp);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: none;
}

.kicker .jp {
  font-size: 0.95em;
  letter-spacing: 0.2em;
  opacity: 0.85;
}

.pen-title {
  font: 400 clamp(2.6rem, 4.7vw, 4.75rem) / 0.98 var(--pen);
  letter-spacing: 0.005em;
  color: var(--uniform);
}

.gem {
  position: relative;
  display: inline-block;
  flex: none;
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  background: var(--gem);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gem) 18%, transparent);
}

.stone {
  display: inline-block;
  flex: none;
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0.7;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  font: 600 0.8rem/1 var(--label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--uniform);
}

.pen-button {
  --b: var(--uniform);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.5em 1.05em 0.45em;
  font: 400 1.5rem/1 var(--pen);
  color: var(--b);
  text-decoration: none;
  border: 2px solid var(--b);
  border-radius: 240px 14px 220px 16px / 16px 220px 14px 240px;
  transition:
    background-color 0.3s var(--ease-out),
    color 0.3s var(--ease-out);
}
.pen-button span:last-child {
  display: inline-block;
  font-family: var(--text);
  font-size: 0.8em;
  transition: transform 0.4s var(--ease-out);
}
.pen-button:hover {
  background: var(--b);
  color: var(--paper);
}
.pen-button:hover span:last-child {
  transform: translateY(0.18em);
}

.edge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(40px, 4.6vw, 72px);
  background: url("../img/edge-brush.webp") left bottom / max(1800px, 125vw) 100% repeat-x;
  pointer-events: none;
}

.callsign {
  position: absolute;
  z-index: 2;
  top: clamp(200px, 31vh, 380px);
  left: clamp(10px, 1.2vw, 22px);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 400 clamp(1.05rem, 1.7vw, 1.6rem) / 1 var(--pen);
  letter-spacing: 0.04em;
  color: var(--paper);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- bar */

.bar {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding: calc(var(--m) + 10px) calc(var(--m) + clamp(14px, 2vw, 34px)) 12px
    calc(var(--m) + clamp(14px, 2.6vw, 44px));
  color: var(--uniform);
  pointer-events: none;
  transition:
    color 0.45s var(--ease-out),
    transform 0.55s var(--ease-out),
    background-color 0.45s var(--ease-out);
}
.bar[data-away="true"] {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}
.bar[data-away="true"][data-tone="night"] {
  background: color-mix(in srgb, var(--midnight) 86%, transparent);
}
.bar.bar[data-hidden="true"] {
  transform: translateY(-110%);
}
.bar[data-top="true"] .bar__brand {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}
.bar > * {
  pointer-events: auto;
}
.bar[data-tone="night"] {
  color: var(--paper);
}
.bar__brand {
  display: block;
  margin-right: auto;
  border-radius: 6px;
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out);
}
.wordmark {
  width: auto;
  height: 30px;
}
.bar__brand .wordmark {
  height: clamp(26px, 2.4vw, 34px);
  margin-left: -6px;
}
.bar__nav {
  display: flex;
  gap: 1.7rem;
  font: 600 0.78rem/1 var(--label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.bar__nav a {
  position: relative;
  padding: 0.5em 0;
  text-decoration: none;
}
.bar__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.22em;
  bottom: 0.1em;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.bar__nav a:hover::after,
.bar__nav a[aria-current="true"]::after {
  transform: none;
}
.bar__status {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font: 600 0.78rem/1 var(--label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- hero */

.hero {
  --panel-h: 100%;
  --fs: min(9vw, 16vh);
  --copy-x: calc(var(--m) + clamp(40px, 5.4vw, 110px));
  --fig-h: 116svh;
  --fig-w: calc(var(--fig-h) * 0.9375);
  --fig-x: max(calc(var(--copy-x) + var(--fs) * 3.5), calc(64vw - var(--fig-w) * 0.36));
  position: relative;
  height: 100svh;
  min-height: 640px;
  max-height: 1240px;
  overflow: clip;
}

.hero__panel {
  position: absolute;
  inset: var(--m) var(--m) 0;
}

.hero__figwrap {
  position: absolute;
  inset: 0 0 auto;
  height: var(--panel-h);
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.hero__figure {
  position: absolute;
  top: calc(var(--m) + 4.5svh);
  left: var(--fig-x);
  height: var(--fig-h);
  aspect-ratio: 1440 / 1536;
}
.hero__figure picture,
.hero__figure img {
  width: 100%;
  height: 100%;
}
.hero__figure picture,
.onair__figure picture {
  display: block;
}

.hero__figwrap .edge {
  z-index: 2;
}

.hero__copy {
  position: absolute;
  top: calc(var(--m) + 7vh);
  bottom: clamp(56px, 9vh, 110px);
  left: var(--copy-x);
  width: calc(var(--fig-x) + var(--fig-w) * 0.03 - var(--copy-x));
  display: flex;
  flex-direction: column;
}

.hero__title {
  display: contents;
  font-weight: 400;
}

.hero__wordmark {
  position: relative;
  z-index: 4;
  display: block;
  width: min(100%, calc(var(--fs) * 4.4));
  height: auto;
  margin-left: calc(var(--fs) * -0.16);
  color: var(--uniform);
  overflow: visible;
}

.hero__badge {
  position: absolute;
  z-index: 1;
  top: clamp(64px, 9vh, 110px);
  right: clamp(18px, 2.6vw, 48px);
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  color: var(--paper);
}
.hero__badge .badge {
  width: auto;
  height: clamp(130px, 21vh, 250px);
}
.hero__badge .jp {
  font-size: 0.8rem;
  letter-spacing: 0.36em;
}

.hero__line {
  position: relative;
  z-index: 4;
  display: block;
  margin-top: auto;
  font: 400 clamp(1.9rem, min(3.1vw, 5.1vh), 3.4rem) / 1.02 var(--pen);
  color: var(--uniform);
}

.hero__lead {
  position: relative;
  z-index: 4;
  max-width: 31em;
  margin-top: clamp(14px, 2.2vh, 26px);
  font-size: clamp(1rem, 1.18vw, 1.18rem);
  color: var(--night);
}

.hero__cta {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.8rem;
  margin-top: clamp(18px, 3.2vh, 36px);
}

/* ---------------------------------------------------------------- link */

.link {
  position: relative;
  height: 360vh;
  background: var(--midnight);
  color: var(--paper);
}

.link__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}

.link__art,
.diary__art {
  display: block;
}
.link__art,
.link__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.link__art img {
  object-fit: cover;
  object-position: 22% 50%;
  transform: scale(calc(1.08 - var(--p, 0) * 0.08));
  transform-origin: 25% 50%;
}

.hex--night {
  opacity: 0.9;
  mix-blend-mode: screen;
}

.link__glow {
  position: absolute;
  left: var(--gx, 28%);
  top: var(--gy, 52%);
  width: 46vmin;
  height: 46vmin;
  margin: -23vmin 0 0 -23vmin;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--link-light) 55%, transparent) 0%,
    color-mix(in srgb, var(--link-light) 16%, transparent) 22%,
    transparent 62%
  );
  mix-blend-mode: screen;
  opacity: 0.45;
  pointer-events: none;
  transform: scale(0.8);
}
.link__glow.is-pulse {
  animation: pulse 1.6s var(--ease-out);
}
@keyframes pulse {
  0% {
    opacity: 0.45;
    transform: scale(0.8);
  }
  18% {
    opacity: 1;
    transform: scale(1.12);
  }
  100% {
    opacity: 0.45;
    transform: scale(0.8);
  }
}

.link__copy {
  position: absolute;
  top: clamp(90px, 14vh, 150px);
  bottom: clamp(36px, 8vh, 90px);
  left: 52%;
  right: var(--gutter);
  display: flex;
  flex-direction: column;
}
.link .kicker {
  color: color-mix(in srgb, var(--paper) 62%, transparent);
}
.link .pen-title {
  margin-top: 1.1rem;
  color: var(--paper);
}
.link__lead {
  max-width: 30em;
  margin-top: 1.2rem;
  color: color-mix(in srgb, var(--paper) 74%, transparent);
}

.radio {
  position: relative;
  margin-top: auto;
  display: grid;
  gap: clamp(10px, 1.6vh, 18px);
  padding-left: 1.4rem;
  border-left: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
}
.radio__line {
  position: relative;
  display: grid;
  gap: 0.25rem;
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}
.radio__line::before {
  content: "";
  position: absolute;
  left: calc(-1.4rem - 4px);
  top: 0.32em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--silver);
  opacity: 0;
  transition: opacity 0.4s;
}
.radio__line.is-now::before {
  background: var(--gem);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gem) 26%, transparent);
}
.radio__who {
  font: 600 0.78rem/1.1 var(--label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 58%, transparent);
}
.radio__line[data-who="handler"] .radio__who {
  color: var(--brass);
}
.radio__said {
  font: 400 clamp(1.1rem, 1.55vw, 1.5rem) / 1.3 var(--text);
  color: var(--paper);
}
.js .radio__line {
  opacity: 0;
  transform: translateY(14px);
}
.js .radio__line.is-past {
  opacity: 0.34;
  transform: none;
}
.js .radio__line.is-now,
.js .radio__line.is-shown {
  opacity: 1;
  transform: none;
}
.radio__line.is-now::before {
  opacity: 1;
}

/* ---------------------------------------------------------------- squad */

.squad {
  position: relative;
  background: var(--haze-lite);
}

.squad__stage {
  position: relative;
}

.squad__head {
  display: grid;
  gap: 1.1rem;
  align-content: start;
}
.squad__lead {
  max-width: 24em;
}

.deck {
  display: flex;
}

.day__card {
  position: relative;
  filter: drop-shadow(0 22px 26px rgb(39 37 79 / 0.14)) drop-shadow(0 2px 3px rgb(39 37 79 / 0.08));
  container-type: inline-size;
}
.day__callsign {
  position: absolute;
  top: 9cqw;
  right: 7.5cqw;
  writing-mode: vertical-rl;
  font: 400 5.2cqw/1 var(--pen);
  letter-spacing: 0.02em;
  color: var(--paper);
  white-space: nowrap;
}
.day__tag {
  position: absolute;
  left: 7cqw;
  bottom: 8.5cqw;
  font: 600 2.9cqw/1 var(--label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
}
.day__card img {
  width: 100%;
  height: auto;
}

.day__text {
  max-width: 21em;
}
.day__name {
  display: flex;
  align-items: baseline;
  gap: 0.8em;
  font: 600 0.74rem/1 var(--label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--shade);
}
.day__n {
  font: 400 1.9rem/0.8 var(--pen);
  letter-spacing: 0;
  color: var(--uniform);
}
.day h3 {
  margin-top: 0.7rem;
  font: 400 clamp(1.7rem, 2.1vw, 2.2rem) / 1 var(--pen);
  color: var(--uniform);
}
.day__text p:last-child {
  margin-top: 0.55rem;
  font-size: 1rem;
  line-height: 1.5;
}

.day__next {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  text-decoration: none;
  color: var(--uniform);
}
.day__next-mark {
  display: block;
  width: auto;
  color: var(--uniform);
}
.day__next-text {
  font: 400 clamp(1.6rem, 2.4vw, 2.4rem) / 1 var(--pen);
  padding-bottom: 0.2em;
  transition: transform 0.4s var(--ease-out);
}
.day__next:hover .day__next-text {
  transform: translateX(6px);
}

.ticker {
  display: none;
}

/* ---------------------------------------------------------------- specs */

.specs {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr);
  grid-template-areas:
    "head sheet"
    "table sheet";
  align-items: start;
  gap: clamp(28px, 4vh, 48px) clamp(32px, 5vw, 96px);
  padding: clamp(96px, 16vh, 180px) var(--gutter) clamp(90px, 14vh, 160px);
  background:
    linear-gradient(to right, rgb(57 56 111 / 0.075) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(to bottom, rgb(57 56 111 / 0.075) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(to right, rgb(57 56 111 / 0.04) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(to bottom, rgb(57 56 111 / 0.04) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--paper);
}

.specs__head {
  grid-area: head;
  display: grid;
  gap: 1.1rem;
}
.specs__lead {
  max-width: 28em;
}

.sheet {
  grid-area: sheet;
  display: grid;
  gap: 1.4rem;
}
.sheet__drawing {
  width: 100%;
  height: auto;
  overflow: visible;
}
.sheet__drawing .ink path,
.sheet__drawing .ink circle {
  fill: none;
  stroke: var(--uniform);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sheet__drawing .ink--fine path {
  stroke: var(--silver);
  stroke-width: 1.4;
}
.sheet__drawing .ink circle {
  stroke-width: 1.4;
}
.mark {
  fill: var(--silver);
}
.mark--run {
  fill: var(--uniform);
}
.mark--brass {
  fill: var(--brass);
}
.caret {
  stroke: var(--uniform);
  stroke-width: 1.5;
}
.tint {
  opacity: 0.16;
}
.tint--add {
  fill: #4f8a63;
}
.tint--del {
  fill: var(--gem);
  opacity: 0.12;
}
.tint--sel {
  fill: var(--haze);
  opacity: 0.9;
}
.t {
  font: 500 13px var(--text);
  fill: var(--night);
}
.t--small {
  font-size: 11.5px;
}
.t--muted {
  fill: var(--shade);
}
.t--cap {
  font: 600 10px var(--label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--shade);
}
.mark--gem {
  fill: var(--gem);
}
.mark--hollow {
  fill: none;
  stroke: var(--silver);
  stroke-width: 1.4;
}
.callout path,
.callout circle {
  fill: var(--paper);
  stroke: var(--uniform);
  stroke-width: 1.4;
}
.callout path {
  fill: none;
  stroke-dasharray: 3 4;
}
.callout circle {
  fill: var(--uniform);
  stroke: none;
}
.callout text {
  font: 600 11px var(--label);
  fill: var(--paper) !important;
  fill: var(--uniform);
  text-anchor: middle;
}

.sheet__legend ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 2rem;
  font-size: 0.95rem;
  line-height: 1.45;
}
.sheet__legend li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
}
.sheet__legend b {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border: 1.4px solid var(--uniform);
  border-radius: 50%;
  font: 600 0.68rem/1 var(--label);
  color: var(--uniform);
}

.spec-table {
  grid-area: table;
  display: grid;
  border-top: 1.5px solid var(--uniform);
}
.spec-table > div {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 1rem;
  padding: 0.62rem 0;
  border-bottom: 1px dashed rgb(57 56 111 / 0.28);
}
.spec-table dt {
  font: 600 0.74rem/1.6 var(--label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--shade);
}
.spec-table dd {
  font-size: 1rem;
  color: var(--night);
}

/* ---------------------------------------------------------------- diary */

.diary {
  position: relative;
  padding: 0 var(--m);
}
.diary__panel {
  min-height: max(100svh, 640px);
  overflow: hidden;
  background: #dfe5ea;
}
.diary__art,
.diary__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.diary__art img {
  object-fit: cover;
  object-position: 70% 50%;
  transform: translateY(calc((var(--p, 0.5) - 0.5) * -4%)) scale(1.06);
}
.diary__copy {
  position: relative;
  display: grid;
  align-content: center;
  gap: 1.1rem;
  min-height: max(100svh, 640px);
  width: min(36vw, 560px);
  margin-left: var(--gutter);
  padding: 12vh 0;
}
.diary__jp {
  font:
    500 1.05rem/1.6 "Shippori Mincho",
    var(--jp);
  letter-spacing: 0.24em;
  color: var(--shade);
}
.diary__body {
  max-width: 27em;
}
.names {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 1.6rem;
  margin-top: 0.6rem;
  font: 400 clamp(1.4rem, 1.9vw, 1.9rem) / 1.3 var(--pen);
  color: var(--uniform);
}
.uml {
  position: relative;
}
.uml::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.24em;
  width: 0.34em;
  height: 0.09em;
  transform: translateX(-50%);
  background:
    radial-gradient(circle closest-side, currentColor 92%, transparent) left / 0.09em 100% no-repeat,
    radial-gradient(circle closest-side, currentColor 92%, transparent) right / 0.09em 100%
      no-repeat;
}

/* ---------------------------------------------------------------- on air */

.onair {
  position: relative;
  padding: var(--m) var(--m) 0;
}
.onair__panel {
  height: max(100svh, 680px);
  max-height: 1180px;
  overflow: hidden;
}
.onair__figure {
  position: absolute;
  z-index: 2;
  top: 8%;
  left: max(calc(var(--gutter) + min(48vw, 760px) - 12vw), calc(62vw - 0.55 * 115svh * 0.9375));
  height: 115%;
  aspect-ratio: 1440 / 1536;
}
.onair__figure picture,
.onair__figure img {
  width: 100%;
  height: 100%;
}
.onair__copy {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  top: 0;
  bottom: 0;
  width: min(48vw, 760px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(18px, 3vh, 30px);
}
.onair__title {
  display: flex;
  align-items: flex-end;
  gap: 0.22em;
  font: 700 clamp(2.4rem, min(4.6vw, 8vh), 5.2rem) / 0.98 var(--pen);
  color: var(--uniform);
}
.onair__one {
  flex: none;
  font: 700 3.6em/0.74 var(--pen);
  color: var(--paper);
  margin-bottom: -0.02em;
}
.onair__words {
  padding-bottom: 0.06em;
}
.onair__lead {
  max-width: 26em;
}
.status--big {
  font-size: 0.86rem;
}

.onair__jp {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  bottom: clamp(18px, 4vh, 40px);
  font-size: 0.82rem;
  letter-spacing: 0.4em;
  color: var(--uniform);
  opacity: 0.75;
}

/* ---------------------------------------------------------------- foot */

.foot {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  padding: clamp(56px, 10vh, 110px) var(--gutter) clamp(40px, 7vh, 72px);
  text-align: center;
  color: var(--uniform);
}
.foot__mark {
  height: clamp(40px, 4vw, 56px);
  margin-bottom: 0.6rem;
}
.foot .jp {
  margin-left: 0.6em;
  font-size: 0.85em;
}
.foot__fine {
  font: 600 0.74rem/1 var(--label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--shade);
}
.foot__fine a {
  text-decoration: none;
}
.foot__fine a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------- desktop squad: pinned deck */

@media (min-width: 900px) {
  .squad {
    height: var(--squad-h, auto);
  }
  .squad__stage {
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: hidden;
  }
  .deck {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    align-items: center;
    gap: clamp(56px, 6vw, 120px);
    padding: 0 18vw 0 calc(var(--gutter) + min(36vw, 560px));
    transform: translate3d(var(--x, 0px), 0, 0);
    will-change: transform;
  }
  .squad__head {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: var(--gutter);
    width: min(30vw, 470px);
    align-content: center;
    transform: translate3d(calc(var(--x, 0px) * 0.35), 0, 0);
    opacity: calc(1 - var(--hx, 0));
  }
  .day {
    flex: none;
    display: grid;
    gap: clamp(18px, 3vh, 30px);
    width: min(46vh, 30vw);
    transform: translateY(var(--lift, 0)) rotate(calc(var(--tilt, 0deg) * var(--settle, 1)));
  }
  .day:nth-child(even) {
    --lift: 5vh;
  }
  .day:nth-child(odd) {
    --lift: -4vh;
  }
  .day--tall {
    width: min(38vh, 25vw);
  }
  .day--next {
    width: auto;
    --lift: 0;
  }
  .day__next-mark {
    height: 40vh;
  }
  .ticker {
    position: absolute;
    left: var(--gutter);
    bottom: clamp(24px, 5vh, 48px);
    display: flex;
    gap: 1.3rem;
    font: 400 1.7rem/1 var(--pen);
    color: rgb(57 56 111 / 0.38);
  }
  .ticker li {
    position: relative;
    width: 1.1rem;
    text-align: center;
    transition: color 0.4s;
  }
  .ticker li.is-now {
    color: var(--uniform);
  }
  .ticker li::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 46%;
    width: 2.1rem;
    height: 2.1rem;
    border: 1.6px solid var(--uniform);
    border-radius: 52% 48% 46% 54% / 50% 54% 46% 50%;
    transform: translate(-50%, -50%) rotate(-8deg) scale(0.6);
    opacity: 0;
    transition:
      opacity 0.35s,
      transform 0.5s var(--ease-out);
  }
  .ticker li.is-now::after {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-8deg) scale(1);
  }
}

/* ---------------------------------------------------------------- portrait hero: picture on top, words below */

@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  .hero .callsign {
    display: none;
  }
  .hero {
    --panel-h: 64svh;
    --fs: 12vw;
    height: auto;
    min-height: 100svh;
    max-height: none;
    padding-bottom: 40px;
  }
  .hero__panel {
    inset: var(--m) var(--m) auto;
    height: calc(var(--panel-h) - var(--m));
  }
  .hero__figure {
    top: calc(var(--m) + 7svh);
    left: 15vw;
    height: auto;
    width: 128vw;
  }
  .hero__copy {
    position: relative;
    inset: auto;
    width: auto;
    padding: calc(var(--panel-h) + 6px) var(--gutter) 0;
  }
  .hero__wordmark {
    position: absolute;
    top: calc(var(--m) + 52px);
    left: calc(var(--m) + 8px);
    width: 50vw;
    margin: 0;
  }
  .hero__badge {
    display: none;
  }
  .hero__line {
    margin-top: 0;
    font-size: clamp(1.9rem, 8.6vw, 2.5rem);
  }
  .hero__lead {
    margin-top: 12px;
  }
  .hero__cta {
    margin-top: 22px;
    gap: 14px 22px;
  }
}

@media (max-width: 1180px) and (min-aspect-ratio: 4/5) {
  .hero__badge {
    display: none;
  }
}

/* ---------------------------------------------------------------- small screens */

@media (max-width: 899px) {
  .squad {
    padding: clamp(80px, 14vh, 130px) var(--gutter) clamp(60px, 10vh, 100px);
  }
  .deck {
    flex-direction: column;
    gap: clamp(64px, 10vh, 96px);
    margin-top: clamp(44px, 7vh, 64px);
  }
  .day {
    display: grid;
    gap: 22px;
    max-width: 560px;
  }
  .day:nth-child(even) {
    justify-self: end;
    margin-left: auto;
  }
  .day__card {
    transform: rotate(var(--tilt, 0deg));
  }
  .day--tall .day__card {
    width: 78%;
  }
  .day__next-mark {
    height: 200px;
  }
  .specs {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "sheet"
      "table";
  }
}

@media (max-width: 760px) {
  body {
    font-size: 1rem;
  }
  .bar {
    top: calc(var(--m) + 10px);
  }
  .bar__nav {
    display: none;
  }
  .bar__status {
    font-size: 0.68rem;
  }

  .pen-button {
    font-size: 1.3rem;
  }
  .callsign {
    display: none;
  }

  .link {
    height: 320vh;
  }
  .link__art img {
    object-position: 27% 40%;
    height: 54%;
  }
  .link__stage::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 30%;
    height: 25%;
    background: linear-gradient(to bottom, transparent, var(--midnight));
    pointer-events: none;
  }
  .link__copy {
    z-index: 2;
    top: 37%;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 26px;
  }
  .radio__line.is-old {
    display: none;
  }
  .link .pen-title {
    margin-top: 0.7rem;
    font-size: 2.3rem;
  }
  .link__lead {
    margin: 0.7rem 0 1.4rem;
    font-size: 0.92rem;
  }
  .radio {
    gap: 9px;
  }
  .radio__said {
    font-size: 1rem;
  }

  .specs {
    padding-top: 88px;
  }
  .sheet__legend ol {
    grid-template-columns: 1fr;
  }
  .sheet__scroll {
    overflow-x: auto;
    margin: 0 calc(-1 * var(--gutter));
    padding: 8px var(--gutter);
    scrollbar-width: none;
  }
  .sheet__drawing {
    width: 640px;
    max-width: none;
  }
  .spec-table > div {
    grid-template-columns: 6rem 1fr;
  }

  .diary__panel {
    min-height: 0;
  }
  .diary__art {
    position: relative;
    height: 52svh;
  }
  .diary__art img {
    object-position: 78% 50%;
    transform: none;
  }
  .diary__copy {
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 34px var(--gutter) 56px;
    background: #dfe5ea;
  }
  .names {
    font-size: 1.45rem;
    gap: 0 1.4rem;
  }

  .onair__panel {
    height: auto;
    min-height: 0;
    max-height: none;
    padding-top: 46svh;
  }
  .onair__figure {
    top: 1svh;
    bottom: auto;
    left: -22vw;
    height: auto;
    width: 144vw;
  }
  .onair__copy {
    position: relative;
    inset: auto;
    width: auto;
    padding: 0 var(--gutter) 90px;
    background: linear-gradient(to bottom, transparent, var(--haze) 9%);
  }
  .onair__title {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }
  .onair__jp {
    bottom: 26px;
  }
}

/* ---------------------------------------------------------------- motion: load + reveals */

@media (prefers-reduced-motion: no-preference) {
  .js .hero__shutter {
    position: absolute;
    z-index: 5;
    inset: 0;
    pointer-events: none;
  }
  .js .hero__shutter::before,
  .js .hero__shutter::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 50.5%;
    background: var(--paper);
    transform-origin: top;
  }
  .js .hero__shutter::before {
    top: 0;
  }
  .js .hero__shutter::after {
    bottom: 0;
    transform-origin: bottom;
  }
  .js .hero__figure img {
    opacity: 0;
    transform: translateY(5%);
  }
  .js .hero__wordmark,
  .js .hero__badge {
    opacity: 0;
    transform: translateY(12px);
  }
  .js .hero__line,
  .js .hero__lead,
  .js .hero__cta,
  .js .hero .callsign {
    opacity: 0;
    transform: translateY(16px);
  }

  .is-ready .hero__shutter::before,
  .is-ready .hero__shutter::after {
    transform: scaleY(0);
    transition: transform 1.1s var(--ease-pen);
  }
  .is-ready .hero__figure img {
    opacity: 1;
    transform: none;
    transition:
      opacity 1.2s var(--ease-out) 0.45s,
      transform 1.6s var(--ease-out) 0.45s;
  }
  .is-ready .hero__wordmark,
  .is-ready .hero__badge {
    opacity: 1;
    transform: none;
    transition:
      opacity 1.2s var(--ease-out) 0.85s,
      transform 1.4s var(--ease-out) 0.85s;
  }
  .is-ready .hero__badge {
    transition-delay: 1.05s;
  }
  .is-ready .hero__line,
  .is-ready .hero__lead,
  .is-ready .hero__cta,
  .is-ready .hero .callsign {
    opacity: 1;
    transform: none;
    transition:
      opacity 0.9s var(--ease-out),
      transform 1.1s var(--ease-out),
      color 0.45s var(--ease-out);
  }
  .is-ready .hero__line {
    transition-delay: 1.35s;
  }
  .is-ready .hero__lead {
    transition-delay: 1.5s;
  }
  .is-ready .hero__cta {
    transition-delay: 1.65s;
  }
  .is-ready .hero .callsign {
    transition-delay: 1.2s;
  }
  .js .bar {
    visibility: hidden;
  }
  .is-ready .bar {
    visibility: visible;
    animation: bar-in 1s var(--ease-out) 1.7s backwards;
  }
  @keyframes bar-in {
    from {
      opacity: 0;
      transform: translateY(-12px);
    }
  }

  .hero__figure {
    transform: translate3d(0, calc(var(--p, 0) * -9%), 0);
  }
  .hero__badge {
    translate: 0 calc(var(--p, 0) * -18vh);
  }

  .radio__line.is-now::before {
    animation: tally 3.2s steps(1, end) infinite;
  }
  @keyframes tally {
    0%,
    86% {
      opacity: 1;
    }
    88%,
    92% {
      opacity: 0.25;
    }
    94% {
      opacity: 1;
    }
  }

  /* one-shot reveals */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition:
      opacity 0.9s var(--ease-out),
      transform 1.1s var(--ease-out);
    transition-delay: var(--d, 0s);
  }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  .js .sheet .draw {
    stroke-dasharray: 1 1;
    stroke-dashoffset: 1;
  }
  .js .sheet.is-in .draw {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.1s var(--ease-pen) var(--d, 0s);
  }
  .js .sheet .callout circle,
  .js .sheet .callout text,
  .js .sheet .labels,
  .js .sheet .tints,
  .js .sheet .marks {
    opacity: 0;
    transition: opacity 0.6s var(--ease-out) var(--d, 1.2s);
  }
  .js .sheet.is-in .callout circle,
  .js .sheet.is-in .callout text,
  .js .sheet.is-in .labels,
  .js .sheet.is-in .tints,
  .js .sheet.is-in .marks {
    opacity: 1;
  }

  .js .names li {
    clip-path: inset(-20% 100% -30% 0);
  }
  .js .names.is-in li {
    clip-path: inset(-20% -5% -30% 0);
    transition: clip-path 0.9s var(--ease-pen) calc(var(--i, 0) * 0.32s + 0.2s);
  }

  .js .onair__figure img {
    opacity: 0;
    transform: translateY(6%);
  }
  .js .onair.is-in .onair__figure img {
    opacity: 1;
    transform: none;
    transition:
      opacity 1.2s var(--ease-out),
      transform 1.6s var(--ease-out);
  }
  .js .onair__one {
    clip-path: inset(-10% 0 100% 0);
  }
  .onair.is-in .onair__one {
    clip-path: inset(-10% 0 -10% 0);
    transition: clip-path 1.2s var(--ease-pen) 0.3s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .link {
    height: auto;
  }
  .link__stage {
    position: relative;
    height: auto;
    min-height: 100svh;
  }
  .link__copy {
    position: relative;
    inset: auto;
    margin-left: 52%;
    padding: 16vh var(--gutter) 10vh 0;
    min-height: 100svh;
  }
  .radio {
    margin-top: 3rem;
  }
  .squad {
    height: auto !important;
  }
  .squad__stage {
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
  }
  .deck {
    position: relative !important;
    flex-wrap: wrap;
    padding: 0 var(--gutter) 12vh !important;
    transform: none !important;
  }
  .squad__head {
    position: relative !important;
    width: auto !important;
    padding: 14vh var(--gutter) 6vh;
    left: 0 !important;
    transform: none !important;
  }
  .ticker {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 760px) {
  .link__copy {
    margin-left: 0;
    padding: 40svh var(--gutter) 40px;
  }
}
