/* VERDOR — single-estate olive oil
   Fraunces (display) · Manrope (body) · Space Mono (labels) */
:root {
  --deep: #10150c;
  --deep2: #161d10;
  --cream: #f3efe4;
  --gold: #c9a227;
  --gold-d: #7d6512;
  --leaf: #7a8f4f;
  --ink: #1b2113;
  --line-l: rgba(16, 21, 12, 0.14);
  --line-d: rgba(243, 239, 228, 0.14);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --mono: "Space Mono", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gut: clamp(20px, 5vw, 84px);
  --fx-bg: #10150c; --fx-ink: #f3efe4; --fx-accent: #c9a227;
  --fx-display: "Fraunces", Georgia, serif; --fx-mono: "Space Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html.lenis, html.lenis body { height: auto; }
body { background: var(--deep); color: var(--cream); font-family: var(--sans); font-weight: 300; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
::selection { background: var(--gold); color: var(--deep); }

#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }

.grain { position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%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)'/%3E%3C/svg%3E");
  animation: grain 0.7s steps(4) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 50%{transform:translate(2%,-2%)} 100%{transform:translate(-2%,2%)} }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--gut); mix-blend-mode: difference; color: #fff; transform: translateY(-120%); transition: transform 0.9s var(--ease); }
.nav.is-in { transform: none; }
.nav__brand { font-family: var(--serif); font-weight: 600; letter-spacing: 0.34em; font-size: 15px; }
.nav__links { display: flex; gap: 30px; }
.nav__links a, .nav__cta { opacity: 0.75; transition: opacity 0.3s; }
.nav__links a:hover, .nav__cta:hover { opacity: 1; }
.nav__cta { display: inline-block; }
@media (max-width: 760px) { .nav__links { display: none; } }

/* buttons */
.btn { display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; padding: 13px 20px; border: 1px solid var(--ink); background: transparent; color: var(--ink); border-radius: 999px; cursor: pointer; transition: background 0.35s, color 0.35s, border-color 0.35s; }
.btn:hover { background: var(--ink); color: var(--cream); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--deep); padding: 16px 26px; }
.btn--gold:hover { background: var(--cream); border-color: var(--cream); color: var(--deep); }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px var(--gut) 110px; overflow: hidden;
  background: radial-gradient(70% 80% at 72% 60%, #26320f 0%, var(--deep) 62%); }
.hero__copy { position: relative; z-index: 6; max-width: 560px; }
.hero__eyebrow { color: var(--gold); margin-bottom: 26px; }
.hero__title { font-family: var(--serif); font-weight: 300; font-size: clamp(3.2rem, 8.2vw, 7.4rem); line-height: 0.96; letter-spacing: -0.025em; }
.hero__title .line { display: block; }
.hero__title em { font-style: italic; color: var(--gold); }
.hero__sub { max-width: 430px; margin-top: 26px; color: rgba(243,239,228,0.66); }
.hero__ctas { display: flex; align-items: center; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero__link { color: rgba(243,239,228,0.7); border-bottom: 1px solid rgba(243,239,228,0.25); padding-bottom: 4px; transition: color 0.3s, border-color 0.3s; }
.hero__link:hover { color: var(--gold); border-color: var(--gold); }
.hero__badge { position: absolute; left: var(--gut); bottom: 34px; width: 108px; height: 108px; z-index: 6; }
.hero__badge svg { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.hero__badge text { font-family: var(--mono); font-size: 8.6px; letter-spacing: 0.22em; fill: rgba(243,239,228,0.6); }
.hero__badge-dot { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 22px var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__meta { position: absolute; right: var(--gut); bottom: 40px; z-index: 6; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; color: rgba(243,239,228,0.45); }
.hero__scroll { position: absolute; bottom: 30px; left: 50%; translate: -50% 0; z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(243,239,228,0.5); }
.hero__scroll i { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); transform-origin: top; animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0%{transform:scaleY(0)} 60%{transform:scaleY(1);opacity:1} 100%{transform:scaleY(1);opacity:0} }
[data-hero], [data-reveal] { opacity: 0; transform: translateY(24px); }
@media (max-width: 760px) {
  .hero { align-items: flex-start; padding-top: 108px; }
  .hero__title { font-size: clamp(2.9rem, 13vw, 4rem); }
  .hero__sub { display: none; }
  .hero__badge, .hero__meta { display: none; }
}

/* marquee */
.marquee { position: relative; border-block: 1px solid var(--line-d); padding: 18px 0; overflow: hidden; background: var(--deep2); }
.marquee__track { display: flex; gap: 34px; width: max-content; align-items: center; }
.marquee__track span { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 2.1rem); white-space: nowrap; color: rgba(243,239,228,0.88); }
.marquee__track i { color: var(--gold); font-style: normal; font-size: 0.9rem; }

/* chapters */
.chapter { padding: clamp(90px, 14vh, 170px) var(--gut); }
.chapter__num { color: var(--gold); margin-bottom: 20px; }
h2[data-split], .chapter h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.1rem, 5vw, 3.9rem); line-height: 1.04; letter-spacing: -0.01em; }
h2 em { font-style: italic; color: var(--gold); }
h2 .line { display: block; }
.chapter p { max-width: 470px; margin-top: 22px; color: rgba(243,239,228,0.66); }

