:root {
  --color-bg: #f5f2ec;
  --color-bg-alt: #edeae3;
  --color-ink: #1a1814;
  --color-amber: #7a4a25;
  --color-amber-deep: #4a2c14;
  --color-muted: #9a9590;
  --color-border: rgba(0,0,0,0.08);
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
  --font-script: 'Mr De Haviland', cursive;
}

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

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---------- Grain overlay ---------- */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 997;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor.is-visible { opacity: 1; }

.cursor-dot {
  position: absolute;
  top: 0; left: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-amber-deep);
  transform: translate(-50%, -50%);
}

.cursor-ring {
  position: absolute;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(154,83,26,0.45);
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.cursor.is-hovering .cursor-ring {
  width: 64px;
  height: 64px;
  background: rgba(154,83,26,0.1);
  border-color: var(--color-amber-deep);
}

@media (pointer: coarse) {
  .cursor { display: none; }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.preloader-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 8px;
  color: var(--color-amber-deep);
  opacity: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(248,241,226,0.92);
  box-shadow: 0 2px 20px rgba(36,26,16,0.1);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 26px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { height: 44px; width: auto; display: block; }
.preloader-mark { height: 90px; width: auto; display: block; margin: 0 auto 18px; opacity: 0; }

.logo-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 4px;
  color: var(--color-ink);
}

.main-nav ul {
  display: flex;
  gap: 40px;
}

.main-nav a {
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  color: var(--color-ink);
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--color-amber-deep);
  transition: width 0.25s ease;
}

.main-nav a:hover::after { width: 100%; }

.main-nav a.is-active { color: var(--color-amber); }
.site-header.scrolled .main-nav a.is-active { color: var(--color-amber-deep); }
.main-nav a.is-active::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span { width: 26px; height: 2px; background: var(--color-ink); }

/* ---------- 3D Bottle Experience (hero) ---------- */
.bottle-experience {
  position: relative;
  height: 420vh;
  background: var(--color-bg);
}

.bottle-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  width: 100%;
  overflow: hidden;
}

#bottleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(36,26,16,0.3);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  display: none;
}

.stage-dot.is-active {
  background: var(--color-amber-deep);
  border-color: var(--color-amber-deep);
  transform: scale(1.3);
}

/* ---------- Brand intro (plain, no canvas - landing view) ---------- */
.brand-intro {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  position: relative;
}

.brand-intro .intro-eyebrow {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--color-amber-deep);
  line-height: 1.5;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.brand-intro .intro-title {
  position: relative;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  color: var(--color-ink);
}

.brand-intro .intro-title .line {
  display: block;
  overflow: hidden;
  padding: 0.16em 0 0.14em; /* room so the mask doesn't clip glyph tops/descenders */
  will-change: transform;
}

.hero-tagline {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.5px;
  color: var(--color-muted);
  margin-top: 18px;
}

.brand-intro .intro-scroll {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.brand-intro .intro-scroll span {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-muted);
}

.brand-intro .scroll-bar {
  width: 60px;
  height: 2px;
  background: rgba(36,26,16,0.15);
}

.brand-intro .scroll-bar-fill {
  width: 40%;
  height: 100%;
  background: var(--color-amber-deep);
  animation: scrollFill 1.8s ease-in-out infinite;
}

@keyframes scrollFill {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

.beer-copy {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  max-width: 440px;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.beer-copy--left {
  left: 60px;
  transform: translateY(-50%) translateX(-16px);
}

.beer-copy--right {
  right: 40px;
  text-align: right;
  transform: translateY(-50%) translateX(16px);
}

.beer-copy.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

.beer-copy--right .beer-meta { justify-content: flex-end; }

.beer-index {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--color-amber-deep);
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.beer-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.78rem;
  color: var(--color-amber-deep);
  margin-bottom: 16px;
}

.beer-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 1;
  margin-bottom: 26px;
  color: var(--color-ink);
}

.beer-desc {
  max-width: 420px;
  color: var(--color-muted);
  margin-bottom: 34px;
}

.beer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.beer-meta .btn,
.beer-price { white-space: nowrap; }

.beer-price {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--color-amber-deep);
}

.beer-price small {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-muted);
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--color-amber);
  color: var(--color-ink);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.78rem;
  border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.btn:hover { background: var(--color-amber-deep); color: var(--color-bg); }

/* ---------- Page hero (About / Contact) ---------- */
.page-hero {
  text-align: center;
  padding: 200px 40px 80px;
  max-width: 900px;
  margin: 0 auto;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--color-ink);
}

.page-hero-text {
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
}

.page-hero-text + .page-hero-text {
  margin-top: 16px;
}

.contact-card {
  margin-top: 40px;
  display: inline-block;
  padding: 28px 44px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.contact-card-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.72rem;
  color: var(--color-muted);
  margin-bottom: 10px;
}

