/* ==========================================================================
   ΣΤΑΛΙΑ · Cretan olive oil
   Made by clicko.gr
   ========================================================================== */

:root {
  --cream: #f3eddd;
  --paper: #e9e0c9;
  --green: #18261a;
  --green-2: #223423;
  --deep: #101a11;
  --olive: #6f7b2e;
  --gold: #d8b13a;
  --serif: 'Noto Serif Display', Georgia, serif;
  --sans: 'Commissioner', system-ui, sans-serif;
  --pad: clamp(1.1rem, 3vw, 3.4rem);
  --ease: cubic-bezier(.19, 1, .22, 1);
  --em: var(--olive);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0; background: var(--cream); color: var(--green);
  font-family: var(--sans); font-weight: 400; font-size: clamp(1rem, .45vw + .88rem, 1.14rem); line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--gold); color: var(--green); }

.tag { display: inline-block; font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.5rem, 6vw, 6.8rem); line-height: 1.04; letter-spacing: -.015em; }
.h1 em { font-style: italic; color: var(--em); }
.line-mask { padding: .1em .06em .16em; margin: -.1em -.06em -.16em; }

.uline { position: relative; display: inline-block; }
.uline::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.uline:hover::after { transform: scaleX(1); transform-origin: left; }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  padding: .85rem 1.6rem; border: 1px solid currentColor; border-radius: 999px;
  font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.btn::before { content: ''; position: absolute; inset: -1px; background: var(--green); border-radius: 999px; transform: translateY(102%); transition: transform .6s var(--ease); }
.btn span { position: relative; transition: color .3s; }
.btn:hover::before { transform: translateY(0); }
.btn:hover span { color: var(--cream); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--green); }
.btn--gold::before { background: var(--cream); }
.btn--gold:hover span { color: var(--green); }

/* ---------- loader ---------- */
.loader { display: none; }
.js .loader { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: var(--cream); overflow: hidden; }
.loader__gold { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: var(--gold); transform: scale(0); }
.loader__drop { position: relative; width: 54px; fill: var(--gold); transform: translateY(-70vh); }
.loader__text { position: absolute; bottom: 2.2rem; left: 0; right: 0; text-align: center; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-variant-numeric: tabular-nums; }

/* ---------- cursor + fly dot ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block; position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
    width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--gold); mix-blend-mode: multiply;
    transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), opacity .3s;
  }
  .cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; opacity: .75; }
}
.flydot { position: fixed; top: 0; left: 0; z-index: 9998; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--gold); pointer-events: none; opacity: 0; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem var(--pad); transition: transform .7s var(--ease), color .4s;
}
.nav[data-theme="light"] { color: var(--cream); }
.nav[data-theme="dark"] { color: var(--green); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--serif); font-size: 1.6rem; line-height: 1; }
.nav__links { display: flex; gap: 2.2rem; font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.nav__links a { position: relative; padding: .3rem 0; }
.nav__links a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cart { display: inline-flex; align-items: center; gap: .6rem; padding: .6rem .7rem .6rem 1.1rem; border: 1px solid currentColor; border-radius: 999px; font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.nav__count { display: inline-grid; place-items: center; min-width: 1.7rem; height: 1.7rem; padding: 0 .4rem; border-radius: 999px; background: var(--gold); color: var(--green); font-weight: 600; font-size: .78rem; }

/* ---------- journey + travelling bottle ---------- */
.journey { position: relative; }
.bottle-layer { position: sticky; top: 0; z-index: 5; height: 100vh; display: grid; place-items: center; pointer-events: none; overflow: hidden; }
.bottle { position: relative; height: 66vh; aspect-ratio: 200 / 640; margin-top: 7vh; will-change: transform; }
.bottle__float { position: relative; height: 100%; will-change: transform; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .28)); }
.bottle__float svg { height: 100%; width: 100%; display: block; overflow: visible; }
.bottle__shadow { position: absolute; left: 50%; bottom: -3%; width: 150%; height: 6%; margin-left: -75%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .34), transparent); }
.bottle__ring { position: absolute; left: 50%; top: 50%; width: 86vh; height: 86vh; margin: -43vh 0 0 -43vh; opacity: 0; }
.bottle__ring svg { width: 100%; height: 100%; overflow: visible; }
.ring__line { fill: none; stroke: var(--green); stroke-opacity: .18; stroke-width: .6; }
.ring__text { font-family: var(--sans); font-size: 13.4px; font-weight: 500; letter-spacing: 3.1px; fill: var(--green); }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 1; margin-top: -100vh; height: 100svh; min-height: 640px; overflow: hidden; color: var(--cream); background: radial-gradient(120% 90% at 30% 20%, #3a4a1f 0%, #18261a 55%, #0c140d 100%); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s; }
.hero__canvas.is-ready { opacity: 1; }
.hero__top { position: absolute; top: 5.6rem; left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.hero__title {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-54%); display: flex; justify-content: space-between; padding: 0 var(--pad); overflow: hidden;
  font-family: var(--serif); font-weight: 300; font-size: 22.5vw; line-height: .95; letter-spacing: -.01em;
}
.hero__title span { display: inline-block; will-change: transform; }
.hero__bottom { position: absolute; z-index: 6; left: var(--pad); right: var(--pad); bottom: 2rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.hero__lead { max-width: 23em; font-size: 1.05rem; line-height: 1.5; }
.hero__facts { display: flex; gap: clamp(1.4rem, 3vw, 3.4rem); }
.hero__facts b { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 2.8vw, 3rem); line-height: 1; }
.hero__facts span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }

