:root {
  --paper: #fffaf2;
  --paper-warm: #fff0d9;
  --brown: #4a3a1d;
  --brown-dark: #211413;
  --ink: #281a17;
  --muted: #6f6359;
  --yellow: #ffca05;
  --max: 1120px;
  --diagonal: clamp(64px, 6vw, 108px);
  --font-serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
}

* { box-sizing: border-box; }

/* Keep the LP's rem baseline (normally 16px) above common html/:root resets.
   Do not use !important: accessibility tools may adjust the root size inline. */
html:root { font-size: 100%; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
  background: var(--brown-dark);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  line-height: 2;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.sp-only { display: none; }

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  padding: 9px 14px;
  background: #fff;
  color: #111;
  font-family: var(--font-sans);
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

#mainContent:focus { outline: none; }

.container {
  width: min(var(--max), calc(100% - 64px));
  margin-inline: auto;
}

.hero,
.hero-picture { display: block; width: 100%; }
.hero-picture img { width: 100%; }

.section-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow: hidden;
  background: rgba(74, 58, 29, 0.97);
  color: #fff;
  box-shadow: 0 5px 18px rgba(38, 25, 13, 0.2);
  backdrop-filter: blur(10px);
}

.section-nav ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(960px, 100%);
  min-height: 68px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.section-nav li { display: grid; place-items: stretch; }

.section-nav a,
.section-nav span {
  display: grid;
  place-items: center;
  min-height: 68px;
  padding: 8px 16px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.section-nav span[aria-disabled="true"] { color: rgba(255, 255, 255, 0.74); cursor: default; }

.section-nav-facts {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffc400, #ffe66a);
  color: #321d0a;
  font-weight: 800 !important;
  animation: section-nav-facts-pulse 2.8s ease-in-out infinite;
}

.section-nav-facts::before {
  content: "";
  position: absolute;
  top: -35%;
  bottom: -35%;
  left: -30%;
  width: 20%;
  background: rgba(255, 255, 255, 0.65);
  pointer-events: none;
  transform: skewX(-18deg);
  animation: section-nav-facts-shine 3.4s ease-in-out infinite;
}

.section-nav a:focus-visible,
.floating-cm:focus-visible,
.fact-bubble:focus-visible,
.social a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: -4px;
}

.story {
  position: relative;
  z-index: 1;
  padding: 105px 0 99px;
  background: var(--paper);
  text-align: center;
}

.story::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: calc(var(--diagonal) * -1);
  left: 0;
  z-index: 2;
  height: var(--diagonal);
  background: var(--paper);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.story-inner { position: relative; z-index: 3; }

.story h2,
.cm-section h2,
.characters > .container > h2 {
  margin: 0 0 54px;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-wrap: balance;
}

.story-copy {
  max-width: 920px;
  margin-inline: auto;
  font-size: clamp(0.95rem, 1.28vw, 1.12rem);
  font-weight: 500;
  letter-spacing: 0.035em;
}

.story-copy p { margin: 0 0 38px; }
.story-copy p:last-child { margin-bottom: 0; }
.story-copy .sound { margin-block: 42px; letter-spacing: 0.14em; }

.redacted {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}

.floating-cm {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px));
  z-index: 900;
  width: 132px;
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.floating-cm.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.floating-cm img {
  width: 74px;
  max-height: 100px;
  margin: 0 auto -5px;
  object-fit: contain;
  object-position: top;
}

.floating-cm span {
  display: block;
  padding: 8px 12px;
  border: 2px solid var(--brown);
  background: rgba(255, 250, 242, 0.96);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 8px 24px rgba(34, 21, 13, 0.16);
}

.cm-section {
  position: relative;
  padding: calc(100px + var(--diagonal)) 0 160px;
  background: var(--paper-warm);
  text-align: center;
}

.cm-section::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: calc(var(--diagonal) * -1);
  left: 0;
  z-index: 2;
  height: var(--diagonal);
  background: var(--paper-warm);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.cm-section > .container { position: relative; z-index: 3; }

.cm-section h2 { margin-bottom: 52px; }