.contact-card a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-amber-deep);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.contact-card a:hover { border-color: var(--color-amber-deep); }

/* ---------- Trust & credibility ---------- */
.trust-section {
  max-width: 1000px;
  margin: 100px auto 0;
  padding: 60px 40px 0;
  border-top: 1px solid var(--color-border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 56px;
}

.trust-item { text-align: center; }
.trust-icon { display: block; color: var(--color-amber-deep); font-size: 1.2rem; margin-bottom: 14px; }
.trust-item h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--color-ink);
}
.trust-item p { color: var(--color-muted); font-size: 0.88rem; line-height: 1.7; }

.founder-note {
  max-width: 620px;
  margin: 0 auto 40px;
  text-align: center;
}
.founder-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.72rem;
  color: var(--color-amber-deep);
  margin-bottom: 14px;
}
.founder-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--color-ink);
}

.regulatory-disclaimer {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--color-muted);
}

/* ---------- FAQ ---------- */
.faq-section {
  max-width: 720px;
  margin: 70px auto 0;
  padding: 0 40px;
}

.faq-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 30px;
  color: var(--color-ink);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 18px 4px;
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--color-amber-deep);
  margin-left: 16px;
}
.faq-item[open] summary::after { content: '\2212'; }

.faq-item p {
  margin-top: 12px;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---------- Notify strip ---------- */
.notify-strip {
  text-align: center;
  padding: 90px 40px;
  max-width: 560px;
  margin: 0 auto;
}

.notify-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.72rem;
  color: var(--color-amber-deep);
  margin-bottom: 12px;
}

.notify-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 10px;
  color: var(--color-ink);
}

.notify-text {
  color: var(--color-muted);
  margin-bottom: 28px;
}

.notify-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.notify-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.notify-form input[type="email"] {
  flex: 1 1 240px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg-alt);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.notify-form .btn {
  flex: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.notify-status {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--color-amber-deep);
  min-height: 1.2em;
}

.notify-status.is-error { color: #a83b2e; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-bg-alt);
  padding: 70px 40px 36px;
  text-align: center;
}

.footer-inner { max-width: 560px; margin: 0 auto; }

.footer-inner .logo-text { color: var(--color-amber-deep); }

.footer-text {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin: 20px 0 28px;
}

.footer-email {
  margin-bottom: 24px;
}

.footer-email a {
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--color-amber-deep);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.footer-email a:hover {
  border-color: var(--color-amber-deep);
}

.footer-tagline {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-amber-deep);
  margin-bottom: 18px;
}

.footer-copy {
  color: var(--color-muted);
  font-size: 0.76rem;
  letter-spacing: 1px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 900px) {
  .main-nav.is-open {
    display: block;
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: rgba(248,241,226,0.97);
    padding: 20px 32px 32px;
    z-index: 90;
    box-shadow: 0 12px 30px rgba(36,26,16,0.12);
  }
  .main-nav.is-open ul { flex-direction: column; gap: 18px; }
  .main-nav.is-open a { color: var(--color-ink); }
}

.footer-tagline a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.footer-tagline a:hover { border-bottom-color: currentColor; }

/* ---------- 3D polish: hero CTA, beats, mobile ---------- */
.intro-cta { margin-top: 28px; }

@media (max-width: 900px) {
  .bottle-experience { height: 360vh; }

  .bottle-stage::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 44%;
    background: linear-gradient(to top, var(--color-bg) 58%, rgba(245,242,236,0));
    pointer-events: none;
    z-index: 1;
  }

  .beer-copy,
  .beer-copy--left,
  .beer-copy--right {
    left: 0; right: 0;
    top: auto; bottom: 0;
    max-width: none;
    text-align: center;
    padding: 0 24px calc(28px + env(safe-area-inset-bottom));
    transform: translateY(18px);
  }
  .beer-copy.is-active { transform: translateY(0); }

  .beer-index { margin-bottom: 8px; }
  .beer-eyebrow { margin-bottom: 8px; }
  .beer-name { font-size: clamp(2rem, 9.5vw, 2.7rem); margin-bottom: 12px; }
  .beer-desc { max-width: 340px; margin: 0 auto 20px; font-size: 0.92rem; line-height: 1.65; }
  .beer-meta,
  .beer-copy--right .beer-meta { flex-direction: column; justify-content: center; gap: 12px; }
  .beer-meta .btn { width: 100%; max-width: 320px; }
  /* Last beat carries price + CTA; keep it compact so it never climbs onto the bottle. */
  .beer-copy[data-copy="3"] .beer-index,
  .beer-copy[data-copy="3"] .beer-eyebrow,
  .beer-copy[data-copy="3"] .beer-desc { display: none; }
  .beer-copy[data-copy="3"] .beer-name br { display: none; }
  .beer-copy[data-copy="3"] .beer-name { margin-bottom: 10px; }
  .intro-cta .btn { width: 100%; max-width: 320px; }
}
