/* ============================================================
   UroHarmonics — design system v2
   One dark sage world, cream type, brass detail.
   Display: Fraunces (light, large). Text and numerals: Karla.
   ============================================================ */
:root {
  /* colour */
  --sage: #2C4A3E;          /* brand ground */
  --sage-deep: #213A30;
  --forest: #172A22;
  --night: #0D1813;
  --cream: #F9F6F0;
  --paper: #EFE8DA;
  --brass: #C8A96A;
  --brass-hi: #E4CD9A;
  --rust: #A5532F;
  --rust-soft: #E3A583;
  --ink: #18241E;
  --text: rgba(249, 246, 240, 0.80);
  --text-dim: rgba(249, 246, 240, 0.58);
  --rule: rgba(249, 246, 240, 0.14);
  --rule-brass: rgba(200, 169, 106, 0.38);
  /* type */
  --serif: "Fraunces", "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Karla", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --fs-display: clamp(2.9rem, 8.6vw, 7.4rem);
  --fs-h2: clamp(2.2rem, 5.6vw, 4.5rem);
  --fs-h3: clamp(1.45rem, 2.4vw, 1.9rem);
  --fs-lede: clamp(1.06rem, 1.5vw, 1.25rem);
  --fs-label: 0.74rem;
  /* space */
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1280px;
  --section: clamp(88px, 12.5vw, 176px);
  --radius: 3px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; background: var(--night); }
body {
  margin: 0; background: var(--sage); color: var(--cream);
  font-family: var(--sans); font-size: 17px; line-height: 1.62;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
picture { display: block; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 300; line-height: 1.04; margin: 0; text-wrap: balance; letter-spacing: -0.022em; }
h1 em, h2 em, h3 em, blockquote em { font-style: italic; font-weight: 300; color: var(--brass); letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--brass); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 4px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--cream); color: var(--ink); padding: 10px 16px; z-index: 300; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.section { padding-block: var(--section); position: relative; }
.band-deep { background: var(--sage-deep); }
.band-forest { background: var(--forest); }
.band-night { background: linear-gradient(180deg, var(--forest), var(--night)); }
.grain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grain > * { position: relative; }

/* ---------- Type helpers ---------- */
.label {
  font-size: var(--fs-label); letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700;
  color: var(--brass); display: flex; align-items: center; gap: 14px; margin-bottom: 26px;
}
.label .n { font-variant-numeric: tabular-nums; color: var(--text-dim); }
.label::after { content: ""; flex: 0 0 48px; height: 1px; background: var(--rule-brass); }
.label.center { justify-content: center; }
.label.center::before { content: ""; flex: 0 0 48px; height: 1px; background: var(--rule-brass); }
.h2 { font-size: var(--fs-h2); }
.lede { font-size: var(--fs-lede); color: var(--text); max-width: 54ch; }
.head { display: grid; gap: 28px; margin-bottom: clamp(44px, 7vw, 88px); }
@media (min-width: 900px) {
  .head { grid-template-columns: 1.25fr 0.75fr; align-items: end; gap: 64px; }
  .head .lede { padding-bottom: 10px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 30px; border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
  white-space: nowrap;
}
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--brass-hi); }
.btn-line { border-color: var(--rule-brass); color: var(--cream); }
.btn-line:hover { border-color: var(--brass); background: rgba(200, 169, 106, 0.1); }
.btn .arrow { transition: transform 0.3s var(--ease); font-size: 1.05rem; letter-spacing: 0; }
.btn:hover .arrow { transform: translateX(5px); }
.btn:active { transform: scale(0.985); }
.link { color: var(--cream); text-decoration: none; border-bottom: 1px solid var(--rule-brass); padding-bottom: 3px; transition: border-color 0.3s, color 0.3s; }
.link:hover { border-color: var(--brass); color: var(--brass-hi); }

