/* v3.13: One year of RestMap (draft). Page-scoped; builds on site.v2.css and release.v35.1.css tokens. */
.oy-page { overflow-x: clip; }

/* Night bands bookend the page in both color schemes, so their colors are fixed, not tokens. */
.oy-night {
 position: relative; isolation: isolate; color: #f8f4ea;
 background:
  radial-gradient(ellipse 70% 55% at 78% 8%, #2f8c8a40, transparent 70%),
  radial-gradient(ellipse 60% 40% at 18% 0%, #3aa08a2b, transparent 72%),
  linear-gradient(180deg, #0a1422 0%, #0f2134 58%, #133140 100%);
}
.oy-night::before {
 content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .75;
 -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 30%, transparent 62%); mask-image: linear-gradient(180deg, #000 0%, #000 30%, transparent 62%);
 background:
  radial-gradient(1.6px 1.6px at 7% 22%, #fff 50%, transparent 52%),
  radial-gradient(1.2px 1.2px at 15% 64%, #fff 50%, transparent 52%),
  radial-gradient(1.4px 1.4px at 24% 12%, #ffe7a3 50%, transparent 52%),
  radial-gradient(1.1px 1.1px at 33% 41%, #fff 50%, transparent 52%),
  radial-gradient(1.5px 1.5px at 42% 8%, #fff 50%, transparent 52%),
  radial-gradient(1.2px 1.2px at 47% 77%, #fff 50%, transparent 52%),
  radial-gradient(1.6px 1.6px at 56% 30%, #ffe7a3 50%, transparent 52%),
  radial-gradient(1.1px 1.1px at 63% 6%, #fff 50%, transparent 52%),
  radial-gradient(1.4px 1.4px at 71% 54%, #fff 50%, transparent 52%),
  radial-gradient(1.2px 1.2px at 82% 18%, #fff 50%, transparent 52%),
  radial-gradient(1.6px 1.6px at 90% 70%, #ffe7a3 50%, transparent 52%),
  radial-gradient(1.1px 1.1px at 96% 36%, #fff 50%, transparent 52%);
}
/* The night bands stay dark in both schemes, so their button always uses the dark-scheme CTA pair (14181D on 4FC3D8 is AA). */
.oy-night { --brand-cta: #4FC3D8; --brand-cta-hover: #6ED2E4; --on-accent: #14181D; }
.oy-night h1, .oy-night h2 { color: #f8f4ea; }
.oy-night p { color: #d5dee2; }
.oy-night .eyebrow { color: #f5c66b; }
.oy-night a:not(.launch-button) { color: #8fdceb; }
.oy-night a:not(.launch-button):hover { color: #c3eef6; }
.oy-night :where(a, button):focus-visible { outline-color: #8fdceb; }

/* Hero: beat 1, a swappable film slot in a phone frame. */
.oy-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(36px, 6vw, 88px); align-items: center; padding-block: 64px 76px; }
.oy-hero h1 { font-size: clamp(3rem, 6.2vw, 5.4rem); line-height: 1.02; letter-spacing: -.04em; margin: 14px 0 22px; max-width: 11ch; }
.oy-gold { background: linear-gradient(180deg, #fff3c9 0%, #ffd978 48%, #f2b544 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.oy-hero .launch-lede { color: #dfe6e9; max-width: 40ch; }
.oy-jump { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 600; font-size: .95rem; text-decoration: none; }
.oy-jump:hover { text-decoration: underline; text-underline-offset: 5px; }
.oy-hero-phone { margin: 0; justify-self: center; position: relative; }
.oy-hero-phone .launch-phone-frame { width: 300px; box-shadow: inset 0 0 0 1px #c4d1d63d, 0 30px 60px -22px #000c, 0 0 90px -20px #f2b5443d; }
.oy-hero-phone .iphone-screen { aspect-ratio: 9 / 16; background: #0a1422; }
.oy-hero-phone .iphone-screen > video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
/* The film plays only when the reader presses play, with its music, so Reduce Motion keeps it available. */
.oy-hero-phone .iphone-screen > video.oy-film { background: #0a1422; }
.oy-film-caption { margin-top: 14px; text-align: center; color: #f8f4ea; font-weight: 600; font-size: .9rem; opacity: .86; }

/* The road so far: beats 2 to 4 as stops on a dashed route. */
.oy-stops { padding-block: 88px 92px; }
.oy-stops .section-intro { margin-bottom: 46px; }
.oy-route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; position: relative; }
.oy-route::before { content: ''; position: absolute; top: 21px; left: 22px; right: calc((100% - 56px) / 3 - 22px); border-top: 3px dashed color-mix(in srgb, var(--brand-ink) 45%, transparent); }
.oy-stop { position: relative; display: flex; flex-direction: column; }
.oy-pin { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50% 50% 50% 6px; transform: rotate(-45deg); background: var(--brand-cta); box-shadow: 0 0 0 6px var(--paper), 0 8px 18px -8px #12283180; margin-bottom: 22px; }
.oy-pin span { transform: rotate(45deg); color: var(--on-accent); font-weight: 700; font-size: 1.05rem; }
.oy-stop:nth-child(2) .oy-pin { background: var(--grade-b-ink); }
.oy-stop:nth-child(3) .oy-pin { background: var(--sign-blue); }
.oy-stop-card { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 26px 24px 26px; box-shadow: var(--shadow-card); }
.oy-stop .eyebrow { margin-bottom: 10px; }
.oy-stop h3 { font-size: 1.42rem; line-height: 1.2; letter-spacing: -.015em; margin-bottom: 12px; }
.oy-stop p { margin: 0; line-height: 1.6; }
.oy-stop-visual { min-height: 130px; display: flex; align-items: center; margin-bottom: 20px; }
.oy-icons { display: flex; align-items: flex-start; gap: 14px; margin: 0; }
.oy-icons figure { margin: 0; text-align: center; }
.oy-icons img { display: block; width: 76px; height: 76px; border-radius: 22.37%; box-shadow: 0 6px 16px -8px #12283199; }
.oy-icons figcaption { font-size: .74rem; font-weight: 600; color: var(--ink-2); margin-top: 8px; text-wrap: balance; }
.oy-arrow { position: relative; flex: 0 0 auto; width: 46px; border-top: 3px dashed var(--grade-b-ink); margin-top: 36px; }
.oy-arrow::after { content: ''; position: absolute; right: -2px; top: -7.5px; border: 6px solid transparent; border-left: 8px solid var(--grade-b-ink); border-right: 0; }
.oy-signs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.oy-signs li { background: #17603f; color: #fff; border-radius: 7px; box-shadow: inset 0 0 0 2px #17603f, inset 0 0 0 3.5px #ffffffd9; padding: 9px 8px; text-align: center; font-weight: 700; font-size: .84rem; letter-spacing: .01em; }
.oy-sources { margin: 0; width: 100%; }
.oy-sources p { font-size: .8rem; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.oy-sources ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.oy-sources li { font-size: .76rem; font-weight: 600; color: var(--ink-2); background: var(--paper-deep); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.oy-big { display: flex; align-items: baseline; gap: 10px; margin: 0 0 4px; }
.oy-big strong { font-size: 2.6rem; line-height: 1; letter-spacing: -.04em; color: var(--brand-ink); }

/* Then and now: the 1.0 screens next to this year's look. */
.oy-then-now { padding-block: 88px 92px; }
.oy-then-now .section-intro { margin-bottom: 40px; }
.oy-strip { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(18px, 3vw, 40px); align-items: start; }
.oy-group h3 { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 18px; text-align: center; }
.oy-group.is-now h3 { color: var(--brand-ink); }
.oy-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2.4vw, 28px); }
.oy-shot { margin: 0; text-align: center; }
.oy-shot .launch-phone-frame { width: min(232px, 100%); margin-inline: auto; }
.oy-shot .iphone-screen { aspect-ratio: 1206 / 2622; }
.oy-shot .iphone-screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.oy-shot figcaption { font-size: .86rem; line-height: 1.45; color: var(--ink-2); margin-top: 16px; max-width: 24ch; margin-inline: auto; }
.oy-shot figcaption strong { display: block; color: var(--ink); font-size: .9rem; }
.oy-then .launch-phone-frame { filter: saturate(.82); }
.oy-divider { align-self: stretch; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-block: 40px 96px; }
.oy-divider::before, .oy-divider::after { content: ''; flex: 1; border-left: 3px dashed color-mix(in srgb, var(--brand-ink) 40%, transparent); }
.oy-divider span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-cta); color: var(--on-accent); font-weight: 700; font-size: 1.15rem; line-height: 1; }
.oy-note { font-size: .8rem; color: var(--muted); text-align: center; margin: 34px auto 0; max-width: 62ch; }

/* Beat 5: thank-you close with Waddles and the cake. */
.oy-close { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 84px); align-items: center; padding-block: 84px 88px; }
.oy-scene { position: relative; margin: 0; aspect-ratio: 2 / 3; max-width: 440px; width: 100%; justify-self: center; border-radius: var(--r-l); overflow: hidden; box-shadow: 0 2px 4px #0006, 0 30px 60px -24px #000d; }
.oy-scene > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.oy-scene .oy-duck { inset: auto auto 2% 50%; width: 66%; height: auto; transform: translateX(-50%); filter: drop-shadow(0 14px 22px #0009); }
.oy-close h2 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); letter-spacing: -.03em; margin: 12px 0 18px; }
.oy-close .launch-lede { color: #dfe6e9; }
.oy-close .oy-pin-final { background: #f5c66b; box-shadow: 0 0 0 6px #f5c66b26, 0 8px 18px -8px #000a; margin: 0 0 22px 6px; }
.oy-close .oy-pin-final span { color: #0d1b2a; }
.oy-count { display: flex; align-items: center; gap: 18px; margin: 30px 0 8px; padding: 18px 20px; border: 1px solid #ffffff26; border-radius: var(--r-m); background: #ffffff0d; max-width: 460px; }
.oy-count strong { font-size: 3.1rem; line-height: 1; letter-spacing: -.04em; }
.oy-count p { margin: 0; line-height: 1.45; color: #d5dee2; }
.oy-count p b { color: #f8f4ea; font-weight: 600; }
.oy-close .launch-actions { margin-top: 30px; }
.oy-close .small { color: #b9c5cb; }

@media (prefers-color-scheme: dark) {
 .oy-pin { box-shadow: 0 0 0 6px var(--paper), 0 8px 18px -8px #000a; }
 .oy-stop:nth-child(3) .oy-pin { background: #6aa7e8; }
 .oy-stop:nth-child(3) .oy-pin span { color: #0d1b2a; }
 .oy-signs li { background: #1d7a52; box-shadow: inset 0 0 0 2px #1d7a52, inset 0 0 0 3.5px #ffffffcc; }
 .oy-then .launch-phone-frame { filter: saturate(.85) brightness(.96); }
}
@media (forced-colors: active) {
 .oy-gold { background: none; color: CanvasText; }
}

@media (max-width: 900px) {
 .oy-hero-phone .launch-phone-frame { width: 260px; }
 .oy-route { grid-template-columns: 1fr; gap: 22px; max-width: 560px; }
 .oy-route::before { top: 22px; bottom: 22px; left: 20px; right: auto; border-top: 0; border-left: 3px dashed color-mix(in srgb, var(--brand-ink) 45%, transparent); }
 .oy-stop { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
 .oy-pin { margin: 4px 0 0; }
 .oy-strip { grid-template-columns: 1fr; gap: 34px; }
 .oy-divider { flex-direction: row; padding-block: 0; }
 .oy-divider::before, .oy-divider::after { border-left: 0; border-top: 3px dashed color-mix(in srgb, var(--brand-ink) 40%, transparent); }
 .oy-divider span { transform: rotate(90deg); }
 .oy-close { grid-template-columns: 1fr; }
 .oy-scene { max-width: 400px; }
}
@media (max-width: 680px) {
 .oy-hero { grid-template-columns: 1fr; padding-block: 40px 52px; gap: 34px; }
 .oy-hero h1 { font-size: clamp(2.7rem, 12vw, 3.4rem); margin: 12px 0 16px; }
 .oy-hero-phone .launch-phone-frame { width: 240px; padding: 9px; border-radius: 37px; }
 .oy-hero-phone .iphone-screen { border-radius: 28px; }
 .oy-stops, .oy-then-now { padding-block: 56px 60px; }
 .oy-stop-card { padding: 22px 20px; }
 .oy-stop h3 { font-size: 1.28rem; }
 .oy-pair { gap: 14px; }
 .oy-shot .launch-phone-frame { padding: 6px; border-radius: 26px; }
 .oy-shot .launch-phone-frame::before, .oy-shot .launch-phone-frame::after { display: none; }
 .oy-shot .iphone-screen { border-radius: 20px; }
 .oy-shot figcaption { font-size: .8rem; }
 .oy-close { padding-block: 52px 60px; gap: 30px; }
 .oy-scene { aspect-ratio: 4 / 5; }
 .oy-count { gap: 14px; padding: 14px 16px; }
 .oy-count strong { font-size: 2.6rem; }
}
