/* Round 8 · home additions over r7.css: day-to-night light, liquid glass, 3D depth, closer to the reference's timing. */

/* ---------- Day to night: a sky that stays in view inside the sheet ---------- */
.sheet { overflow: clip; }
.sheet > :not(.sky) { position: relative; z-index: 1; }
.sky { position: sticky; top: 0; height: 100vh; margin-bottom: -100vh; z-index: 0; pointer-events: none; }
.sky i { position: absolute; inset: 0; }
.sky .dawn { background: radial-gradient(40vmax 32vmax at 16% 22%, rgba(20, 184, 166, 0.13), transparent 70%), radial-gradient(36vmax 28vmax at 84% 18%, rgba(110, 207, 246, 0.14), transparent 70%), radial-gradient(40vmax 30vmax at 70% 96%, rgba(243, 111, 86, 0.10), transparent 70%); }
.sky .dusk { opacity: 0; background: radial-gradient(60vmax 44vmax at 84% 92%, rgba(243, 111, 86, 0.26), transparent 70%), radial-gradient(52vmax 40vmax at 8% 6%, rgba(255, 196, 150, 0.30), transparent 70%), linear-gradient(180deg, #FAF3EC, #F9EDE6); }
.s34 { view-timeline: --s34 block; } .s5 { view-timeline: --s5 block; }
@supports (animation-timeline: view()) and (timeline-scope: --x) {
  .sheet { timeline-scope: --s34, --s5; }
  .sky .dusk { animation: r8-in linear both; animation-timeline: --s34; animation-range: entry 0% entry 100%; }
}
@keyframes r8-in { to { opacity: 1; } }
/* Evening on the split panel, dusk-to-night on the bold scene, night for the closing sections */
.s4-left { background: rgba(251, 241, 234, 0.9) !important; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.s5 { position: relative; background: radial-gradient(60% 60% at 85% 8%, rgba(20, 184, 166, 0.5), transparent 60%), radial-gradient(50% 50% at 4% 70%, rgba(243, 111, 86, 0.16), transparent 60%), linear-gradient(180deg, #0F766E 0%, #0E5F60 55%, #0F1F2E 100%); }
.calm { background: radial-gradient(34vmax 28vmax at 86% 20%, rgba(20, 184, 166, 0.20), transparent 70%), radial-gradient(30vmax 26vmax at 6% 80%, rgba(243, 111, 86, 0.14), transparent 70%), radial-gradient(1px 1px at 22% 12%, rgba(250, 248, 245, 0.7), transparent), radial-gradient(1px 1px at 64% 30%, rgba(250, 248, 245, 0.55), transparent), radial-gradient(1.5px 1.5px at 41% 58%, rgba(250, 248, 245, 0.5), transparent), radial-gradient(1px 1px at 88% 74%, rgba(250, 248, 245, 0.45), transparent), #0F1F2E; color: #FAF8F5; }
.calm section[aria-labelledby="partners-i3"] { background: rgba(255, 255, 255, 0.04) !important; border-color: rgba(250, 248, 245, 0.12) !important; }
.calm :not(.mini, .mini *)[style*="color: #5B6A7F"], .calm .muted, .calm .faq details p { color: rgba(250, 248, 245, 0.78) !important; }
.calm :not(.mini, .mini *)[style*="color: #192B3A"] { color: #FAF8F5 !important; }
.calm .btn-outline { box-shadow: inset 0 0 0 1px rgba(250, 248, 245, 0.6); color: #FAF8F5; }
.calm .faq summary::after { color: #14B8A6; } .calm .faq details { border-bottom-color: rgba(250, 248, 245, 0.14); }
.calm :focus-visible { outline-color: #FAF8F5 !important; }
.calm h2 { font-family: Sora,"Sora Fallback", Inter,"Inter Fallback", sans-serif; font-weight: 300 !important; letter-spacing: -0.035em !important; }
.calm #join > div { background: radial-gradient(70% 90% at 90% 10%, rgba(20, 184, 166, 0.22), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(243, 111, 86, 0.22), transparent 60%), rgba(255, 255, 255, 0.05) !important; -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.26), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px -40px rgba(0, 0, 0, 0.7); }
.calm .faq { background: rgba(255, 255, 255, 0.05); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); border-radius: 32px; padding: clamp(24px, 4vw, 56px) !important; margin-bottom: 96px; box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }

/* ---------- Liquid glass: light edges everywhere, refraction in Chromium, a pointer sheen ---------- */
.glass-d, .hdr.is-scrolled, .s5-w { box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.42), inset 0 -1px 0 rgba(255, 255, 255, 0.14), inset 1px 0 0 rgba(255, 255, 255, 0.2), inset 0 0 28px rgba(255, 255, 255, 0.06), 0 30px 60px -30px rgba(0, 0, 0, 0.55); }
/* refraction only on glass that stays still; the fixed header keeps plain frosted glass (refraction there cost every scroll frame) */
.lg-refract :is(.s1-card, .s4-note) { backdrop-filter: url(#lg-refract-strong) blur(6px) saturate(170%); }
/* no refraction on the widgets: they animate into focus, and refraction on a moving layer dropped frames (33 ms median) */
.s1-mark { box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 0 18px rgba(255, 255, 255, 0.12); }
:is(.btn, .role-tab, .s1-card-btn):active { transform: scale(1.03, 0.94) !important; transition-duration: 90ms !important; }
.btn { transition: transform 600ms var(--spring), box-shadow 200ms ease; }
@media (hover: hover) and (pointer: fine) { .btn-coral:hover { box-shadow: 0 10px 36px -8px rgba(243, 111, 86, 0.7); transform: translateY(-2px); } }
/* The liquid lens on the dark role card */
:root[data-fx~="lens"] .s2-left .role-tabs.has-blob { background: none; box-shadow: none; padding: 0; border-radius: 0; -webkit-backdrop-filter: none; backdrop-filter: none; gap: 8px; }
:root[data-fx~="lens"] .s2-left .role-tabs.has-blob .role-tab { background: rgba(255, 255, 255, 0.12) !important; color: #FFFFFF !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26) !important; }
:root[data-fx~="lens"] .s2-left .role-tabs.has-blob .role-tab[aria-selected="true"] { background: transparent !important; color: #192B3A !important; box-shadow: none !important; }
:root[data-fx~="lens"] .s2-left .lens-blob { z-index: 0; background: linear-gradient(180deg, #FFFFFF, #F1EFEA); box-shadow: inset 0 1.5px 0 #FFFFFF, inset 0 -2px 6px rgba(15, 31, 46, 0.12), 0 12px 24px -10px rgba(0, 0, 0, 0.6); }
:root[data-fx~="lens"] .s2-left .role-tab { position: relative; z-index: 1; }

/* ---------- 3D depth and the reference's timing (wide screens with motion only) ---------- */
@supports (animation-timeline: view()) and (timeline-scope: --x) {
@media (min-width: 1100px) and (min-height: 760px) and (prefers-reduced-motion: no-preference) {
  .s2-cards { perspective: 1600px; }
  .s2-left { animation-name: r8-fly-l; } .s2-right { animation-name: r8-fly-r; }
  .s34-stage { perspective: 1400px; }
  .s3-card { animation-name: r8-why; }
  .s5-in { perspective: 1400px; }
  .s5-w { animation-name: r8-focus; }
  /* The bold scene arrives pale and saturates, as in the reference */
  .s5::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: #F6EBE4; animation: r8-veil linear both; animation-timeline: --s5; animation-range: entry 0% entry 85%; }
}
}
@keyframes r8-fly-l { from { transform: translate3d(-6vw, 26vh, -260px) rotateX(22deg) rotateY(-28deg) rotateZ(-9deg) scale(0.6); opacity: 0.15; } 28% { opacity: 1; } 70% { transform: translate3d(0, 0, 0) rotateX(2deg) rotateY(-3deg) rotateZ(-0.5deg) scale(0.985); } }
@keyframes r8-fly-r { from { transform: translate3d(-50vw, 32vh, -420px) rotateX(24deg) rotateY(-30deg) rotateZ(-11deg) scale(0.48); opacity: 0; } 30% { opacity: 1; } 72% { transform: translate3d(0, 0, 0) rotateX(2deg) rotateY(-2deg) scale(0.985); } }
@keyframes r8-why {
  0%, 6% { opacity: 0; transform: translate3d(0, 90px, -160px) rotateX(16deg) scale(0.94); }
  22%, 42% { opacity: 1; transform: none; }
  53% { opacity: 0; transform: translate3d(0, -60px, 0) rotateX(-8deg) scale(0.98); }
  54%, 100% { opacity: 0; transform: translateY(-140vh); }
}
@keyframes r8-focus { from { opacity: 0; filter: blur(16px); translate: 0 50px; scale: 0.9; rotate: y 24deg; } to { opacity: 1; filter: none; translate: 0 0; scale: 1; } }
@keyframes r8-veil { from { opacity: 0.92; } to { opacity: 0; } }
@media (prefers-reduced-transparency: reduce) {
  .s4-left { background: #FBF1EA !important; backdrop-filter: none; }
  .calm #join > div, .calm .faq { background: #192B3A !important; backdrop-filter: none; }
}
.calm { display: flow-root; }
.s3-card.lg, .s4-note.lg { overflow: hidden; }
/* Performance: no blur where nothing behind the glass varies (flat night ground, the split panel) */
.calm #join > div, .calm .faq { -webkit-backdrop-filter: none; backdrop-filter: none; }
.s4-left { background: rgba(251, 241, 234, 0.96) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Role cards keep one size whatever the role; the day strip is a carousel (no scrollbar) */
@media (min-width: 900px) { .s2-card { height: 620px; min-height: 0; } }
.s2-right { display: flex; flex-direction: column; }
.s2-right .lens-panel:not([hidden]) { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.s2-right .day { flex: 1; align-items: stretch; scrollbar-width: none; scroll-behavior: smooth; }
.s2-right .day::-webkit-scrollbar { display: none; }
.s2-right .moment { height: 100%; box-sizing: border-box; }
.car { display: flex; align-items: center; gap: 10px; padding: 16px 28px 0 0; }
.car button { all: unset; box-sizing: border-box; cursor: pointer; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #FAF8F5; background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.22); transition: transform 500ms var(--spring), background-color 200ms ease, opacity 200ms ease; }
.car button:hover { background: rgba(255, 255, 255, 0.2); }
.car button:active { transform: scale(0.92); transition-duration: 90ms; }
.car button:focus-visible { outline: 3px solid #FAF8F5; outline-offset: 3px; }
.car button[disabled] { opacity: 0.35; cursor: default; }
.car button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.car-dots { display: flex; gap: 6px; margin-left: 8px; }
.car-dots i { width: 8px; height: 8px; border-radius: 4px; background: rgba(250, 248, 245, 0.35); transition: width 400ms var(--spring), background-color 200ms ease; }
.car-dots i.on { width: 24px; background: #FAF8F5; }
@media (prefers-reduced-motion: reduce) { .s2-right .day { scroll-behavior: auto; } }
.s2-card { box-sizing: border-box; }
/* Taste-check fixes: one height for the main action, phone margins, a calmer waitlist ground */
.s3-actions .btn { min-height: 56px; font-size: 17px; padding: 0 28px; }
@media (max-width: 1099px) { .s3-card, .s4-note { width: min(880px, calc(100% - 40px)); } }
@media (max-width: 760px) { .calm #join > div { background: radial-gradient(70% 60% at 100% 0%, rgba(20, 184, 166, 0.14), transparent 60%), rgba(255, 255, 255, 0.05) !important; } }

/* Resize audit (2026-11-21): the role list was 100% wide plus its own padding, so between ~600 and 900 px it ran past the card's right edge */
.s2-left-in { box-sizing: border-box; min-width: 0; }
.s2-left .role-tabs, .s2-left .role-tab { box-sizing: border-box; max-width: 100%; min-width: 0; }
/* Resize audit: below 1280 px the floating demo widgets crowd the scene's headline, so they rest */
@media (max-width: 1279px) { .s5-widgets { display: none !important; } }
