/* ==========================================================================
   OPTICORD V2 — styles for the new OptiCord sections (oc-v2.js).
   One set of components, two skins: Eclipse (flagship type: Instrument Sans,
   as on the Eclipse app pages, on the night sky) and Horizon (Funnel Display and Funnel Sans,
   on day paper or night bands). Components read only the --v2-* tokens.
   Apple's values where they are known: 150 ms stagger, 0.9 s opacity and
   0.7 s / 30 px rise on easeInOutQuad; 1 s gallery transitions; 6.25 %
   framing gutters; a 56 px glass control pill.
   Every hidden starting state is behind html.v2-motion, so the page reads
   complete without JavaScript and under Reduce Motion.
   ========================================================================== */

@property --v2-tint {
  syntax: "<color>";
  inherits: true;
  initial-value: #8a6dff;
}

.v2, .v2-band {
  --v2-fg: #f5f6fb;
  --v2-fg-2: #a9b0c2;
  --v2-fg-3: #7b8396;
  --v2-line: rgba(255, 255, 255, .1);
  --v2-fd: var(--font-display, "Instrument Sans", -apple-system, BlinkMacSystemFont, sans-serif);
  --v2-ft: var(--font-body, "Instrument Sans", -apple-system, BlinkMacSystemFont, sans-serif);
  --v2-glass: rgba(38, 39, 46, .62);
  --v2-glass-hover: rgba(58, 59, 68, .72);
  --v2-glass-fg: #f5f5f7;
  --v2-glass-line: rgba(255, 255, 255, .12);
  --v2-accent: #8fb4ff;
  --v2-ease: cubic-bezier(.22, 1, .36, 1);
  --v2-quad: cubic-bezier(.455, .03, .515, .955);
  --v2-gutter: max(6.25vw, calc((100vw - 1680px) / 2));
}
body[data-design="horizon"] :is(.v2, .v2-band) { --v2-fd: var(--fd); --v2-ft: var(--ft); --v2-accent: var(--lux, #9fb0ff); }
body[data-design="horizon"] .day :is(.v2, .v2-band) {
  --v2-fg: var(--ink);
  --v2-fg-2: var(--ink-2);
  --v2-fg-3: var(--ink-3);
  --v2-line: var(--line);
  --v2-glass: rgba(255, 255, 255, .74);
  --v2-glass-hover: rgba(255, 255, 255, .92);
  --v2-glass-fg: var(--ink);
  --v2-glass-line: rgba(18, 22, 30, .08);
  --v2-accent: var(--hue, #3b55e6);
}

.v2 button { appearance: none; -webkit-appearance: none; margin: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.v2 :focus-visible { outline: 2px solid var(--v2-accent); outline-offset: 3px; }

/* ------------------------------------------------------------ rise (stagger) */
.v2-motion [data-rise].is-armed [data-rise-item] {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity .9s var(--v2-quad), transform .7s var(--v2-quad);
  transition-delay: calc(var(--i, 0) * 150ms);
}
.v2-motion [data-rise].is-armed.is-risen [data-rise-item] { opacity: 1; transform: none; }

/* -------------------------------------------------------------- the pill */
.v2-pill { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; }
.v2-pill__dots, .v2-pill__play {
  height: 56px;
  border-radius: 999px;
  background: var(--v2-glass);
  color: var(--v2-glass-fg);
  box-shadow: inset 0 0 0 1px var(--v2-glass-line);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
}
.v2-pill__dots { display: flex; align-items: center; gap: 14px; padding: 0 24px; }
.v2-pill__dot {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 38%, transparent) !important;
  transition: width .6s var(--v2-ease), background .3s;
}
.v2-pill__dot::before { content: ""; position: absolute; inset: -14px -6px; }
.v2-pill__dot:hover { background: color-mix(in srgb, currentColor 70%, transparent) !important; }
.v2-pill__dot[aria-current="true"] { width: 44px; background: color-mix(in srgb, currentColor 24%, transparent) !important; }
.v2-pill__dot[aria-current="true"]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: currentColor; transform-origin: left; }
.v2-pill.is-playing .v2-pill__dot[aria-current="true"]::after { animation: v2-dwell var(--dwell, 6150ms) linear both; }
@keyframes v2-dwell { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.v2-pill__play { display: grid; place-items: center; width: 56px; transition: background .25s, transform .3s var(--v2-ease); }
.v2-pill__play:hover { background: var(--v2-glass-hover); }
.v2-pill__play:active { transform: scale(.94); }
.v2-pill__play svg, .v2-sound svg { width: 13px; height: 13px; fill: currentColor; }
[data-state="playing"] > .v2-i-play, [data-state="paused"] > .v2-i-pause { display: none; }
.v2-pill__name { min-width: 12ch; margin: 0 4px 0 0; color: var(--v2-fg-2); font: 500 14px/1 var(--v2-ft); letter-spacing: .01em; text-align: center; }

/* ---------------------------------------------------------------- the reel */
.v2-reel { position: relative; --card: min(1180px, 74vw, calc((100svh - 300px) * 1.6)); --gap: clamp(18px, 2.2vw, 32px); }
.v2-reel__track {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 56px calc((100% - var(--card)) / 2) 64px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.v2-reel__track::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) { .v2-reel__track { cursor: grab; } .v2-reel__track.is-dragging { cursor: grabbing; } }
.v2-reel__track.is-dragging * { user-select: none; }
.v2-reel__track:focus-visible { box-shadow: inset 0 0 0 2px var(--v2-accent); border-radius: 18px; }
.v2-reel__item { position: relative; flex: 0 0 var(--card); margin: 0; scroll-snap-align: center; scroll-snap-stop: always; }
.v2-reel__frame { position: relative; transform-origin: 50% 60%; }
.v2-reel__frame::before {
  content: "";
  position: absolute;
  inset: 14% 10% -10%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--item-tint, #8a6dff) 55%, transparent), transparent);
  filter: blur(46px);
  opacity: .8;
  pointer-events: none;
}
.v2-reel__frame img { display: block; width: 100%; height: auto; -webkit-user-drag: none; filter: drop-shadow(0 36px 46px rgba(0, 0, 0, .55)); }
.v2-reel__cap {
  max-width: 46ch;
  margin: 34px auto 0;
  color: var(--v2-fg-2);
  font: 500 21px/1.4 var(--v2-ft);
  letter-spacing: -.01em;
  text-align: center;
  text-wrap: balance;
}
.v2-reel__cap b { color: var(--v2-fg); font-weight: 600; }
.v2-motion .v2-reel[data-ready] .v2-reel__frame {
  transform: scale(calc(1 - min(var(--ad, 0), 1) * .09));
  opacity: calc(1 - min(var(--ad, 0), 1) * .55);
}
.v2-motion .v2-reel[data-ready] .v2-reel__frame::before { opacity: calc(.8 - min(var(--ad, 0), 1) * .8); }
.v2-motion .v2-reel[data-ready] .v2-reel__cap {
  transform: translate3d(calc(var(--d, 0) * -42%), 0, 0);
  opacity: calc(1 - min(var(--ad, 0) * 1.7, 1));
}
/* the arrows sit in the control row beneath the cards, never between them */
.v2-pill__paddles { display: flex; gap: 10px; }
.v2-reel__paddle {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--v2-glass);
  color: var(--v2-glass-fg);
  box-shadow: inset 0 0 0 1px var(--v2-glass-line);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  transition: opacity .3s, background .25s, transform .3s var(--v2-ease);
}
.v2-reel__paddle:hover:not(:disabled) { background: var(--v2-glass-hover); }
.v2-reel__paddle:active:not(:disabled) { transform: scale(.94); }
.v2-reel__paddle:disabled { opacity: .35; cursor: default; }
.v2-reel__paddle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 734px) { .v2-pill__paddles { display: none; } }

/* the band behind a reel takes the colour of the theme in front */
.v2-tinted { position: relative; isolation: isolate; transition: --v2-tint 1.2s var(--v2-quad); }
.v2-tinted::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 46% at 50% 58%, color-mix(in srgb, var(--v2-tint) 22%, transparent), transparent 72%),
    radial-gradient(40% 30% at 50% 100%, color-mix(in srgb, var(--v2-tint) 12%, transparent), transparent 80%);
  /* the colour fades out before the band's edges, so it never ends in a
     straight line against the sky or the neon word that follows */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 68%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 68%, transparent 100%);
}

