/* Feature showcase (features.html). Builds on legal.css (tokens, header,
   star field, footer). The painting is the navigation: lamplight dots sit on
   the object each feature lives in, and melt into a card when touched. */

:root {
  --sc-ink: #0b1238;          /* the device bezel, darker than the night */
  --sc-lamp: #FFE9B8;
  --sc-amber: #F5A623;
  --sc-paper: #FFF6E6;        /* the card the lamplight condenses into */
  --sc-cream-2: rgba(250, 246, 239, 0.78);
  --sc-cream-3: rgba(250, 246, 239, 0.58);
  --sc-tabs-h: 52px;
}

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

.sc {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.5rem 2rem;
  /* The arrival glow and the lamps' blooms reach past the frames; clip them
     here. `clip`, never `hidden`: hidden makes .sc a scroll container. */
  overflow-x: clip;
  /* One width for the tabs, the frame, its filmstrip and the index: the
     frame's, capped by the viewport's height so the first screen shows the
     whole frame (the header above it is ~270px). */
  --sc-dev-w: clamp(520px, calc((100svh - 345px) * 1.439 + 24px), 1080px);
}

/* ── Title ─────────────────────────────────────────────── */

.sc-title {
  font-size: clamp(1.8rem, 4.2vw, 2.7rem);
  line-height: 1.25;
  text-align: center;
  margin: 0.2rem 0 0.3rem;
  text-wrap: balance;
}
/* Japanese breaks only between phrases, in every browser: the build marks
   phrase boundaries with <wbr> (BudouX), and keep-all forbids any other
   break. Headings tighten their proportional kana (palt). */
.sc :lang(ja), .sc-fd :lang(ja) { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
.sc h1:lang(ja), .sc h2:lang(ja), .sc h3:lang(ja), .sc-fd h3:lang(ja),
.sc h1 :lang(ja), .sc h2 :lang(ja), .sc h3 :lang(ja), .sc-fd h3 :lang(ja) { font-feature-settings: "palt"; letter-spacing: 0.02em; }
.sc p, .sc-fd p { text-wrap: pretty; }
.sc h2, .sc h3, .sc-fd h3 { text-wrap: balance; }

.sc-sub {
  text-align: center;
  color: var(--sc-cream-2);
  max-width: 44em;
  margin: 0 auto 1rem;
  font-size: 1rem;
  line-height: 1.7;
  text-wrap: balance;
}

/* ── Tabs (M3 primary tabs, in lamplight) ──────────────── */

.sc-tabbar {
  position: relative;          /* stays in the page: never a bar following the reader */
  max-width: var(--sc-dev-w);
  margin: 0 auto;
}
.sc-tabs {
  position: relative;
  display: flex;
  height: var(--sc-tabs-h);
}
.sc-tabs::after {
  display: none;               /* no rule under the tabs: the lit label carries it */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(250, 246, 239, 0), rgba(250, 246, 239, 0.18) 20%, rgba(250, 246, 239, 0.18) 80%, rgba(250, 246, 239, 0));
  pointer-events: none;
}
.sc-tabs [role="tab"] {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: 'Fredoka', 'M PLUS Rounded 1c', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--sc-cream-3);
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.sc-tabs [role="tab"] > span { display: inline-block; padding: 0.25rem 1.85rem 0.25rem 0.15rem; }  /* right: room for the ⓘ */
.sc-tabs [role="tab"]:hover { color: var(--sc-cream-2); }
.sc-tabs [role="tab"][aria-selected="true"] { color: var(--cream); font-weight: 600; text-shadow: 0 0 18px rgba(245, 166, 35, 0.45); }
.sc-tabs [role="tab"]:focus-visible { outline: none; }
.sc-tabs [role="tab"]:focus-visible > span {
  outline: 2px solid rgba(255, 233, 184, 0.8);
  outline-offset: 4px;
  border-radius: 6px;
}
.sc-ind {
  position: absolute;
  left: 0;
  bottom: 5px;
  height: 3px;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--sc-lamp), var(--sc-amber));
  box-shadow: 0 0 12px 1px rgba(245, 166, 35, 0.6);
  transition: transform 250ms cubic-bezier(.3, 0, 0, 1), width 250ms cubic-bezier(.3, 0, 0, 1);
  pointer-events: none;
}

/* ⓘ beside each tab: that area's intro card */
.sc-info {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 233, 184, 0.45);
  background: transparent;
  color: rgba(255, 233, 184, 0.75);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.sc-info::before { content: ''; position: absolute; inset: -11px; border-radius: 50%; }   /* finger-sized */
.sc-info svg { width: 14px; height: 14px; }
.sc-info.is-current { color: var(--sc-lamp); border-color: rgba(255, 233, 184, 0.8); }
.sc-info:hover,
.sc-info:focus-visible {
  color: var(--sc-lamp);
  border-color: rgba(255, 233, 184, 0.9);
  background: rgba(255, 233, 184, 0.12);
  box-shadow: 0 0 12px rgba(245, 166, 35, 0.45);
  outline: none;
}

/* ── Panels ────────────────────────────────────────────── */

.sc-panel { padding-top: 1rem; }
.sc-js .sc-panel:not(.is-shown) { display: none; }
.sc-panel:focus { outline: none; }

/* ── The frame: a still, clickable version of the app ──── */

