/* eskapeshare.com — landing v1
   Tokens locked 2026-07-13 (spec: docs/superpowers/specs/2026-07-13-eskapeshare-landing-design.md) */

:root {
  --abyss: #0A1428;
  --foam: #F4FAFC;
  --cyan: #5BD3EA;
  --gold: #E8A33D;
  --steel-hi: #9CC0E8;
  --steel-mid: #4E7CA8;
  --steel-lo: #2E5578;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Archivo', -apple-system, 'Helvetica Neue', sans-serif;
  --font-data: 'Space Mono', ui-monospace, monospace;
  /* five-step type scale (improvement 1) */
  --t-display: clamp(2.75rem, 6vw, 5.5rem);
  --t-passage: clamp(1.75rem, 3.2vw, 2.75rem);
  --t-body: 1.375rem;
  --t-label: 10px;
  --t-micro: 8.5px;
  /* two tracking values only */
  --track-wide: 0.3em;
  --track-tight: 0.16em;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--abyss); color: var(--foam); font-family: var(--font-body); }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ===== HERO ===== */
.fx-hero { position: relative; width: 100%; height: 100svh; min-height: 560px; overflow: hidden; background: var(--abyss); }
.fx-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
/* fades engage only once slide 2 has decoded (.is-live added by JS) — no blank-navy window on slow loads */
.fx-slide.s1 { object-position: 50% 58%; opacity: 1; animation: fxzoom1 16s linear infinite; }
.fx-slide.s2 { opacity: 0; }
.fx-hero.is-live .fx-slide.s1 { animation: fxfade1 16s ease-in-out infinite, fxzoom1 16s linear infinite; }
.fx-hero.is-live .fx-slide.s2 { animation: fxfade2 16s ease-in-out infinite, fxzoom2 16s linear infinite; }
@keyframes fxfade1 { 0%{opacity:1} 42%{opacity:1} 50%{opacity:0} 92%{opacity:0} 100%{opacity:1} }
@keyframes fxfade2 { 0%{opacity:0} 42%{opacity:0} 50%{opacity:1} 92%{opacity:1} 100%{opacity:0} }
/* phase-locked: each slide's scale resets only while that slide is opacity 0 */
@keyframes fxzoom1 { 0%{transform:scale(1.035)} 50%{transform:scale(1.07)} 51%{transform:scale(1)} 100%{transform:scale(1.035)} }
@keyframes fxzoom2 { 0%{transform:translateX(1.5%) scale(1.04)} 40%{transform:translateX(1.5%) scale(1.04)} 100%{transform:translateX(-1%) scale(1.08)} }
.fx-scrim-top { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,12,24,0.55) 0%, rgba(4,12,24,0) 32%); }
.fx-scrim-bottom { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,12,24,0.68) 0%, rgba(4,12,24,0) 46%); }

.fx-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 24px 38px; z-index: 3; }