/* ------------------------------------------- highlight cards (Eclipse) */
.v2-reel--cards { --card: min(1320px, 87.5vw); --gap: 20px; }
.v2-reel--cards .v2-reel__track { padding-block: 0 44px; }
.v2-hcard {
  position: relative;
  height: clamp(560px, 80svh, 820px);
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(85% 70% at 72% 92%, color-mix(in srgb, var(--item-tint, #3b9eff) 30%, transparent), transparent 70%),
    radial-gradient(60% 60% at 10% 0%, rgba(255, 255, 255, .045), transparent 70%),
    #0a0c13;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  isolation: isolate;
}
/* The line on top, the whole capture beneath it: the capture is sized to
   the room the card has left (container units), never past an edge and
   never under the words. */
.v2-hcard {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  row-gap: clamp(20px, 2.2vw, 32px);
  padding: clamp(34px, 4.6vw, 60px) clamp(32px, 4.6vw, 72px) clamp(26px, 2.8vw, 40px);
}
.v2-hcard__cap {
  position: relative;
  z-index: 3;
  max-width: 38ch;
  margin: 0;
  color: var(--v2-fg-2);
  font: 600 clamp(24px, 2.2vw, 32px)/1.16 var(--v2-fd);
  letter-spacing: -.025em;
  text-wrap: balance;
}
/* the lead is set apart by colour, as on Apple's cards, so the line keeps one cut */
.v2-hcard__cap b { color: var(--v2-fg); font-weight: inherit; }
.v2-hcard__media {
  position: relative;
  z-index: 1;
  min-height: 0;
  margin: 0;
  display: grid;
  place-items: end center;
  container-type: size;
}
.v2-hcard__shot {
  position: relative;
  width: min(100cqw, 100cqh * var(--ar, 1.6));
  aspect-ratio: var(--ar, 1.6);
  perspective: 1500px;
}
.v2-hcard__shot > img, .v2-hcard__shot > video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: .9% / 1.45%; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .6)); }
.v2-motion .v2-reel--cards[data-ready] .v2-reel__frame { transform: none; opacity: 1; }
.v2-motion .v2-reel--cards[data-ready] .v2-hcard__cap {
  transform: translate3d(calc(var(--d, 0) * -140px), 0, 0);
  opacity: calc(1 - min(var(--ad, 0) * 1.5, 1));
}
.v2-motion .v2-reel--cards[data-ready] .v2-hcard__media { transform: translate3d(calc(var(--d, 0) * 36px), calc(min(var(--ad, 0), 1) * 18px), 0); }

