/* Sumway: the public website. Black, cinematic, quiet type. */

:root {
  --bg: #000;
  --ink: #f4f1ea;
  --dim: rgba(244, 241, 234, 0.66);
  --faint: rgba(244, 241, 234, 0.4);
  --line: rgba(244, 241, 234, 0.12);
  --panel: rgba(255, 255, 255, 0.04);
  --blue: #1f6feb;
  --cream: #fff4dc;
  --gold: #e9b872;
  --green: #4fd17a;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Type */
.eyebrow { margin: 0 0 18px; font: 500 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.display { margin: 0; font: 400 clamp(58px, 10vw, 156px)/0.92 var(--serif); letter-spacing: -0.02em; }
.display em, .title em { font-style: italic; color: var(--cream); }
.title { margin: 0; font: 400 clamp(40px, 5.6vw, 84px)/0.98 var(--serif); letter-spacing: -0.015em; }
.lede { margin: 22px 0 0; max-width: 34em; font-size: clamp(16px, 1.35vw, 19px); color: var(--dim); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 4px; border: 1px solid transparent; font: 500 15px/1 var(--sans); cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--ink); color: #000; }
.btn-solid:hover { background: #fff; }
.btn-ghost { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); color: var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 28px; padding: 18px var(--gutter); transition: background .4s, backdrop-filter .4s, padding .4s; }
.nav.is-scrolled { background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 500 16px/1 var(--sans); letter-spacing: -0.01em; margin-right: auto; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 26px; font-size: 13.5px; color: var(--dim); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 900px) { .nav-links { display: none; } }

/* Hero */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; display: flex; align-items: flex-end; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: drift 24s var(--ease) infinite alternate; }
@keyframes drift { to { transform: scale(1.12); } }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 70%),
  linear-gradient(0deg, #000 0%, rgba(0,0,0,.35) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,.45) 100%); }
.hero-copy { position: relative; padding: 0 var(--gutter) clamp(72px, 12vh, 132px); max-width: 980px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 22px; height: 36px; margin-left: -11px; border: 1px solid rgba(255,255,255,.35); border-radius: 12px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 2px; height: 7px; margin-left: -1px; background: var(--ink); border-radius: 2px; animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-width: 700px) { .scroll-cue { display: none; } }

/* Statement: words light up as you scroll */
.statement { padding: clamp(120px, 22vh, 220px) var(--gutter); max-width: 1320px; margin: 0 auto; }
.statement-text { margin: 0; font: 400 clamp(34px, 4.6vw, 72px)/1.08 var(--serif); letter-spacing: -0.01em; }
.statement-text .w { color: rgba(244, 241, 234, 0.16); transition: color .5s; }
.statement-text .w.lit { color: var(--ink); }
.statement-text .w.lit.accent { color: var(--cream); font-style: italic; }

/* Story */
.story { position: relative; height: 420vh; }
.story-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.story-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% center; opacity: 0; transform: scale(1.12); transition: opacity 1.2s var(--ease), transform 6s var(--ease); }
.story-bg img.is-on { opacity: 1; transform: scale(1.02); }
.story-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.55) 38%, rgba(0,0,0,.05) 72%), linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,0) 40%); }
.story-copy { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 90px var(--gutter) 60px; max-width: 760px; }
.steps { list-style: none; margin: 46px 0 0; padding: 0; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 0 18px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--faint); transition: color .5s; }
.step h3 { margin: 0; font: 400 15px/1.4 var(--sans); color: inherit; }
.step p { margin: 0; max-height: 0; overflow: hidden; opacity: 0; font-size: 15.5px; color: var(--dim); transition: max-height .7s var(--ease), opacity .5s, margin .5s; }
.step-n { font: 500 12px/1.9 var(--sans); letter-spacing: 0.1em; }
.step.is-on { color: var(--ink); }
.step.is-on p { max-height: 8em; opacity: 1; margin-top: 8px; }
.step.is-on .step-n { color: var(--gold); }
.story-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; height: 1px; background: var(--line); }
.story-progress span { display: block; height: 100%; width: 0; background: var(--ink); }
@media (max-width: 700px) {
  .story-shade { background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.7) 48%, rgba(0,0,0,.15) 100%); }
  .story-copy { justify-content: flex-end; padding-bottom: 70px; }
  .steps { margin-top: 28px; }
}

/* Sections */
.section-head { padding: 0 var(--gutter); max-width: 1320px; margin: 0 auto; }