.video-shell {
  width: min(100%, 960px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(49, 24, 21, 0.18);
  background: var(--brown-dark);
  box-shadow: 0 28px 60px rgba(63, 38, 24, 0.14);
  aspect-ratio: 16 / 9;
}

.video-shell iframe { display: block; width: 100%; height: 100%; border: 0; }

.video-placeholder {
  display: grid;
  place-content: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--font-sans);
  letter-spacing: 0.18em;
  text-align: center;
  text-decoration: none;
}

.video-placeholder span { font-size: clamp(2rem, 5vw, 4.5rem); font-weight: 800; }
.video-placeholder small { margin-top: 4px; font-size: 0.72rem; }
.video-placeholder:focus-visible { outline: 4px solid var(--yellow); outline-offset: -7px; }

.characters {
  position: relative;
  overflow: hidden;
  padding: calc(114px + var(--diagonal)) 0 0;
  background: var(--paper);
}

.characters > .container > h2 { text-align: center; }

.character {
  display: grid;
  grid-template-columns: 40% minmax(0, 1fr);
  align-items: center;
  gap: 68px;
  max-width: 970px;
  margin: 0 auto;
}

.character + .character { margin-top: 0; }

.character.character-eita {
  position: relative;
  isolation: isolate;
  margin-top: 60px;
  padding: calc(60px + var(--diagonal)) 0 150px;
}

.character-eita::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  background: var(--paper-warm);
  clip-path: polygon(0 var(--diagonal), 100% 0, 100% 100%, 0 100%);
  transform: translateX(-50%);
}

.character-visual {
  display: grid;
  place-items: center;
  min-height: 540px;
}

.character-visual img {
  width: 100%;
  max-height: 570px;
  object-fit: contain;
}

.character-ryoko .character-visual img { max-width: 245px; }
.character-eita .character-visual img { max-width: 340px; }

.character-copy h3 {
  margin: 0 0 18px;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: 0.05em;
}

.character-copy h3 small {
  margin-left: 8px;
  font-size: 0.55em;
  font-weight: 500;
  letter-spacing: 0;
}

.character-copy p {
  margin: 0;
  font-size: clamp(0.88rem, 1.28vw, 1rem);
  font-weight: 500;
  line-height: 2.05;
  letter-spacing: 0.03em;
}

.facts-bridge {
  position: relative;
  z-index: 3;
  height: min(175px, 21.4vw);
  background: var(--paper-warm);
  text-align: center;
}

.facts-bridge-inner {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  transform: translateY(50%);
}

.facts-bridge-image {
  width: min(100%, 820px);
  height: auto;
}

.facts {
  position: relative;
  z-index: 2;
  padding: calc(150px + var(--diagonal)) 0 0;
  overflow: hidden;
  background: var(--paper);
}

.facts::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: var(--diagonal);
  background: var(--paper-warm);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.facts-inner {
  position: relative;
  z-index: 1;
  width: min(1400px, calc(100% - 64px));
}

.facts-title {
  margin: 0 0 16px;
}

.facts-title img {
  width: min(100%, 1240px);
  margin-inline: auto;
}

.facts-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: end;
  column-gap: 16px;
}

.facts-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  margin-right: 0;
  padding: 18px 0 34px;
}

.fact-bubble {
  --bubble-x: 0px;
  --bubble-y: 0px;
  --bubble-rotate: 0deg;
  --bubble-scale: 1;
  position: relative;
  display: block;
  transform: translate(var(--bubble-x), var(--bubble-y)) rotate(var(--bubble-rotate)) scale(var(--bubble-scale));
  transition: transform 0.2s ease;
}

a.fact-bubble { cursor: pointer; }

a.fact-bubble::after {
  content: "";
  position: absolute;
  bottom: 18%;
  left: 50%;
  z-index: 5;
  width: clamp(36px, 3.5vw, 50px);
  aspect-ratio: 1;
  background: url("../images/fact-link-arrow.svg") center / contain no-repeat;
  transform: translateX(-50%);
  transition: transform 0.2s ease, filter 0.2s ease;
}

a.fact-bubble-voice::after { bottom: 22%; }

@media (min-width: 761px) {
  a.fact-bubble-price::after { width: clamp(29px, 2.8vw, 40px); }
}

.fact-bubble img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.fact-bubble-label { display: none; }

.fact-bubble-voice {
  --bubble-x: -10%;
  --bubble-y: 26px;
  --bubble-rotate: -4deg;
  --bubble-scale: 1.05;
  z-index: 5;
  grid-column: 1 / 6;
  grid-row: 1;
}

