/* ==========================================================
   DRIADA — Hellenic apothecary
   Light theme: marble, Aegean sky blue, bronze
   ========================================================== */
:root {
  --marble: #f7f4ec;
  --marble-2: #efeadd;
  --paper: #fffdf8;
  --ink: #16222e;
  --ink-soft: #4a5866;
  --accent: #3b7db3;
  --accent-deep: #1d4f7a;
  --sky: #9cc3df;
  --sky-deep: #4f86ad;
  --bronze: #b08a52;
  --line: rgba(22, 34, 46, .14);

  --f-display: "Cinzel", serif;
  --f-serif: "Cormorant Garamond", serif;
  --f-sans: "Inter", system-ui, sans-serif;

  --pad: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--marble);
  color: var(--ink);
  font-family: var(--f-sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; font-family: var(--f-serif); font-weight: 500; color: var(--accent); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { position: relative; padding: clamp(90px, 14vw, 180px) 0; }

.eyebrow {
  font-family: var(--f-display);
  font-size: .78rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 1.4rem;
}
.h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin-bottom: 1.8rem;
}
.h2 em { font-size: 1.08em; text-transform: none; letter-spacing: 0; }
.body { font-size: 1.05rem; color: var(--ink-soft); max-width: 34em; margin-bottom: 1.1rem; }

/* Greek key (meander) border */
.meander {
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'%3E%3Cpath d='M0 21h44M0 1h44M2 21V5h16v12H8V9h6' fill='none' stroke='%23b08a52' stroke-width='1.6'/%3E%3Cpath d='M24 1v12h16V5H30v8h6' fill='none' stroke='%23b08a52' stroke-width='1.6' transform='translate(0 4)'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  opacity: .55;
  position: absolute; left: 0; right: 0; top: 0;
}
.meander--light { position: static; opacity: .35; margin-bottom: 60px; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--marble);
  display: grid; place-content: center; justify-items: center; gap: 22px;
  transition: opacity .9s var(--ease), visibility .9s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__emblem { width: 74px; mix-blend-mode: multiply; animation: breathe 2.4s ease-in-out infinite; }
.loader__bar { width: 180px; height: 1px; background: var(--line); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.loader__pct { font-family: var(--f-display); font-size: .75rem; letter-spacing: .3em; color: var(--ink-soft); }
@keyframes breathe { 50% { transform: scale(1.06); opacity: .7; } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  transition: background .5s var(--ease), padding .5s var(--ease), box-shadow .5s, transform .5s var(--ease);
}
.nav.is-scrolled {
  background: rgba(247, 244, 236, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding-top: 14px; padding-bottom: 14px;
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo img { height: 26px; width: auto; }
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 38px); align-items: center; }
.nav__links a {
  font-family: var(--f-display); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  position: relative; padding: 6px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__links .nav__cta {
  border: 1px solid var(--ink); padding: 9px 18px; border-radius: 40px;
  transition: background .4s, color .4s;
}
.nav__links .nav__cta::after { display: none; }
.nav__links .nav__cta:hover { background: var(--ink); color: var(--marble); }
.nav__burger { display: none; background: none; border: 0; width: 34px; height: 34px; cursor: pointer; position: relative; z-index: 2; }
.nav__burger span { position: absolute; left: 5px; right: 5px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), top .4s; }
.nav__burger span:first-child { top: 13px; }
.nav__burger span:last-child { top: 20px; }
.nav.is-open .nav__burger span:first-child { top: 16px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:last-child { top: 16px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 420vh; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--sky); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; visibility: hidden; }
.hero__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(247,244,236,.72) 0%, rgba(247,244,236,.25) 32%, rgba(247,244,236,0) 48%),
    linear-gradient(180deg, rgba(247,244,236,.45) 0%, rgba(247,244,236,0) 24%),
    linear-gradient(0deg, rgba(247,244,236,.9) 0%, rgba(247,244,236,0) 20%);
}
.hero__text {
  position: absolute; left: 0; text-align: left; padding: 0 var(--pad);
  top: 18vh; max-width: min(46vw, 640px); opacity: 0;
}
.hero__text--3 { top: auto; bottom: 14vh; }
.hero__text--1 { opacity: 1; }
.hero__title {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2.3rem, 4.6vw, 4.9rem); line-height: 1.02; letter-spacing: -.01em;
  color: var(--ink);
  text-shadow: 0 2px 30px rgba(255,255,255,.45);
}
.hero__title .split { display: block; overflow: hidden; }
.hero__title em { color: var(--accent-deep); font-size: 1.05em; }
.hero__lead {
  font-family: var(--f-serif); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  line-height: 1.35; color: var(--ink);
  text-shadow: 0 1px 24px rgba(255,255,255,.7);
}
.hero__emblem { width: 64px; margin: 0 0 18px; mix-blend-mode: multiply; }
.hero__scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px;
  font-family: var(--f-display); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink);
}
.hero__scroll i { width: 1px; height: 46px; background: linear-gradient(var(--ink), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.hero__progress { position: absolute; left: var(--pad); right: var(--pad); bottom: 0; height: 2px; background: rgba(29,38,32,.08); }
.hero__progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* ---------- About ---------- */
.about { background: var(--marble); }
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 240px 240px 6px 6px; }
.about__media img, .philosophy__media img, .apothecary__media img { width: 100%; height: 118%; object-fit: cover; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.stat b { display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.8rem); color: var(--accent-deep); line-height: 1.1; }
.stat span { font-size: .82rem; color: var(--ink-soft); }

.stat b { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }

/* ---------- Slogan band ---------- */
.band { background: var(--accent-deep); color: var(--paper); overflow: hidden; padding: 26px 0; }
.band__track { display: flex; align-items: center; gap: 40px; width: max-content; white-space: nowrap; }
.band__track span { font-family: var(--f-display); font-size: clamp(1.4rem, 3vw, 2.6rem); letter-spacing: .06em; }
.band__track span:nth-of-type(even) { font-family: var(--f-serif); font-style: italic; color: #cde6f8; letter-spacing: 0; }
.band__track i { font-style: normal; color: var(--bronze); font-size: 1.1rem; }

.note { font-size: .82rem; color: var(--ink-soft); margin-top: 1.6rem; padding-left: 14px; border-left: 2px solid var(--bronze); max-width: 34em; }
.footer__legal { font-size: .74rem; opacity: .45; margin-top: 34px; text-align: center; }

/* ---------- Pillars ---------- */
.pillars { background: var(--paper); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto clamp(50px, 7vw, 90px); }
.pillars__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pillar {
  background: var(--paper); padding: clamp(28px, 3vw, 44px) clamp(22px, 2.4vw, 34px) 46px;
  position: relative; overflow: hidden; transition: background .6s var(--ease);
}
.pillar::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, var(--sky) 0%, var(--marble) 70%);
  opacity: 0; transition: opacity .6s var(--ease);
}
.pillar:hover::before { opacity: .45; }
.pillar > * { position: relative; }
.pillar__num { display: block; font-family: var(--f-display); font-size: 3.4rem; color: var(--bronze); line-height: 1; margin-bottom: 2.2rem; transition: transform .6s var(--ease); }
.pillar:hover .pillar__num { transform: translateY(-6px); }
.pillar h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; letter-spacing: .06em; margin-bottom: .8rem; }
.pillar p { font-size: .94rem; color: var(--ink-soft); }