/* ---------- intro ---------- */
.intro { position: relative; z-index: 1; min-height: 118vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 16vh var(--pad); background: var(--cream); overflow: hidden; }
.intro__sun { position: absolute; left: 25%; top: 50%; width: 58vh; height: 58vh; margin: -29vh 0 0 -29vh; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #efd27a, var(--gold) 70%); }
.intro__copy { grid-column: 2; display: grid; gap: 1.8rem; justify-items: start; }
.intro__copy > p { max-width: 31em; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem var(--pad); width: 100%; margin-top: 1rem; }
.stats li { padding-top: 1rem; border-top: 1px solid rgba(24, 38, 26, .2); }
.stats b { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 4.6vw, 5rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stats span { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }

/* ---------- notes ---------- */
.notes { position: relative; z-index: 1; min-height: 125vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 16vh var(--pad); background: var(--paper); }
.notes__copy { display: grid; gap: 1.8rem; justify-items: start; }
.notes__copy > p { max-width: 31em; }
.bars { width: 100%; max-width: 34rem; display: grid; gap: 1.1rem; margin-top: .6rem; }
.bars li { display: grid; grid-template-columns: 7.5em 1fr 2.4em; align-items: center; gap: 1rem; font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; }
.bars i { position: relative; height: 1px; background: rgba(24, 38, 26, .22); }
.bars u { position: absolute; left: 0; top: -2px; height: 5px; width: 100%; border-radius: 3px; background: var(--green); transform-origin: left; text-decoration: none; }
.bars b { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; text-align: right; letter-spacing: 0; }
.facts { display: flex; gap: clamp(1.4rem, 3vw, 3.2rem); margin-top: .8rem; }
.facts dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.facts dd { font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw, 2.6rem); line-height: 1.2; }

/* ---------- saying ---------- */
.saying { background: var(--gold); padding: clamp(6rem, 14vw, 15rem) var(--pad); text-align: center; display: grid; gap: 2rem; justify-items: center; overflow: hidden; }
.saying__text { font-family: var(--serif); font-weight: 300; font-size: clamp(3.4rem, 13.5vw, 16rem); line-height: .98; letter-spacing: -.02em; }
.saying__text .word { display: inline-block; }
.saying__note { font-size: .86rem; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- craft ---------- */
.craft { --em: var(--gold); background: var(--green); color: var(--cream); padding: clamp(5rem, 10vw, 11rem) var(--pad) clamp(4rem, 8vw, 8rem); }
.craft__head { display: grid; gap: 1.4rem; margin-bottom: clamp(3rem, 7vw, 7rem); }
.craft__body { position: relative; display: grid; grid-template-columns: clamp(70px, 15vw, 230px) 1fr; gap: var(--pad); }
.craft__branch { position: relative; }
.craft__branch svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.branch__stem { fill: none; stroke: #8f9a55; stroke-width: 2.4; stroke-linecap: round; }
.branch__leaf { fill: #7f8c44; }
.branch__leaf:nth-of-type(3n) { fill: #a3ad63; }
.branch__olive { fill: #0c140d; stroke: var(--gold); stroke-width: 1; }
.step { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.5rem, 5vw, 6rem); align-items: center; min-height: 78vh; padding: 4vh 0; }
.step__text { display: grid; gap: 1rem; justify-items: start; }
.step__text i { font-style: normal; font-size: .78rem; letter-spacing: .14em; color: var(--gold); }
.step__text h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 4.4vw, 4.8rem); line-height: 1.05; }
.step__text p { max-width: 26em; opacity: .85; }
.step__fig { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; }
.step__fig img { width: 100%; height: 100%; object-fit: cover; }
.step:nth-child(even) .step__fig { aspect-ratio: 1; border-radius: 999px 999px 10px 10px; max-width: 78%; justify-self: end; }

/* ---------- place ---------- */
.place { padding: clamp(5rem, 10vw, 11rem) var(--pad) clamp(3rem, 6vw, 6rem); overflow: hidden; }
.place__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.4rem var(--pad); align-items: end; margin-bottom: clamp(3rem, 6vw, 6rem); }
.place__head .tag { grid-column: 1 / -1; }
.place__head p { max-width: 30em; justify-self: end; }
.place__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--pad); }
.place__col { display: grid; gap: var(--pad); align-content: start; will-change: transform; }
.place__col:nth-child(2) { margin-top: 14vh; }
.place__col img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }
.place__col:nth-child(odd) img:first-child { aspect-ratio: 4 / 3; }