.fact-bubble-price {
  --bubble-x: 8%;
  --bubble-y: -72px;
  --bubble-rotate: 3deg;
  --bubble-scale: 1.31;
  z-index: 8;
  grid-column: 5 / 9;
  grid-row: 1;
}

@media (min-width: 1081px) {
  .fact-bubble-price { --bubble-y: -84px; }
}

.fact-bubble-food {
  --bubble-x: 5%;
  --bubble-y: 24px;
  --bubble-rotate: -2.5deg;
  --bubble-scale: 1.03;
  z-index: 2;
  grid-column: 9 / 13;
  grid-row: 1;
}

.facts-character {
  position: relative;
  z-index: 4;
  align-self: end;
  margin-right: 0;
  margin-left: 0;
}

.facts-character img {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  object-position: center bottom;
}

.social {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 54px 0 72px;
  background: radial-gradient(circle at 50% 42%, #553318 0, #38200f 48%, #24130c 100%);
}

.social-title-image {
  width: 100%;
  margin: 0 auto 42px;
  text-align: center;
}

.social-title-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.5vw, 20px);
  padding: 0 8px 12px;
  border-bottom: 6px solid var(--yellow);
  color: #fff;
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  font-weight: 900;
  letter-spacing: 0.045em;
  line-height: 1.35;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.42);
}

.social-title-image .social-title-logo {
  width: clamp(190px, 24vw, 286px);
  flex: 0 0 auto;
}

.social-title-label { white-space: nowrap; }

.social-title-image img,
.social-grid img {
  display: block;
  width: 100%;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: center;
}

.social-grid a {
  --social-y: 0px;
  --social-r: 0deg;
  display: block;
  min-width: 0;
  border-radius: 4%;
  transform: translateY(var(--social-y)) rotate(var(--social-r));
  transition: filter 0.2s ease, transform 0.2s ease;
}

.social-grid a:nth-child(1) { --social-r: -0.4deg; }
.social-grid a:nth-child(2) { --social-y: 7px; --social-r: 0.7deg; }
.social-grid a:nth-child(3) { --social-y: 10px; --social-r: 0.4deg; }
.social-grid a:nth-child(4) { --social-y: 2px; --social-r: -0.5deg; }

.social-grid a:focus-visible {
  outline: 4px solid #fff;
  outline-offset: 5px;
}

.footer {
  padding: 22px 24px calc(22px + env(safe-area-inset-bottom));
  background: #030303;
  color: #b7b7b7;
  font-family: var(--font-sans);
  text-align: center;
}

.footer small { font-size: 0.66rem; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (hover: hover) and (pointer: fine) {
  .section-nav a:hover { background: rgba(255, 255, 255, 0.1); color: #ffecb1; }
  .section-nav a.section-nav-facts:hover {
    background: linear-gradient(135deg, #ffc400, #ffe66a);
    color: #321d0a;
    filter: brightness(1.08);
  }
  .floating-cm:hover { transform: translateY(-4px); }
  a.fact-bubble:hover {
    filter: saturate(1.25) contrast(1.08);
    animation: fact-wiggle 0.62s ease-in-out both;
  }
  a.fact-bubble:hover::after { filter: brightness(1.08); transform: translateX(-50%) translateY(-2px) scale(1.04); }
  .social-grid a:hover { filter: brightness(1.07); transform: translateY(calc(var(--social-y) - 6px)) rotate(var(--social-r)) scale(1.025); }
}

@keyframes fact-wiggle {
  0%, 100% { transform: translate(var(--bubble-x), var(--bubble-y)) rotate(var(--bubble-rotate)) scale(var(--bubble-scale)); }
  25% { transform: translate(var(--bubble-x), calc(var(--bubble-y) - 7px)) rotate(calc(var(--bubble-rotate) - 3deg)) scale(calc(var(--bubble-scale) + 0.035)); }
  55% { transform: translate(var(--bubble-x), calc(var(--bubble-y) - 4px)) rotate(calc(var(--bubble-rotate) + 3deg)) scale(calc(var(--bubble-scale) + 0.055)); }
  78% { transform: translate(var(--bubble-x), calc(var(--bubble-y) - 6px)) rotate(calc(var(--bubble-rotate) - 1.5deg)) scale(calc(var(--bubble-scale) + 0.035)); }
}

@keyframes section-nav-facts-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.09); }
}