/* ---------- Apothecary ---------- */
.apothecary { background: var(--marble); }
.apothecary__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.apothecary__media { position: relative; }
.apothecary__media > div:first-child { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; }
.apothecary__badge {
  position: absolute; left: -54px; bottom: -54px; width: 150px; height: 150px; border-radius: 50%;
  background: var(--paper); display: grid; place-items: center; box-shadow: 0 20px 50px rgba(29,38,32,.12);
}
.apothecary__badge img { width: 40px; mix-blend-mode: multiply; }
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.badge__ring text { font-family: var(--f-display); font-size: 13.5px; letter-spacing: 3px; fill: var(--accent-deep); }
@keyframes spin { to { transform: rotate(360deg); } }
.remedies { list-style: none; margin-top: 2.2rem; border-top: 1px solid var(--line); }
.remedy {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: baseline; gap: 12px;
  padding: 18px 0; border-bottom: 1px solid var(--line); position: relative; cursor: default;
}
.remedy::before {
  content: ""; position: absolute; inset: 0; background: var(--marble-2);
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); z-index: -1;
}
.remedy:hover::before { transform: scaleY(1); }
.remedy span { font-family: var(--f-display); font-size: .8rem; color: var(--bronze); }
.remedy b { font-family: var(--f-serif); font-weight: 500; font-size: 1.45rem; transition: transform .5s var(--ease); }
.remedy:hover b { transform: translateX(8px); }
.remedy i { font-size: .82rem; color: var(--ink-soft); font-style: normal; }