/* The pop: one real element cut from the capture lifts out of its own
   pixels while its slide is in front, tilts toward the reader and keeps
   drifting while the gallery plays, then settles back as the next slide
   arrives. Where it lifted from, the capture keeps a soft shadow. */
.v2-pop {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  width: var(--w) !important;
  height: auto !important;
  pointer-events: none;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .62)) drop-shadow(0 6px 10px rgba(0, 0, 0, .45)) !important;
  will-change: transform, opacity;
}
.v2-hcard__shot > .v2-pop { left: var(--x); top: var(--y); }
.v2-pop--neon { filter: drop-shadow(0 0 14px color-mix(in srgb, var(--item-tint) 75%, transparent)) drop-shadow(0 30px 40px rgba(0, 0, 0, .7)) !important; }
.v2-hcard__shot::after {
  content: "";
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  z-index: 1;
  border-radius: 6%;
  background: rgba(3, 4, 9, .55);
  box-shadow: 0 0 22px 10px rgba(3, 4, 9, .4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s var(--v2-quad);
}
/* a lifted neon sign leaves the bare wall behind: the hole takes the sign's own shape */
.v2-hcard__shot:has(.v2-pop--neon)::after {
  border-radius: 0;
  background: #020204;
  box-shadow: none;
  -webkit-mask: var(--hole) center / 100% 100% no-repeat;
  mask: var(--hole) center / 100% 100% no-repeat;
}
/* without motion the detail simply stands in front of its capture */
.v2-pop { transform: translate3d(var(--tx, 0%), var(--ty, -8%), var(--tz, 170px)) rotateX(var(--rx, 9deg)) rotateY(var(--ry, -12deg)) scale(var(--s, 1.18)); }
.v2-reel__item .v2-hcard__shot::after { opacity: 1; }
.v2-motion .v2-reel--cards[data-ready] .v2-pop {
  opacity: 0;
  transform: none;
  transition: transform .55s cubic-bezier(.55, 0, .75, .2), opacity .3s var(--v2-quad) .2s;
  /* the drift only ever pauses, so a detail never jumps as it settles */
  animation: v2-pop-drift 5.2s ease-in-out infinite alternate both;
  animation-play-state: paused;
}
.v2-motion .v2-reel--cards[data-ready] .v2-hcard__shot::after { opacity: 0; }
.v2-motion .v2-reel--cards[data-ready] .is-current .v2-pop {
  opacity: 1;
  transform: translate3d(var(--tx, 0%), var(--ty, -8%), var(--tz, 170px)) rotateX(var(--rx, 9deg)) rotateY(var(--ry, -12deg)) scale(var(--s, 1.18));
  /* a spring with a little overshoot, once the slide has landed */
  transition: transform 1.25s cubic-bezier(.2, 1.3, .32, 1) .75s, opacity .35s var(--v2-quad) .75s;
  animation-play-state: running;
}
.v2-motion .v2-reel--cards[data-ready] .is-current .v2-hcard__shot::after { opacity: 1; transition-delay: .75s; }
.v2-motion .v2-reel--cards[data-ready]:not(.is-inview) .is-current .v2-pop,
.v2-motion .v2-reel--cards[data-ready]:has(.is-dragging) .is-current .v2-pop { animation-play-state: paused; }
@keyframes v2-pop-drift {
  from { translate: 0 0; rotate: 0 1 0 0deg; }
  to { translate: 0 -5%; rotate: 0 1 0 9deg; }
}
@media (prefers-reduced-motion: reduce) { .v2-pop { animation: none !important; } }
@media (max-width: 734px) {
  .v2-reel { --card: 86vw; }
  .v2-reel--cards { --card: 88vw; --gap: 12px; }
  .v2-hcard { height: 100%; min-height: 0; padding: 28px 20px 22px; row-gap: 22px; border-radius: 24px; }
  .v2-hcard__cap { font-size: 22px; }
  .v2-hcard__media { container-type: normal; }
  .v2-hcard__shot { width: 100%; }
  .v2-pop { --tz: 90px; }
  .v2-reel__cap { font-size: 17px; margin-top: 22px; }
  .v2-pill__dots { gap: 11px; padding: 0 18px; height: 50px; }
  .v2-pill__play { width: 50px; height: 50px; }
}

/* glow words: assets/stage/glow.css */

/* ------------------------------------------------- feature film (Quests)
   Apple's feature block: a contained recording that rises into place,
   scale .92 → 1 and opacity in on easeInOutQuad, its line set beneath it. */
.v2-feature { --p: 1; width: min(1060px, 80%); margin: 0 auto; }
.v2-feature__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1642 / 1018;
  border-radius: 22px;
  background: #04050a;
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08);
}
.v2-feature__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v2-feature__ui { position: absolute; right: 18px; bottom: 18px; z-index: 2; }
.v2-motion .v2-feature[data-feature] .v2-feature__media {
  transform: translate3d(0, calc((1 - var(--p)) * 60px), 0) scale(calc(.92 + var(--p) * .08));
  opacity: calc(.25 + var(--p) * .75);
  will-change: transform, opacity;
}
.v2-feature__cap { margin: 44px auto 0; text-align: center; }
.v2-feature__eyebrow { display: block; margin-bottom: 12px; color: var(--v2-fg-2); font: 600 19px/1.2 var(--v2-ft); letter-spacing: -.01em; }
.v2-feature__headline { display: block; color: var(--v2-fg); font: 700 clamp(34px, 4.4vw, 64px)/1.05 var(--v2-fd); letter-spacing: -.013em; text-wrap: balance; }
@media (max-width: 734px) {
  .v2-feature { width: calc(100% - var(--v2-gutter) * 2); }
  .v2-feature__media { border-radius: 16px; }
  .v2-feature__ui { right: 10px; bottom: 10px; }
  .v2-feature__cap { margin-top: 28px; }
}

