/* Moonpress launch page. Tokens ported from the film design system (brag-output/30-16x9/composition/styles/design-system.css). */
@font-face { font-family: "Fraunces"; src: url("fonts/Fraunces-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: oklch(0.95 0.012 85); --paper-2: oklch(0.92 0.016 85); --ink: oklch(0.22 0.006 80); --ink-2: oklch(0.45 0.01 80); --ink-3: oklch(0.56 0.012 80);
  --bezel: oklch(0.98 0.006 90); --gold: oklch(0.76 0.13 80); --night: oklch(0.22 0.035 270); --moon: oklch(0.91 0.02 90); --hairline: oklch(0.22 0.006 80 / .09);
  --display: "Fraunces", "Times New Roman", serif; --ui: "Atkinson Hyperlegible", system-ui, sans-serif;
  --radius: 22px; --ease: cubic-bezier(.22,.61,.36,1);
  --max: 1280px; --pad: clamp(20px, 5vw, 72px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--ui); font-weight: 400; color: var(--ink); background: var(--paper); line-height: 1.5; overflow-x: hidden; }
main { overflow-x: hidden; width: 100%; max-width: 100%; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
button, input { font: inherit; color: inherit; }
.wrap { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }
.display { font-family: var(--display); font-weight: 520; letter-spacing: -.015em; line-height: 1.02; font-variation-settings: "opsz" 96, "WONK" 0; text-wrap: balance; }
.lede { font-size: clamp(1.05rem, 1.35vw, 1.3rem); color: var(--ink-2); font-weight: 400; max-width: 42ch; }
section { padding-block: clamp(96px, 14vw, 200px); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .95em 1.6em; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 1rem; transition: transform .5s var(--ease), background .3s, box-shadow .5s var(--ease); cursor: pointer; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-ink { background: var(--ink); color: var(--bezel); box-shadow: 0 10px 30px -14px rgba(28,26,23,.6); }
.btn-ink:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(28,26,23,.25); }
.btn-ghost:hover { background: rgba(28,26,23,.05); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); background: rgba(244,239,230,.72); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.is-scrolled { border-bottom-color: var(--hairline); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.wordmark { font-family: var(--display); font-weight: 560; font-size: 1.5rem; letter-spacing: -.01em; font-variation-settings: "opsz" 48; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .95rem; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav .btn { padding: .7em 1.2em; font-size: .92rem; }

/* hero */
.hero { position: relative; padding-block: clamp(24px, 4vw, 64px) clamp(64px, 8vw, 120px); overflow: visible; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(24px, 4vw, 64px); align-items: center; min-height: calc(100vh - 68px); }
.hero-copy { grid-column: 1; grid-row: 1; max-width: 100%; }
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 5.6rem); max-width: 14ch; margin-bottom: clamp(20px, 2.5vw, 32px); }
.hero .lede { margin-bottom: clamp(28px, 3vw, 40px); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-film { grid-column: 2; grid-row: 1; align-self: center; justify-self: end; width: clamp(320px, 46vw, 760px); margin-right: calc(-1 * clamp(0px, 6vw, 120px)); margin-top: clamp(80px, 12vw, 160px); }
.film-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--night); box-shadow: 0 40px 90px -30px rgba(20,26,43,.55), 0 0 0 1px rgba(28,26,23,.06); aspect-ratio: 16 / 9; }
.film-card video, .film-card img { width: 100%; height: 100%; object-fit: cover; }
.film-card video { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.film-card.is-playing video { opacity: 1; }
.film-card .play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, transparent 40%, rgba(20,26,43,.45)); color: var(--moon); font-weight: 700; letter-spacing: .02em; opacity: 0; transition: opacity .4s; }
.film-card:not(.is-playing) .play { opacity: 1; }
.film-card.is-playing .play { pointer-events: none; }
.play-dot { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(250,248,243,.92); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.play-dot svg { margin-left: 3px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .wrap { min-height: 0; }
  .hero-copy, .hero-film { grid-column: 1; }
  .hero-film { grid-row: 2; width: 100%; margin: 40px 0 0; justify-self: stretch; }
  .hero h1 { max-width: 100%; }
}

/* bento */
.bento-head { margin-bottom: clamp(40px, 5vw, 72px); max-width: 24ch; font-size: clamp(2rem, 3.6vw, 3.6rem); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(240px, auto); grid-auto-flow: dense; gap: 16px; }
.cell { position: relative; border-radius: 16px; overflow: hidden; background: var(--bezel); box-shadow: 0 0 0 1px var(--hairline); display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(22px, 2.4vw, 36px); isolation: isolate; }
.cell h3 { font-family: var(--display); font-weight: 520; font-size: clamp(1.35rem, 1.9vw, 2rem); line-height: 1.1; letter-spacing: -.01em; margin-bottom: .35em; text-wrap: balance; }
.cell p { color: var(--ink-2); font-size: 1rem; max-width: 36ch; }
.cell-a { grid-column: span 3; grid-row: span 2; background: var(--night); color: var(--moon); border-radius: 28px; box-shadow: 0 40px 80px -40px rgba(20,26,43,.6); }
.cell-a h3 { color: var(--moon); font-size: clamp(1.8rem, 2.8vw, 3rem); }
.cell-a p { color: rgba(233,228,214,.72); }
.cell-b { grid-column: span 3; }
.cell-c { grid-column: span 2; }
.cell-d { grid-column: span 1; }
.cell-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.cell-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cell-a .cell-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,26,43,0) 35%, rgba(20,26,43,.92) 100%); }
.cell-b .cell-art { inset: 0 0 0 46%; }
.cell-b .cell-art img { object-position: left center; }
.cell-b .cell-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bezel) 0%, rgba(250,248,243,0) 45%); }
.cell-b { padding-right: 50%; }
.cell-c, .cell-d { background: var(--paper-2); box-shadow: none; }
.cell-d h3 { font-size: clamp(1.2rem, 1.5vw, 1.5rem); }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell-a { grid-column: span 2; grid-row: span 2; min-height: 420px; }
  .cell-b { grid-column: span 2; padding-right: clamp(22px, 2.4vw, 36px); padding-top: 180px; }
  .cell-b .cell-art { inset: 0 0 45% 0; }
  .cell-b .cell-art img { object-position: center 20%; }
  .cell-b .cell-art::after { background: linear-gradient(180deg, rgba(250,248,243,0) 55%, var(--bezel) 100%); }
  .cell-c, .cell-d { grid-column: span 1; }
}
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .cell-a, .cell-b, .cell-c, .cell-d { grid-column: span 1; } }