.sc-device {
  position: relative;
  max-width: var(--sc-dev-w);
  margin: 0 auto;
  padding: 12px;
  border-radius: 30px;
  /* The glass takes the showing screen's own edge colour, so the app's
     letterbox bars read as the device, not as bars. */
  background: var(--band, #07080d);
  transition: background-color 0.4s ease;
  box-shadow:
    inset 0 0 0 1px rgba(255, 233, 184, 0.13),
    0 0 90px -20px rgba(245, 166, 35, 0.14),
    0 34px 80px -34px rgba(0, 0, 0, 0.8);
}
.sc-scene {
  position: relative;
  aspect-ratio: 1180 / 820;
  border-radius: 18px;
  background: #101a4a;
}
.sc-view {
  position: absolute;
  inset: 0;
}
.sc-view[hidden] { display: none; }
.sc-view > img.sc-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  user-select: none;
  -webkit-user-drag: none;
}
/* Dashboard screenshots exist in both languages; the pair swaps with the
   page language (and the locale split keeps only one). */
body:not([data-lang="jp"]) .sc-view > img.sc-art.i18n-jp,
body[data-lang="jp"] .sc-view > img.sc-art.i18n-en { display: none; }

/* ── The lights come on: the first time a tab opens, its room starts in
   dusk and warm light spreads from the room's own lamp or fire (data-light);
   the lamps (dots) ignite outward from it. ~1.6 s, once per tab per visit. */
@property --lr {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}
.sc-dusk {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 18px;
  pointer-events: none;
  opacity: 0;
  background: rgba(5, 8, 26, 0.78);
  --lr: 0%;
  -webkit-mask-image: radial-gradient(circle at var(--lx, 50%) var(--ly, 50%), transparent var(--lr), #000 calc(var(--lr) + 26%));
  mask-image: radial-gradient(circle at var(--lx, 50%) var(--ly, 50%), transparent var(--lr), #000 calc(var(--lr) + 26%));
}
.sc-scene.is-dusk .sc-dusk { opacity: 1; }
.sc-scene.is-dawning .sc-dusk { opacity: 1; animation: sc-dawn 1500ms cubic-bezier(0.45, 0, 0.2, 1) forwards; }
@keyframes sc-dawn {
  0% { --lr: 0%; }
  85% { opacity: 1; }
  100% { --lr: 150%; opacity: 0; }
}

/* The app's own buttons on a screenshot: they lead to another screen.
   Invisible until hovered or focused, then lamplight; each glows once as
   its screen appears, so touch visitors see they lead somewhere. */
.sc-go {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
}
.sc-go::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  background: rgba(255, 233, 184, 0.05);
  box-shadow: 0 0 14px 2px rgba(245, 166, 35, 0.14);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  pointer-events: none;
}
.sc-go:hover::after,
.sc-go:focus-visible::after {
  background: rgba(255, 233, 184, 0.12);
  box-shadow: 0 0 26px 6px rgba(245, 166, 35, 0.4);
}
.sc-go:focus-visible { outline: none; }
/* A dashboard is rows of buttons: a resting glow on each smudges it. */
.sc-view[data-screen^="lh-"] .sc-go:not(:hover):not(:focus-visible)::after {
  background: none;
  box-shadow: none;
}
.sc-view.is-lit .sc-go::after { animation: sc-go-hint 1.7s ease-out calc(var(--i, 0) * 140ms + 350ms) 1; }
@keyframes sc-go-hint {
  0%, 100% { background: rgba(255, 233, 184, 0); box-shadow: 0 0 0 0 rgba(245, 166, 35, 0); }
  35% { background: rgba(255, 233, 184, 0.14); box-shadow: 0 0 26px 6px rgba(245, 166, 35, 0.45); }
}

/* The screens bar: a filmstrip of every screen in this tab, the showing
   one lit. */
.sc-screens {
  /* Thumbnails share the frame's width between them (64 to 96px each);
     past that the strip scrolls. --n is the screen count. */
  --chip: clamp(64px, calc((min(100vw - 2rem, var(--sc-dev-w)) - 0.4rem - (var(--n, 8) - 1) * 0.6rem) / var(--n, 8)), 96px);
  display: flex;
  justify-content: flex-start;   /* centred by the auto margins below: centred when it fits, scrolls from the start when it doesn't */
  gap: 0.6rem;
  max-width: var(--sc-dev-w);
  margin: 1.1rem auto 0;
  padding: 0.2rem 0.2rem 0.4rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.sc-screens::-webkit-scrollbar { display: none; }
.sc-screens.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
.sc-screens.fade-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px); mask-image: linear-gradient(90deg, transparent, #000 44px); }
.sc-screens.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent); }
@media (min-width: 600px) {
  .sc-screens:has(.sc-screens-divider) { --n: 7; flex-wrap: wrap; justify-content: center; row-gap: 0.9rem; }
  .sc-screens:has(.sc-screens-divider) > :first-child { margin-left: 0; }
  .sc-screens:has(.sc-screens-divider) > :last-child { margin-right: 0; }
  .sc-screens:has(.sc-screens-divider) > .sc-screens-divider { flex-basis: 100%; height: auto; margin: 0.3rem 0 -0.35rem; background: none; opacity: 1; }
  .sc-screens-row {
    flex-basis: 100%;
    font-family: 'Fredoka', 'M PLUS Rounded 1c', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--sc-cream-3);
    text-align: center;
    margin-bottom: -0.35rem;
  }
  .sc-screens-divider > .sc-screens-row { display: block; }
}
@media (max-width: 599px) {
  .sc-screens-row { display: none; }
}
.sc-screens > :first-child { margin-left: auto; }
.sc-screens > :last-child { margin-right: auto; }
.sc-screen-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: var(--chip);        /* a long name widens its chip rather than running into the next */
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--sc-cream-3);
  -webkit-tap-highlight-color: transparent;
}
.sc-chip-thumb {
  width: var(--chip);
  height: auto;
  aspect-ratio: 240 / 167;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0.55;
  box-shadow: 0 0 0 1px rgba(250, 246, 239, 0.14);
  transition: opacity 0.2s ease, box-shadow 0.2s ease, transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}