/* ---------- Progress, top bar, nav ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; background: var(--brass); transform-origin: 0 50%; transform: scaleX(0); z-index: 220; }
.topbar { background: var(--night); color: var(--text); font-size: 0.8rem; letter-spacing: 0.06em; text-align: center; padding: 10px var(--gutter); }
.topbar a { color: var(--brass); font-weight: 700; text-decoration: none; margin-left: 10px; white-space: nowrap; border-bottom: 1px solid var(--rule-brass); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); margin-right: 10px; animation: pulse 2.6s infinite; vertical-align: 1px; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(200, 169, 106, 0.6); } 60% { box-shadow: 0 0 0 8px rgba(200, 169, 106, 0); } }

.nav { position: sticky; top: 0; z-index: 200; margin-bottom: -80px; transition: background 0.4s, box-shadow 0.4s; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.nav.solid, .nav.open { background: rgba(13, 24, 19, 0.86); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); box-shadow: 0 1px 0 var(--rule); }
.logo { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; text-decoration: none; color: var(--cream); letter-spacing: -0.015em; }
.logo i { color: var(--brass); font-weight: 300; }
.nav-links { display: none; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); padding: 8px 0; position: relative; transition: color 0.3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--cream); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 0.74rem; }
.menu-btn { width: 44px; height: 44px; display: grid; place-content: center; background: none; border: 1px solid var(--rule); border-radius: var(--radius); }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--cream); transition: transform 0.35s var(--ease); }
.menu-btn span + span { margin-top: 5px; }
.nav.open .menu-btn span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav.open .menu-btn span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.drawer { display: none; border-top: 1px solid var(--rule); padding: 12px var(--gutter) 28px; max-height: calc(100svh - 80px); overflow: auto; }
.nav.open .drawer { display: block; }
.drawer a { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-family: var(--serif); font-size: 1.7rem; font-weight: 300; }
.drawer a small { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.18em; color: var(--text-dim); }
@media (max-width: 479px) { .nav .nav-right .btn { display: none; } }
@media (min-width: 980px) { .nav-links { display: flex; } .menu-btn, .nav.open .drawer { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 1040px); display: flex; flex-direction: column; justify-content: flex-end; background: var(--night); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(90% 70% at 85% 20%, rgba(200, 169, 106, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(13, 24, 19, 0.62) 0%, rgba(23, 42, 34, 0.42) 38%, rgba(13, 24, 19, 0.95) 100%),
    linear-gradient(90deg, rgba(13, 24, 19, 0.78), rgba(13, 24, 19, 0.1) 75%);
}
.hero-inner { width: 100%; padding-top: 170px; padding-bottom: clamp(36px, 5vw, 64px); }
.hero h1 { font-size: var(--fs-display); max-width: 12ch; }
.hero-sub { font-size: var(--fs-lede); max-width: 46ch; margin-top: 28px; color: var(--text); }
.hero-form { margin-top: 40px; max-width: 860px; }
.hero-facts { border-top: 1px solid var(--rule); background: rgba(13, 24, 19, 0.35); }
.hero-facts .wrap { display: grid; grid-template-columns: 1fr; }
.fact { padding: 16px 0; display: flex; align-items: baseline; gap: 14px; font-size: 0.92rem; color: var(--text); border-bottom: 1px solid var(--rule); }
.fact:last-child { border-bottom: 0; }
.fact b { font-size: var(--fs-label); letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); flex: 0 0 auto; min-width: 5.2em; }
@media (min-width: 820px) {
  .hero-facts .wrap { grid-template-columns: repeat(3, 1fr); }
  .fact { border-bottom: 0; padding: 22px 28px 22px 0; }
  .fact + .fact { border-left: 1px solid var(--rule); padding-left: 28px; }
}

/* ---------- Signup form ---------- */
.signup { display: grid; gap: 12px; }
.signup .row { display: grid; gap: 0; border: 1px solid var(--rule-brass); border-radius: var(--radius); background: rgba(13, 24, 19, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color 0.3s, box-shadow 0.3s; }
.signup .row:focus-within { border-color: var(--brass); box-shadow: 0 0 0 4px rgba(200, 169, 106, 0.16); }
.field { position: relative; min-width: 0; border-bottom: 1px solid var(--rule); }
.field input {
  width: 100%; min-height: 60px; border: 0; background: transparent; color: var(--cream);
  padding: 0 22px; font: inherit; font-size: 1rem; border-radius: 0;
}
.field input::placeholder { color: var(--text-dim); }
.field input:focus { outline: none; background: rgba(249, 246, 240, 0.05); }
.field input[aria-invalid="true"] { box-shadow: inset 0 -2px 0 #E0745C; }
.signup .btn { width: 100%; min-height: 60px; border: 0; border-radius: 0 0 2px 2px; }
.signup .btn[disabled] { opacity: 0.75; cursor: progress; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(24, 36, 30, 0.25); border-top-color: var(--ink); animation: spin 0.8s linear infinite; display: none; }
.signup.loading .spinner { display: inline-block; }
.signup.loading .arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.micro { font-size: 0.82rem; color: var(--text-dim); letter-spacing: 0.02em; }
.form-msg { font-size: 0.92rem; min-height: 1.3em; font-weight: 500; color: var(--brass-hi); }
.form-msg:empty { min-height: 0; }
.form-msg.err { color: #FFB9A8; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.success { border: 1px solid var(--brass); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); background: rgba(13, 24, 19, 0.7); backdrop-filter: blur(10px); animation: rise 0.7s var(--ease); text-align: left; }
.success h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 10px; }
.success p { color: var(--text); margin-bottom: 22px; max-width: 48ch; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@media (min-width: 760px) {
  .signup .row { grid-template-columns: 0.8fr 1.2fr auto; }
  .field { border-bottom: 0; border-right: 1px solid var(--rule); }
  .signup .btn { width: auto; border-radius: 0 2px 2px 0; }
}
.signup.stack .row { grid-template-columns: 1fr; }
.signup.stack .field { border-right: 0; border-bottom: 1px solid var(--rule); }
.signup.stack .btn { width: 100%; border-radius: 0 0 2px 2px; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--rule); background: var(--forest); padding: 22px 0; }
.marquee-track { display: flex; width: max-content; animation: slide 46s linear infinite; }
.marquee span { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.2rem, 2.2vw, 1.7rem); color: var(--text); padding-right: 28px; white-space: nowrap; }
.marquee span::after { content: "✦"; font-style: normal; font-size: 0.6em; color: var(--brass); margin-left: 28px; vertical-align: 3px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Media frames ---------- */
.frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--night); margin: 0; }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.frame picture { height: 100%; }
.frame:hover img { transform: scale(1.035); }
.frame figcaption { position: absolute; left: 16px; bottom: 14px; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--cream); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.8); }
.r-16x10 { aspect-ratio: 16 / 10; } .r-4x3 { aspect-ratio: 4 / 3; }