/* ===== WORDMARK + ANIMATED K ===== */
.fx-wordmark { font-family: var(--font-display); font-weight: 500; font-size: 26px; color: var(--foam); letter-spacing: 0.01em; line-height: 1; text-shadow: 0 1px 14px rgba(0,0,0,0.5); }
.fx-kwrap { position: relative; display: inline-block; }
.fx-kwrap .kglyph { font-weight: 600; font-size: 1.55em; background: linear-gradient(165deg, var(--steel-hi) 0%, var(--steel-mid) 50%, var(--steel-lo) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 1px; vertical-align: -0.12em; }
/* bird geometry in em so the doves scale with any K size (wordmark 26px → story 96px) */
.fx-kwrap .bird { position: absolute; width: 0.38em; height: 0.23em; opacity: 0; pointer-events: none; }
.fx-kwrap .bird svg { display: block; width: 100%; height: 100%; }
.fx-kwrap .b1 { left: 58%; top: -4%; animation: fxbirdA 4.8s ease-out infinite; }
.fx-kwrap .b2 { left: 70%; top: 8%; width: 0.31em; height: 0.19em; animation: fxbirdB 4.8s ease-out 0.9s infinite; }
.fx-kwrap .b3 { left: 52%; top: 12%; width: 0.27em; height: 0.17em; animation: fxbirdA 4.8s ease-out 1.8s infinite; }
.fx-kwrap .b4 { left: 64%; top: 0%; width: 0.31em; height: 0.19em; animation: fxbirdB 4.8s ease-out 2.7s infinite; }
@keyframes fxbirdA { 0%{transform:translate(0,0) scale(.55); opacity:0} 12%{opacity:.95} 55%{opacity:.85} 80%{transform:translate(1.15em,-0.92em) scale(1); opacity:0} 100%{transform:translate(1.15em,-0.92em); opacity:0} }
@keyframes fxbirdB { 0%{transform:translate(0,0) scale(.5); opacity:0} 14%{opacity:.9} 58%{opacity:.8} 82%{transform:translate(0.85em,-1.23em) scale(.95); opacity:0} 100%{transform:translate(0.85em,-1.23em); opacity:0} }

/* ===== COMING SOON PILL ===== */
.fx-pill { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-data); font-size: 10px; letter-spacing: 0.26em; color: var(--foam); border: 1px solid rgba(244,250,252,0.4); border-radius: 999px; padding: 8px 16px 8px 13px; background: rgba(4,12,24,0.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.fx-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(232,163,61,0.9); animation: fxpulse 2.4s ease-in-out infinite; }
@keyframes fxpulse { 0%,100%{opacity:1} 50%{opacity:0.35} }

/* ===== GLASS DASHBOARD ===== */
.fx-dash { position: absolute; left: 38px; bottom: 66px; width: 330px; z-index: 3; background: rgba(10,20,40,0.38); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); border: 1px solid rgba(255,255,255,0.18); border-radius: 14px; padding: 17px 20px 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 18px 50px rgba(2,8,18,0.5); }
.fx-dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; gap: 12px; }
.fx-dash-label { font-family: var(--font-data); font-size: 9.5px; letter-spacing: 0.2em; color: rgba(244,250,252,0.9); }
.fx-dash-badge { font-family: var(--font-data); font-size: 8.5px; letter-spacing: 0.16em; color: var(--abyss); background: var(--gold); border-radius: 4px; padding: 3px 7px; font-weight: 700; }
.fx-chart { display: block; margin: 2px 0 7px; max-width: 100%; height: auto; }
.fx-chart .draw { stroke-dasharray: 560; stroke-dashoffset: 560; animation: fxdraw 4s ease-out forwards; }
@keyframes fxdraw { to { stroke-dashoffset: 0; } }
.fx-stats { display: flex; column-gap: 16px; border-top: 1px solid rgba(255,255,255,0.18); padding-top: 10px; }
.fx-stat { flex: 1; }
.fx-stat .v { font-family: var(--font-data); font-size: 15px; font-weight: 700; color: var(--foam); }
.fx-stat .v.up { color: var(--cyan); }
.fx-stat .kk { font-family: var(--font-data); font-size: var(--t-label); letter-spacing: var(--track-tight); color: rgba(244,250,252,0.65); margin-top: 3px; }
.fx-microline { font-family: var(--font-data); font-size: var(--t-micro); letter-spacing: var(--track-tight); color: rgba(244,250,252,0.55); margin-top: 10px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 8px; }
.fx-dash-foot { display: flex; align-items: center; gap: 8px; margin-top: 11px; font-family: var(--font-data); font-size: 9px; letter-spacing: 0.2em; color: rgba(244,250,252,0.75); }
.fx-dash-foot .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: fxpulse 2.4s ease-in-out infinite; }

