/* Still Hour landing page. Theme colours are CSS variables that motion.js blends from day to night as you scroll. */
:root {
  --bg: #f1ece3;
  --fg: #15130f;
  --muted: #5e574d;
  --card: #faf7f1;
  --line: rgba(21, 19, 15, .16);
  --accent-text: #c9501c;
  --sun: #ff7a3a;
  --sun-hover: #ff8f5a;
  --sun-ink: #15130f;
  --moon: #ece6d6;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --grot: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --pad: 16px;
  --notch: 22px;
  --big: clamp(40px, 11.6vw, 180px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (min-width: 900px) {
  :root { --pad: 32px; --notch: 28px; --big: min(11.4vw, 17svh, 180px); }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.55 var(--grot);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

a { color: inherit; }
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.grot { font-family: var(--grot); font-weight: 800; text-transform: uppercase; letter-spacing: -.035em; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.it { font-style: italic; }
.kicker {
  display: flex; align-items: center; gap: 10px;
  font: 600 12px/1.2 var(--grot); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.kicker svg { width: 16px; height: 16px; color: var(--accent-text); flex: none; }

/* Background canvases. The contour lines sit behind everything; the 3D product canvas sits above the text but below cards and buttons. */
#contours { position: fixed; top: 0; left: 0; z-index: -1; pointer-events: none; }
#gl { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .9s ease; }
html.gl-ready #gl { opacity: 1; }
.poster { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .6s ease; }
html.gl-ready .poster { opacity: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 18px; border: 0; border-radius: 10px; cursor: pointer;
  font: 700 15px/1 var(--grot); letter-spacing: .02em; text-transform: uppercase; text-decoration: none;
  transition: background .2s, transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-accent { background: var(--sun); color: var(--sun-ink); }
.btn-accent:hover { background: var(--sun-hover); }
.btn:active { transform: scale(.97); }
.btn-lg { width: 100%; height: 60px; font-size: 16px; }
.btn-lg svg { transition: transform .3s var(--ease); }
.btn-lg:hover svg { transform: translateX(4px); }

/* Card with a cut corner, after the reference site's notched cards */
.notch {
  position: relative; z-index: 4; background: var(--card);
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)));
}
.prelaunch {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 12px/1 var(--grot); letter-spacing: .1em; text-transform: uppercase;
  padding: 8px 10px; border-radius: 6px; border: 1px solid var(--line); color: var(--fg);
}
.prelaunch::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.price { font: 400 40px/1 var(--serif); letter-spacing: -.01em; }
@media (min-width: 900px) { .price { font-size: 46px; } }
.price small { display: block; margin-top: 6px; font: 500 13px/1.3 var(--grot); color: var(--muted); letter-spacing: 0; }
.buy-card { padding: 18px 18px 22px; display: grid; gap: 14px; }
.trust {
  list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font: 600 11px/1.3 var(--grot); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sun); flex: none; }
.buy-card .fine { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* Header */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--pad); pointer-events: none;
  transition: background-color .3s, box-shadow .3s;
}
.top > * { pointer-events: auto; }
/* Once the page scrolls, the header gets a frosted background so text never runs under the logo. */
.top.solid {
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.wordmark { display: block; color: var(--fg); }
.wordmark svg { display: block; height: 24px; width: auto; }
@media (min-width: 900px) { .wordmark svg { height: 30px; } }
.top-right { display: flex; align-items: center; gap: 10px; }
.top .chip { display: none; }
.cart .count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 6px; background: var(--sun-ink); color: var(--sun); font-size: 12px;
}
@media (min-width: 600px) { .top .chip { display: inline-flex; background: var(--card); } }

/* Hero */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start;
  padding: 78px var(--pad) 20px;
}
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.big { font-size: var(--big); }
.big .line { display: block; overflow: hidden; padding: 0 .1em .06em; margin: 0 -.1em -.06em; }
.big .inner { display: inline-block; white-space: nowrap; }
.big .grot { line-height: .86; }
.big .serif { font-size: 1.12em; line-height: .92; color: var(--accent-text); }
.hero-left { margin-top: 14px; }
.hero-sub { font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 34em; }
.hero-facts { display: none; list-style: none; padding: 0; margin: 22px 0 0; gap: 10px; font-size: 15px; }
.hero-facts li { display: flex; gap: 10px; align-items: center; }
.hero-facts svg { width: 16px; height: 16px; color: var(--accent-text); flex: none; }
.hero-stage { position: relative; height: clamp(190px, 29svh, 320px); margin: 6px 0; }
.hero-card { width: 100%; }