.chapter--photo { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; background: var(--cream); color: var(--ink); }
.chapter--photo p { color: rgba(27,33,19,0.68); }
.chapter--photo h2 em, .chapter--photo .chapter__num { color: var(--gold-d); }
.chapter--flip .chapter__media { order: 2; }
.chapter__media { overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 5; max-height: 78vh; }
.chapter__media img { width: 100%; height: 118%; object-fit: cover; margin-top: -9%; }
@media (max-width: 860px) { .chapter--photo { grid-template-columns: 1fr; } .chapter--flip .chapter__media { order: 0; } }

.chapter--dark { text-align: center; background: var(--deep); position: relative; }
.hours__big { font-family: var(--serif); font-weight: 300; font-size: clamp(7rem, 24vw, 19rem); line-height: 0.9; color: var(--cream); }
.hours__big em { font-style: italic; font-size: 0.2em; color: var(--gold); margin-left: 0.2em; }
.hours__clock { width: 64px; height: 64px; margin: 26px auto 0; border: 1px solid var(--line-d); border-radius: 50%; position: relative; }
.hours__clock i { position: absolute; left: 50%; bottom: 50%; width: 1.5px; height: 26px; margin-left: -0.75px; background: var(--gold); transform-origin: 50% 100%; }
.chapter .hours__note { margin: 30px auto 0; max-width: 470px; color: rgba(243,239,228,0.6); }

/* harvest (pinned horizontal) */
.harvest { background: var(--deep2); }
.harvest__pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: clamp(26px, 5vh, 50px); padding: 90px 0 40px; overflow: hidden; }
.harvest__head { padding: 0 var(--gut); }
.harvest__head .chapter__num { margin-bottom: 14px; }
.harvest__track { display: flex; gap: clamp(16px, 2vw, 28px); padding: 0 var(--gut); width: max-content; will-change: transform; }
.hcard { width: clamp(260px, 30vw, 440px); flex: none; }
.hcard__img { overflow: hidden; border-radius: 4px; height: min(50vh, 500px); }
.hcard__img img { width: 118%; height: 100%; object-fit: cover; max-width: none; margin-left: -9%; }
.hcard figcaption { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.hcard .mono { color: var(--gold); }
.hcard h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; }
.harvest__bar { margin: 0 var(--gut); height: 1px; background: var(--line-d); }
.harvest__bar i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; }
@media (max-width: 760px) { .hcard { width: 76vw; } .hcard__img { height: 44vh; } }