/* ------------------------------------------------------------ sound pill */
.v2-sound {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(16, 18, 26, .58);
  color: #f5f5f7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  transition: background .25s;
}
.v2-sound:hover { background: rgba(30, 33, 44, .72); }
.v2-sound button { appearance: none; -webkit-appearance: none; margin: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.v2-sound__btn { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 10px; border-radius: 999px; font: 600 13px/1 var(--v2-ft, -apple-system, sans-serif); letter-spacing: -.005em; white-space: nowrap; }
.v2-sound__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.v2-sound__btn svg path:first-child { fill: currentColor; stroke: none; }
.v2-sound .v2-i-on, .v2-sound.is-on .v2-i-off { display: none; }
.v2-sound.is-on .v2-i-on { display: block; }
.v2-sound__level {
  --v: 0%;
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  height: 32px;
  margin: 0;
  padding: 0;
  background: transparent;
  opacity: 0;
  cursor: pointer;
  transition: width .45s var(--v2-ease, ease), opacity .3s, margin .45s var(--v2-ease, ease);
}
.v2-sound.is-on .v2-sound__level, .v2-sound:focus-within .v2-sound__level, .v2-sound:hover .v2-sound__level { width: 88px; margin-right: 8px; opacity: 1; }
.v2-sound__level::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, #fff var(--v), rgba(255, 255, 255, .28) var(--v)); }
.v2-sound__level::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; margin-top: -5px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.v2-sound__level::-moz-range-track { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .28); }
.v2-sound__level::-moz-range-progress { height: 3px; border-radius: 3px; background: #fff; }
.v2-sound__level::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: #fff; }
.v2-sound__play { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; }
.v2-sound__play:hover, .v2-sound__btn:hover { background: rgba(255, 255, 255, .12); }
.v2-sound :focus-visible { outline: 2px solid #9fc2ff; outline-offset: 1px; }
.v2-sound__sep { width: 1px; height: 18px; background: rgba(255, 255, 255, .18); }

/* the Eclipse deck: the window in front carries its sound */
.oc-deck__shot > .v2-sound { position: absolute; left: 16px; bottom: 16px; z-index: 3; translate: 0 0 2px; transition: opacity .35s ease, visibility 0s, background .25s; }
.oc-deck__card:not(.is-front) .v2-sound { opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s .25s; }
.oc-deck__shot--film video { aspect-ratio: 1644 / 1020; object-fit: cover; }
@media (max-width: 734px) { .oc-deck__shot > .v2-sound { left: 8px; bottom: 8px; transform: scale(.86); transform-origin: left bottom; } }

/* --------------------------------------------------------------- fade gallery */
.v2-fade { width: min(1240px, 87.5%); margin: 0 auto; }
.v2-fade__stage { display: grid; perspective: 2200px; }
.v2-fade__item { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity 1s var(--v2-quad), visibility 0s 1s, transform 1.2s var(--v2-ease); transform: scale(1.012); }
.v2-fade__item.is-current { opacity: 1; visibility: visible; transform: none; transition: opacity 1s var(--v2-quad), visibility 0s, transform 1.2s var(--v2-ease); }
.v2-fade__item img { display: block; width: 100%; height: auto; filter: drop-shadow(0 44px 60px rgba(0, 0, 0, .42)); }
.v2-fade__bar { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 40px; }
.v2-fade__tabs {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--v2-glass);
  color: var(--v2-glass-fg);
  box-shadow: inset 0 0 0 1px var(--v2-glass-line);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
}
.v2-fade__tabs button {
  position: relative;
  overflow: hidden;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  color: var(--v2-fg-2);
  font: 500 15px/1 var(--v2-ft);
  transition: background .3s, color .3s;
}
.v2-fade__tabs button:hover { color: var(--v2-glass-fg); }
.v2-fade__tabs button[aria-selected="true"] { background: color-mix(in srgb, var(--v2-glass-fg) 14%, transparent); color: var(--v2-glass-fg); }
.v2-fade__tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: .5;
  transform: scaleX(0);
  transform-origin: left;
}
.v2-fade.is-playing .v2-fade__tabs button[aria-selected="true"]::after { animation: v2-dwell var(--dwell, 5200ms) linear both; }
.v2-fade__notes { display: grid; max-width: 44ch; margin: 30px auto 0; text-align: center; }
.v2-fade__notes p { grid-area: 1 / 1; margin: 0; color: var(--v2-fg-2); font: 600 21px/1.38 var(--v2-fd); letter-spacing: -.02em; opacity: 0; transition: opacity .6s var(--v2-quad); }
.v2-fade__notes p b { color: var(--v2-fg); font-weight: 600; }
.v2-fade__notes p.is-current { opacity: 1; transition-delay: .25s; }
html:not(.v2-js) .v2-fade__item:first-child, html:not(.v2-js) .v2-fade__notes p:first-child { opacity: 1; visibility: visible; }