/* every house: pinned split */
.houses { background: var(--paper-2); }
.houses .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.houses-title { position: sticky; top: 120px; }
.houses-title h2 { font-size: clamp(2.4rem, 4.6vw, 4.8rem); margin-bottom: 24px; }
.pill { display: inline-block; width: 2.1em; height: 1em; border-radius: 999px; vertical-align: -.1em; background-size: 160%; background-position: 50% 62%; margin: 0 .08em; box-shadow: 0 0 0 1px var(--hairline); }
.houses-title .lede { max-width: 30ch; }
.frames { display: grid; gap: clamp(18px, 2.4vw, 32px); }
.frame { border-radius: 14px; overflow: hidden; background: var(--bezel); box-shadow: 0 0 0 1px var(--hairline), 0 24px 50px -30px rgba(28,26,23,.5); will-change: transform, opacity; }
.frame img { aspect-ratio: 5 / 3; width: 100%; object-fit: cover; }
.frame figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: .9rem; color: var(--ink-2); }
.frame figcaption b { font-weight: 700; color: var(--ink); }
@media (max-width: 900px) { .houses .wrap { grid-template-columns: 1fr; } .houses-title { position: static; } .frames { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .frames { grid-template-columns: 1fr; } }

/* marquee */
.marquee { padding-block: 0; overflow: hidden; border-block: 1px solid var(--hairline); background: var(--paper); }
.marquee-track { display: flex; width: max-content; gap: 0; }
.marquee span { font-family: var(--display); font-weight: 480; font-size: clamp(2rem, 5vw, 5rem); letter-spacing: -.02em; padding: .35em .6em; white-space: nowrap; color: var(--ink); }
.marquee span::after { content: ""; display: inline-block; width: .22em; height: .22em; border-radius: 50%; background: var(--gold); margin-left: 1.1em; vertical-align: middle; box-shadow: inset -.06em -.03em 0 0 var(--paper); }

/* how it works */
.how .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.how h2 { font-size: clamp(2rem, 3.6vw, 3.6rem); margin-bottom: 24px; }
.steps { list-style: none; display: grid; gap: 14px; margin-top: 28px; color: var(--ink-2); }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: baseline; }
.steps li i { font-style: normal; font-family: var(--display); color: var(--gold); font-size: 1.2rem; }
@media (max-width: 900px) { .how .wrap { grid-template-columns: 1fr; } }