/* ---------- shop ---------- */
.shop { background: var(--paper); padding: clamp(5rem, 10vw, 11rem) var(--pad); }
.shop__head { display: grid; gap: 1.4rem; margin-bottom: clamp(2.5rem, 5vw, 5rem); }
.shop__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--pad); }
.prod__stage { position: relative; height: clamp(380px, 60vh, 620px); display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: var(--panel); }
.prod__blob { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .26); transform: scale(.55); transition: transform .9s var(--ease); }
.prod:hover .prod__blob { transform: scale(1.25); }
.prod__img { position: absolute; top: 12%; left: 50%; translate: -50% 0; height: 76%; width: auto; aspect-ratio: 200 / 640; overflow: visible; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .28)); transition: transform .9s var(--ease); }
.prod__img--tin { top: 21%; height: 58%; aspect-ratio: 300 / 420; }
.prod:hover .prod__img { transform: translateY(-3%) rotate(-5deg); }
.prod__badge { position: absolute; z-index: 2; top: 1rem; left: 1rem; padding: .35rem .8rem; border-radius: 999px; background: var(--gold); color: var(--green); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.prod__info { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; align-items: baseline; padding-top: 1.2rem; }
.prod__info h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.4vw, 2.5rem); line-height: 1.1; }
.prod__price { font-family: var(--serif); font-size: 1.5rem; }
.prod__info p { grid-column: 1 / -1; max-width: 26em; opacity: .85; }
.prod__meta { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; opacity: .65; align-self: center; }
.prod__info .btn { justify-self: end; }

/* ---------- table ---------- */
.table { padding: clamp(5rem, 10vw, 11rem) var(--pad); }
.table__head { display: grid; gap: 1.4rem; margin-bottom: clamp(2.5rem, 5vw, 5rem); }
.table__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--pad); align-items: start; }
.arch { display: grid; gap: .6rem; }
.arch:nth-child(2) { margin-top: 9vh; }
.arch__media { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 999px 999px 12px 12px; margin-bottom: .8rem; }
.arch__media img { width: 100%; height: 112%; object-fit: cover; transition: scale 1.2s var(--ease); }
.arch:hover .arch__media img { scale: 1.07; }
.arch i { font-style: normal; font-size: .76rem; letter-spacing: .14em; color: var(--olive); }
.arch h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 2vw, 2.1rem); line-height: 1.2; max-width: 14em; }