/* ------------------------------------------------------------- callouts */
.v2-callouts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 40px; width: min(1240px, 87.5%); margin: 104px auto 0; padding: 0; list-style: none; }
.v2-callout { margin: 0; }
.v2-callout__i { display: block; width: 34px; height: 34px; margin-bottom: 18px; color: var(--v2-accent); }
.v2-callout__i svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.v2-callout h3 { margin: 0 0 10px; color: var(--v2-fg); font: 600 21px/1.2 var(--v2-fd) !important; letter-spacing: -.02em !important; }
.v2-callout p { margin: 0; color: var(--v2-fg-2); font: 400 17px/1.5 var(--v2-ft); }
@media (max-width: 1068px) { .v2-callouts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 734px) { .v2-callouts { grid-template-columns: 1fr; gap: 34px; margin-top: 72px; } }

/* ------------------------------------------------- coming-from list (tabs) */
.v2-alt { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 7%; width: var(--oc-content, 87.5%); margin: 0 auto; align-items: start; }
.v2-alt__list { display: flex; flex-direction: column; border-top: 1px solid var(--v2-line); }
.v2-alt__list button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 4px 20px 22px;
  border-bottom: 1px solid var(--v2-line);
  color: var(--v2-fg-3);
  font: 600 clamp(19px, 1.8vw, 24px)/1.2 var(--v2-fd);
  letter-spacing: -.025em;
  text-align: left;
  transition: color .3s;
}
.v2-alt__list button::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--v2-accent); transform: scaleY(0); transition: transform .45s var(--v2-ease); }
.v2-alt__list button::after { content: ""; width: 8px; height: 8px; border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor; transform: rotate(45deg); opacity: 0; transition: opacity .3s, transform .45s var(--v2-ease); }
.v2-alt__list button:hover { color: var(--v2-fg-2); }
.v2-alt__list button[aria-selected="true"] { color: var(--v2-fg); }
.v2-alt__list button[aria-selected="true"]::before { transform: scaleY(1); }
.v2-alt__list button[aria-selected="true"]::after { opacity: 1; }
.v2-alt__list button:focus-visible { outline-offset: -2px; }
.v2-alt__panels { display: grid; position: sticky; top: calc(var(--oc-local-h, 52px) + 120px); }
.v2-alt__panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translate3d(0, 14px, 0); transition: opacity .5s var(--v2-quad), transform .7s var(--v2-ease), visibility 0s .5s; }
.v2-alt__panel.is-current { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--v2-quad) .1s, transform .8s var(--v2-ease) .1s, visibility 0s; }
.v2-alt__panel h3 { margin: 0 0 18px; color: var(--v2-fg); font: 700 clamp(30px, 3vw, 44px)/1.08 var(--v2-fd) !important; letter-spacing: -.012em !important; }
.v2-alt__panel p { max-width: 46ch; margin: 0; color: var(--v2-fg-2); font: 500 21px/1.5 var(--v2-ft); }
.v2-alt__panel a { color: var(--accent-ink, var(--v2-accent)); text-underline-offset: 3px; }
html:not(.v2-js) .v2-alt__panel { position: static; opacity: 1; visibility: visible; transform: none; margin-bottom: 36px; }
@media (max-width: 1068px) {
  .v2-alt { grid-template-columns: 1fr; gap: 40px; }
  .v2-alt__panels { position: relative; top: 0; }
}