@media (min-width: 900px) {
  .hero {
    height: 100svh; min-height: 680px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    column-gap: 40px; padding: 90px var(--pad) 26px;
  }
  .eyebrow { grid-area: 1 / 1 / 2 / -1; justify-self: center; margin-bottom: 6px; }
  .l1 { grid-area: 2 / 1 / 3 / -1; }
  .hero-left { grid-area: 3 / 1 / 4 / 2; align-self: end; margin: 0 0 14px; }
  .hero-sub { font-size: 18px; }
  .hero-facts { display: grid; }
  .hero-stage { grid-area: 3 / 2 / 4 / 3; height: auto; margin: 0; }
  .hero-card { grid-area: 3 / 3 / 4 / 4; align-self: end; justify-self: end; width: min(100%, 340px); margin-bottom: 14px; }
  .l2 { grid-area: 4 / 1 / 5 / -1; justify-self: end; text-align: right; }
}

/* Load-in. Pure CSS so the hero never waits on JavaScript. */
@keyframes rise { from { transform: translateY(108%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }
.big .inner { animation: rise 1.15s var(--ease) both .05s; }
.l2 .inner { animation-delay: .17s; }
.hero .eyebrow, .hero-left, .hero-card { animation: fade-up .9s var(--ease) both .45s; }
.hero-card { animation-delay: .55s; }

/* Marquee */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--line); padding: 16px 0 12px; }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-group { display: flex; align-items: center; gap: .32em; padding-right: .32em; font-size: clamp(38px, 7vw, 108px); white-space: nowrap; }
.marquee b { font: 800 1em/1 var(--grot); text-transform: uppercase; letter-spacing: -.035em; }
.marquee em { font: italic 400 1.1em/1 var(--serif); color: var(--accent-text); }
.marquee svg { width: .5em; height: .5em; color: var(--sun); flex: none; }

/* Statement with scroll-lit words */
.statement { position: relative; padding: 20vh var(--pad); text-align: center; }
.statement .kicker { justify-content: center; margin-bottom: 28px; }
.statement [data-reveal-words] {
  margin: 0 auto; max-width: 15em;
  font: 800 clamp(34px, 6.2vw, 100px)/.94 var(--grot); text-transform: uppercase; letter-spacing: -.04em;
}
.statement em { font: italic 400 1.1em/.9 var(--serif); text-transform: none; letter-spacing: -.01em; color: var(--accent-text); }
html.mo .statement .w { opacity: .14; }