.fx-disclaimer { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; text-align: center; font-family: var(--font-data); font-size: 9.5px; letter-spacing: 0.18em; color: rgba(244,250,252,0.72); background: rgba(3,8,18,0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid rgba(255,255,255,0.08); padding: 10px 12px; }

/* ===== THE ENGINE ===== */
.fx-engine { background: var(--abyss); padding: 64px 38px 60px; text-align: center; }
.fx-eyebrow { font-family: var(--font-data); font-size: 10px; letter-spacing: 0.34em; color: rgba(244,250,252,0.5); margin-bottom: 26px; }
.fx-engine-panel { display: inline-block; text-align: left; background: #0D1830; border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 26px 30px; max-width: 100%; }
.fx-engine-chart .edraw { stroke-dasharray: 900; stroke-dashoffset: 900; }
.fx-engine.fx-inview .edraw { animation: fxdraw 3.5s ease-out forwards; }
@media (prefers-reduced-motion: reduce) { .fx-engine-chart .edraw { stroke-dashoffset: 0; } }
.fx-engine-panel .fx-dash-head { margin-bottom: 12px; }
.fx-engine-chart { display: block; max-width: 100%; height: auto; }
.fx-engine-stats { margin-top: 14px; max-width: 520px; }
.fx-engine-line { font-family: var(--font-body); font-size: var(--t-body); line-height: 1.5; max-width: 34ch; margin-left: auto; margin-right: auto; color: rgba(244,250,252,0.88); margin-top: 26px; }

/* ===== DISPLAY TYPE (improvement 1) ===== */
.fx-statement { position: absolute; z-index: 2; left: 38px; top: 21%; max-width: 11ch; font-family: var(--font-display); font-weight: 500; font-size: var(--t-display); line-height: 1.06; color: var(--foam); text-shadow: 0 2px 28px rgba(4,12,24,0.65), 0 1px 6px rgba(4,12,24,0.5); }
@media (max-height: 760px) and (min-width: 641px) {
  .fx-statement { font-size: clamp(1.9rem, 4.2vw, 3.2rem); top: 15%; }
}
@media (max-height: 560px) and (min-width: 641px) {
  .fx-statement { display: none; }
}
.fx-escape-line { position: absolute; z-index: 2; left: 38px; top: 34%; max-width: 12ch; font-family: var(--font-display); font-weight: 500; font-size: var(--t-passage); line-height: 1.15; color: var(--foam); text-shadow: 0 2px 20px rgba(4,12,24,0.6); }

/* ===== THE ESCAPE (parallax) ===== */
.fx-escape { position: relative; height: 60svh; min-height: 360px; background: url('../assets/img/escape-jump-1600.webp') center 28% / cover no-repeat; }
@media (min-width: 1601px) { .fx-escape { background-image: url('../assets/img/escape-jump-2400.webp'); } }
@media (max-width: 800px) { .fx-escape { background-image: url('../assets/img/escape-jump-800.webp'); } }
@media (hover: hover) and (pointer: fine) {
  .fx-escape { background-attachment: fixed; }
}
.fx-escape .cap { position: absolute; left: 38px; bottom: 28px; font-family: var(--font-data); font-size: 10px; letter-spacing: 0.34em; color: rgba(244,250,252,0.9); text-shadow: 0 1px 8px rgba(0,0,0,0.6); }

/* ===== FOOTER (light, ocean outlook) ===== */
.fx-footer { position: relative; padding: 58px 38px 30px; text-align: center; background: url('../assets/img/footer-ocean-1600.webp') center 62% / cover no-repeat; }
@media (min-width: 1601px) { .fx-footer { background-image: url('../assets/img/footer-ocean-2400.webp'); } }
@media (max-width: 800px) { .fx-footer { background-image: url('../assets/img/footer-ocean-800.webp'); } }
.fx-footer::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(244,250,252,0.88) 0%, rgba(244,250,252,0.55) 48%, rgba(244,250,252,0.78) 100%); }
.fx-footer > * { position: relative; }
.fx-footer .wm { font-family: var(--font-display); font-size: 34px; font-weight: 500; color: var(--abyss); }
.fx-footer .mail { margin-top: 16px; }
.fx-footer .mail a { font-family: var(--font-data); font-size: 11px; letter-spacing: var(--track-tight); color: var(--steel-lo); text-decoration: none; }
.fx-footer .mail a:hover, .fx-footer .mail a:focus-visible { text-decoration: underline; }
.fx-footer .storylink { margin-top: 10px; }
.fx-footer .storylink a { font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--abyss); text-decoration: none; border-bottom: 1px solid rgba(10,20,40,0.35); }
.fx-footer .storylink a:hover, .fx-footer .storylink a:focus-visible { border-bottom-color: var(--steel-lo); color: var(--steel-lo); }
a.fx-wordmark { text-decoration: none; }
a.fx-wordmark:hover .kglyph, a.fx-wordmark:focus-visible .kglyph { filter: drop-shadow(0 0 10px rgba(91,211,234,0.75)); }
.fx-footer .fine { font-family: var(--font-data); font-size: 9px; letter-spacing: 0.16em; color: rgba(10,20,40,0.62); margin-top: 28px; line-height: 1.7; }

/* ===== FOCUS VISIBILITY ===== */
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .fx-wordmark { font-size: 22px; }
  .fx-dash { width: min(330px, calc(100vw - 56px)); }
}
@media (max-width: 640px) {
  .fx-top { position: relative; padding: 18px 20px; }
  .fx-pill { padding: 7px 12px 7px 10px; letter-spacing: 0.18em; }
  .fx-hero { height: auto; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 56px; }
  .fx-hero > .fx-slide, .fx-hero > .fx-scrim-top, .fx-hero > .fx-scrim-bottom { position: absolute; }
  .fx-dash { position: relative; left: auto; bottom: auto; width: calc(100% - 32px); margin: 24px auto 0; }
  .fx-disclaimer { position: absolute; }
  .fx-engine { padding: 48px 20px 44px; }
  .fx-engine-panel { padding: 20px 18px; }
  .fx-engine-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 8px; }
  .fx-escape { height: 40svh; }
  .fx-escape .cap { left: 20px; }
  .fx-escape-line { left: 20px; top: 26%; }
  .fx-statement { position: relative; left: auto; top: auto; margin: 28px 20px 0; font-size: clamp(2.05rem, 9vw, 2.75rem); max-width: 100%; }
  .fx-footer { padding: 44px 20px 24px; }
  .fx-footer .wm { font-size: 26px; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .fx-slide.s1, .fx-hero.is-live .fx-slide.s1 { animation: none; opacity: 1; transform: none; }
  .fx-slide.s2, .fx-hero.is-live .fx-slide.s2 { animation: none; opacity: 0; transform: none; }
  .fx-escape { background-attachment: scroll; }
  .fx-kwrap .bird { animation: none; opacity: 0; }
  .fx-kwrap .b1 { opacity: 0.85; transform: translate(0.77em, -0.54em); }
  .fx-kwrap .b2 { opacity: 0.6; transform: translate(0.38em, -0.85em); }
  .fx-pill .dot, .fx-dash-foot .dot { animation: none; }
  .fx-dash { animation: none; }
  .fx-chart .draw { animation: none; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