/* ------------------------------------------------------------ themes count */
.v2-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; margin: 6px 0 0; padding: 0; list-style: none; color: var(--v2-fg-3); font: 500 12px/1 var(--font-mono, ui-monospace, monospace); letter-spacing: .14em; text-transform: uppercase; }

/* ------------------------------------------------ Eclipse page: section rhythm */
.oc-v2page .oc-quests .oc-intro, .oc-v2page .oc-shop .oc-intro { padding-bottom: 64px; }
.oc-v2page .oc-themes { position: relative; padding: 0 0 var(--oc-pad); }
.oc-v2page .oc-themes .oc-intro { padding-bottom: 8px; }
.oc-v2page .oc-highlights__head { margin-bottom: 36px; }

/* ------------------------------------------------ Horizon page: section rhythm */
body[data-design="horizon"] .v2-tinted > .v2-glow { margin-top: calc(var(--sec) * -1); }
body[data-design="horizon"] .v2-tinted > .head { margin-bottom: 8px; }
body[data-design="horizon"] .sec > .v2-fade { margin-top: 72px; }
body[data-design="horizon"] .sec > .v2-feature { margin-top: 64px; }

/* the radial glow under the Messages window ended in a hard edge above Translate */
.oc-v2page .oc-messages__stage::before { display: none; }