body:not([data-lang="jp"]) .sc-chip-thumb.i18n-jp,
body[data-lang="jp"] .sc-chip-thumb.i18n-en { display: none; }
.sc-chip-name {
  font-family: 'Fredoka', 'M PLUS Rounded 1c', sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}
.sc-screen-chip:hover .sc-chip-thumb { opacity: 0.85; transform: translateY(-2px); }
.sc-screen-chip:hover { color: var(--sc-cream-2); }
.sc-screen-chip[aria-current="true"] { color: var(--sc-lamp); }
.sc-screen-chip[aria-current="true"] .sc-chip-thumb {
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(255, 233, 184, 0.85), 0 0 16px rgba(245, 166, 35, 0.45);
}
.sc-screen-chip:focus-visible { outline: none; }
.sc-screen-chip:focus-visible .sc-chip-thumb { box-shadow: 0 0 0 2px rgba(255, 233, 184, 0.95); }
/* Families' screens | the teacher's screens */
.sc-screens-divider {
  flex: none;
  align-self: stretch;
  width: 1px;
  margin: 0.2rem 0.35rem;
  background: rgba(250, 246, 239, 0.22);
}

/* The lamps: a solid gold dot with a cream rim (readable on the brightest
   and darkest screens alike) and a soft beacon ring that breathes outward.
   The wide lamplight bloom lights on hover, focus, or while its card is open. */
.sc-dot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(.3, 0, 0, 1);
  transition-delay: var(--delay, calc(var(--i, 0) * 110ms + 120ms));
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
.sc-view.is-lit .sc-dot { opacity: 1; transform: none; }
.sc-dot-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #FFF1C9 0 18%, #FFD27A 45%, #F5A623 100%);
  box-shadow:
    0 0 0 2px rgba(255, 246, 230, 0.95),
    0 0 0 3px rgba(90, 50, 0, 0.35),
    0 2px 10px rgba(0, 0, 0, 0.45),
    0 0 18px 4px rgba(245, 166, 35, 0.55);
  transition: transform 0.25s cubic-bezier(.3, 0, 0, 1);
  pointer-events: none;
}
.sc-dot:hover .sc-dot-core,
.sc-dot:focus-visible .sc-dot-core,
.sc-dot[aria-expanded="true"] .sc-dot-core { transform: scale(1.18); }
.sc-dot::before,
.sc-dot::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
/* the beacon: a thin gold ring that swells and fades, out of step dot to dot */
.sc-dot::before {
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 214, 130, 0.9);
  box-shadow: 0 0 10px rgba(245, 166, 35, 0.5);
  opacity: 0;
  animation: sc-beacon 9s cubic-bezier(.2, .6, .35, 1) var(--d, 0s) infinite;
}
/* the lamplight bloom (#lh-glow's stops) on hover / focus / open */
.sc-dot::after {
  inset: -26px;
  background: radial-gradient(closest-side, rgba(255, 233, 184, 0.7), rgba(245, 166, 35, 0.28) 45%, rgba(245, 166, 35, 0));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.sc-dot:hover::after,
.sc-dot:focus-visible::after,
.sc-dot[aria-expanded="true"]::after { opacity: 1; }
.sc-dot:focus-visible { outline: 2px solid rgba(255, 233, 184, 0.85); outline-offset: 0; }
@keyframes sc-beacon {
  0% { opacity: 0.85; transform: scale(1); }
  22%, 100% { opacity: 0; transform: scale(2.6); }
}
/* A lamp already opened settles into a steady, quieter light, so the eye
   finds the ones still to see. */
.sc-dot.is-seen::before { animation: none; opacity: 0; }
.sc-dot.is-seen .sc-dot-core {
  background: radial-gradient(circle at 40% 36%, #FFF6E0 0 22%, #F3D89A 60%, #D9A85A 100%);
  box-shadow: 0 0 0 2px rgba(255, 246, 230, 0.7), 0 2px 8px rgba(0, 0, 0, 0.4);
  transform: scale(0.82);
}

/* The feature's name, shown on hover/focus above the lamp. It is also the
   button's accessible name. */
.sc-dot-name {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translate(-50%, 4px);
  white-space: nowrap;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(13, 20, 58, 0.88);
  border: 1px solid rgba(255, 233, 184, 0.3);
  font-family: 'Fredoka', 'M PLUS Rounded 1c', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--sc-lamp);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.sc-dot:hover .sc-dot-name,
.sc-dot:focus-visible .sc-dot-name { opacity: 1; transform: translate(-50%, 0); }
.sc-dot[aria-expanded="true"] .sc-dot-name { opacity: 0; }

/* ── Under the scene: the index, and "About …" ─────────── */

.sc-below {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  max-width: var(--sc-dev-w);
  margin: 1rem auto 0;
}
.sc-index { flex: 0 1 auto; text-align: center; }
.sc-index[open] { flex-basis: 100%; }
.sc-index ol { text-align: left; }
.sc-index > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  list-style: none;
  font-family: 'Fredoka', 'M PLUS Rounded 1c', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--sc-lamp);
  padding: 0.35rem 0;
}
.sc-index > summary::-webkit-details-marker { display: none; }
.sc-index > summary::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
  margin-right: 0.1rem;
}
.sc-index[open] > summary::before { transform: rotate(45deg); }
.sc-index > summary:focus-visible { outline: 2px solid rgba(255, 233, 184, 0.8); outline-offset: 3px; border-radius: 6px; }
.sc-index ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 0.15rem 1.5rem;
  margin: 0.6rem 0 0.4rem;
  padding: 0.9rem 0 0.2rem;
  border-top: 1px solid rgba(250, 246, 239, 0.1);
}
.sc-index-link {
  display: block;
  padding: 0.5rem 0.6rem;
  margin: 0 -0.6rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--cream);
  line-height: 1.45;
  transition: background-color 0.15s ease;
}
.sc-index-link:hover { background: rgba(250, 246, 239, 0.06); }
.sc-index-link:focus-visible { outline: 2px solid rgba(255, 233, 184, 0.8); outline-offset: 0; }
.sc-index-name {
  display: block;
  font-family: 'Fredoka', 'M PLUS Rounded 1c', sans-serif;
  font-weight: 500;
  font-size: 0.98rem;
}
.sc-index-line { display: block; font-size: 0.86rem; color: var(--sc-cream-3); }