/* pour (pinned; 3D in #gl) */
.pour { background: var(--cream); color: var(--ink); }
.pour__pin { height: 100vh; display: flex; align-items: center; padding: 90px var(--gut); }
.pour__stage { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.pour__copy { position: relative; z-index: 6; }
.pour__copy .chapter__num { color: var(--gold-d); }
.pour__title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.3rem, 5.2vw, 4.4rem); line-height: 1.02; }
.pour__title .line { display: block; }
.pour__title em { font-style: italic; color: var(--gold-d); }
.pour__stats { display: flex; gap: clamp(20px, 4vw, 50px); margin-top: 40px; flex-wrap: wrap; }
.pour__stats div { display: flex; flex-direction: column; gap: 4px; }
.pour__stats b { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.pour__stats .mono { color: #8a8468; font-size: 10px; }
@media (max-width: 760px) {
  .pour__pin { align-items: flex-end; padding-bottom: 60px; }
  .pour__stage { grid-template-columns: 1fr; }
  .pour__space { display: none; }
  .pour__title { font-size: 2.2rem; }
}

/* taste */
.taste { padding: clamp(90px, 14vh, 170px) var(--gut); background: var(--deep); }
.taste__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 50px; perspective: 1000px; }
.note { position: relative; border: 1px solid var(--line-d); border-radius: 6px; padding: 34px 28px; background: linear-gradient(160deg, rgba(243,239,228,0.04), transparent 60%); transition: border-color 0.4s; transform-style: preserve-3d; }
.note:hover { border-color: var(--gold); }
.note__n { position: absolute; top: 22px; right: 24px; color: rgba(243,239,228,0.3); }
.note .mono:not(.note__n) { color: var(--gold); }
.note h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; margin: 14px 0 8px; }
.note p { color: rgba(243,239,228,0.6); font-size: 14.5px; }
@media (max-width: 780px) { .taste__grid { grid-template-columns: 1fr; } }