/* ---------- harvest ---------- */
.harvest { --em: var(--gold); background: var(--green); color: var(--cream); padding: clamp(3rem, 6vw, 6rem) 0 clamp(5rem, 10vw, 10rem); overflow: hidden; }
.marquee { display: flex; white-space: nowrap; margin-bottom: clamp(4rem, 9vw, 9rem); will-change: transform; }
.marquee__track { flex: none; display: flex; align-items: center; gap: 3.5vw; padding-right: 3.5vw; font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 9vw, 10rem); line-height: 1.2; }
.marquee__track b { font-size: .22em; color: var(--gold); font-weight: 400; }
.marquee__track em { color: var(--gold); }
.harvest__inner { display: grid; justify-items: center; text-align: center; gap: 1.6rem; padding: 0 var(--pad); }
.harvest__inner .h1 { max-width: 12em; }
.harvest__inner p { max-width: 28em; opacity: .85; }
.news { display: flex; gap: 1rem; width: min(100%, 40rem); margin-top: 1rem; }
.news input { flex: 1; min-width: 0; padding: .9rem 0; background: transparent; border: 0; border-bottom: 1px solid rgba(243, 237, 221, .4); border-radius: 0; outline: 0; font-size: 1.1rem; color: var(--cream); transition: border-color .3s; }
.news input::placeholder { color: rgba(243, 237, 221, .45); }
.news input:focus { border-color: var(--gold); }

/* ---------- footer ---------- */
.footer { background: var(--deep); color: var(--cream); padding: clamp(3rem, 6vw, 6rem) var(--pad) 1.4rem; overflow: hidden; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--pad); }
.footer__cols > div { display: grid; gap: .8rem; align-content: start; }
.footer__clock { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums; }
.footer__word { display: flex; justify-content: space-between; overflow: hidden; margin-top: clamp(2rem, 5vw, 5rem); font-family: var(--serif); font-weight: 300; font-size: 23vw; line-height: .95; color: var(--gold); }
.footer__word span { display: inline-block; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; padding-top: 1.1rem; border-top: 1px solid rgba(243, 237, 221, .16); font-size: .78rem; letter-spacing: .06em; }
.footer__legal { display: flex; gap: 1.6rem; }
.footer__credit a { color: var(--gold); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav__links { display: none; }
}
@media (max-width: 900px) {
  .bottle-layer { position: absolute; left: 0; right: 0; height: 100svh; min-height: 640px; }
  .hero { margin-top: 0; }
  .bottle { height: 46svh; margin-top: 0; }
  .bottle__ring { display: none; }
  .hero__top span:last-child { display: none; }
  .hero__title { font-size: 21vw; }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .hero__lead { font-size: .98rem; }

  .intro, .notes { grid-template-columns: 1fr; min-height: 0; padding: 5rem var(--pad); }
  .intro__copy { grid-column: 1; }
  .intro__sun { left: 100%; top: auto; bottom: -14vw; width: 50vw; height: 50vw; margin: 0 0 0 -34vw; opacity: .55; }
  .intro__copy { position: relative; }
  .facts { flex-wrap: wrap; }
  .bars li { grid-template-columns: 6.5em 1fr 2.2em; font-size: .76rem; }

  .step { grid-template-columns: 1fr; min-height: 0; padding: 2.5rem 0; }
  .step:nth-child(even) .step__fig { max-width: 100%; justify-self: stretch; }
  .place__head { grid-template-columns: 1fr; }
  .place__head p { justify-self: start; }
  .place__cols { grid-template-columns: 1fr 1fr; }
  .place__col:nth-child(3) { display: none; }
  .shop__grid { grid-template-columns: 1fr; gap: 3rem; }
  .prod__stage { height: 440px; }
  .table__row { grid-template-columns: 1fr; gap: 2.5rem; }
  .arch:nth-child(2) { margin-top: 0; }
  .arch__media { aspect-ratio: 4 / 5; }
  .news { flex-direction: column; }
  .footer__cols { grid-template-columns: 1fr 1fr; row-gap: 1.6rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: .6rem; }
}