/* Day to night: a tall section with a sticky stage */
.dn { position: relative; height: 330vh; }
.dn-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: minmax(150px, 1fr) auto;
  padding: 86px var(--pad) calc(88px + env(safe-area-inset-bottom));
}
.dn-stage-wrap { position: relative; min-height: 0; }
.dn-stage { position: absolute; inset: 0; }
/* The sun and moon sit wholly inside the stage when "up", so they're never clipped by the screen edge. */
.dn-sky { position: absolute; inset: 0; pointer-events: none; }
.sun, .moon {
  position: absolute; left: 56%; top: 46%; width: min(72vw, 30svh); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%); will-change: transform, opacity;
}
.sun { background: radial-gradient(circle at 38% 34%, #ffa070, var(--sun) 62%); }
.moon {
  background:
    radial-gradient(circle at 30% 36%, rgba(0, 0, 0, .06) 0 7%, transparent 7.5%),
    radial-gradient(circle at 62% 64%, rgba(0, 0, 0, .05) 0 10%, transparent 10.5%),
    radial-gradient(circle at 66% 28%, rgba(0, 0, 0, .04) 0 5%, transparent 5.5%),
    var(--moon);
  transform: translate(-50%, -50%) translateY(80vh);
}
.dn-clock { position: absolute; top: 0; left: 0; z-index: 2; display: flex; align-items: baseline; gap: 6px; }
.dn-clock .t { font: 800 clamp(26px, 3.4vw, 52px)/1 var(--grot); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.dn-clock .ampm { font: italic 400 clamp(22px, 2.6vw, 40px)/1 var(--serif); color: var(--accent-text); }
.dn-copy { position: relative; z-index: 2; display: grid; align-items: center; }
.dn-panel { grid-area: 1 / 1; display: grid; gap: 14px; align-content: center; will-change: opacity, transform; }
.dn-panel[data-panel="night"] { opacity: 0; }
.dn-panel h2 { display: flex; flex-direction: column; }
.dn-panel h2 .grot { font-size: clamp(60px, 9vw, 150px); line-height: .84; }
.dn-panel h2 .serif { font-size: clamp(44px, 6.2vw, 104px); line-height: .95; color: var(--accent-text); }
.dn-panel p { font-size: 16px; max-width: 30em; }
.spec { display: grid; margin: 4px 0 0; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec dt { font: 600 11px/1.9 var(--grot); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 0; }
.spec .opt { display: none; }
@media (min-width: 900px) {
  .dn-sticky {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: minmax(0, 1fr);
    column-gap: 56px; padding: 100px var(--pad) 48px;
  }
  .dn-copy { grid-area: 1 / 1; }
  .dn-stage-wrap { grid-area: 1 / 2; }
  .dn-panel p { font-size: 19px; }
  .spec div { font-size: 16px; grid-template-columns: 120px 1fr; padding: 12px 0; }
  .spec .opt { display: grid; }
  .sun, .moon { left: 56%; top: 44%; width: min(30vw, 54svh); }
}
@media (max-height: 700px) and (max-width: 899px) {
  .dn-panel > p:not(.kicker) { display: none; }   /* short phones: drop the description, keep the label */
}
@media (max-width: 389px) {
  .kicker { font-size: 11px; letter-spacing: .1em; }
}

/* Section heads */
.sec-head { display: grid; gap: 18px; margin-bottom: 44px; }
.big2 { display: flex; flex-direction: column; font-size: clamp(56px, 9.4vw, 156px); }
.big2 .grot { line-height: .84; }
.big2 .serif { font-size: .92em; line-height: .95; color: var(--accent-text); }
.lede { font-size: 18px; color: var(--muted); max-width: 30em; }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; column-gap: 40px; }
  .sec-head .kicker { grid-column: 1 / -1; }
}

/* Ingredients */
.ingredients { position: relative; padding: 18vh var(--pad) 10vh; }
.ing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ing {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 178px; padding: 16px 16px 20px;
  transition: transform .5s var(--ease);
}
.ing:hover { transform: translateY(-6px); }
.ing .tag {
  align-self: flex-start; font: 700 10px/1 var(--grot); letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 7px; border-radius: 5px; border: 1px solid var(--line); transition: background .3s, color .3s;
}
.ing:hover .tag { background: var(--sun); color: var(--sun-ink); border-color: transparent; }
.ing .num { position: absolute; top: 16px; right: 16px; font: 800 12px/1 var(--grot); color: var(--muted); }
.ing h3 { font: 400 clamp(25px, 3vw, 46px)/1 var(--serif); letter-spacing: -.01em; }
.ing p { font-size: 14px; line-height: 1.45; color: var(--muted); margin-top: 8px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font: 700 14px/1 var(--grot); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 6px; }
.link-arrow svg { width: 16px; height: 16px; }
@media (min-width: 900px) {
  .ing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .ing { min-height: 250px; padding: 22px 22px 26px; }
  .ing p { font-size: 16px; }
}

/* Ritual */
.ritual { position: relative; padding: 10vh var(--pad) 18vh; }
.ritual .kicker { margin-bottom: 28px; }
.ritual-grid { display: grid; gap: 56px; }
.rit-big { display: flex; flex-direction: column; margin-bottom: 18px; }
.rit-big .grot { font-size: clamp(110px, 17vw, 270px); line-height: .78; }
.rit-big .serif { font-size: clamp(40px, 5vw, 84px); line-height: 1; color: var(--accent-text); margin-top: .05em; }
.rit p { font-size: 19px; max-width: 24em; }
.scrib { position: relative; white-space: nowrap; }
.scrib svg { position: absolute; left: -14%; top: -42%; width: 128%; height: 184%; overflow: visible; pointer-events: none; }
.scrib path { fill: none; stroke: var(--sun); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
html.mo .scrib path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.5s var(--ease) .35s; }
html.mo .scrib.in path { stroke-dashoffset: 0; }
@media (min-width: 900px) {
  .ritual-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .rit + .rit { border-left: 1px solid var(--line); padding-left: 40px; }
}

/* Call to action */
.cta { position: relative; overflow: hidden; padding: 14vh var(--pad) 18vh; display: grid; justify-items: center; text-align: center; }
/* The heading block is as tall as the sun, so the risen sun sits fully above the price card. */
.cta-head { position: relative; display: grid; place-items: center; width: 100%; min-height: min(84vw, 640px); }
.cta-sun {
  position: absolute; left: 50%; top: 50%; z-index: -1; width: min(84vw, 640px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 36%, #ffa070, var(--sun) 64%);
  transform: translate(-50%, -50%) translateY(var(--rise, 0%));
}
.cta-title { display: flex; flex-direction: column; color: var(--sun-ink); }
.cta-title .grot { font-size: clamp(64px, 15vw, 210px); line-height: .82; }
.cta-title .serif { font-size: clamp(52px, 11vw, 160px); line-height: .95; }
.cta-card { margin-top: 28px; width: min(100%, 420px); text-align: left; }

/* FAQ */
.faq { position: relative; padding: 12vh var(--pad); display: grid; gap: 32px; }
.faq-list { border-bottom: 1px solid var(--line); }
details { border-top: 1px solid var(--line); }
summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0;
  font: 400 clamp(25px, 2.6vw, 38px)/1.12 var(--serif); cursor: pointer; list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary .pm { flex: none; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .4s var(--ease), background .3s; }
summary .pm svg { width: 16px; height: 16px; }
details[open] summary .pm { transform: rotate(45deg); background: var(--sun); color: var(--sun-ink); border-color: transparent; }
details p { margin: 0 0 24px; color: var(--muted); font-size: 17px; max-width: 42em; }
details p.inci { font-size: 14px; }
@media (min-width: 900px) {
  .faq { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); column-gap: 56px; align-items: start; }
  .faq .sec-head { grid-template-columns: 1fr; position: sticky; top: 110px; }
}

/* Footer */
.foot { position: relative; padding: 12vh var(--pad) 120px; border-top: 1px solid var(--line); }
.foot-mark { color: var(--fg); margin-bottom: 40px; }
.foot-mark svg { display: block; width: 100%; height: auto; }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; color: var(--muted); }
.pixel-note { margin-top: 12px; font-size: 13px; color: var(--muted); max-width: 60em; }
@media (min-width: 900px) { .foot { padding-bottom: 32px; } }

/* Reveal on scroll (only once motion.js is running) */
html.mo .rv { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
html.mo .rv.in { opacity: 1; transform: none; }

/* Sticky phone bar */
.sticky {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 12;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 9px 9px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .18);
  transform: translateY(150%); transition: transform .45s var(--ease);
}
.sticky.show { transform: none; }
.sticky .name { font-size: 13px; line-height: 1.3; color: var(--muted); }
.sticky .name b { display: block; font-size: 15px; color: var(--fg); }
@media (min-width: 900px) { .sticky { display: none; } }

/* Waitlist sheet */
.scrim { position: fixed; inset: 0; z-index: 20; background: rgba(10, 10, 8, .5); opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: 21; left: 50%; bottom: 0; width: min(560px, 100%);
  transform: translate(-50%, 105%); transition: transform .5s var(--ease);
  background: var(--card); color: var(--fg); border-radius: 20px 20px 0 0;
  padding: 28px 20px calc(24px + env(safe-area-inset-bottom));
}
.sheet.open { transform: translate(-50%, 0); }
.sheet .close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line); background: none; color: var(--fg); cursor: pointer; display: grid; place-items: center; }
.sheet .close svg { width: 16px; height: 16px; }
.sheet h2 { font: 400 34px/1.05 var(--serif); margin: 0 48px 12px 0; }
.sheet p { color: var(--muted); margin: 0 0 18px; font-size: 16px; }
.sheet form { display: grid; gap: 10px; }
.sheet input[type=email] {
  width: 100%; height: 58px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--fg); font: 400 17px var(--grot);
}
.sheet input[type=email]:focus { outline: 2px solid var(--sun); outline-offset: 1px; }
.sheet .fine { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.err { color: #c2331b; font-size: 14px; margin: 0; }
.err:empty { display: none; }
.done { display: none; }
.sheet.thanks form, .sheet.thanks .intro { display: none; }
.sheet.thanks .done { display: block; }
@media (min-width: 900px) {
  .sheet {
    bottom: 50%; border-radius: 0; padding: 36px 36px 40px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)));
    transform: translate(-50%, 56%); opacity: 0; pointer-events: none; transition: transform .5s var(--ease), opacity .3s;
  }
  .sheet.open { transform: translate(-50%, 50%); opacity: 1; pointer-events: auto; }
}

/* Reduced motion: no smooth scroll, no sticky stage, nothing moves on its own. */
html.rm *, html.rm *::before, html.rm *::after { animation: none !important; transition: none !important; }
html.rm .dn { height: auto; }
html.rm .dn-sticky { position: relative; height: auto; overflow: visible; display: block; padding-bottom: 40px; }
html.rm .dn-stage-wrap { height: 300px; margin-bottom: 24px; }
html.rm .dn-sky, html.rm .dn-clock { display: none; }
html.rm .dn-copy { display: grid; gap: 64px; }
html.rm .dn-panel { grid-area: auto; opacity: 1 !important; }
html.rm .marquee-track { transform: none !important; }