/* films: widescreen cards by default, three across; tap plays in place */
.films h2 { font-size: clamp(2rem, 3.6vw, 3.6rem); max-width: 20ch; margin-bottom: 12px; }
.films .lede { margin-bottom: clamp(36px, 4vw, 56px); }
.accordion { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.slice { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--night); cursor: pointer; box-shadow: 0 0 0 1px var(--hairline); }
.slice img, .slice video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slice img { transition: transform 1.2s var(--ease); }
.slice:hover img { transform: scale(1.03); }
.slice video { opacity: 0; transition: opacity .6s; }
.slice.is-playing video { opacity: 1; }
.slice .label { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; color: var(--moon); background: linear-gradient(180deg, rgba(20,26,43,0), rgba(20,26,43,.85)); font-weight: 700; display: flex; justify-content: space-between; align-items: end; gap: 12px; z-index: 2; transition: opacity .4s; }
.slice .label small { display: block; font-weight: 400; opacity: .8; font-size: .85rem; margin-top: 3px; }
.slice .label .play-dot { width: 44px; height: 44px; flex: none; }
.slice.is-playing .label { opacity: 0; pointer-events: none; }
@media (max-width: 1100px) { .accordion { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .accordion { grid-template-columns: 1fr; } }

/* reserve */
.reserve { background: var(--night); color: var(--moon); }
.reserve .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.price-mask { overflow: hidden; }
.price { font-family: var(--display); font-weight: 520; font-size: clamp(4rem, 9vw, 9rem); line-height: .95; letter-spacing: -.03em; font-variation-settings: "opsz" 144; color: var(--moon); }
.price small { font-family: var(--ui); font-weight: 400; font-size: .22em; letter-spacing: .01em; margin-left: .15em; color: rgba(233,228,214,.75); }
.price-sub { font-size: clamp(1.1rem, 1.5vw, 1.35rem); font-weight: 400; margin-top: 18px; max-width: 34ch; color: rgba(233,228,214,.85); }
.price-rule { width: 72px; height: 2px; background: var(--gold); margin: 32px 0 24px; }
.terms { display: grid; gap: 8px; color: rgba(233,228,214,.7); font-size: .95rem; max-width: 40ch; }
.form { background: rgba(250,248,243,.06); border: 1px solid rgba(233,228,214,.14); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }
.form h3 { font-family: var(--display); font-weight: 520; font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin-bottom: 8px; }
.form p { color: rgba(233,228,214,.72); margin-bottom: 22px; font-weight: 400; }
.field { display: grid; gap: 8px; margin-bottom: 14px; }
.field label { font-size: .85rem; color: rgba(233,228,214,.7); }
.field input { width: 100%; padding: 15px 16px; border-radius: 12px; border: 1px solid rgba(233,228,214,.2); background: rgba(20,26,43,.6); color: var(--moon); outline: none; transition: border-color .3s, box-shadow .3s; }
.field input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217,164,65,.18); }
.form .btn { width: 100%; justify-content: center; margin-top: 6px; background: var(--moon); color: var(--ink); }
.form .btn:hover { background: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin-top: 14px; font-size: .95rem; min-height: 1.4em; color: rgba(233,228,214,.8); }
.form.is-done form { display: none; }
.form .done { display: none; }
.form.is-done .done { display: block; }
.done strong { display: block; font-family: var(--display); font-weight: 520; font-size: 1.8rem; margin-bottom: 8px; }
@media (max-width: 900px) { .reserve .wrap { grid-template-columns: 1fr; } }

/* faq */
.faq h2 { font-size: clamp(2rem, 3.6vw, 3.6rem); margin-bottom: clamp(32px, 4vw, 56px); }
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 80px); border-top: 1px solid var(--hairline); }
.faq-list details { border-bottom: 1px solid var(--hairline); }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 36px 22px 0; font-weight: 700; font-size: 1.1rem; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--display); font-size: 1.6rem; color: var(--gold); transition: transform .4s var(--ease); }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 0 24px; color: var(--ink-2); max-width: 52ch; }
@media (max-width: 760px) { .faq-list { grid-template-columns: 1fr; } }

/* footer */
footer { padding: 48px 0 56px; border-top: 1px solid var(--hairline); color: var(--ink-3); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center; }
footer nav { display: flex; gap: 22px; }
footer a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* manifesto: scrubbed word reveal */
.manifesto { padding-block: clamp(40px, 8vw, 120px) 0; }
.scrub { font-size: clamp(1.7rem, 3.6vw, 3.4rem); font-weight: 460; max-width: 26ch; line-height: 1.18; }
.scrub .w { display: inline-block; opacity: .12; margin-right: .26em; will-change: opacity; }
/* e-ink refresh overlay (black, then inverted, then the picture) */
.eink { position: relative; }
.eink::after { content: ""; position: absolute; inset: 0; background: #0A0A0A; opacity: 0; pointer-events: none; z-index: 2; border-radius: inherit; }
.eink.is-black::after { opacity: 1; }
.eink.is-invert img { filter: invert(1); }
.eink img { transition: none; }

/* short viewports: do not stretch the hero, or the film card climbs into the headline */
@media (max-height: 720px) { .hero .wrap { min-height: 0; } .hero-film { margin-top: clamp(40px, 6vw, 80px); } }

/* nav */
.nav-links a[aria-current="page"] { color: var(--ink); box-shadow: 0 2px 0 var(--gold); }
.nav .wrap { gap: 28px; }
.nav-links { margin-left: auto; }
@media (max-width: 720px) {
  .nav .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; gap: 0 16px; justify-content: space-between; }
  .nav-links { order: 3; width: 100%; margin: 0; justify-content: space-between; gap: 12px; }
  .nav-links a { padding-block: 13px; }
}
.btn { min-height: 44px; }
.slice:focus-visible { outline-offset: 4px; }

