/* ============================================================
   MYRO — sections.css
   Hero + the four signature scroll interactions
   ============================================================ */

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

/* ============================================================
   VIDEO HERO — cinematic full-bleed (Organised / Nomio style)
   ============================================================ */
.vhero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  overflow: hidden; color: var(--bone);
  margin-top: calc(-1 * var(--nav-h));   /* slide up behind the floating nav */
}
.vhero__inner { padding-top: var(--nav-h); }
.vhero__media { position: absolute; inset: 0; z-index: 0; background: #14110b; overflow: hidden; }
.vhero__media img, .vhero__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.vhero__media img { animation: kenburns 24s ease-in-out infinite alternate; transform-origin: 60% 40%; }
.vhero__media video { z-index: 1; }   /* real footage covers the still fallback when present */
@keyframes kenburns {
  0%   { transform: scale(1.08); }
  100% { transform: scale(1.26) translate(-2%,-3%); }
}
.vhero__scrim {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, rgba(12,10,7,.50) 0%, rgba(12,10,7,.12) 26%, rgba(12,10,7,.30) 60%, rgba(12,10,7,.86) 100%),
    linear-gradient(90deg, rgba(12,10,7,.55) 0%, rgba(12,10,7,0) 55%);
}
.vhero__grain {
  position: absolute; inset: 0; z-index: 3; opacity: .5; pointer-events: none; mix-blend-mode: soft-light;
  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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
.vhero__inner {
  position: relative; z-index: 4; width: 100%; max-width: var(--maxw);
  margin-inline: auto; padding: 0 var(--gutter) clamp(56px, 9vh, 120px);
}
.vhero__copy { max-width: 640px; }
.vhero .eyebrow { color: rgba(239,233,222,.8); }
.vhero h1 {
  color: var(--bone); font-size: clamp(2.7rem, 8vw, 7rem); line-height: .95;
  letter-spacing: -.03em; margin: 18px 0 20px; text-shadow: 0 2px 40px rgba(0,0,0,.3);
}
.vhero h1 em { font-style: italic; color: var(--gold-2); }
.vhero__sub { font-size: clamp(1.05rem, 1.7vw, 1.35rem); color: rgba(239,233,222,.85); max-width: 44ch; line-height: 1.45; }
.vhero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.vhero__cta .btn--light { background: var(--bone); color: var(--espresso); }
.vhero__cta .btn--light:hover { background: #fff; }
.vhero__cta .btn--line { border: 1px solid rgba(239,233,222,.5); color: var(--bone); }
.vhero__cta .btn--line:hover { background: rgba(239,233,222,.12); border-color: var(--bone); }
.vhero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 4;
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(239,233,222,.7); display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.vhero__scroll .line { width: 1px; height: 38px; background: linear-gradient(rgba(239,233,222,.6), transparent); animation: scrollLine 2.2s ease-in-out infinite; }
@keyframes scrollLine { 0%,100% { transform: scaleY(.4); opacity: .4; transform-origin: top; } 50% { transform: scaleY(1); opacity: 1; transform-origin: top; } }

/* hero data readouts — bottom right */
.vhero__data {
  position: absolute; right: var(--gutter); bottom: clamp(56px, 9vh, 120px); z-index: 4;
  display: flex; gap: clamp(22px, 3vw, 44px); color: var(--bone);
}
.vhero__data > div { display: grid; gap: 4px; padding-left: 16px; border-left: 1px solid rgba(239,233,222,.3); }
.vhero__data b { font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1; letter-spacing: -.02em; }
.vhero__data b small { font-family: var(--mono); font-size: .45em; letter-spacing: .1em; color: var(--gold-2); margin-left: 3px; }
.vhero__data span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(239,233,222,.65); }
@media (max-width: 920px) { .vhero__data { position: static; margin-top: 36px; } .vhero__scroll { display: none; } }
@media (max-width: 560px) { .vhero__data { gap: 16px; } .vhero__data > div { padding-left: 10px; } }

/* promo side tab (Nomio) */
.promotab {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 70;
  background: var(--espresso); color: var(--bone); writing-mode: vertical-rl;
  padding: 18px 9px; font-family: var(--mono); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; border-radius: 8px 0 0 8px; transition: background .3s, transform .4s var(--ease);
  display: flex; align-items: center; gap: 14px;
}
.promotab:hover { background: #000; }
.promotab .x { writing-mode: horizontal-tb; font-size: 13px; color: var(--ink-faint); }
.promotab.hide { transform: translate(110%, -50%); }

/* ============================================================
   HERO — rotating bottle (SAP-style)
   ============================================================ */
.hero {
  min-height: calc(100svh - var(--nav-h));
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  position: relative; padding-block: 40px;
  background:
    radial-gradient(120% 90% at 80% 10%, var(--paper) 0%, transparent 55%),
    var(--bone);
}
.hero__copy { max-width: 560px; z-index: 3; }
.hero__title { margin: 14px 0 22px; }
.hero__title em { font-style: italic; color: var(--gold); font-family: var(--display); }
.hero__cta { display:flex; gap:14px; flex-wrap:wrap; margin-top: 30px; }
.hero__stats { display:flex; gap: 34px; margin-top: 46px; }
.hero__stat .n { font-family: var(--display); font-size: 2rem; color: var(--espresso); }
.hero__stat .l { font-family: var(--mono); font-size: 10.5px; letter-spacing:.14em; text-transform:uppercase; color: var(--ink-soft); }

.hero__stage {
  position: relative; height: 100%; min-height: 460px;
  display: grid; place-items: center; perspective: 1400px;
}
.hero__ghost {
  position: absolute; font-family: var(--display); font-weight: 600;
  font-size: 40vh; color: rgba(178,146,78,.10); letter-spacing: -.05em;
  pointer-events: none; user-select: none; z-index: 1;
}
.bottle-spin { position: relative; z-index: 2; cursor: grab; touch-action: pan-y; }
.bottle-spin.dragging, .bottle-spin:active { cursor: grabbing; }
.bottle-spin canvas { display: block; width: 100%; height: 100%; }

/* the framed shot — arch gallery frame around the 360° bottle */
.bottle-frame { position: relative; z-index: 2; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.bottle-frame__mat {
  width: clamp(240px, 25vw, 330px);
  aspect-ratio: 460 / 880;
  padding: clamp(10px, 1.2vw, 16px);
  background: var(--paper);
  border: 1px solid rgba(33,30,24,.22);
  border-radius: 500px 500px 22px 22px;
  box-shadow:
    0 70px 90px -55px rgba(33,30,24,.4),
    inset 0 0 0 1px rgba(178,146,78,.0);
  position: relative;
}
.bottle-frame__mat::after {           /* inner gold hairline on the mat */
  content: ""; position: absolute; inset: 5px;
  border: 1px solid rgba(178,146,78,.35);
  border-radius: 500px 500px 19px 19px;
  pointer-events: none;
}
.bottle-frame__mat .bottle-spin {
  position: absolute; inset: clamp(10px, 1.2vw, 16px);
  border-radius: 500px 500px 14px 14px;
  overflow: hidden;
  background: #F2EDDC;                /* matches the studio backdrop in the frames */
}
.bottle-frame__plate {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 100px; padding: 8px 18px;
  background: rgba(245,241,232,.7);
}
.bottle-frame__plate .deg { color: var(--gold); }
@media (max-width: 560px) {
  .bottle-frame__plate { font-size: 8.5px; gap: 8px; padding: 7px 13px; white-space: nowrap; }
}
.hero__hint {
  position:absolute; bottom: 8px; left:50%; transform:translateX(-50%);
  font-family:var(--mono); font-size:10px; letter-spacing:.16em; text-transform:uppercase;
  color: var(--ink-faint); display:flex; align-items:center; gap:8px;
}
.hero__hint .ring { width:24px;height:24px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center; }

/* floating marquee strip */
.marquee {
  border-block: 1px solid var(--line); overflow: hidden; background: var(--bone-2);
  padding-block: 16px;
}
.marquee__track { display:flex; gap:48px; white-space:nowrap; width:max-content; animation: scrollx 32s linear infinite; }
.marquee__track span { font-family: var(--display); font-size: clamp(1.4rem,3vw,2.4rem); color:var(--espresso); display:flex; align-items:center; gap:48px; }
.marquee__track span::after { content:"✦"; color: var(--gold); font-size:.6em; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ============================================================
   BLUR REVEAL (sotf-style) — text/image sharpens on scroll
   ============================================================ */
.blurband { background: var(--espresso); color: var(--bone); }
.blurband .statement {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2rem, 5.5vw, 5rem); line-height: 1.04; letter-spacing: -.03em;
  color: var(--bone); max-width: 18ch;
}
.blurband .statement .w {
  display: inline-block; filter: blur(14px); opacity: .25;
  transition: filter .9s var(--ease), opacity .9s var(--ease);
}
.blurband .statement.in .w { filter: blur(0); opacity: 1; }
.blurband .statement .w.g { color: var(--gold-2); }
.blurband .sub { color: rgba(239,233,222,.6); margin-top: 28px; max-width: 50ch; }

/* ============================================================
   SEE-THROUGH BROCCOLI (seed.com-style)
   ============================================================ */
.xray { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,80px); align-items:center; }
.xray__media {
  position: relative; aspect-ratio: 1/1.05; border-radius: var(--radius-lg);
  overflow: hidden; background: radial-gradient(circle at 50% 40%, #1c2415, #0c0f08);
  display:grid; place-items:center;
}
.xray__media img {
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
}
.xray__media .skin { z-index: 2; transition: opacity .6s var(--ease), filter .6s var(--ease); }
.xray__media .inner {
  z-index: 1; filter: saturate(1.3) brightness(1.15) hue-rotate(-8deg);
  transform: scale(1.04);
}
/* reveal lens follows pointer; default keeps skin visible */
.xray__media.peek .skin { opacity: .12; filter: blur(2px); }
.xray__lens {
  position:absolute; z-index:3; width:230px; height:230px; border-radius:50%;
  border:1px solid rgba(255,255,255,.4); pointer-events:none;
  transform: translate(-50%,-50%) scale(0); opacity:0;
  transition: opacity .3s, transform .3s var(--ease);
  background: radial-gradient(circle, transparent 60%, rgba(255,255,255,.05) 100%);
  box-shadow: 0 0 0 100vmax rgba(8,10,6,.0);
  mix-blend-mode: screen;
}
.xray__media.peek .xray__lens { opacity:1; transform: translate(-50%,-50%) scale(1); }
.xray__tags { position:absolute; inset:0; z-index:4; pointer-events:none; }
.xray__tag {
  position:absolute; font-family:var(--mono); font-size:10px; letter-spacing:.12em;
  text-transform:uppercase; color: rgba(239,233,222,.92); display:flex; align-items:center; gap:8px;
  opacity:0; transform: translateY(6px); transition: all .6s var(--ease);
}
.xray__media.in .xray__tag { opacity:1; transform:none; }
.xray__tag::before { content:""; width:26px; height:1px; background: var(--gold-2); }
.xray__tag.t1 { top: 22%; left: 14%; transition-delay:.2s; }
.xray__tag.t2 { top: 46%; right: 12%; flex-direction:row-reverse; transition-delay:.35s; }
.xray__tag.t2::before { background:var(--gold-2); }
.xray__tag.t3 { bottom: 20%; left: 20%; transition-delay:.5s; }

.xray__copy h2 { margin-bottom: 22px; }
.xray__list { margin-top: 28px; }
.xray__list li { display:flex; gap:16px; padding: 16px 0; border-top:1px solid var(--line); }
.xray__list .ic { font-family:var(--mono); color:var(--gold); font-size:13px; min-width:34px; }
.xray__list b { display:block; font-size:15px; margin-bottom:2px; }
.xray__list p { font-size:13.5px; color:var(--ink-soft); }

/* ============================================================
   INGREDIENT / SCIENCE grid
   ============================================================ */
.ingredients { display:grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.ing {
  border-radius: var(--radius-lg); overflow:hidden; position:relative;
  aspect-ratio: 1/1.15; background: var(--sand); display:flex; align-items:flex-end;
}
.ing img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition: transform 1s var(--ease); }
.ing:hover img { transform: scale(1.06); }
.ing__cap { position:relative; z-index:2; padding: 22px; color:#fff; background: linear-gradient(transparent, rgba(0,0,0,.5)); width:100%; }
.ing__cap h4 { font-family: var(--display); font-size:1.4rem; color:#fff; }
.ing__cap span { font-family: var(--mono); font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; opacity:.8; }
.ing__cap--light { color: var(--espresso); background: linear-gradient(transparent, rgba(245,241,232,.85)); }
.ing__cap--light h4 { color: var(--espresso); }

/* ============================================================
   SHOP
   ============================================================ */
.shop__head { display:flex; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; gap:20px; margin-bottom: 46px; }
.grid-3 { display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; }

/* subscription / value props */
.props { display:grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.prop { padding: 28px 22px; border:1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.prop .n { font-family: var(--mono); font-size: 11px; color: var(--gold); letter-spacing:.1em; }
.prop b { display:block; font-family: var(--display); font-size: 1.25rem; margin: 14px 0 8px; }
.prop p { font-size: 13.5px; color: var(--ink-soft); }

/* athlete / founder band */
.founder { display:grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px,5vw,70px); align-items:center; }
.founder__media { aspect-ratio: 4/4.6; border-radius: var(--radius-lg); background: linear-gradient(160deg,var(--broccoli-dk),#1c2415); position:relative; overflow:hidden; display:grid; place-items:center; }
.founder__media img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.founder__media .badge {
  position:absolute; left:18px; bottom:18px; z-index:2;
  font-family:var(--mono); font-size:10px; letter-spacing:.18em; text-transform:uppercase;
  color:var(--bone); border:1px solid rgba(239,233,222,.35); border-radius:100px; padding:8px 16px;
  background: rgba(20,17,11,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.founder blockquote { font-family: var(--display); font-size: clamp(1.5rem,2.8vw,2.4rem); line-height:1.15; letter-spacing:-.02em; color: var(--espresso); }
.founder cite { display:block; margin-top: 24px; font-style:normal; font-size:14px; color:var(--ink-soft); }
.founder cite b { color: var(--espresso); }

/* faq */
.faq__item { border-top:1px solid var(--line); }
.faq__q { width:100%; display:flex; justify-content:space-between; align-items:center; gap:20px; padding: 24px 0; text-align:left; font-family:var(--display); font-size:clamp(1.1rem,2vw,1.5rem); color:var(--espresso); }
.faq__q .pm { font-family:var(--grotesk); font-size:24px; color:var(--gold); transition: transform .4s var(--ease); font-weight:300; }
.faq__item.open .pm { transform: rotate(45deg); }
.faq__a { max-height:0; overflow:hidden; transition: max-height .5s var(--ease); }
.faq__a p { padding-bottom: 24px; color:var(--ink-soft); font-size:15px; max-width:64ch; }

/* newsletter */
.news { background: var(--gold-soft); border-radius: var(--radius-lg); padding: clamp(40px,6vw,80px); text-align:center; }
.news form { display:flex; gap:10px; max-width: 440px; margin: 28px auto 0; }
.news input { flex:1; padding:15px 18px; border-radius:100px; border:1px solid var(--clay); background:rgba(255,255,255,.6); font-family:var(--grotesk); font-size:15px; }
.news input:focus { outline:none; border-color: var(--gold); }

@media (max-width: 920px) {
  .ingredients, .grid-3, .props { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero__stage { min-height: 380px; order:-1; }
  .hero__ghost { font-size: 30vh; }
  .xray, .founder { grid-template-columns: 1fr; }
  .xray__media { max-height: 70vh; }
}
@media (max-width: 560px) {
  .ingredients, .grid-3, .props { grid-template-columns: 1fr; }
  .hero__stats { gap: 22px; }
  .news form { flex-direction:column; border-radius: var(--radius); }
  .news input { border-radius:100px; }
}