/* --------------------------------------------- Eclipse page: no boxed cards */
.oc-v2page .oc-parity { gap: 0 7%; }
.oc-v2page .oc-parity__col,
.oc-v2page .oc-parity__col--plus { padding: 36px 0 0; border-radius: 0; background: none; box-shadow: none; border-top: 1px solid var(--oc-rule, rgba(255, 255, 255, .14)); }
.oc-v2page .oc-versus__scroll { border-radius: 0; background: none; box-shadow: none; }
.oc-v2page .oc-versus thead th { padding-inline: 0 30px; }
.oc-v2page .oc-versus tbody th { padding-left: 0; }
.oc-v2page .oc-versus .is-us { background: none; }
.oc-v2page .oc-versus thead th.is-us span { font-size: 28px; }
.oc-v2page .oc-buy__card { padding: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.oc-v2page .oc-buy__card .oc-buy__label { padding-bottom: 18px; border-bottom: 1px solid var(--oc-line); }

/* Eclipse hero: Apple's ribbon above the headline */
.v2-ribbon { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 9px 16px 9px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: var(--oc-dim, #b3b9cb); font: 500 14px/1 var(--font-body, sans-serif); text-decoration: none; transition: background .25s, color .25s; }
.v2-ribbon:hover { background: rgba(255, 255, 255, .1); color: var(--oc-ink, #fff); }
.v2-ribbon { white-space: nowrap; }
@media (max-width: 734px) { .v2-ribbon { margin-bottom: 20px; font-size: 13px; } }
.v2-ribbon b { padding: 5px 9px; border-radius: 999px; background: linear-gradient(105deg, #8a6dff, #e0507a); color: #fff; font: 600 11px/1 var(--font-mono, ui-monospace, monospace); letter-spacing: .1em; text-transform: uppercase; }
.v2-ribbon svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.v2-ribbon--day { background: rgba(255, 255, 255, .08); color: var(--n-fg-2, #a6abb3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); font-family: var(--ft, sans-serif); }
.oc-motion.oc-booting .oc-hero .v2-ribbon { opacity: 0; }
.oc-hero .v2-ribbon { grid-area: ribbon; justify-self: start; align-self: end; transition: opacity .9s var(--v2-quad, ease) .2s, background .25s, color .25s; }
.oc-v2page .oc-hero__inner { grid-template-areas: "ribbon deck" "title deck" "sub deck" "foot deck"; grid-template-rows: auto auto auto 1fr; }
@media (max-width: 1068px) {
  .oc-v2page .oc-hero__inner { grid-template-areas: "ribbon" "title" "sub" "deck" "foot"; }
  .oc-hero .v2-ribbon { justify-self: center; }
}

/* ------------------------------------------------- home: the cord spotlight */
.v2-spot { position: relative; overflow: clip; text-align: center; }
.v2-spot__head { width: min(980px, 87.5%); margin: 0 auto; }
.v2-spot__icon { width: 92px; height: 92px; margin: 0 auto 26px; border-radius: 21px; box-shadow: 0 18px 60px -24px color-mix(in srgb, var(--v2-tint) 80%, transparent); }
.v2-spot__eyebrow { margin: 0 0 16px; color: var(--v2-fg-2); font: 600 19px/1.2 var(--v2-ft); letter-spacing: -.01em; }
.v2-spot__title { margin: 0; color: var(--v2-fg); font: 700 clamp(44px, 6.4vw, 96px)/1.02 var(--v2-fd) !important; letter-spacing: -.015em !important; text-wrap: balance; }
.v2-spot__title span { background: linear-gradient(100deg, #f5f1ff 0%, #c9b8fe 40%, #e0507a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v2-spot__lede { max-width: 42ch; margin: 26px auto 0; color: var(--v2-fg-2); font: 500 21px/1.43 var(--v2-ft); text-shadow: 0 2px 18px rgba(5, 6, 11, .95), 0 0 3px rgba(5, 6, 11, .8); }
.v2-spot__title, .v2-spot__eyebrow { filter: drop-shadow(0 4px 22px rgba(5, 6, 11, .85)); }
.v2-spot__ctas { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px 26px; margin-top: 34px; }
.v2-spot__film { position: relative; width: min(1180px, 87.5%); margin: 84px auto 0; }
.v2-spot__film video { display: block; width: 100%; height: auto; aspect-ratio: 1644 / 1020; object-fit: cover; border-radius: 1.05% / 1.68%; background: #05060b; box-shadow: 0 70px 140px -50px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08), 0 0 160px -50px color-mix(in srgb, var(--v2-tint) 60%, transparent); }
.v2-spot__film .v2-sound { position: absolute; left: 18px; bottom: 18px; }
.v2-strip { margin-top: 84px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.v2-strip__row + .v2-strip__row { margin-top: 22px; }
.v2-strip__track { display: flex; gap: 22px; width: max-content; animation: v2-drift 90s linear infinite; animation-play-state: paused; }
.v2-strip__row--rev .v2-strip__track { animation-direction: reverse; animation-duration: 104s; }
.v2-strip.is-running .v2-strip__track { animation-play-state: running; }
.v2-strip:hover .v2-strip__track { animation-play-state: paused; }
.v2-strip__track img { display: block; width: clamp(260px, 26vw, 420px); height: auto; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .45)); }
@keyframes v2-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .v2-strip__track { animation: none; } }

@media (prefers-reduced-motion: reduce) {
  .v2 *, .v2-band * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