/* shop */
.shop { padding: clamp(90px, 14vh, 170px) var(--gut); background: var(--cream); color: var(--ink); }
.shop .chapter__num { color: var(--gold-d); }
.shop h2 em { color: var(--gold-d); }
.shop__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 54px; perspective: 1000px; }
.sku { position: relative; background: #fbf8f0; border: 1px solid var(--line-l); border-radius: 8px; padding: 38px 26px 28px; text-align: center; transition: box-shadow 0.5s var(--ease); transform-style: preserve-3d; }
.sku:hover { box-shadow: 0 34px 70px rgba(27,33,19,0.16); }
.sku--hero { outline: 1.5px solid var(--gold); }
.sku__tag { position: absolute; top: 14px; left: 50%; translate: -50% 0; background: var(--gold); color: var(--deep); padding: 5px 10px; border-radius: 999px; font-size: 9px; }
.sku__bottle { width: 56px; height: 156px; margin: 18px auto 24px; border-radius: 7px 7px 11px 11px; position: relative; box-shadow: inset -8px 0 14px rgba(0,0,0,0.25), inset 6px 0 10px rgba(255,255,255,0.18); transform: translateZ(40px); }
.sku__bottle::before { content: ""; position: absolute; top: -16px; left: 50%; translate: -50% 0; width: 18px; height: 18px; background: var(--gold); border-radius: 2px; }
.sku__bottle::after { content: ""; position: absolute; left: 6px; right: 6px; top: 42%; height: 44px; background: var(--cream); border-radius: 2px; opacity: 0.92; }
.sku__bottle--verde { background: linear-gradient(100deg, #2c3818, #4a5c26 45%, #1c2412); }
.sku__bottle--oro { background: linear-gradient(100deg, #6b5310, #c9a227 45%, #4a3a0a); }
.sku__bottle--prima { background: linear-gradient(100deg, #526326, #8ba445 45%, #39481f); }
.sku h3 { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; }
.sku .mono { color: #8a8468; }
.sku > p:not(.mono) { color: rgba(27,33,19,0.62); font-size: 14.5px; margin-top: 10px; }
.sku__row { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; }
.sku__price { font-family: var(--serif); font-size: 1.5rem; }
.shop__note { text-align: center; margin-top: 44px; color: #8a8468; }
@media (max-width: 820px) { .shop__grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }

/* footer — editorial estate sign-off */
.footer { position: relative; background: var(--deep); padding: clamp(80px, 12vh, 140px) var(--gut) 30px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.1fr 1.4fr; gap: clamp(30px, 6vw, 100px); align-items: end; }
.footer__sign { font-family: var(--serif); font-weight: 300; font-size: clamp(2.8rem, 6.4vw, 5.6rem); line-height: 0.98; letter-spacing: -0.02em; }
.footer__sign em { font-style: italic; color: var(--gold); }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 28px; }
.footer__cols > div { display: flex; flex-direction: column; gap: 10px; }
.footer__cols .mono { color: var(--gold); margin-bottom: 6px; }
.footer__cols a:not(.btn) { color: rgba(243,239,228,0.72); font-size: 15px; transition: color 0.3s, padding-left 0.4s var(--ease); }
.footer__cols a:not(.btn):hover { color: var(--gold); padding-left: 6px; }
.footer__reserve p { color: rgba(243,239,228,0.6); font-size: 14.5px; }
.footer__reserve .btn { align-self: flex-start; margin-top: 8px; white-space: nowrap; }
.footer__branch { display: block; width: 100%; height: 110px; margin: clamp(40px, 7vh, 70px) 0 24px; overflow: visible; }
.br-stem { fill: none; stroke: var(--leaf); stroke-width: 2; }
.br-leaves path { fill: var(--leaf); opacity: 0.85; transform-box: fill-box; transform-origin: 0% 50%; }
.br-olives ellipse { fill: #3b2a3a; transform-box: fill-box; transform-origin: 50% 0%; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line-d); color: rgba(243,239,228,0.45); }
.footer__base a { color: var(--gold); }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr; } .footer__cols { grid-template-columns: 1fr 1fr; } .footer__reserve { grid-column: 1 / -1; } }

/* loader — the bottle fills with oil */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--deep); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; }
.lv-bottle { width: clamp(90px, 11vw, 130px); height: auto; overflow: visible; transform-origin: 50% 62%; }
.lv-outline { fill: none; stroke: rgba(243,239,228,0.35); stroke-width: 1.4; }
.lv-cap { fill: var(--gold); }
.lv-wave { fill: var(--gold); animation: lvWave 1.4s linear infinite; }
@keyframes lvWave { to { transform: translateX(60px); } }
.lv-meta { display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(243,239,228,0.55); }
.lv-num { font-size: 12px; color: var(--gold); }
.lv-num b { font-weight: 400; font-variant-numeric: tabular-nums; }

/* cursor — a drop of oil (shape on ::before so the JS transform stays clean) */
.cur--drop { width: 14px; height: 14px; margin: -7px 0 0 -7px; transition: width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease); }
.cur--drop::before { content: ""; position: absolute; inset: 0; border-radius: 50% 50% 50% 0; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 14px rgba(201,162,39,0.55); transition: border-radius 0.4s var(--ease), background 0.3s, box-shadow 0.3s; }
.cur--drop span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--deep); z-index: 1; }
.cur--drop.is-hover { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
.cur--drop.is-hover::before { border-radius: 50%; background: rgba(201,162,39,0.22); box-shadow: inset 0 0 0 1px var(--gold); }
.cur--drop.has-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.cur--drop.has-label::before { background: var(--gold); }
.cur--drop.is-down { width: 10px; height: 10px; margin: -5px 0 0 -5px; }

/* progress — the oil level on the right edge */
.prog--line-v { right: 10px; top: 16vh; bottom: 16vh; width: 2px; background: rgba(201,162,39,0.18); border-radius: 2px; overflow: hidden; }
.prog--line-v i { display: block; width: 100%; height: 100%; background: linear-gradient(var(--gold), #e8c243); transform: scaleY(0); transform-origin: 50% 0; }
@media (max-width: 760px) { .prog--line-v { right: 4px; } }

.toast { position: fixed; left: 50%; bottom: 30px; translate: -50% 20px; background: var(--gold); color: var(--deep); padding: 13px 22px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity 0.4s, translate 0.5s var(--ease); z-index: 70; }
.toast.is-on { opacity: 1; translate: -50% 0; }

@media (prefers-reduced-motion: reduce) {
  [data-hero], [data-reveal] { opacity: 1; transform: none; }
  .grain, .hero__badge svg, .hero__scroll i { animation: none; }
}