/* ── Feature sections ──────────────────────────────────── */

.sc-features { margin-top: 1rem; }
.sc-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem 3.25rem;
  padding: 3rem 0;
  scroll-margin-top: 1rem;
}


/* Arriving from a dot or the index: the frame catches the lamplight once. */
.sc-feature .sc-frame::after {
  content: '';
  position: absolute;
  inset: -34px;
  border-radius: 40px;
  background: radial-gradient(closest-side, rgba(255, 233, 184, 0.28), rgba(245, 166, 35, 0.12) 55%, rgba(245, 166, 35, 0));
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}
.sc-feature.is-arriving .sc-frame::after { animation: sc-arrive 1.9s ease-out 0.35s; }
@keyframes sc-arrive {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 0; }
}

.sc-media { margin: 0; }
.sc-frame {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1180 / 820;
  padding: 10px;
  border-radius: 26px;
  background: var(--sc-ink);
  box-shadow:
    inset 0 0 0 1px rgba(255, 233, 184, 0.12),
    0 24px 60px -30px rgba(0, 0, 0, 0.7);
}
.sc-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #101a4a;
}
.sc-screen > img,
.sc-frame video.sc-loop {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  object-fit: cover;
  border-radius: 16px;
}
.sc-frame video.sc-loop { opacity: 0; transition: opacity 0.25s ease; }
.sc-media.is-playing video.sc-loop { opacity: 1; }
.sc-media[data-loop],
.sc-media[data-video] { cursor: pointer; }

/* The still: the feature's own screen from the app, zoomed onto where the
   feature lives (focus point + zoom set per feature). Scaling around the focus
   keeps it in frame and never shows an edge. */
.sc-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--zoom, 1));
  transform-origin: var(--fx, 50%) var(--fy, 50%);
  transition: transform 700ms cubic-bezier(0.23, 1, 0.32, 1);
}
body:not([data-lang="jp"]) .sc-still.i18n-jp,
body[data-lang="jp"] .sc-still.i18n-en { display: none; }
@media (hover: hover) and (pointer: fine) {
  .sc-media:not([data-loop]):hover .sc-still { transform: scale(calc(var(--zoom, 1) * 1.035)); }
}
/* As a card comes into view (showcase.js), its still starts on the whole
   screen and moves in on its feature: the same move a lamp makes in the
   frame. Panels (.sc-fd) always open already close. */
.sc-features .sc-still { transition: transform 950ms cubic-bezier(0.23, 1, 0.32, 1), transform-origin 950ms cubic-bezier(0.23, 1, 0.32, 1); }
.sc-reveal .sc-features .sc-feature:not(.is-inview) .sc-still { transform: none; transform-origin: 50% 50%; }

/* Until a clip is filmed, the screen says what it will show. */
.sc-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.4rem 1.6rem;
  background:
    radial-gradient(120% 90% at 50% 110%, rgba(245, 166, 35, 0.12), rgba(245, 166, 35, 0) 60%),
    #101a4a;
  outline: 1.5px dashed rgba(255, 233, 184, 0.28);
  outline-offset: -12px;
  border-radius: 16px;
}
.sc-shot-label {
  font-family: 'Fredoka', 'M PLUS Rounded 1c', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--sc-lamp);
  opacity: 0.85;
}
.sc-shot {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--sc-cream-2);
  max-width: 32em;
}
.sc-shot-sound {
  font-family: 'Fredoka', 'M PLUS Rounded 1c', sans-serif;
  font-size: 0.78rem;
  color: var(--sc-cream-3);
}

