:root {
  --paper: #F4F1EA;
  --card: #FAF8F3;
  --stone: #EDE6D9;
  --ink: #2E3324;
  --olive: #5B6340;
  --sage: #A9B39A;
  --amber: #C7832E;
  --blush: #F3D3CF;
  --muted: #5F5B50;
  --line: #DCD6C8;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Manrope", "Avenir Next", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 300 17px/1.65 var(--sans); overflow-x: hidden; }
a { color: var(--olive); }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.05; margin: 0 0 16px; letter-spacing: -0.01em; }
h1 { font-size: clamp(56px, 8vw, 112px); }
h2 { font-size: clamp(38px, 5vw, 64px); }
h3 { font-size: 26px; font-weight: 400; }
h1 em, h2 em { font-style: italic; color: var(--olive); }
p { margin: 0 0 12px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; }
.kicker { font: 400 12px/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.muted { color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); font: 400 13px var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background 0.3s, color 0.3s;
}
.btn:hover { background: var(--olive); border-color: var(--olive); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* Header: centred wordmark, quiet links either side. Clear while it sits over the photo hero. */
.top { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
       padding: 16px 32px; background: rgba(244, 241, 234, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
       transition: background-color 0.4s, border-color 0.4s; }
.top-note { margin: 0; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.wordmark { width: 108px; height: 44px; display: block; overflow: visible; }
.top-link { justify-self: end; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; color: var(--ink);
            padding-bottom: 3px; border-bottom: 1px solid var(--ink); }
.top.on-hero { background: rgba(246, 241, 233, 0); border-bottom-color: transparent; backdrop-filter: none; }
.top.on-hero .top-note { color: #A8661C; }
.top.on-hero .top-note, .top.on-hero .top-link { text-shadow: 0 0 14px rgba(246, 241, 233, 0.95), 0 0 4px rgba(246, 241, 233, 0.9); }
.top.on-hero .top-link { color: #2E2420; padding: 9px 14px; border: 1px solid rgba(46, 36, 32, 0.2); border-radius: 10px;
                        background: rgba(255, 252, 247, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); text-shadow: none; }

/* Hero, after minimal-hero-light: the sunlit litchi photo fills the screen and runs up under the clear header;
   the words sit on its empty wall, held by a soft glow instead of a panel. */
.hero { --top-h: 77px; --accent: #A8661C; --soft: rgba(46, 36, 32, 0.86); --hink: #2E2420;
        position: relative; display: flex; align-items: center; min-height: 100vh; min-height: 100dvh; margin-top: calc(-1 * var(--top-h));
        padding-top: var(--top-h); overflow: hidden; background: #F3EDE3; color: var(--hink); }
.hero-media { position: absolute; inset: 0; margin: 0; background: #EFE6DA; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 55%; display: block; animation: settle 2.4s ease-out both; }
/* A gentle shade over the wall only (it reads as shadow in the room), so small text stays legible. */
.hero-media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
                     background: linear-gradient(90deg, rgba(246, 241, 233, 0.42) 0, rgba(246, 241, 233, 0.24) 30%, rgba(246, 241, 233, 0) 46%); }
@keyframes settle { from { transform: scale(1.04); opacity: 0.5; } to { transform: scale(1); opacity: 1; } }
.hero-copy { position: relative; z-index: 1; width: max(42%, 560px); padding: 56px 48px 72px;
             text-shadow: 0 0 22px rgba(246, 241, 233, 0.85), 0 0 6px rgba(246, 241, 233, 0.6); }
.hero .kicker { color: var(--accent); margin-bottom: 18px; }
.hero h1 { color: var(--hink); font-size: clamp(3rem, 5.4vw, 5rem); line-height: 1; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
.hero h1 em { color: var(--olive); }
.lede { margin: 18px 0 0; font-size: clamp(0.98rem, 1.2vw, 1.05rem); max-width: 34rem; color: var(--soft); }

/* The hero form: soft frosted boxes, name and WhatsApp on one row, email and the button on the next. */
.hero-form { display: grid; gap: 10px; width: 100%; margin-top: 32px; }
.form-row { display: flex; align-items: center; gap: 10px; }
.hero-input-wrap { flex: 1; position: relative; height: 48px; border-radius: 12px; display: flex; align-items: center; padding: 0 14px;
                   background: rgba(255, 252, 247, 0.6); border: 1px solid rgba(46, 36, 32, 0.22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
                   transition: border-color 0.25s, background 0.25s; }
.hero-input-wrap:focus-within { border-color: var(--olive); background: rgba(255, 252, 247, 0.85); }
.hero-input { width: 100%; height: 100%; border: 0; outline: none; background: transparent; color: var(--hink); font: 400 16px var(--sans); }
.hero-input::placeholder { color: rgba(46, 36, 32, 0.5); }
.hero-input[aria-invalid="true"] { color: #9A3B2E; }
.hero-input-wrap .cc { margin-right: 8px; color: rgba(46, 36, 32, 0.78); }
.hero-button { text-shadow: none; height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--olive); background: var(--olive); color: #FAF8F3;
               font: 500 15px var(--sans); white-space: nowrap; cursor: pointer; transition: background 0.25s, border-color 0.25s; }
.hero-button:hover { background: var(--hink); border-color: var(--hink); }
.hero-button:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.hero-button[disabled] { opacity: 0.7; cursor: progress; }
.hero-msg { min-height: 1.4em; margin: 0; font-size: 13px; color: var(--soft); }
.hero-msg.err { color: #9A3B2E; }

/* The pop-up form (on dark): name and phone side by side, email below, then the button. */
.join { margin-top: 40px; max-width: 520px; display: grid; gap: 22px; }
.join-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.jf-wide { grid-column: 1 / -1; }
.join-label { display: block; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(244, 241, 234, 0.72); margin-bottom: 2px; }
.join input:not(.hp) { width: 100%; min-width: 0; min-height: 46px; padding: 6px 0; border: 0; border-bottom: 1px solid rgba(244, 241, 234, 0.55);
  border-radius: 0; background: transparent; color: var(--paper); font: 300 19px var(--sans); transition: border-color 0.3s; }
.join input::placeholder { color: rgba(244, 241, 234, 0.45); }
.join input:focus { outline: none; border-bottom-color: #E0A85C; }
.join input[aria-invalid="true"] { color: #FFD9C7; border-bottom-color: #FFD9C7; }
.join .phone .cc { color: rgba(244, 241, 234, 0.6); font-size: 19px; font-weight: 300; }
.join .btn { background: var(--paper); border-color: var(--paper); color: #2A1E19; justify-self: start; }
.join .btn:hover { background: #E0A85C; border-color: #E0A85C; color: #2A1E19; }
.join .btn:focus-visible { outline: 2px solid #E0A85C; outline-offset: 3px; }
.join .fine { color: rgba(244, 241, 234, 0.7); margin: 0; }
.join .fine.err { color: #FFD9C7; }
.hero .count { color: var(--accent); margin: 12px 0 0; }

/* +91 sits inside the phone field. */
.phone { position: relative; display: block; }
.phone .cc { position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--muted); pointer-events: none; }
.phone input { padding-left: 40px !important; }

/* After joining: the leaderboard opt-in. */
.optin { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.optin input { accent-color: var(--olive); width: 16px; height: 16px; }
.details { display: grid; gap: 10px; margin: 8px 0 36px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 560px; }
.details .fine { margin: 0; }
.details .fine.err { color: #9A3B2E; }
.count { font-size: 14px; color: var(--olive); margin-top: 16px; }

/* After signup: a founding member card. */
.done { padding: 96px 0; background: var(--stone); border-top: 1px solid var(--line); }
.done-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center; }
.member-card {
  position: relative; aspect-ratio: 1.586; border-radius: 18px; padding: 28px 30px; display: flex; flex-direction: column;
  background: linear-gradient(135deg, #FBF8F1 0%, #F6E6E0 55%, #EFD9CF 100%); border: 1px solid #E2D5C6;
  box-shadow: 0 30px 60px -30px rgba(46, 51, 36, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: rotate(-2deg); animation: card-in 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes card-in { from { transform: translateY(30px) rotate(-6deg); opacity: 0; } to { transform: rotate(-2deg); opacity: 1; } }
.card-mark { width: 92px; height: 38px; overflow: visible; }
.card-label { margin: auto 0 0; font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }
.card-no { font: 300 clamp(40px, 5vw, 58px)/1 var(--serif); margin: 6px 0 18px; color: var(--ink); }
.card-foot { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.card-foot b { color: var(--amber); font-weight: 500; }
/* Member card extras: the community badge (1 friend) and the label that turns "Founding member" at 5. */
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card-badge { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: #FAF8F3; background: var(--olive);
              padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.card-badge.pop, .card-label.pop { animation: pop 0.7s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.member-card.is-founding .card-label { color: var(--amber); font-weight: 500; }
@keyframes pop { 0% { transform: scale(0.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* Milestones: four stops on a line that fills as valid referrals come in. Each stop opens its details. */
.milestones { max-width: 600px; margin-top: 22px; }
.milestones .kicker { margin-bottom: 8px; }
.ms-status { color: var(--ink); font-size: 17px; margin: 0 0 22px; }
.ms-status b { font-weight: 500; color: var(--olive); }
.ms-track { --dot: 30px; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; }
.ms-track::before, .ms-track::after { content: ""; position: absolute; top: calc(var(--dot) / 2 - 1px); left: 12.5%; height: 2px; }
.ms-track::before { right: 12.5%; background: var(--line); }
.ms-track::after { width: calc(75% * var(--fill)); background: var(--amber); transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ms { position: relative; z-index: 1; text-align: center; }
.ms button { display: grid; justify-items: center; gap: 6px; width: 100%; padding: 0 4px 8px; border: 0; background: none; cursor: pointer;
             font: inherit; color: var(--muted); border-radius: 10px; }
.ms button:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
.ms-dot { position: relative; width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--card); border: 1.5px solid #CFC7B9;
          transition: background 0.4s, border-color 0.4s, transform 0.25s; }
.ms button:hover .ms-dot { transform: scale(1.12); }
.ms-at { font: italic 400 22px/1 var(--serif); color: var(--ink); }
.ms-name { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.4; }
.ms.is-done .ms-dot { background: var(--amber); border-color: var(--amber); }
.ms.is-done .ms-dot::after { content: ""; position: absolute; left: 10px; top: 6px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ms.is-next .ms-dot { border-color: var(--amber); box-shadow: 0 0 0 0 rgba(199, 131, 46, 0.45); animation: ms-pulse 2s ease-out infinite; }
.ms.is-new .ms-dot { animation: pop 0.7s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.ms.is-selected .ms-name { color: var(--ink); }
.ms.is-selected button { background: rgba(199, 131, 46, 0.08); }
@keyframes ms-pulse { 70% { box-shadow: 0 0 0 10px rgba(199, 131, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(199, 131, 46, 0); } }
.ms-detail { margin-top: 14px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.ms-detail h3 { font-size: 24px; margin: 2px 0 6px; }
.ms-detail p { margin: 0; color: var(--muted); font-size: 15px; }
.ms-detail .ms-detail-state { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); }
.ms-detail.is-locked .ms-detail-state { color: var(--muted); }
.ms-foot { margin: 12px 0 0; }
.ms-refresh { border: 0; background: none; padding: 0; margin-left: 6px; font: inherit; color: var(--olive); text-decoration: underline; cursor: pointer; }
.ms-refresh[disabled] { opacity: 0.6; cursor: progress; }
.share { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
.share input { flex: 1 1 260px; min-height: 52px; padding: 0 16px; border: 1px solid var(--line); background: var(--card); font: 300 15px var(--sans); color: var(--ink); }
.done-more { margin-top: 80px; max-width: 640px; }
.done-more:has(.leader[hidden]) { display: none; }
.leader ol { list-style: none; padding: 0; margin: 12px 0 8px; border-top: 1px solid var(--line); counter-reset: r; }
.leader li { counter-increment: r; display: flex; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.leader li::before { content: counter(r, upper-roman); width: 28px; font-family: var(--serif); color: var(--amber); }
.leader li .who { flex: 1; }
.leader li .n { color: var(--muted); font-size: 14px; }
.leader li.me { color: var(--olive); font-weight: 400; }

/* The philosophy: the morning photograph across the full window, with the words over the bright wall. */
.philosophy { position: relative; min-height: max(100vh, 640px); display: grid; align-items: center; overflow: hidden; background: #EFE8DE; }
.philosophy-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.philosophy::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(250, 248, 243, 0) 40%, rgba(250, 248, 243, 0.55) 75%, rgba(250, 248, 243, 0.7) 100%); }
.philosophy-inner { position: relative; z-index: 1; display: grid; justify-items: end; width: 100%; }
.philosophy-copy { max-width: 500px; padding: 96px 0; }
.philosophy-copy h2 { font-size: clamp(44px, 5.4vw, 76px); margin-bottom: 28px; }
.philosophy-body { font-size: 19px; line-height: 1.7; color: #4A4238; max-width: 28em; margin: 0; }

/* The concept: the bottle among lychees fills the left of the section, top to bottom, and fades into the
   stone on its right edge so it blends into the words; three points as editorial type on the right. */
.concept { position: relative; overflow: hidden; background: var(--stone); padding: 140px 0; }
.concept-art { position: absolute; top: 0; bottom: 0; left: 0; width: 50%; margin: 0; }
.concept-art img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 60%; display: block;
                   -webkit-mask-image: linear-gradient(90deg, #000 52%, transparent 94%); mask-image: linear-gradient(90deg, #000 52%, transparent 94%); }
.concept-grid > div { position: relative; width: 52%; margin-left: auto; }
.concept-head { margin-bottom: 36px; }
.concept-points article { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; padding: 24px 0; border-top: 1px solid #CFC7B9; }
.concept-icon { grid-row: 1 / span 3; width: 40px; height: 40px; fill: none; stroke: var(--olive); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; display: block; }
.concept-points h3 { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 6px; }
.concept-points p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 30em; }
.concept-note { margin-top: 14px !important; font-size: 14px !important; }
.concept-note span { display: block; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--olive); margin-bottom: 4px; }

/* Giant wordmark: the dot drops in each time it scrolls into view. */
.wordmark-band { padding: 140px 24px 110px; text-align: center; }
.big-wordmark { width: 100%; max-width: 1100px; height: auto; overflow: visible; display: block; margin: 0 auto 32px; }
.wordmark-band p { font: italic 300 24px var(--serif); color: var(--muted); margin: 0; }

.final-cta { position: relative; min-height: 640px; display: grid; place-items: center; text-align: center; overflow: hidden; }
.final-cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.final-copy { position: relative; padding: 56px 40px; max-width: 580px; background: rgba(250, 248, 243, 0.86); backdrop-filter: blur(8px); }
.final-copy p:not(.kicker) { color: var(--muted); margin: 6px auto 26px; }

.foot { border-top: 1px solid var(--line); }
.foot-inner { display: flex; align-items: center; gap: 14px; padding-top: 32px; padding-bottom: 40px; font-size: 13px; color: var(--muted); }
.foot p { margin: 0; flex: 1; }
.foot nav { display: flex; gap: 22px; }
.foot nav a { text-decoration: none; letter-spacing: 0.06em; }
.mark { width: 28px; height: 28px; }

/* Gentle reveal on scroll; content stays visible without JavaScript. */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .top { grid-template-columns: auto 1fr; padding: 12px 20px; }
  .top-note { display: none; }
  .wordmark { width: 92px; height: 38px; }
  /* Phone: the photo fills the top of the screen; the words start just below where it fades out. */
  .hero { --top-h: 62px; display: block; min-height: 0; }
  .hero-media { bottom: auto; height: 55vh; height: 55svh; }
  .hero-media img { object-position: 74% 50%; }
  .hero-media::after { background: linear-gradient(180deg, rgba(243, 237, 227, 0.5) 0, rgba(243, 237, 227, 0) 18%, rgba(243, 237, 227, 0) 62%, #F3EDE3 100%); }
  .hero-copy { width: 100%; padding: calc(55vh - 74px) 20px 56px; padding-top: calc(55svh - 74px); }
  .form-row { flex-direction: column; align-items: stretch; }
  .form-row .hero-input-wrap { flex: none; }
  .hero-input-wrap, .hero-button { height: 50px; }
  .join-fields { grid-template-columns: 1fr; }
  .join .btn { justify-self: stretch; }
  .done { padding: 64px 0; }
  .done-grid { grid-template-columns: 1fr; gap: 40px; }
  .done-more { margin-top: 48px; }
  .member-card { max-width: 420px; width: 100%; }
  .philosophy { min-height: 0; height: auto; align-items: end; padding-top: 62vh; }
  .philosophy-img { height: 72vh; object-position: 12% 30%; }
  .philosophy::after { background: linear-gradient(180deg, rgba(250, 248, 243, 0) calc(72vh - 160px), #EFE8DE 72vh); }
  .philosophy-inner { justify-items: start; }
  .philosophy-copy { padding: 0 0 72px; }
  /* Phone: the photo runs across the top and fades down into the stone; the words follow. */
  .concept { padding: 0 0 72px; }
  .concept-art { position: relative; width: auto; margin: 0 -24px; height: 68vh; height: 68svh; }
  .concept-art img { object-position: 50% 70%;
                     -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
  .concept-grid > div { width: 100%; margin-top: -24px; }
  .concept-points article { grid-template-columns: 44px 1fr; column-gap: 16px; }
  .wordmark-band { padding: 88px 16px 72px; }
  .final-cta { min-height: 560px; }
  .final-copy { margin: 0 16px; padding: 40px 24px; }
  .foot-inner { flex-wrap: wrap; }
  .foot nav { width: 100%; }
}

/* The logo's drop falls into place; the bowl gives a small ripple when it lands. */
.cb-dot, .cb-bowl { transform-box: fill-box; transform-origin: center; }
.cb-dot { animation: var(--fall, drop-fall) 0.9s cubic-bezier(0.55, 0, 1, 0.45) 0.35s both; }
.cb-bowl { animation: var(--ripple, drop-ripple) 0.7s ease-out 1.2s both; }
@keyframes drop-fall {
  0% { transform: translateY(-56px); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes drop-ripple {
  0% { transform: scale(1, 1); }
  35% { transform: scale(1.14, 0.8); }
  70% { transform: scale(0.97, 1.05); }
  100% { transform: scale(1, 1); }
}
@media (prefers-reduced-motion: reduce) {
  .cb-dot, .cb-bowl, .hero-media img, .member-card, .card-badge, .card-label, .ms-dot { animation: none !important; }
  .ms-track::after, .ms-dot { transition: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}


/* ---------- The filling bottle: a tall section whose stage sticks while you scroll through it ---------- */
.fill { position: relative; background: var(--paper); border-top: 1px solid var(--line); }
.js .fill { height: 320vh; }
.fill-stage { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; max-width: 1180px; margin: 0 auto; padding: 72px 24px; }
.js .fill-stage { position: sticky; top: 77px; height: calc(100vh - 77px); padding-top: 0; padding-bottom: 0; }
.fill-lines { display: grid; font: 300 clamp(40px, 5vw, 68px)/1.05 var(--serif); margin-bottom: 36px; }
.fill-line { margin: 0; }
.fill-line em { color: var(--olive); }
.fill-meter { display: none; }
.js .fill-meter { display: block; margin: 0 0 32px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.fill-meter b { display: inline-block; min-width: 2.2ch; font: italic 400 34px/1 var(--serif); letter-spacing: 0; color: var(--amber); text-align: right; font-variant-numeric: tabular-nums; }
.js .fill-line { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .fill-line.is-on { opacity: 1; transform: none; }
.fill-art { position: relative; justify-self: center; margin-top: 6vh; height: min(64vh, 560px); aspect-ratio: 465 / 1310; }
.fill-body { position: absolute; left: 0; right: 0; bottom: 0; height: 80.23%; }   /* 1051 of 1310 px */
.fill-body img { position: absolute; inset: 0; width: 100%; height: 100%; }
.fill-full { clip-path: inset(var(--level, 8.85%) 0 0 0); }
.meniscus { position: absolute; left: 6%; right: 6%; top: var(--level, 8.85%); height: 3px; margin-top: -1px; border-radius: 50%;
            background: rgba(255, 255, 255, 0.75); filter: blur(0.6px); opacity: var(--meniscus, 0); }
.fill-cap { position: absolute; left: 0; top: 0; width: 100%; height: auto;
            transform: translateY(calc(var(--lift, 0) * -75%)) translateX(calc(var(--lift, 0) * 38%)) rotate(calc(var(--lift, 0) * 12deg)); transform-origin: 70% 100%; }
.drops { position: absolute; left: 50%; top: 0; width: 0; height: 100%; pointer-events: none; }
.drops i { position: absolute; left: -7px; top: 0; width: 14px; height: 19px; opacity: 0;
           border-radius: 50% 50% 50% 50% / 62% 62% 40% 40%; transform-origin: center;
           background: radial-gradient(circle at 38% 62%, #FCE7E1 0 18%, #EFB7AA 55%, #D9897A 100%);
           box-shadow: 0 2px 6px rgba(152, 98, 86, 0.25); }
.drops i::before { content: ""; position: absolute; left: 3px; top: -7px; width: 8px; height: 10px; background: inherit;
                   clip-path: polygon(50% 0, 100% 100%, 0 100%); }

/* Without scripting, or with reduced motion: no pinning, a full bottle, all three lines. */
@media (prefers-reduced-motion: reduce) {
  .js .fill { height: auto; }
  .js .fill-stage { position: static; height: auto; padding: 72px 24px; }
  .js .fill-line { grid-area: auto; opacity: 1; transform: none; }
  .fill-full { clip-path: none; }
  .fill-cap { transform: none; }
  .drops { display: none; }
  .js .fill-meter { display: none; }
}

/* ---------- Waitlist pop-up ---------- */
.invite { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 48px 44px 36px; border: 0;
          background: #2A1E19; color: var(--paper); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45); }
.invite::backdrop { background: rgba(28, 20, 16, 0.62); backdrop-filter: blur(4px); }
.invite[open] { animation: invite-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes invite-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.invite .kicker { color: #E0A85C; }
.invite h2 { color: var(--paper); font-size: clamp(36px, 5vw, 48px); }
.invite h2 em { color: #E0A85C; }
.invite-lede { color: rgba(244, 241, 234, 0.78); }
.invite .join { margin-top: 28px; }
.invite-close { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border: 0; background: transparent;
                color: rgba(244, 241, 234, 0.8); font: 300 28px/1 var(--sans); cursor: pointer; }
.invite-close:hover { color: var(--paper); }
.invite-close:focus-visible { outline: 2px solid #E0A85C; outline-offset: 2px; }

@media (max-width: 860px) {
  .js .fill { height: 300vh; }
  .fill-stage { grid-template-columns: 1fr; gap: 20px; justify-items: center; text-align: center; }
  .js .fill-stage { top: 62px; height: calc(100vh - 62px); align-content: center; }
  .fill-art { order: -1; margin-top: 8vh; height: min(40vh, 380px); }
  .fill-lines { font-size: clamp(30px, 8vw, 44px); margin-bottom: 20px; }
  .fill-copy .kicker { margin-bottom: 10px; }
  .invite { padding: 44px 22px 28px; }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .js .fill-stage { height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .invite[open] { animation: none; }
}

/* The hero headline is revealed by SplitText; this failsafe shows it after 2.5 s if scripts never get there. */
.js .hero h1:not(.is-ready) { visibility: hidden; animation: reveal-failsafe 0s linear 2.5s forwards; }
@keyframes reveal-failsafe { to { visibility: visible; } }
@media (prefers-reduced-motion: reduce) { .js .hero h1:not(.is-ready) { visibility: visible; animation: none; } }
