/* =====================================================================
   v4 — visual upgrade: editorial blocks, 3D vials, motion, cart drawer
   ===================================================================== */
html.no-scroll { overflow: hidden; }

/* typography: bigger, tighter headings everywhere */
.section { padding: clamp(80px, 10vw, 150px) 0; }
.section__head { margin-bottom: clamp(36px, 4vw, 60px); }
.section__head h2, .split-head h2, .spot h2, .contact-card h2 { font-size: clamp(40px, 6vw, 92px); line-height: .95; letter-spacing: -.05em; font-weight: 500; }
.section__head h2 .acc, .split-head h2 .acc, .spot h2 .acc, .contact-card h2 .acc { letter-spacing: -.03em; }
.eyebrow { font-size: 11px; letter-spacing: .3em; }

/* words animation */
.words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.words .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s cubic-bezier(.2,1,.25,1); }
.words.words-in .w > span { transform: none; }

/* header */
.site-header { transition: background .35s, box-shadow .35s, border-color .35s; }
.site-header__bar { transition: height .35s; }
.site-header.is-scrolled { background: rgba(255,255,255,.72); border-color: transparent; box-shadow: 0 10px 30px -20px rgba(17,20,24,.35); }
.site-header.is-scrolled .site-header__bar { height: 60px; }
.nav a { position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s cubic-bezier(.2,1,.3,1); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

/* hero: parallax-friendly */
.hx__stage { will-change: transform; }
.hx__title.words .w > span { transition-duration: 1.1s; }

/* ticker under hero */
.ticker-wrap { overflow: hidden; padding: 14px 0; margin-top: -14px; position: relative; z-index: 3; }
.ticker { background: var(--ink); color: #fff; overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg); margin: -10px -20px 0; position: relative; z-index: 3; }
.ticker__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker__track span { display: inline-flex; align-items: center; gap: 34px; padding-right: 34px; white-space: nowrap; font-size: clamp(18px, 2vw, 26px); font-weight: 500; letter-spacing: -.02em; }
.ticker__track span::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); transition: background .4s; }
.ticker__track span:nth-child(even) { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* buttons */
.btn { transition: background .25s, border-color .25s, color .25s, transform .35s cubic-bezier(.2,1,.3,1), box-shadow .25s; }
.btn--primary:hover { box-shadow: 0 14px 30px -12px var(--accent); }
.magnet { }

/* product cards: 3D vial on a soft disc */
.pcard { border: 0; background: transparent; border-radius: 28px; overflow: visible; }
.pcard:hover { transform: none; box-shadow: none; }
.pcard__media { border-radius: 28px; aspect-ratio: 4 / 4.4; background: radial-gradient(70% 60% at 50% 45%, #fff, var(--accent-soft) 70%, var(--surface-2)); transition: background .4s; }
.pcard__media::before { display: none; }
.pcard__media::after { content: ''; position: absolute; left: 30%; right: 30%; bottom: 7%; height: 16px; border-radius: 50%; background: radial-gradient(closest-side, rgba(17,20,24,.22), transparent); }
.vial-card { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s; z-index: 1; }
.vial-card.is-ready { opacity: 1; }
.vial-fallback { display: none !important; }
.is-nogl .vial-fallback { display: block !important; }
.is-nogl > canvas { display: none; }
.pcard__body { padding: 18px 6px 4px; }
.pcard__name { font-size: 26px; letter-spacing: -.035em; transition: color .25s; }
.pcard:hover .pcard__name { color: var(--accent); }
.badge-hit { z-index: 2; }

/* product page live vial */
.gallery__slide.is-3d { padding: 0; }
.vial-live { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.gallery { background: radial-gradient(60% 55% at 50% 45%, #fff, var(--accent-soft) 70%, var(--surface-2)); border: 0; }
.gallery::before { display: none; }

/* custom drag cursor */
.drag-cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; }
.drag-cursor span { position: absolute; left: -46px; top: -46px; width: 92px; height: 92px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; letter-spacing: .04em; transform: scale(0); transition: transform .35s cubic-bezier(.2,1.4,.4,1), background .3s; }
.drag-cursor.is-on span { transform: scale(1); }
.drag-cursor.is-down span { transform: scale(.8); background: var(--accent); }
@media (hover: hover) and (pointer: fine) { .hx__canvas, .vial-live { cursor: none !important; } }
@media (hover: none) { .vial-live { cursor: grab; } }

/* quality / delivery: no boxes, big serif numbers, thin rules */
.features { gap: 0; border-top: 1px solid var(--line-2); }
.feature { background: transparent; border: 0; border-radius: 0; padding: 34px 28px 10px 0; border-right: 1px solid var(--line); margin-right: 28px; }
.feature:last-child { border-right: 0; margin-right: 0; }
.feature__icon { width: auto; height: auto; background: none; border-radius: 0; font-size: clamp(44px, 4vw, 64px); line-height: 1; color: var(--accent); margin-bottom: 26px; display: block; }
.feature h3 { font-size: 22px; letter-spacing: -.02em; }
.features--3 .feature__icon { font-family: var(--sans); font-style: normal; font-size: 30px; }

/* spotlights: borderless, photo settles in */
.spot { background: transparent; border: 0; padding: 0; gap: clamp(32px, 5vw, 80px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.spot--rev { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.spot__photo { border-radius: 32px; min-height: clamp(420px, 44vw, 640px); }
.spot__photo img { transition: transform 1.6s cubic-bezier(.2,1,.3,1); transform: scale(1.12); }
.spot.is-visible .spot__photo img { transform: scale(1); }
.spot__body { padding: 20px 0 !important; justify-content: center; }
.spot__cols { flex: 0; }

/* reviews: big quotes */
.hscroll { grid-auto-columns: calc((100% - 40px) / 2.4); }
.rcard { border: 0; border-radius: 32px; padding: clamp(28px, 3vw, 44px); background: var(--surface); position: relative; overflow: hidden; }
.rcard::before { content: '\201C'; position: absolute; right: 26px; top: -10px; font-family: var(--serif); font-size: 180px; line-height: 1; color: var(--accent-soft); transition: color .4s; }
.rcard__text { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.4; color: var(--ink); position: relative; }
.rcard__head { position: relative; }

/* categories: vial tiles with colored blob */
.cat-grid { gap: 20px; }
.cat-card { border: 0; border-radius: 28px; background: var(--surface); }
.cat-card:hover { box-shadow: 0 30px 60px -30px rgba(17,20,24,.35); transform: translateY(-4px); border-color: transparent; }
.cat-card__media { aspect-ratio: 1.05; background: radial-gradient(55% 50% at 50% 50%, var(--accent-soft), var(--surface-2) 75%); transition: background .4s; }
.cat-card__info b { font-size: 19px; letter-spacing: -.02em; }

/* steps: huge numbers, no boxes */
.steps-grid { gap: 0; border-top: 1px solid var(--line-2); }
.step { background: transparent; border: 0; border-radius: 0; padding: 34px 28px 0 0; }
.step__num { font-size: clamp(64px, 6vw, 104px); margin-bottom: 18px; }

/* faq */
.faq summary { font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.015em; }

/* contact card: dark */
.contact-card { border: 0; border-radius: 40px; background: var(--ink); color: #fff; padding: clamp(36px, 6vw, 90px); }
.contact-card h2 { color: #fff; }
.contact-card .lead, .contact-card p, .contact-card .field span, .contact-card .check { color: rgba(255,255,255,.75); }
.contact-card .btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.contact-card .btn--ghost:hover { border-color: #fff; }
.contact-card .field input, .contact-card .field textarea { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }

/* footer: giant brand */
.site-footer { margin-top: 0; overflow: hidden; }
.site-footer__giant { font-size: clamp(56px, 15vw, 260px); font-weight: 600; letter-spacing: -.07em; line-height: .85; color: #fff; white-space: nowrap; margin: 10px 0 20px; text-align: center; }
.site-footer__giant::first-letter { color: var(--accent); }

/* gate: halves lean towards the mouse, chosen half fills the screen */
.gate { display: flex; }
.gate__half { flex: 1 1 0; transition: flex-grow 1s cubic-bezier(.2,1,.25,1); }
.gate.lean-w .gate__half--w, .gate.hover-w .gate__half--w, .gate.lean-m .gate__half--m, .gate.hover-m .gate__half--m { flex-grow: 1.35; }
.gate.lean-w .gate__half--m img, .gate.lean-m .gate__half--w img { filter: brightness(.65) saturate(.7); }
.gate.pick-w .gate__half--w, .gate.pick-m .gate__half--m { flex-grow: 40; }
.gate__center, .gate__foot, .gate__logo { transition: opacity .45s, transform .45s; }
.gate.is-leaving .gate__center, .gate.is-leaving .gate__foot, .gate.is-leaving .gate__logo { opacity: 0; transform: translateY(-14px); }
.gate.is-leaving .gate__logo { transform: translate(0, -14px); }

/* side cart drawer */
.drawer { position: fixed; inset: 0; z-index: 150; pointer-events: none; }
.drawer__bg { position: absolute; inset: 0; background: rgba(17,20,24,.4); opacity: 0; transition: opacity .4s; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--bg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .55s cubic-bezier(.2,1,.25,1), visibility 0s .55s; visibility: hidden; box-shadow: -30px 0 60px -30px rgba(17,20,24,.4); }
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__bg { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; visibility: visible; transition: transform .55s cubic-bezier(.2,1,.25,1); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { margin: 0; font-size: 28px; letter-spacing: -.03em; font-weight: 500; }
.drawer__list { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer__empty { text-align: center; padding: 60px 0; color: var(--muted); }
.dr-item { display: grid; grid-template-columns: 68px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.dr-item.is-new { animation: drNew 1s cubic-bezier(.2,1,.3,1); }
@keyframes drNew { from { background: var(--accent-soft); transform: translateX(20px); } to { background: transparent; transform: none; } }
.dr-item__img { width: 68px; height: 80px; border-radius: 16px; background: radial-gradient(circle at 50% 45%, #fff, var(--accent-soft)); display: grid; place-items: center; overflow: hidden; }
.dr-item__img img { width: 100%; height: 100%; object-fit: cover; }
.dr-item__vial { width: 22px; height: 46px; border-radius: 4px 4px 6px 6px; background: linear-gradient(180deg, #d9dcdf 0 14%, var(--accent-ink) 14% 22%, rgba(255,255,255,.9) 22% 34%, var(--accent) 34% 86%, #fff 86%); box-shadow: 0 6px 10px -4px rgba(17,20,24,.3); }
.dr-item__info a { font-weight: 600; display: block; }
.dr-item__info small { color: var(--muted); }
.qty--sm { margin-top: 8px; }
.qty--sm button { width: 32px; height: 32px; font-size: 16px; }
.qty--sm span { min-width: 22px; text-align: center; font-weight: 600; font-size: 14px; }
.drawer__foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; margin-bottom: 6px; }
.drawer__total b { font-size: 26px; letter-spacing: -.02em; }

@media (max-width: 1100px) {
  .hscroll { grid-auto-columns: calc((100% - 20px) / 1.6); }
}
@media (max-width: 900px) {
  .features { border-top: 0; }
  .feature { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding: 26px 0; }
  .spot, .spot--rev { grid-template-columns: 1fr; }
  .spot--rev .spot__photo { order: 0; }
  .spot__photo { min-height: 380px; }
  .step { padding: 26px 0 0; }
  .ticker { margin: 0; transform: none; }
}
@media (max-width: 600px) {
  .hscroll { grid-auto-columns: 86%; }
  .rcard::before { font-size: 120px; }
  .contact-card { border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) { .words .w > span, .spot__photo img { transform: none !important; } }

/* ---- performance ---- */
/* no backdrop blur on the header: blurring over a constantly moving 3D canvas costs a full repaint every frame */
.site-header, .site-header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header { background: rgba(246,244,240,.97); }
.site-header.is-scrolled { background: rgba(255,255,255,.97); }
/* card vials: cheap CSS hover instead of re-rendering 3D */
.vial-card { transition: opacity .6s, transform .7s cubic-bezier(.2,1,.3,1); transform-origin: 50% 80%; }
.pcard:hover .vial-card, .cat-card:hover .vial-card { transform: translateY(-8px) rotate(-5deg) scale(1.03); }