/* ---------- Herbs (horizontal) ---------- */
.herbs { position: relative; background: var(--accent-deep); color: var(--paper); }
.herbs__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.herbs__bg { position: absolute; inset: 0; }
.herbs__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.herbs__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,48,78,.88) 0%, rgba(16,48,78,.55) 60%, rgba(16,48,78,.35) 100%); }
.herbs__head { position: relative; margin-bottom: 44px; }
.herbs .eyebrow { color: #d8c39a; }
.herbs .h2 { margin-bottom: 0; }
.herbs .h2 em { color: #cde6f8; }
.herbs__track { position: relative; display: flex; gap: 26px; padding: 0 var(--pad); width: max-content; }
.herb {
  width: clamp(260px, 26vw, 340px); padding: 34px 30px 38px; border-radius: 4px;
  background: rgba(255, 253, 248, .1); border: 1px solid rgba(255, 253, 248, .22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .5s var(--ease), transform .5s var(--ease);
}
.herb:hover { background: rgba(255, 253, 248, .2); transform: translateY(-8px); }
.herb__greek { display: block; font-family: var(--f-serif); font-style: italic; font-size: 1.1rem; color: #d8c39a; margin-bottom: 2.4rem; }
.herb h3 { font-family: var(--f-display); font-weight: 500; font-size: 2rem; letter-spacing: .04em; }
.herb > i { display: block; font-family: var(--f-serif); font-size: 1.05rem; opacity: .75; margin-bottom: 1.2rem; }
.herb p { font-size: .93rem; opacity: .88; }

/* ---------- Philosophy ---------- */
.philosophy { background: var(--paper); }
.philosophy__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.philosophy__media { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px 6px 200px 200px; }
.quote {
  font-family: var(--f-serif); font-weight: 400; font-style: italic;
  font-size: clamp(2rem, 4.6vw, 3.9rem); line-height: 1.15; color: var(--ink);
}
.quote .w { display: inline-block; opacity: .14; transition: none; }
.quote__author { margin-top: 1.8rem; font-family: var(--f-display); font-size: .82rem; letter-spacing: .24em; color: var(--bronze); text-transform: uppercase; }

/* ---------- CTA ---------- */
.cta { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; text-align: center; }
.cta__bg { position: absolute; inset: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(247,244,236,.92) 0%, rgba(247,244,236,.45) 45%, rgba(247,244,236,.15) 100%); }
.cta__inner { position: relative; display: grid; justify-items: center; }
.cta__title { font-size: clamp(2.4rem, 6.4vw, 5.6rem); }
.cta .body { margin-left: auto; margin-right: auto; color: var(--ink); }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 1.4rem; }
.btn {
  font-family: var(--f-display); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  padding: 17px 34px; border-radius: 50px; transition: transform .4s var(--ease), background .4s, color .4s;
}
.btn:hover { transform: translateY(-3px); }
.btn--solid { background: var(--accent-deep); color: var(--paper); }
.btn--solid:hover { background: var(--ink); }
.btn--ghost { border: 1px solid var(--ink); background: rgba(255,253,248,.5); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--marble); padding: 0 0 50px; }
.footer .meander { filter: brightness(1.4); }
.footer__grid { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; }
.footer__logo { height: 24px; width: auto; filter: invert(1); }
.footer__links { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.footer__links a { font-family: var(--f-display); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; opacity: .7; transition: opacity .3s; }
.footer__links a:hover { opacity: 1; }
.footer__copy { font-size: .8rem; opacity: .55; }

/* ---------- Reveal defaults (JS animates) ---------- */
.reveal-clip { clip-path: inset(100% 0 0 0); }
.no-js .reveal-clip { clip-path: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .pillars__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid, .apothecary__grid, .philosophy__grid { grid-template-columns: 1fr; }
  .apothecary__media { order: -1; }
  .apothecary__badge { left: auto; right: 16px; bottom: -40px; width: 120px; height: 120px; }
  .philosophy__media { max-width: 420px; }
}
@media (max-width: 820px) {
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 30px;
    background: var(--marble); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
  }
  .nav__links a { font-size: 1.1rem; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .footer__grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
@media (max-width: 560px) {
  .pillars__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .remedy { grid-template-columns: 32px 1fr; }
  .remedy i { grid-column: 2; }
  .hero__text {
    top: 11vh; left: 16px; right: 16px; max-width: none; text-align: center; padding: 22px 18px;
    background: rgba(247, 244, 236, .62); border-radius: 14px;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .hero__text .eyebrow { margin-bottom: .8rem; letter-spacing: .22em; }
  .hero__text--3 { top: auto; bottom: 12vh; }
  .hero__emblem { margin: 0 auto 14px; }
  .hero__veil { background: linear-gradient(180deg, rgba(247,244,236,.75) 0%, rgba(247,244,236,0) 42%), linear-gradient(0deg, rgba(247,244,236,.9) 0%, rgba(247,244,236,0) 30%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Hero version 2 (side view, uphill to the lab) ---------- */
.hero--v2 .hero__text { left: 0; right: 0; margin: 0 auto; text-align: center; top: 10vh; max-width: 820px; }
.hero--v2 .hero__text--3 { top: auto; bottom: 12vh; }
.hero--v2 .hero__emblem { margin: 0 auto 18px; }
.hero--v2 .hero__veil {
  background:
    radial-gradient(ellipse 60% 45% at 50% 18%, rgba(247,244,236,.6) 0%, rgba(247,244,236,0) 70%),
    linear-gradient(0deg, rgba(247,244,236,.9) 0%, rgba(247,244,236,0) 20%);
}
@media (max-width: 560px) {
  .hero--v2 .hero__text { left: 16px; right: 16px; top: 9vh; }
  .hero--v2 .hero__text--3 { top: auto; bottom: 10vh; }
}
.hero--v2 .hero__text--2,
.hero--v2 .hero__text--3 {
  width: fit-content; max-width: calc(100% - 32px); padding: 22px 34px; border-radius: 16px;
  background: rgba(247, 244, 236, .74); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(22, 34, 46, .12);
}