/* ---------- 01 The hours ---------- */
.hours-grid { display: grid; gap: clamp(40px, 6vw, 96px); align-items: start; }
.collage { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.collage .a { grid-column: 1 / -1; }
.collage .b { grid-column: 1 / 4; }
.collage .c { grid-column: 4 / -1; }
.beats { list-style: none; margin: 0; padding: 0; }
.beats li { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 30px 0; border-top: 1px solid var(--rule); }
.beats li:last-child { border-bottom: 1px solid var(--rule); }
.beats .k { font-family: var(--sans); font-size: var(--fs-label); letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; color: var(--brass); font-variant-numeric: tabular-nums; }
.beats .v { font-family: var(--serif); font-weight: 300; font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.22; letter-spacing: -0.012em; }
.aside-note { margin-top: 30px; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.3rem; color: var(--brass-hi); }
@media (min-width: 940px) {
  .hours-grid { grid-template-columns: 1.05fr 0.95fr; }
  .hours-grid .sticky { position: sticky; top: 120px; }
  .beats li { grid-template-columns: 150px 1fr; gap: 20px; align-items: baseline; }
}

/* ---------- 02 The moments (rail) ---------- */
.rail-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 5vw, 56px); }
.rail-nav { display: none; gap: 10px; }
.rail-nav button { width: 52px; height: 52px; border: 1px solid var(--rule-brass); border-radius: 50%; background: none; font-size: 1.1rem; transition: background 0.3s, border-color 0.3s, color 0.3s; }
.rail-nav button:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.rail { display: flex; gap: clamp(14px, 2vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 28px; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.rail figure { margin: 0; flex: 0 0 min(76vw, 372px); scroll-snap-align: start; }
.rail .frame { aspect-ratio: 928 / 1152; border: 1px solid var(--rule); }
.rail img { pointer-events: none; user-select: none; }
.rail figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--text-dim); }
.rail figcaption b { color: var(--brass); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .rail-nav { display: flex; } }

