/* ============================================================
   COLD BREW HOUSE — base, tokens, nav, hero
   Art direction: vintage analog film · warm sepia / aged print
   Amber-cream aged paper + warm espresso ink + bronze/burgundy
   accents. Aged grain, distressed texture, retro serif, 3px
   double rules. Warm sepia throughout — no cold digital tones.
   ============================================================ */

:root {
  /* aged-film palette refit: neutral grey-white paper (R=B, not yellow),
     neutral ink tones, VIOLET accent (#7C3AED) + deep violet.
     Warmth now comes from violet accent + vintage type/texture,
     NOT from warm browns (all brown/amber/ochre/orange removed).
     NOTE: --caramel keeps its historical name but is now violet #7C3AED. */
  --paper:      #ECECEC;   /* neutral grey-white paper (R-B=0) */
  --paper-2:    #E0E0E0;   /* deeper neutral secondary surface */
  --paper-3:    #C8C8C8;   /* neutral mid grey */
  --ink:        #1F1F22;   /* neutral deep grey ink (no warm brown) */
  --ink-soft:   #4A4A52;   /* neutral mid grey (no warm brown) */
  --ink-faint:  rgba(31,31,34,.55);
  --caramel:    #7C3AED;   /* VIOLET primary accent (replaces former bronze/brown accent) */
  --caramel-deep:#5B21B6;  /* deep violet for italic emphasis (was burgundy) */
  --brew:       #241F2E;   /* deep violet-tinted lab base (was warm brown) */
  --line:       rgba(31,31,34,.18);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Playfair Display", Georgia, "Times New Roman", serif;
  /* vintage analog: retro serif headings + aged serif body — no cold sans */
  --ease:  cubic-bezier(.22,.9,.28,1);
  --shadow-card: 2px 3px 12px rgba(31,31,34,.18);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    repeating-linear-gradient(0deg, rgba(31,31,34,.03) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 0%, rgba(31,31,34,.05), transparent 70%);
}

::selection { background: var(--caramel); color: var(--paper); }

section { scroll-margin-top: 92px; }

/* ---------- film grain + vignette overlay ---------- */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: .55; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
}
.grain::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(20,18,26,.32) 100%);
}

/* ---------- typography helpers ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--caramel-deep);
  margin-bottom: 22px;
}

.section { max-width: 1200px; margin: 0 auto; padding: 110px 40px; }

.section-head { max-width: 720px; margin-bottom: 64px; }

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -.015em;
}
.section-title em { font-style: italic; font-weight: 400; color: var(--caramel-deep); }

.section-lede {
  margin-top: 22px; max-width: 560px;
  color: var(--ink-soft); font-size: 17px;
}

/* ---------- reveal on scroll ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  letter-spacing: .04em; text-decoration: none; cursor: pointer;
  padding: 15px 30px; border-radius: 6px;
  border: 1.5px solid var(--ink);
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--caramel); border-color: var(--caramel); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(124,58,237,.55); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn-sm { padding: 11px 22px; font-size: 13px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(236,236,236,.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding: 13px 40px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 700; font-size: 19px;
  color: var(--ink); text-decoration: none; letter-spacing: -.01em;
}
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none; position: relative; padding: 4px 0;
  transition: color .3s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: var(--caramel); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  font-size: 13px; font-weight: 600; letter-spacing: .05em; text-decoration: none;
  color: var(--paper); background: var(--ink); padding: 11px 22px; border-radius: 6px;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.nav-cta:hover { background: var(--caramel); transform: translateY(-1px); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 130px 40px 80px;
  overflow: hidden;
  background: linear-gradient(180deg, #E0E0E0 0%, var(--paper) 60%);
}
.hero-ghost {
  position: absolute; top: 4%; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(120px, 21vw, 300px); line-height: 1;
  letter-spacing: .04em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(31,31,34,.12);
  pointer-events: none; user-select: none;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 60px; align-items: center;
}
.hero-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(52px, 6.6vw, 96px);
  line-height: 1.02; letter-spacing: -.02em;
  margin-bottom: 28px;
}
.hero-title em { font-style: italic; font-weight: 400; color: var(--caramel-deep); }
.hero-sub {
  max-width: 480px; color: var(--ink-soft);
  font-size: 17.5px; line-height: 1.7; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-meta {
  display: flex; gap: 44px; border-top: 1px solid var(--line); padding-top: 26px;
}
.hero-meta dt {
  font-family: var(--serif); font-size: 38px; font-weight: 600; line-height: 1;
}
.hero-meta dt span { font-size: 20px; color: var(--caramel-deep); font-style: italic; }
.hero-meta dd { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-top: 8px; }

/* hero scene / bottle */
.hero-scene { display: flex; flex-direction: column; align-items: center; will-change: transform; }
.brew-bottle { width: min(400px, 88%); height: auto; overflow: visible; }

.liquid { animation: liquidSway 7s ease-in-out infinite alternate; transform-origin: 210px 414px; }
@keyframes liquidSway {
  from { transform: scaleY(1) translateY(0); }
  to   { transform: scaleY(1.012) translateY(-3px); }
}
.liquid-surface { animation: surfaceWobble 5s ease-in-out infinite alternate; transform-origin: 210px 168px; }
@keyframes surfaceWobble {
  from { transform: scaleX(1); }
  to   { transform: scaleX(1.06); }
}
.ice-a { animation: bob 5.2s ease-in-out infinite alternate; }
.ice-b { animation: bob 6.4s ease-in-out .8s infinite alternate; }
.ice-c { animation: bob 4.6s ease-in-out .4s infinite alternate; }
@keyframes bob {
  from { transform: translateY(0) rotate(0deg); }
  to   { transform: translateY(-7px) rotate(4deg); }
}
.bub { animation: rise 6s linear infinite; }
.bub-2 { animation-duration: 7.5s; animation-delay: 1.2s; }
.bub-3 { animation-duration: 8.4s; animation-delay: 2.4s; }
.bub-4 { animation-duration: 6.8s; animation-delay: .6s; }
@keyframes rise {
  0%   { transform: translateY(0);    opacity: 0; }
  12%  { opacity: .9; }
  85%  { opacity: .7; }
  100% { transform: translateY(-150px); opacity: 0; }
}
.drip { animation: dripFall 4.2s cubic-bezier(.5,.05,.7,.4) infinite; }
@keyframes dripFall {
  0%   { transform: translateY(-14px); opacity: 0; }
  12%  { opacity: 1; }
  78%  { transform: translateY(58px); opacity: 1; }
  92%,100% { transform: translateY(66px); opacity: 0; }
}
.bean-l { animation: floaty 7s ease-in-out infinite alternate; }
.bean-r { animation: floaty 8.5s ease-in-out 1s infinite alternate-reverse; }
@keyframes floaty {
  from { transform: translate(74px, 170px) rotate(-6deg); }
  to   { transform: translate(66px, 158px) rotate(8deg); }
}
.bean-r { animation-name: floatyR; }
@keyframes floatyR {
  from { transform: translate(348px, 320px) rotate(5deg); }
  to   { transform: translate(356px, 306px) rotate(-8deg); }
}
.hero-caption {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint);
}
.dot-live {
  width: 8px; height: 8px; border-radius: 50%; background: var(--caramel);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(124,58,237,.5); } 50% { box-shadow: 0 0 0 7px rgba(124,58,237,0); } }