@keyframes section-nav-facts-shine {
  0%, 55% { left: -30%; opacity: 0; }
  62% { opacity: 0.9; }
  82%, 100% { left: 120%; opacity: 0; }
}

@media (min-width: 761px) and (max-width: 1080px) {
  .container { width: min(var(--max), calc(100% - 48px)); }
  .story { padding-top: 88px; }
  .character { gap: 40px; }
  .facts-layout { grid-template-columns: minmax(0, 1fr) 230px; column-gap: 12px; }
  .facts-grid { margin-right: 0; }
  .fact-bubble-food { --bubble-x: 5%; --bubble-scale: 1.02; }
  .facts-character { margin-right: 0; margin-left: 0; }
}

@media (max-width: 760px) {
  :root { --diagonal: 44px; }
  html { scroll-padding-top: 58px; }
  .container { width: min(var(--max), calc(100% - 32px)); }
  /* The recomposed static image includes a little lawn without increasing hero height. */
  .hero { height: auto; overflow: hidden; }
  .hero-picture img { height: auto; aspect-ratio: 1880 / 2120; object-fit: cover; object-position: center top; }
  .section-nav ul { min-height: 58px; }
  .section-nav a,
  .section-nav span { min-height: 58px; padding: 6px 3px; font-size: 0.72rem; letter-spacing: 0.02em; line-height: 1.2; }
  .section-nav a.section-nav-facts {
    display: grid;
    place-content: center;
    place-items: center;
    min-height: 58px;
    padding: 4px 1px;
    font-size: clamp(0.53rem, 2.55vw, 0.68rem);
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .section-nav li:last-child span { font-size: 0.66rem; }
  .story { padding: 56px 0 44px; }
  .story h2,
  .cm-section h2,
  .characters > .container > h2 { margin-bottom: 34px; }
  .story-copy { max-width: 35rem; font-size: 0.9rem; line-height: 1.95; text-align: center; }
  .story-copy p { margin-bottom: 30px; text-wrap: pretty; }
  .story-copy .sound { margin-block: 34px; text-align: center; }
  .pc-only { display: none; }
  .sp-only { display: inline; }
  .floating-cm { right: max(8px, env(safe-area-inset-right)); bottom: max(12px, calc(env(safe-area-inset-bottom) + 8px)); width: 100px; }
  .floating-cm img { width: 58px; max-height: 76px; }
  .floating-cm span { padding: 7px 6px; border-width: 1px; font-size: 0.78rem; }
  .cm-section { padding: calc(24px + var(--diagonal)) 0 48px; }
  .cm-section h2 { font-size: 1.8rem; }
  .video-shell { width: 100%; }
  .characters { padding: calc(24px + var(--diagonal)) 0 0; }
  .character { grid-template-columns: 1fr; gap: 18px; max-width: 34rem; }
  .character + .character { margin-top: 0; }
  .character.character-eita { margin-top: 36px; padding: calc(30px + var(--diagonal)) 0 56px; }
  .character-eita::before { top: 0; }
  .character-visual { min-height: 390px; }
  .character-visual img { max-height: 430px; }
  .character-ryoko .character-visual img { max-width: 190px; }
  .character-eita .character-visual img { max-width: 270px; }
  .character-copy { width: min(100%, 30rem); margin-inline: auto; text-align: center; }
  .character-copy h3 { font-size: 1.45rem; }
  .character-copy h3 small { display: inline-block; font-size: 0.52em; }
  .character-copy p { font-size: 0.86rem; line-height: 1.95; text-wrap: pretty; }
  .facts-bridge { height: 96px; }
  .facts-bridge-inner { width: min(100%, calc(100% - 32px)); transform: translateY(45%); }
  .facts-bridge-image { display: block; width: 100%; }
  .facts { padding-top: calc(82px + var(--diagonal)); overflow: clip; }
  .facts-inner { width: min(var(--max), calc(100% - 32px)); }
  .facts-title { margin-bottom: 0; }
  .facts-layout { grid-template-columns: minmax(0, 1fr); gap: 0; width: min(100%, 31rem); margin-inline: auto; margin-top: -20px; }
  .facts-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-width: 0; width: min(100%, 31rem); margin-inline: auto; padding: 14px 0 22px; }
  .fact-bubble { flex: none; min-width: 0; width: min(94%, 390px); }
  .fact-bubble > img { display: none; }
  .fact-bubble-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 400 / 215;
    padding: 9% 14% 5%;
    border: 0;
    border-radius: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    color: #321d0a;
    text-align: center;
    box-shadow: none;
  }
  .fact-bubble-sp-copy { display: block; flex: none; min-width: 0; width: 100%; height: auto; object-fit: contain; }
  .fact-bubble-voice .fact-bubble-label {
    background-image: url("../images/fact-panel-voice-sp.svg?v=20261019-3");
  }
  .fact-bubble-price .fact-bubble-label { background-image: url("../images/fact-panel-price-sp.svg?v=20261019-4"); }
  .fact-bubble-food .fact-bubble-label { background-image: url("../images/fact-panel-food-sp.svg?v=20261019-3"); }
  .fact-bubble-voice .fact-bubble-sp-copy { max-width: none; }
  .fact-bubble-price .fact-bubble-sp-copy { width: 70%; max-width: none; }
  .fact-bubble-voice { --bubble-x: -2%; --bubble-y: 8px; --bubble-rotate: -2deg; --bubble-scale: 1; z-index: 8; align-self: flex-start; }
  .fact-bubble-price { --bubble-x: 2%; --bubble-y: 0px; --bubble-rotate: 2deg; --bubble-scale: 1; z-index: 7; align-self: flex-end; margin-top: 0; }
  .fact-bubble-food { --bubble-x: -1%; --bubble-y: -4px; --bubble-rotate: -1.5deg; --bubble-scale: 1; z-index: 3; align-self: flex-start; margin-top: clamp(-18px, calc(-7px - 2.3vw), -14px); }
  .fact-bubble-food .fact-bubble-label {
    aspect-ratio: 400 / 355;
    padding: 9.5% 20.5% 20.5% 15.5%;
  }
  .fact-bubble-food .fact-bubble-sp-copy { max-width: none; }
  /* Keep the copy and arrow in one flowing stack inside the painted outline. */
  a.fact-bubble::after { content: none; }
  a.fact-bubble .fact-bubble-label::after {
    content: "";
    display: block;
    flex: none;
    width: 16%;
    aspect-ratio: 1;
    margin-top: 0;
    background: url("../images/fact-link-arrow.svg") center / contain no-repeat;
  }
  .facts-character { z-index: 6; width: min(46vw, 190px); margin: max(-238px, -61.5vw) max(-30px, calc(50% - 221px)) 0 auto; }
  .facts-character img { max-height: 325px; }
  .social { padding: 42px 0 54px; }
  .social-title-image { width: 100%; margin-bottom: 28px; text-align: center; }
  .social-title-text {
    gap: 10px;
    padding: 0 4px 8px;
    border-bottom: 4px solid var(--yellow);
    font-size: clamp(1.15rem, 5.6vw, 1.5rem);
    letter-spacing: 0.035em;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.42);
  }
  .social-title-image .social-title-logo { width: clamp(148px, 43vw, 200px); }
  .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .social-grid a:nth-child(1) { --social-y: 0px; --social-r: -0.6deg; }
  .social-grid a:nth-child(2) { --social-y: 4px; --social-r: 0.6deg; }
  .social-grid a:nth-child(3) { --social-y: 0px; --social-r: 0.5deg; }
  .social-grid a:nth-child(4) { --social-y: 4px; --social-r: -0.5deg; }
  .footer { padding-inline: 18px; line-height: 1.5; }
  .footer small { display: block; max-width: 360px; margin-inline: auto; font-size: 0.58rem; }
}

@media (max-width: 760px) and (orientation: portrait) {
  /* Reserve the nav height without cropping into the episode title's safe area. */
  .hero-picture img {
    max-height: max(104vw, calc(100vh - 58px));
    max-height: max(104vw, calc(100svh - 58px));
  }
}

@media (max-width: 380px) {
  .section-nav a,
  .section-nav span { font-size: 0.66rem; }
  .section-nav li:last-child span { font-size: 0.6rem; }
  .story-copy,
  .character-copy p { font-size: 0.82rem; }
  .facts-title { font-size: 2.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