/* ---------- 03 The gap ---------- */
.gap-head { text-align: center; max-width: 980px; margin: 0 auto clamp(44px, 7vw, 88px); }
.gap-head h2 { font-size: clamp(2.4rem, 6.6vw, 5.6rem); }
.gap-head .lede { margin: 30px auto 0; }
.cinema { border: 1px solid var(--rule-brass); padding: clamp(8px, 1.2vw, 14px); border-radius: var(--radius); }
.cinema .frame { aspect-ratio: 16 / 9; }
.versus { margin-top: clamp(48px, 7vw, 96px); display: grid; }
.versus-row { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--rule); }
.versus-row:last-child { border-bottom: 1px solid var(--rule); }
.versus-row > div { padding: 22px 0; }
.versus-head > div { font-size: var(--fs-label); letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; padding: 16px 0; }
.versus .old { color: var(--text-dim); }
.versus-row:not(.versus-head) .old { text-decoration: line-through; text-decoration-color: rgba(249, 246, 240, 0.3); padding-bottom: 0; font-size: 0.98rem; }
.versus .new { font-family: var(--serif); font-weight: 300; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.25; }
.versus-head .new { font-family: var(--sans); font-size: var(--fs-label); font-weight: 700; color: var(--brass); }
.versus-head .old { display: none; }
@media (min-width: 820px) {
  .versus-row { grid-template-columns: 0.8fr 1.2fr; }
  .versus-row > div { padding: 26px 0; }
  .versus-row > .new { padding-left: 40px; border-left: 1px solid var(--rule); }
  .versus-row:not(.versus-head) .old { padding-bottom: 26px; font-size: 1.05rem; align-self: center; }
  .versus-head .old { display: block; }
}

/* ---------- 04 The routine ---------- */
.routine { overflow: hidden; background: var(--sage); transition: background-color 0.9s var(--ease); }
.routine::before { content: ""; position: absolute; inset: 0; pointer-events: none; transition: opacity 1s var(--ease); background: radial-gradient(70% 60% at 82% 8%, rgba(228, 205, 154, 0.26), transparent 62%), radial-gradient(50% 40% at 10% 100%, rgba(200, 169, 106, 0.10), transparent 70%); }
.routine[data-mode="pm"] { background: var(--night); }
.routine[data-mode="pm"]::before { opacity: 0.25; }
.stars { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s; pointer-events: none;
  background-image: radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 62%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 46% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 63% 40%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 81% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 92% 70%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 7% 82%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 55% 86%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 37% 34%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 72% 90%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 20% 44%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 88% 48%, #fff 50%, transparent 51%); }
.routine[data-mode="pm"] .stars, .final .stars { opacity: 0.5; }
.routine-head { text-align: center; display: grid; justify-items: center; position: relative; }
.routine-head .lede { margin-top: 24px; }
.toggle { margin-top: 40px; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; border: 1px solid var(--rule-brass); background: rgba(13, 24, 19, 0.35); position: relative; }
.toggle button { position: relative; z-index: 1; border: 0; background: none; min-height: 50px; padding: 0 clamp(22px, 5vw, 40px); border-radius: 999px; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; display: inline-flex; align-items: center; justify-content: center; gap: 10px; color: var(--text); transition: color 0.4s; }
.toggle button svg { width: 18px; height: 18px; }
.toggle button[aria-selected="true"] { color: var(--ink); }
.toggle .thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--brass); transition: transform 0.55s var(--ease); }
.routine[data-mode="pm"] .toggle .thumb { transform: translateX(100%); }
.panels { margin-top: clamp(44px, 7vw, 88px); position: relative; }
.panel { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; animation: rise 0.8s var(--ease); }
.panel-img { position: relative; isolation: isolate; }
.panel-img .frame { aspect-ratio: 4 / 3; box-shadow: 0 60px 100px -50px rgba(0, 0, 0, 0.8); }
.panel-img::after { content: ""; position: absolute; inset: 12px -12px -12px 12px; border: 1px solid var(--rule-brass); border-radius: var(--radius); z-index: -1; }
.disc { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; font-family: var(--sans); font-weight: 700; font-size: 0.86rem; letter-spacing: 0.14em; text-indent: 0.14em; color: #3D2E0C; background: radial-gradient(circle at 30% 25%, #F1DDA9, var(--brass) 55%, #9C7C3A); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3), inset 0 0 0 5px rgba(61, 46, 12, 0.14), 0 14px 26px -12px rgba(0, 0, 0, 0.7); margin-bottom: 26px; }
.panel h3 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.panel p { margin-top: 18px; color: var(--text); max-width: 44ch; }
.spec { margin: 30px 0 0; border-top: 1px solid var(--rule); max-width: 460px; }
.spec div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 0.95rem; }
.spec dt { font-size: var(--fs-label); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--text-dim); padding-top: 3px; }
.spec dd { margin: 0; text-align: right; }
.ingredients { margin-top: 30px; border-top: 1px solid var(--rule-brass); max-width: 460px; }
.ingredients h4 { font-family: var(--sans); font-size: var(--fs-label); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--brass); margin: 18px 0 4px; }
.ingredients dl { margin: 0; }
.ingredients dl div { padding: 13px 0; border-bottom: 1px solid var(--rule); }
.ingredients dt { font-family: var(--serif); font-size: 1.2rem; }
.ingredients dd { margin: 2px 0 0; font-size: 0.94rem; color: var(--text-dim); }
.routine-note { text-align: center; margin: clamp(44px, 6vw, 72px) auto 0; font-size: 0.84rem; color: var(--text-dim); max-width: 60ch; position: relative; }
.routine-cta { display: flex; justify-content: center; margin-top: 28px; position: relative; }
@media (min-width: 940px) { .panel { grid-template-columns: 1.1fr 0.9fr; } }

