@font-face {
  font-family: "Geist Mono";
  src: url("/assets/geist-mono.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Cosmos reference fonts for the local design preview. See assets/FONT-SOURCES.md. */
@font-face {
  font-family: "Cosmos Oracle";
  src: url("/assets/cosmos-oracle-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cosmos Oracle";
  src: url("/assets/cosmos-oracle-heavy.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f9f9f6;
  --ink: #20211f;
  --secondary: #6b6d66;
  --muted-display: #a3a59e;
  --accent: #b53628;
  --gutter: clamp(24px, 4.4vw, 88px);
  font-family: "Cosmos Oracle", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
a:hover { text-decoration: none; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 12px 18px; background: var(--ink); color: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.header { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 27px var(--gutter); color: #fff; background: transparent; }
.wordmark { font-size: 32px; font-weight: 600; letter-spacing: -.04em; }
.wordmark-dot { color: inherit; }
.header a:focus-visible { outline-color: #fff; }
.beta-link { min-height: 44px; display: inline-flex; align-items: center; gap: 24px; font-size: 15px; }
.opening-photo { margin: 0; width: 100%; background: var(--ink); }
.opening-photo img { display: block; width: 100%; height: auto; }
.opening-hero { position: relative; display: grid; min-height: 100svh; background: var(--ink); }
.opening-hero .opening-photo { position: absolute; inset: 0; height: 100%; }
.opening-hero .opening-photo img { height: 100%; object-fit: cover; object-position: 50% 55%; }
.opening-hero > .opening-photo, .opening-hero > .intro { grid-area: 1 / 1; }
.opening-hero > .intro { align-self: end; position: relative; z-index: 1; color: #fff; padding: 140px var(--gutter) 64px; }
.opening-hero h1 span { color: #d4d4ce; }
.opening-hero a:focus-visible { outline-color: #fff; }
/* One opening sequence: the photograph develops, then its introduction settles. */
@keyframes photograph-arrives {
  from { opacity: .6; }
  to { opacity: 1; }
}
@keyframes opening-line-arrives {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .header, .floating-beta { animation: opening-line-arrives 900ms cubic-bezier(.22, 1, .36, 1) 80ms both; }
  .opening-photo img.is-arriving { animation: photograph-arrives 1400ms cubic-bezier(.22, 1, .36, 1) both; }
  .opening-hero .intro > * { animation: opening-line-arrives 1100ms cubic-bezier(.22, 1, .36, 1) 160ms both; }
  .opening-hero .intro h1 { animation-delay: 260ms; }
  .opening-hero .intro .intro-bottom { animation-delay: 360ms; }
}
.intro { padding: 104px var(--gutter) 74px; }
.product-label { margin: 0 0 27px; font-family: "Geist Mono", monospace; font-size: 14px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
h1 { margin: 0; font-size: 50px; line-height: 1.15; font-weight: 900; letter-spacing: -.04em; }
h1 span { color: var(--muted-display); }
.intro-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 66px; }
.intro-bottom p { font-size: clamp(20px, 2vw, 28px); line-height: 1.25; letter-spacing: -.02em; margin: 0; }
.story-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; gap: 24px; }
.story { padding: 132px var(--gutter) 36px; scroll-margin-top: 40px; }
.passage { max-width: 1060px; font-size: 36px; line-height: 1.22; letter-spacing: -.04em; font-weight: 400; margin: 0 0 84px; }
/* Text is readable without JavaScript. Scroll enhancement only changes ink, never visibility. */
.reading .passage { color: var(--muted-display); }
.reading .word { color: inherit; transition: color 250ms ease-out; }
.reading .word.is-read { color: var(--ink); }
.signature { margin: 16px 0 0; font-size: 16px; line-height: 1.5; color: var(--secondary); }
.closing { padding: 0 var(--gutter) 64px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 64px; }
.closing-phone { width: min(100%, clamp(320px, 30vw, 480px)); margin: 0 auto; align-self: end; }
/* Display the phone within the original Figma export's transparent padding. */
.phone-artwork { position: relative; aspect-ratio: 1 / 2; overflow: hidden; }
.phone-artwork .phone-frame { position: absolute; width: 309.524%; max-width: none; height: auto; left: -104.762%; top: -8.333%; }
.camera-viewfinder { position: absolute; left: 6.65%; top: 13.85%; width: 85.6%; height: 57%; border-radius: 10% / 7.5%; overflow: hidden; background: #000; }
.camera-current { display: block; width: 100%; height: 100%; object-fit: cover; }
.camera-blink { position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity 170ms ease-out; }
.is-shutter-closed .camera-blink { opacity: 1; transition-duration: 80ms; }
.phone-artwork .camera-previous { position: absolute; left: 11.8%; top: 86.7%; width: 13%; height: 6.5%; border-radius: 50%; object-fit: cover; }
h2 { margin: 0 0 44px; font-size: 50px; font-weight: 400; letter-spacing: -.04em; line-height: 1.03; }
.cta { display: inline-flex; align-items: center; gap: 32px; min-height: 54px; padding: 15px 23px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 16px; transition: background 180ms ease-out; }
.cta:hover { background: var(--accent); text-decoration: none; }
.beta-note { color: var(--secondary); margin: 18px 0 0; font-size: 13px; }
.footer { position: relative; z-index: 1; margin: 0 var(--gutter) 24px; padding: 20px 32px; border: 0; border-radius: 999px; background: #000; display: flex; align-items: center; gap: 36px; font-size: 13px; color: #b8b8b3; }
.footer-brand { color: var(--paper); font-size: 17px; }
.footer nav { margin-left: auto; display: flex; gap: 22px; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 1600px) { main, .header, .footer { max-width: 1800px; margin-left: auto; margin-right: auto; } .footer { width: calc(100% - 2 * var(--gutter)); } }
@media (max-width: 767px) {
  .opening-hero { min-height: 100svh; }
  .opening-hero .opening-photo { position: absolute; inset: 0; height: 100%; }
  .opening-hero .opening-photo img { height: 100%; object-fit: cover; object-position: 50% center; }
  .opening-hero > .intro { padding: 120px var(--gutter) 36px; }
  .header { padding-top: 18px; padding-bottom: 18px; }
  .wordmark { font-size: 28px; }
  .beta-link { font-size: 14px; gap: 14px; }
  .intro { padding-top: 90px; padding-bottom: 50px; }
  .product-label { font-size: 14px; margin-bottom: 25px; }
  h1 { font-size: 28px; }
  .intro-bottom { display: block; margin-top: 38px; }
  .story-link { margin-top: 38px; }
  .story { padding-top: 75px; padding-bottom: 55px; }
  .passage { font-size: 24px; margin-bottom: 52px; line-height: 1.22; letter-spacing: -.04em; }
  .desktop-break { display: none; }
  .closing { padding-top: 0; padding-bottom: 40px; grid-template-columns: 1fr; gap: 48px; }
  .closing-phone { width: min(280px, 75vw); grid-row: auto; }
  h2 { font-size: 28px; }
  .footer { flex-direction: column; gap: 4px; padding: 24px; border-radius: 48px; text-align: center; }
  .footer nav { justify-content: center; flex-wrap: wrap; width: 100%; margin-left: 0; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .camera-blink { display: none; }
  html { scroll-behavior: auto; }
  .reading .passage, .reading .word { color: var(--ink); }
  .reading .word, .cta { transition: none; }
}
@media print {
  .story { display: block; }
  .is-arriving, .intro.is-arriving > * { animation: none !important; }
  .passage, .reading .passage, .reading .word { color: #000; }
  .header, .intro-bottom, .cta, .beta-note, .footer { display: none; }
  .intro, .story, .closing { padding: 20px 0; }
  h1, h2 { font-size: 40px; }
  .passage { font-size: 18px; margin-bottom: 22px; break-inside: avoid; }
}

/* Viewport-mounted glass action stays available throughout the story. */
.floating-beta {
  position: fixed;
  top: max(20px, env(safe-area-inset-top));
  right: var(--gutter);
  z-index: 20;
  min-height: 48px;
  padding: 12px 20px;
  gap: 22px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  color: #20211f;
  background: rgba(249,249,246,.72);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -1px 0 rgba(255,255,255,.2), 0 4px 20px rgba(0,0,0,.1);
  transition: background 180ms ease-out, transform 180ms ease-out;
}
.floating-beta:hover { background: rgba(255,255,255,.88); text-decoration: none; }
.floating-beta:active { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) { .floating-beta { transition: none; } }
@media print { .floating-beta { display: none; } }





@media (prefers-reduced-motion: no-preference) {
  .closing.phone-ready .closing-phone { transform: translateY(35%); transition: transform 1300ms cubic-bezier(.22, 1, .36, 1); }
  .closing.phone-ready.phone-visible .closing-phone { transform: translateY(0); }
}

.closing .beta-note { margin-bottom: 0; }