/* App */
.app { padding: clamp(110px, 18vh, 200px) 0 clamp(60px, 10vh, 120px); background: radial-gradient(1200px 600px at 70% 30%, rgba(31,111,235,.16), transparent 60%); }
.phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); padding: 72px var(--gutter) 0; max-width: 1400px; margin: 0 auto; }
.phone-wrap { margin: 0; will-change: transform; }
.phone { position: relative; border-radius: 13% / 6.2%; padding: 3.2%; background: linear-gradient(145deg, #2b2b2e, #0d0d0f); box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset, 0 40px 90px -30px rgba(0,0,0,.9), 0 0 60px -20px rgba(31,111,235,.35); }
.phone img { width: 100%; height: auto; border-radius: 10.5% / 4.9%; }
.phone-wrap figcaption { margin-top: 20px; font-size: 14.5px; color: var(--dim); }
.phone-wrap figcaption strong { display: block; margin-bottom: 4px; font-weight: 500; color: var(--ink); }
@media (max-width: 900px) {
  .phones { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px; padding-bottom: 12px; scrollbar-width: none; }
  .phones::-webkit-scrollbar { display: none; }
  .phone-wrap { flex: 0 0 62vw; max-width: 300px; scroll-snap-align: center; transform: none !important; }
}

/* Numbers */
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1320px; margin: 0 auto; padding: clamp(80px, 14vh, 160px) var(--gutter); gap: 24px; }
.number { border-top: 1px solid var(--line); padding-top: 24px; }
.big { display: block; font: 400 clamp(88px, 12vw, 190px)/0.9 var(--serif); letter-spacing: -0.03em; background: linear-gradient(180deg, #fff 30%, rgba(244,241,234,.35)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.label { display: block; margin-top: 14px; font-size: 15px; color: var(--dim); max-width: 16em; }
@media (max-width: 700px) { .numbers { grid-template-columns: 1fr; gap: 40px; } }

/* Specialists */
.specialists { padding: clamp(80px, 14vh, 160px) 0; }
.grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 64px auto 0; padding: 0; max-width: calc(1320px - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.tile { position: relative; overflow: hidden; background: #070707; border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px 24px; min-height: 210px; display: flex; flex-direction: column; transition: border-color .35s, transform .35s var(--ease); }
.tile:hover { border-color: rgba(255, 244, 220, .28); }
.tile-more { background: transparent; border-style: dashed; }
.tile-more h3, .tile-more svg { color: var(--dim); stroke: var(--dim); }
@media (max-width: 760px) { .tile { min-height: 180px; padding: 20px 16px; } .tile h3 { font-size: 22px; } }
.tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px 160px at var(--mx, 50%) var(--my, 0%), rgba(255,244,220,.09), transparent 70%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.tile:hover::before { opacity: 1; }
.tile svg { width: 28px; height: 28px; fill: none; stroke: var(--cream); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: auto; }
.tile h3 { margin: 26px 0 6px; font: 400 26px/1.1 var(--serif); }
.tile p { margin: 0 0 18px; font-size: 14px; color: var(--faint); }
.badge { align-self: flex-start; white-space: nowrap; font: 500 11.5px/1 var(--sans); letter-spacing: .02em; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--dim); }
.badge-pay { background: rgba(79,209,122,.12); color: var(--green); }
.badge-book { background: rgba(233,184,114,.12); color: var(--gold); }

/* Trust */
.trust { padding: clamp(80px, 14vh, 160px) 0; }
.rows { margin: 56px auto 0; max-width: calc(1320px - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.row dt { font: 400 clamp(24px, 2.4vw, 34px)/1.15 var(--serif); }
.row dd { margin: 0; color: var(--dim); max-width: 36em; }
@media (max-width: 700px) { .row { grid-template-columns: 1fr; gap: 10px; } }

/* Merchants */
.merchants { position: relative; min-height: 92svh; display: flex; align-items: center; overflow: hidden; }
.merchants-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.merchants-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.6) 40%, rgba(0,0,0,.05) 75%), linear-gradient(0deg, #000, rgba(0,0,0,0) 30%), linear-gradient(180deg, #000, rgba(0,0,0,0) 25%); }
.merchants-copy { position: relative; padding: 120px var(--gutter); max-width: 720px; }
@media (max-width: 700px) { .merchants { align-items: flex-end; } .merchants-shade { background: linear-gradient(0deg, #000 10%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.2)); } }

/* Film */
.film { padding: clamp(80px, 14vh, 160px) var(--gutter); }
.film-card { position: relative; display: block; width: 100%; max-width: 1320px; margin: 0 auto; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: #111; cursor: pointer; text-align: left; }
.film-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.film-card:hover img { transform: scale(1.04); }
.film-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.75), rgba(0,0,0,.05) 55%); }
.film-play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform .4s var(--ease), background .3s; }
.film-play svg { width: 28px; height: 28px; margin-left: 4px; }
.film-card:hover .film-play { transform: scale(1.08); background: rgba(255,255,255,.22); }
.film-label { position: absolute; z-index: 1; left: clamp(20px, 4vw, 48px); bottom: clamp(20px, 4vw, 44px); right: 20px; }
.film-label .eyebrow { margin-bottom: 10px; color: var(--dim); }
.film-title { display: block; font: 400 clamp(26px, 3.4vw, 50px)/1.05 var(--serif); max-width: 16em; }

.film-dialog { padding: 0; border: 0; background: transparent; max-width: min(1200px, 94vw); width: 100%; }
.film-dialog::backdrop { background: rgba(0,0,0,.88); backdrop-filter: blur(6px); }
.film-dialog video { width: 100%; border-radius: 12px; background: #000; }
.film-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.5); display: grid; place-items: center; cursor: pointer; }
.film-close svg { width: 18px; height: 18px; }

/* Closing */
.closing { padding: clamp(110px, 20vh, 220px) var(--gutter); text-align: center; display: flex; flex-direction: column; align-items: center; background: radial-gradient(900px 500px at 50% 100%, rgba(233,184,114,.12), transparent 70%); }
.closing img { border-radius: 15px; margin-bottom: 40px; box-shadow: 0 20px 60px -10px rgba(31,111,235,.5); }
.closing .display { font-size: clamp(48px, 7.4vw, 118px); }
.closing .lede { margin-left: auto; margin-right: auto; }

/* Waitlist */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.waitlist { width: 100%; max-width: 560px; margin: 44px auto 0; text-align: left; }
.wl-row { display: flex; gap: 10px; }
.waitlist input[type="email"], .waitlist input[type="text"] { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border-radius: 4px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); color: var(--ink); font: 400 16px/1 var(--sans); transition: border-color .2s, background .2s; }
.waitlist input::placeholder { color: var(--faint); }
.waitlist input:focus { outline: none; border-color: var(--cream); background: rgba(255,255,255,.08); }
.waitlist .btn { height: 52px; flex: none; }
.wl-area { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.wl-area input[type="text"] { height: 44px; font-size: 15px; }
.wl-locate { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 44px; padding: 0 14px; border-radius: 4px; border: 1px dashed rgba(255,255,255,.22); background: none; color: var(--dim); font: 400 14px/1 var(--sans); cursor: pointer; transition: color .2s, border-color .2s; }
.wl-locate svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.wl-locate:hover { color: var(--ink); border-color: rgba(255,255,255,.4); }
.wl-locate.is-set { color: var(--green); border-style: solid; border-color: rgba(79,209,122,.4); }
.wl-or { color: var(--faint); font-size: 13px; }
.wl-consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 14.5px; color: var(--dim); cursor: pointer; }
.wl-consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--cream); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.wl-status { min-height: 1.5em; margin: 14px 0 0; font-size: 14.5px; color: var(--gold); }
.wl-status.is-error { color: #ff8c80; }
.wl-note { margin: 6px 0 0; font-size: 12.5px; color: var(--faint); }
.wl-note a, .footer-links a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(244,241,234,.3); }
.wl-done { margin-top: 44px; padding: 28px; border: 1px solid rgba(79,209,122,.3); border-radius: 14px; background: rgba(79,209,122,.06); text-align: center; max-width: 560px; }
.wl-done strong { display: block; font: 400 30px/1.15 var(--serif); color: var(--ink); margin-bottom: 8px; }
.wl-done p { margin: 0; color: var(--dim); }
.footer-links { display: inline-flex; gap: 22px; }
@media (max-width: 600px) {
  .wl-row { flex-direction: column; }
  .wl-area { flex-wrap: wrap; }
  .wl-area input[type="text"] { flex-basis: 100%; }
  .wl-or { display: none; }
}

/* Privacy */
.legal { max-width: 760px; margin: 0 auto; padding: 140px var(--gutter) 100px; }
.legal h2 { margin: 48px 0 12px; font: 400 30px/1.15 var(--serif); }
.legal p, .legal li { color: var(--dim); }
.legal ul { padding-left: 20px; }
.legal li { margin: 10px 0; }
.legal strong { color: var(--ink); font-weight: 500; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal .back { margin-top: 56px; }

.footer { display: flex; justify-content: space-between; gap: 16px; padding: 28px var(--gutter) 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.footer a:hover { color: var(--ink); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-duration: 1.4s; }
.hero .reveal:nth-child(2) { transition-delay: .12s; }
.hero .reveal:nth-child(3) { transition-delay: .28s; }
.hero .reveal:nth-child(4) { transition-delay: .42s; }
.grid .tile.reveal:nth-child(4n+2) { transition-delay: .06s; }
.grid .tile.reveal:nth-child(4n+3) { transition-delay: .12s; }
.grid .tile.reveal:nth-child(4n+4) { transition-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video, .scroll-cue span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .story-bg img { transition: opacity .3s; transform: none !important; }
  .phone-wrap { transform: none !important; }
}