/* one night, scroll-locked. Without JS or with reduced motion it is a plain stacked section. */
.night { position: relative; padding: 0; background: var(--night); color: var(--moon); overflow: hidden; }
.night-stage { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 72px); align-items: center; padding: clamp(32px, 5vw, 72px) var(--pad); max-width: 1500px; margin-inline: auto; }
.night-day { position: absolute; inset: 0 -50vw; background: var(--paper); opacity: 0; }
.moon-disc { position: absolute; left: 6%; top: 8%; width: clamp(56px, 8vw, 110px); aspect-ratio: 1; border-radius: 50%; background: var(--moon); box-shadow: 0 0 80px 10px oklch(0.91 0.02 90 / .3); }
.night-copy { position: relative; align-self: end; padding-bottom: 6vh; }
.clock { font-family: var(--ui); font-weight: 700; font-size: clamp(1rem, 1.4vw, 1.25rem); color: var(--gold); margin-bottom: 14px; }
.nl { font-size: clamp(1.6rem, 3vw, 3rem); line-height: 1.1; margin-bottom: 1em; max-width: 18ch; }
.nl-c, .clock-b { color: var(--ink); }
.device { position: relative; width: min(840px, 88vw, calc((100svh - 150px) * 1.66)); padding: 20px; background: var(--bezel); border-radius: 10px; box-shadow: 0 50px 120px -30px oklch(0.12 0.03 270 / .8); }
.device img { display: none; width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.device img.on { display: block; }
html.motion .clock-b { position: absolute; top: 0; left: 0; opacity: 0; }
html.motion .nl { position: absolute; left: 0; bottom: 6vh; margin: 0; opacity: 0; }
html.motion .night-copy { min-height: 12em; }
html:not(.motion) .nl-c, html:not(.motion) .clock-b { color: var(--moon); }
@media (max-width: 900px) {
  .night-stage { grid-template-columns: 1fr; align-content: center; }
  .device { order: -1; justify-self: center; margin-top: 8vh; }
  .night-copy { align-self: start; padding-bottom: 0; }
}

/* call to action band */
.band { text-align: left; padding-block: clamp(72px, 10vw, 140px); background: var(--paper-2); }
.band h2 { font-size: clamp(2.2rem, 5vw, 4.8rem); }
.band .lede { margin: 14px 0 28px; }

/* first section of inner pages sits closer to the nav */
main > section:first-child:not(.hero) { padding-top: clamp(56px, 7vw, 110px); }

/* every link between pages is an e-ink refresh */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: eink-out .2s steps(1) both; }
::view-transition-new(root) { animation: eink-in .34s steps(1) both; }
@keyframes eink-out { 0% { filter: none; } 40% { filter: brightness(0); } 100% { filter: brightness(0); opacity: 0; } }
@keyframes eink-in { 0% { filter: brightness(0); } 45% { filter: invert(1); } 80% { filter: brightness(0); } 100% { filter: none; } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

html.motion .night-copy { min-height: 19rem; padding-bottom: 0; align-self: center; }
html.motion .nl { bottom: 0; }
.nav { background: oklch(0.95 0.012 85 / .94); }
footer nav { flex-wrap: wrap; }
@media (max-width: 380px) { .nav .btn { padding-inline: .9em; font-size: .85rem; } }
@media (max-width: 900px) { html.motion .night-copy { min-height: 13rem; } }

/* real photo + home reserve */
.real { padding-block: clamp(72px, 10vw, 140px) clamp(56px, 7vw, 100px); }
.real .wrap { display: grid; grid-template-columns: minmax(0, 548px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.real img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 30px 70px -30px oklch(0.22 0.006 80 / .5); }
.real h2, .quick h2 { font-size: clamp(2.2rem, 4.6vw, 4.4rem); margin-bottom: 18px; }
.quick h2 { color: var(--moon); }
.gift { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--moon); cursor: pointer; }
.gift input { width: 20px; height: 20px; accent-color: var(--gold); }
@media (max-width: 760px) { .real .wrap { grid-template-columns: 1fr; } }
.form.is-done > h3, .form.is-done > p { display: none; }