.sc-copy { max-width: 34em; }
.sc-feature h3 {
  font-family: 'Fraunces', 'M PLUS Rounded 1c', Georgia, serif;
  font-variation-settings: 'opsz' 60, 'wght' 700, 'SOFT' 100, 'WONK' 1;
  font-weight: 700;
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  line-height: 1.25;
  color: var(--cream);
  margin: 0 0 0.6rem;
}
.sc-feature h3:focus { outline: none; }
.sc-lede {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--cream);
  margin: 0 0 0.75rem;
}
.sc-copy p:not(.sc-lede) {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--sc-cream-2);
  margin: 0 0 0.75rem;
}
.sc-tag {
  display: inline-block;
  margin: 0 0 0.7rem;
  padding: 0.1rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 233, 184, 0.35);
  font-family: 'Fredoka', 'M PLUS Rounded 1c', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--sc-lamp);
}
.sc-watch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  padding: 0.55rem 1.1rem 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 233, 184, 0.45);
  background: rgba(255, 233, 184, 0.06);
  font-family: 'Fredoka', 'M PLUS Rounded 1c', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--sc-lamp);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.sc-watch svg { width: 1.05em; height: 1.05em; flex: none; }
.sc-watch:hover:not(:disabled) { background: rgba(255, 233, 184, 0.14); border-color: rgba(255, 233, 184, 0.7); }
.sc-watch:focus-visible { outline: 2px solid rgba(255, 233, 184, 0.8); outline-offset: 3px; }
.sc-watch:disabled { cursor: default; opacity: 0.5; }
.sc-watch[hidden] { display: none; }
/* On a lead's paper card the button is ink, not lamplight. */
.sc-feature--lead .sc-watch { color: #7a5214; border-color: rgba(122, 82, 20, 0.4); background: rgba(245, 166, 35, 0.08); }
.sc-feature--lead .sc-watch:hover:not(:disabled) { background: rgba(245, 166, 35, 0.16); border-color: rgba(122, 82, 20, 0.6); }
.sc-feature--lead .sc-watch:focus-visible { outline-color: #b07a20; }

/* ── The way in, at the foot of every tab: an arched window onto its
   world, one clear button, one quiet link. ─────────────── */

.sc-cta {
  position: relative;
  margin: 7rem auto 0;
  padding: 0 1.5rem 1rem;
  max-width: 760px;
  text-align: center;
}
.sc-cta-art {
  position: relative;
  width: 210px;
  aspect-ratio: 3 / 4;
  margin: 0 auto 1.8rem;
  border-radius: 105px 105px 22px 22px;      /* an arch: a door, a window */
  overflow: hidden;
  box-shadow: 0 0 0 6px rgba(255, 233, 184, 0.1), 0 0 80px 10px rgba(245, 166, 35, 0.22), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.sc-cta-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--fx) var(--fy);
  transform: scale(var(--zoom));
  transform-origin: var(--fx) var(--fy);
}
.sc-cta h2 {
  font-size: clamp(1.8rem, 4.4vw, 2.6rem);
  line-height: 1.3;
  margin: 0 0 0.8rem;
  text-wrap: balance;               /* no lone "door." on a phone */
}
.sc-cta p {
  color: var(--sc-cream-2);
  max-width: 30em;
  margin: 0 auto 1.8rem;
  font-size: 1.02rem;
}
.sc-cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.sc-cta-buttons a {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 2.2rem;
  border-radius: 999px;
  font-family: 'Fredoka', 'M PLUS Rounded 1c', sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(180deg, #FFD37A, var(--sc-amber));
  color: var(--navy-deep);
  box-shadow: 0 10px 30px -10px rgba(245, 166, 35, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 160ms ease;
}
.sc-cta-buttons a:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(245, 166, 35, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.sc-cta-buttons a:active { transform: scale(0.97); }
.sc-cta-buttons a.alt {
  min-height: 0;
  padding: 0.2rem 0.3rem;
  background: none;
  box-shadow: none;
  color: var(--sc-lamp);
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: underline;
  text-decoration-color: rgba(255, 233, 184, 0.4);
  text-underline-offset: 5px;
}
.sc-cta-buttons a.alt:hover { transform: none; text-decoration-color: var(--sc-lamp); }
.sc-cta-buttons a:focus-visible { outline: 2px solid rgba(255, 233, 184, 0.9); outline-offset: 4px; }

/* ── Intro card: once per tab per visit; any click closes ─ */

.sc-intro {
  /* Pinned to the frame, not the page: the title and tabs stay sharp, and
     the room waiting in the dark is the note's stage. A note taller than
     the frame (iPad landscape, phones) keeps its top in the frame and runs
     down over the filmstrip, never up over the tabs. */
  position: absolute;
  inset: 12px;
  z-index: 6;
  display: grid;
  place-items: center;
  place-items: safe center;
  padding: 4%;
  border-radius: 18px;
  background: rgba(5, 8, 26, 0.32);
  animation: sc-fade-in 0.3s ease both;
}
.sc-intro[hidden] { display: none; }
.sc-scene.is-dusk ~ .sc-intro { background: none; }   /* the dusk already dims the room */
.sc-intro { pointer-events: none; }
.sc-intro-card { pointer-events: auto; }
.sc-intro.is-leaving { animation: sc-fade-out 0.22s ease both; }
.sc-intro-card {
  position: relative;
  max-width: min(32rem, 100%);
  padding: 1.9rem 2rem 1.4rem;
  border-radius: 20px;
  /* A paper note, like the paper tags in the app: cream, warm ink. Flat
     paper, lit by an inset edge: WebKit dithers a white radial wash on
     cream into dark specks. */
  background: var(--sc-paper);
  color: #3a2f22;
  border: 1px solid rgba(120, 84, 34, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 30px 70px -26px rgba(0, 0, 0, 0.75), 0 0 0 6px rgba(255, 233, 184, 0.08);
  animation: sc-rise 0.42s cubic-bezier(.05, .7, .1, 1) both;
}
.sc-intro-card:focus { outline: none; }
.sc-intro-card h2 {
  font-size: clamp(1.5rem, 3.6vw, 1.9rem);
  line-height: 1.3;
  margin: 0 0 0.7rem;
}
/* On paper the headline is ink, not lamplight. */
.sc-intro-card h2.page-headline,
.sc-intro-card h2.page-headline > span { color: #1B2A6B; background: none; -webkit-text-fill-color: #1B2A6B; }
.sc-intro-card p {
  color: #4a4037;
  font-size: 0.98rem;
  line-height: 1.85;
  margin: 0 0 0.8rem;
}
.sc-intro-foot { margin-top: 0.2rem; }
.sc-intro-go {
  display: inline-block;
  margin: 0.3rem 0 0.2rem;
  padding: 0.7rem 1.35rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Fredoka', 'M PLUS Rounded 1c', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(180deg, #FFD37A, var(--sc-amber));
  color: var(--navy-deep);
  box-shadow: 0 8px 24px -10px rgba(245, 166, 35, 0.6);
}
.sc-intro-go:focus-visible { outline: 2px solid rgba(255, 233, 184, 0.9); outline-offset: 3px; }
.sc-intro-hint {
  margin: 1.1rem 0 0 !important;
  font-family: 'Fredoka', 'M PLUS Rounded 1c', sans-serif;
  font-size: 0.85rem !important;
  color: #9a6a1e !important;
  opacity: 0.85;
  text-align: center;
  animation: sc-hint 2.6s ease-in-out 1s infinite;
}
@keyframes sc-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sc-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes sc-rise { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes sc-hint { 0%, 100% { opacity: 0.45; } 50% { opacity: 0.85; } }

/* ── The sound player ──────────────────────────────────── */

.sc-player {
  width: min(960px, 94vw);
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #000;
  overflow: visible;
}
.sc-player::backdrop { background: rgba(6, 10, 34, 0.84); }
.sc-player video { display: block; width: 100%; height: auto; border-radius: 18px; }
.sc-player-close {
  position: absolute;
  top: -2.8rem;
  right: 0;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(250, 246, 239, 0.35);
  background: rgba(19, 31, 82, 0.8);
  color: var(--cream);
  font-family: 'Fredoka', 'M PLUS Rounded 1c', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
}

/* ── Chapters: one lead feature, then lighter cards ─────── */

.sc-chapter { max-width: 1120px; margin: 0 auto; padding: 5.5rem 0 1rem; }
.sc-chapter + .sc-chapter { padding-top: 7rem; }
.sc-chapter-title {
  font-family: 'Fraunces', 'M PLUS Rounded 1c', Georgia, serif;
  font-variation-settings: 'opsz' 60, 'wght' 700, 'SOFT' 100, 'WONK' 1;
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 2.2rem;
  background:
    linear-gradient(100deg, rgba(255, 250, 236, 0) 40%, rgba(255, 252, 242, 0.95) 50%, rgba(255, 250, 236, 0) 60%) 100% 0 / 250% 100% no-repeat,
    linear-gradient(180deg, #FFE9B8 0%, #F5A623 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sc-chapter-title > span { -webkit-text-fill-color: transparent; }
.sc-chapter-title.is-inview { animation: sc-title-sweep 1400ms cubic-bezier(0.4, 0, 0.2, 1) 250ms 1 both; }
@keyframes sc-title-sweep {
  from { background-position: 100% 0, 0 0; }
  to { background-position: 0% 0, 0 0; }
}

/* Lead: the app in its frame; the copy on a paper card that overlaps it. */
.sc-feature--lead {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: center;
  gap: 0;
  padding: 0;
  scroll-margin-top: 1rem;
}
.sc-feature--lead .sc-media { order: 0; position: relative; z-index: 0; }
.sc-feature--lead .sc-copy {
  position: relative;
  z-index: 1;
  max-width: none;
  margin-left: -3.2rem;
  padding: 2rem 2.1rem 1.8rem;
  border-radius: 20px;
  background: var(--sc-paper);
  color: #3a2f22;
  border: 1px solid rgba(120, 84, 34, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 30px 60px -30px rgba(0, 0, 0, 0.7), 0 0 0 6px rgba(255, 233, 184, 0.06);
}
@media (min-width: 901px) {
  /* Alternate chapters mirror their lead: the paper overlaps from the left. */
  .sc-chapter:nth-child(even) .sc-feature--lead { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .sc-chapter:nth-child(even) .sc-feature--lead .sc-media { order: 2; }
  .sc-chapter:nth-child(even) .sc-feature--lead .sc-copy { order: 1; margin: 0 -3.2rem 0 0; }
}
.sc-feature--lead h3 { color: #1B2A6B; }
.sc-feature--lead .sc-lede { color: #2a2a3a; }
.sc-feature--lead .sc-copy p:not(.sc-lede) { color: #5a4f45; }
.sc-feature--lead .sc-tag { color: #7a5214; border-color: rgba(122, 82, 20, 0.35); }

/* Cards: lighter; the frame above has already said "this is the app". */
.sc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3.2rem 2.6rem;
  margin-top: 4.2rem;
}
.sc-cards--1 { grid-template-columns: minmax(0, 1fr); }
.sc-cards--1 .sc-feature--card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 2.6rem;
  align-items: center;
}
.sc-cards--1 .sc-feature--card .sc-media { order: 2; }
.sc-cards--1 .sc-feature--card .sc-copy { padding: 0; justify-self: end; }
.sc-cards--2, .sc-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 901px) {
  .sc-cards .sc-feature--wide { grid-column: span 2; }   /* room for a clip to be read, not a tighter crop */
}
.sc-feature--card {
  display: block;
  padding: 0;
  scroll-margin-top: 1rem;
}
.sc-feature--card .sc-frame {
  padding: 0;
  border-radius: 18px;
  background: #0b1030;
  box-shadow: 0 20px 44px -26px rgba(0, 0, 0, 0.75), inset 0 0 0 1px rgba(255, 233, 184, 0.1);
  overflow: hidden;
}
.sc-feature--card .sc-screen, .sc-feature--card .sc-still, .sc-feature--card video.sc-loop { border-radius: 18px; }
.sc-feature--card .sc-copy { max-width: 34em; padding: 1.3rem 0.2rem 0; }
.sc-feature--card h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-bottom: 0.45rem; }
.sc-feature--card .sc-lede { font-size: 1.02rem; margin-bottom: 0.55rem; }
.sc-feature--card .sc-copy p:not(.sc-lede) { font-size: 0.94rem; line-height: 1.75; }
.sc-feature--card .sc-frame::after { inset: -22px; }

/* ── The feature panel: a dot opens its feature in place ── */

.sc-fd {
  width: min(1120px, calc(100vw - 2.5rem));
  max-width: none;
  max-height: min(88dvh, 820px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(255, 233, 184, 0.22);
  border-radius: 26px;
  background: linear-gradient(180deg, #1d2d70 0%, #152259 100%);
  color: var(--cream);
  box-shadow: 0 0 120px -20px rgba(245, 166, 35, 0.25), 0 40px 90px -30px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}
.sc-fd[open] { display: flex; flex-direction: column; }
.sc-fd::backdrop {
  background: rgba(6, 10, 34, 0.72);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: sc-fade-in 0.35s ease both;
}
.sc-fd-body {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 2.2rem 2.4rem 2.4rem;
}
.sc-fd-body.has-more {
  -webkit-mask-image: linear-gradient(#000 calc(100% - 3.5rem), transparent);
  mask-image: linear-gradient(#000 calc(100% - 3.5rem), transparent);
}
.sc-fd h3:focus { outline: none; }
.sc-fd-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(250, 246, 239, 0.25);
  background: rgba(13, 20, 58, 0.78);
  color: var(--cream);
  cursor: pointer;
}
.sc-fd-close svg { width: 18px; height: 18px; }
.sc-fd-close:hover { background: rgba(27, 42, 107, 0.95); }
.sc-fd-close:focus-visible { outline: 2px solid rgba(255, 233, 184, 0.85); outline-offset: 2px; }
/* The section, laid out for the panel: media large on the left. */
.sc-fd .sc-feature {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem 2.6rem;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
}
.sc-fd .sc-feature .sc-media { order: 0; }
.sc-fd .sc-frame::after { display: none; }
.sc-fd .sc-copy { padding-right: 1.2rem; }

/* ▶ on the still: the version with sound. Shown only when a clip with
   sound exists (showcase.js unhides it). */
.sc-media-play {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  /* Quiet: the copy's "Watch with sound" is the loud version of this. */
  background: rgba(255, 246, 230, 0.88);
  color: var(--sc-amber);
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.55);
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}
.sc-media-play:hover,
.sc-media-play:focus-visible { background: linear-gradient(180deg, #FFD37A, var(--sc-amber)); color: var(--navy-deep); }
.sc-media-play[hidden] { display: none; }
/* A lead's paper card overlaps its still: keep ▶ on the uncovered side
   (left on wide screens, right where the chapter is mirrored; top when the
   paper sits under the still). */
@media (min-width: 901px) {
  .sc-chapter:nth-child(even) .sc-feature--lead .sc-media-play { left: auto; right: 22px; }
}
@media (max-width: 900px) {
  .sc-feature--lead .sc-media-play { bottom: 32px; }
}
.sc-media-play:hover { transform: scale(1.06); }
.sc-media-play:focus-visible { outline: 2px solid rgba(255, 233, 184, 0.9); outline-offset: 3px; }
.sc-media-play svg { width: 18px; height: 18px; margin-left: 3px; }

/* ── Tablet: one column ────────────────────────────────── */

@media (max-width: 900px) {
  .sc-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
    padding: 2.4rem 0;
    max-width: 640px;
    margin: 0 auto;
  }
  .sc-feature--lead, .sc-feature--card { padding: 0; gap: 0; }
  .sc-feature--lead { grid-template-columns: minmax(0, 1fr); max-width: none; }
  .sc-feature--lead .sc-copy { margin: -20px 1.2rem 0; }
  .sc-cards--1 .sc-feature--card { display: block; }
  .sc-cards--1 .sc-feature--card .sc-copy { padding: 1.3rem 0.2rem 0; }
  .sc-fd .sc-feature { grid-template-columns: minmax(0, 1fr); }
  .sc-fd .sc-copy { padding-right: 0; }
  .sc-fd-body { padding: 3.6rem 1.6rem 1.8rem; }
  /* One column is taller than a floating panel allows: a full sheet. */
  .sc-fd { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; }
  .sc-fd .sc-feature { max-width: 680px; margin: auto; }
  .sc-fd-body { display: flex; flex-direction: column; flex: 1 1 auto; }
}

/* ── Phone ─────────────────────────────────────────────── */

@media (max-width: 599px) {
  :root { --sc-tabs-h: 52px; }
  .sc { padding: 0.5rem 1rem 4rem; }
  .sc-sub { font-size: 0.95rem; margin-bottom: 1.3rem; }
  .sc-tabbar { margin: 0; }
  .sc-tabs [role="tab"] { font-size: 0.84rem; padding: 0 0.1rem; white-space: nowrap; }
  .sc-tabs [role="tab"] > span { padding-right: 1.45rem; }
  .sc-info { width: 18px; height: 18px; }
  .sc-info svg { width: 12px; height: 12px; }
  /* The page's own header on a phone: the wordmark a little smaller so the
     language switch never crowds it. */
  .legal-header { padding-inline: 64px; }
  .legal-header .header-wordmark { max-width: 150px; height: auto; }
  .sc-device { margin: 0 -0.5rem; padding: 6px; border-radius: 18px; }
  .sc-scene, .sc-view > img.sc-art { border-radius: 12px; }
  .sc-screens { justify-content: flex-start; margin: 0.8rem -1rem 0; padding: 0.2rem 1rem 0.4rem; }
  .sc-screen-chip { width: 72px; }
  .sc-chip-thumb { width: 72px; }
  .sc-dot-name { display: none; }
  .sc-dot-core { width: 14px; height: 14px; margin: -7px 0 0 -7px; }
  .sc-dot::before { width: 14px; height: 14px; margin: -7px 0 0 -7px; border-width: 1.5px; }
  .sc-feature--card .sc-frame { aspect-ratio: 16 / 10; }
  .sc-features { margin-top: 0.5rem; }
  .sc-chapter { padding-top: 3.5rem; }
  .sc-chapter + .sc-chapter { padding-top: 4.5rem; }
  .sc-chapter-title { margin-bottom: 1.4rem; }
  .sc-feature--lead .sc-copy { margin: -16px 0.4rem 0; padding: 1.4rem 1.2rem 1.3rem; }
  .sc-cards, .sc-cards--2, .sc-cards--4 { grid-template-columns: minmax(0, 1fr); gap: 2.6rem; margin-top: 2.8rem; }
  .sc-feature { padding: 2rem 0; }
  .sc-frame { padding: 7px; border-radius: 20px; }
  .sc-screen, .sc-screen > img, .sc-frame video.sc-loop, .sc-placeholder { border-radius: 13px; }
  .sc-screen > img, .sc-frame video.sc-loop { inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); }
  .sc-placeholder { padding: 1rem 1.1rem; gap: 0.35rem; }
  .sc-shot { font-size: 0.8rem; }
  .sc-lede { font-size: 1.03rem; }
  /* The note starts in the frame and ends above the first screen's foot
     (the frame starts ~385px down): its words scroll if they must, its
     button and hint stay in a foot. */
  .sc-intro { inset: 6px; border-radius: 13px; padding: 6px; place-items: start stretch; }
  .sc-intro-card { display: flex; flex-direction: column; max-height: max(240px, calc(100svh - 410px)); padding: 0.95rem 1.05rem 0.75rem; border-radius: 12px; }
  .sc-intro-card h2 { font-size: 1.22rem; margin-bottom: 0.35rem; }
  .sc-intro-body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
  .sc-intro-body.has-more {
    -webkit-mask-image: linear-gradient(#000 calc(100% - 1.8rem), transparent);
    mask-image: linear-gradient(#000 calc(100% - 1.8rem), transparent);
  }
  .sc-intro-card p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 0.55rem; }
  .sc-intro-foot { display: flex; align-items: center; justify-content: center; gap: 0.7rem; margin: 0; padding-top: 0.5rem; }
  .sc-intro-go { flex: none; margin: 0; padding: 0.55rem 1rem; font-size: 0.9rem; }
  .sc-intro-foot .sc-intro-go + .sc-intro-hint { text-align: left; }
  .sc-intro-hint { margin: 0 !important; font-size: 0.78rem !important; line-height: 1.4 !important; }
  .sc-fd-body { padding: 3.8rem 1rem 1.6rem; }
  .sc-media-play { left: 20px; bottom: 16px; width: 42px; height: 42px; }
}

/* ── Reduced motion ────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .sc-ind, .sc-dot, .sc-dot::after, .sc-dot-name, .sc-index > summary::before, .sc-go::after, .sc-screen-chip, .sc-chip-thumb { transition: none; }
  .sc-view.is-lit .sc-go::after { animation: none; }
  .sc-dusk { display: none; }
  .sc-dot { transition-delay: 0s; }
  .sc-dot::before { animation: none; opacity: 0; }
  .sc-dot-core { transition: none; }
  .sc-intro, .sc-intro.is-leaving, .sc-intro-card, .sc-intro-hint { animation: none; }
  .sc-feature.is-arriving .sc-frame::after { animation: none; }
  .sc-cta-buttons a { transition: none; }
  .sc-cta-buttons a:active { transform: none; }
  .sc-still { transition: none; }
  .sc-info { transition: none; }
  .sc-fd::backdrop { animation: none; }
  .sc-media-play { transition: none; }
}