/* ---------- 05 Principles ---------- */
.principles { display: grid; gap: 0; grid-template-columns: 1fr; }
.principle { padding: 34px 0; border-top: 1px solid var(--rule-brass); }
.principle .n { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.5rem; color: var(--brass); display: block; margin-bottom: 30px; }
.principle h3 { font-size: var(--fs-h3); line-height: 1.12; margin-bottom: 14px; }
.principle p { color: var(--text); font-size: 0.98rem; max-width: 34ch; }
@media (min-width: 820px) {
  .principles { grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; grid-template-columns: none; gap: clamp(24px, 4vw, 56px); }
  .principle { padding: 34px 0 0; }
}

/* ---------- 06 Founding Members ---------- */
.members { display: grid; gap: clamp(40px, 6vw, 96px); align-items: start; }
.members .lede { margin-top: 26px; }
.members .btn { margin-top: 36px; }
.perks { list-style: none; counter-reset: perk; margin: 0; padding: 0; }
.perks li { counter-increment: perk; display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding: 30px 0; border-top: 1px solid var(--rule); transition: padding-left 0.5s var(--ease); }
.perks li:last-child { border-bottom: 1px solid var(--rule); }
.perks li::before { content: "0" counter(perk); font-family: var(--sans); font-size: var(--fs-label); letter-spacing: 0.2em; font-weight: 700; color: var(--brass); padding-top: 10px; font-variant-numeric: tabular-nums; }
.perks h3 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.perks p { color: var(--text); margin-top: 8px; max-width: 46ch; }
@media (hover: hover) { .perks li:hover { padding-left: 14px; } }
@media (min-width: 940px) { .members { grid-template-columns: 0.85fr 1.15fr; } .members .sticky { position: sticky; top: 120px; } }

/* ---------- 07 Guide ---------- */
.guide { display: grid; gap: clamp(48px, 7vw, 104px); align-items: center; }
.book { position: relative; width: min(100%, 340px); margin-inline: auto; perspective: 1600px; }
.cover {
  aspect-ratio: 5 / 7; display: flex; flex-direction: column; justify-content: space-between;
  padding: 11% 10% 9% 13%; border-radius: 3px 8px 8px 3px; color: var(--cream);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0, transparent 5%, rgba(255, 255, 255, 0.05) 6.5%, transparent 9%), linear-gradient(155deg, #2F5144, var(--forest));
  border: 1px solid rgba(200, 169, 106, 0.45);
  transform: rotateY(-18deg) rotateX(5deg) rotateZ(-1.5deg); transform-origin: left center;
  box-shadow: -34px 44px 70px -26px rgba(0, 0, 0, 0.85);
  transition: transform 0.9s var(--ease);
}
.book:hover .cover { transform: rotateY(-7deg) rotateX(2deg); }
.cover .c-top { font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700; color: var(--brass); }
.cover .c-title { font-family: var(--serif); font-weight: 300; font-size: clamp(1.7rem, 7vw, 2.3rem); line-height: 1.02; letter-spacing: -0.02em; }
.cover .c-title em { font-style: italic; color: var(--brass); display: block; }
.cover .c-num { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 5.4rem; line-height: 0.8; color: var(--brass); }
.cover .c-foot { display: flex; justify-content: space-between; font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); border-top: 1px solid var(--rule-brass); padding-top: 12px; }
.book .badge { position: absolute; right: -18px; top: -28px; width: 94px; height: 94px; border-radius: 50%; background: var(--brass); color: var(--ink); display: grid; place-items: center; text-align: center; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.25; transform: rotate(10deg); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.7); }
.habits { list-style: none; counter-reset: h; padding: 0; margin: 34px 0 38px; }
.habits li { counter-increment: h; display: grid; grid-template-columns: 44px 1fr; align-items: baseline; padding: 15px 0; border-top: 1px solid var(--rule); font-size: 1.05rem; }
.habits li:last-child { border-bottom: 1px solid var(--rule); }
.habits li::before { content: counter(h); font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--brass); }
.guide .lede { margin-top: 24px; }
@media (min-width: 940px) { .guide { grid-template-columns: 0.8fr 1.2fr; } }

/* ---------- 08 Founder letter ---------- */
.letter { max-width: 860px; margin: 0 auto; background: var(--cream); color: var(--ink); padding: clamp(32px, 7vw, 88px); border-radius: var(--radius); position: relative; box-shadow: 0 70px 120px -60px rgba(0, 0, 0, 0.85); }
.letter::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(165, 83, 47, 0.22); border-radius: 2px; pointer-events: none; }
.letter .label { color: var(--rust); }
.letter .label::after { background: rgba(165, 83, 47, 0.35); }
.letter blockquote { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(1.7rem, 4vw, 2.9rem); line-height: 1.14; letter-spacing: -0.02em; color: var(--sage); text-wrap: balance; }
.letter blockquote em { color: var(--rust); }
.letter .body { margin-top: 34px; display: grid; gap: 16px; color: #3F4E47; max-width: 60ch; }
.sig { margin-top: 38px; display: flex; align-items: center; gap: 18px; }
.sig-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.sig-name { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 2.1rem; color: var(--rust); line-height: 1; }
.sig small { display: block; font-family: var(--sans); font-style: normal; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: #5D6C65; margin-top: 10px; }

/* ---------- 09 FAQ ---------- */
.faq-grid { display: grid; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-family: var(--serif); font-weight: 300; font-size: clamp(1.25rem, 2.2vw, 1.6rem); letter-spacing: -0.012em; transition: color 0.3s; }
.faq summary:hover { color: var(--brass-hi); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 14px; height: 14px; background: linear-gradient(var(--brass), var(--brass)) center / 100% 1px no-repeat, linear-gradient(var(--brass), var(--brass)) center / 1px 100% no-repeat; transition: transform 0.4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 28px; color: var(--text); max-width: 60ch; animation: rise 0.5s var(--ease); }
.faq .contact { margin-top: 30px; color: var(--text-dim); font-size: 0.95rem; }
@media (min-width: 940px) { .faq-grid { grid-template-columns: 0.8fr 1.2fr; } .faq-grid .sticky { position: sticky; top: 120px; } }

/* ---------- Final CTA ---------- */
.final { overflow: hidden; text-align: center; }
.final::after { content: ""; position: absolute; left: 50%; bottom: -30%; width: min(1100px, 130vw); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(200, 169, 106, 0.16), transparent); pointer-events: none; }
.final .wrap { max-width: 900px; z-index: 1; }
.final h2 { font-size: clamp(2.7rem, 8vw, 6.4rem); }
.final .lede { margin: 28px auto 0; }
.final-form { margin-top: 44px; text-align: left; }
.final .micro, .final .form-msg { text-align: center; }
.assure { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; margin: 34px 0 0; padding: 0; list-style: none; font-size: var(--fs-label); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--text-dim); }
.assure li::before { content: "✦"; color: var(--brass); margin-right: 10px; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: var(--text); padding: clamp(56px, 8vw, 96px) 0 0; font-size: 0.93rem; overflow: hidden; }
.footer-grid { display: grid; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--rule); }
.footer h4 { font-family: var(--sans); font-size: var(--fs-label); letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; color: var(--brass); margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: var(--text); text-decoration: none; transition: color 0.3s; }
.footer a:hover { color: var(--brass-hi); }
.footer .tagline { font-family: var(--serif); font-weight: 300; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; color: var(--cream); max-width: 16ch; letter-spacing: -0.015em; }
.footer .tagline em { font-style: italic; color: var(--brass); }
.footer .disclaimer { margin-top: 30px; max-width: 92ch; font-size: 0.82rem; line-height: 1.7; color: var(--text-dim); }
.footer .copy { margin-top: 14px; font-size: 0.78rem; color: var(--text-dim); letter-spacing: 0.04em; }
.wordmark { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(3.4rem, 16.6vw, 15rem); line-height: 0.8; letter-spacing: -0.04em; white-space: nowrap; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(200, 169, 106, 0.5); margin: clamp(40px, 6vw, 72px) 0 -0.09em; user-select: none; padding-bottom: 86px; }
.wordmark i { font-weight: 300; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 900px) { .wordmark { padding-bottom: 0; } }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: rgba(13, 24, 19, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--rule-brass); transform: translateY(110%); transition: transform 0.5s var(--ease); }
.sticky-cta.show { transform: none; }
.sticky-cta .btn { width: 100%; min-height: 52px; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ============================================================
   Product page (routine.html)
   ============================================================ */
.pdp { padding-top: 132px; padding-bottom: var(--section); }
.crumbs { font-size: var(--fs-label); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--text-dim); margin-bottom: 30px; }
.crumbs a { text-decoration: none; color: var(--text-dim); }
.crumbs a:hover { color: var(--brass); }
.crumbs span { color: var(--brass); margin: 0 10px; }
.pdp-grid { display: grid; gap: clamp(32px, 5vw, 80px); align-items: start; }
.pdp-grid > * { min-width: 0; }
.gallery-main { aspect-ratio: 4 / 3; border: 1px solid var(--rule); }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.thumbs button { padding: 0; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--night); aspect-ratio: 4 / 3; opacity: 0.55; transition: opacity 0.3s, border-color 0.3s; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button:hover, .thumbs button[aria-pressed="true"] { opacity: 1; border-color: var(--brass); }
.status { display: inline-flex; align-items: center; font-size: var(--fs-label); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--brass); border: 1px solid var(--rule-brass); border-radius: 999px; padding: 8px 16px; margin-bottom: 26px; }
.pdp h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
.pdp .sub { margin-top: 12px; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.4rem; color: var(--brass-hi); }
.pdp .desc { margin-top: 24px; color: var(--text); max-width: 50ch; }
.buybox { margin-top: 34px; border: 1px solid var(--rule-brass); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); background: rgba(13, 24, 19, 0.4); }
.buybox .price { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--rule); }
.buybox .price b { font-family: var(--serif); font-weight: 300; font-size: 1.6rem; letter-spacing: -0.01em; }
.buybox .price span { font-size: var(--fs-label); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--text-dim); text-align: right; }
.trust { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 0; }
.trust li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--rule); font-size: 0.95rem; color: var(--text); }
.trust li:last-child { border-bottom: 1px solid var(--rule); }
.trust svg { width: 18px; height: 18px; color: var(--brass); margin-top: 4px; }
.acc { margin-top: 36px; }
.acc summary { font-size: 1.25rem; padding: 20px 0; }
@media (min-width: 940px) { .pdp-grid { grid-template-columns: 1.1fr 0.9fr; } .pdp-grid .sticky { position: sticky; top: 108px; } }
.duo { display: grid; gap: clamp(20px, 3vw, 40px); }
.duo article { border-top: 1px solid var(--rule-brass); padding-top: 28px; }
.duo .frame { aspect-ratio: 4 / 3; margin-bottom: 28px; }
.duo h3 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 12px; }
.duo p { color: var(--text); max-width: 46ch; }
.duo .tag { font-size: var(--fs-label); letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; color: var(--brass); display: block; margin-bottom: 14px; }
@media (min-width: 820px) { .duo { grid-template-columns: 1fr 1fr; } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero .rise { opacity: 0; transform: translateY(22px); animation: rise-in 1.1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise-in { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero .rise { opacity: 1; transform: none; }
  .marquee-track { width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee-track span[aria-hidden] { display: none; }
}

/* ---------- Small-screen refinements ---------- */
@media (max-width: 520px) {
  .label { letter-spacing: 0.18em; gap: 10px; }
  .label::after, .label.center::before { display: none; }
  .book .badge { right: -6px; top: -26px; width: 84px; height: 84px; }
}
@media (max-width: 939px) { .panel-img::after { display: none; } }
.members > *, .hours-grid > *, .guide > *, .faq-grid > *, .panel > * { min-width: 0; }
@media (max-width: 520px) {
  .btn { white-space: normal; text-align: center; padding: 14px 22px; letter-spacing: 0.14em; }
  .members .btn, .guide .btn { width: 100%; }
}
