/* ============================================================
   NULLPROOF — Premium Non-Alcoholic Spirits
   Dark amber luxury design system. Standalone client showcase.
   Design base: liquid.html (HydrationDomination.biz)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Outfit:wght@100;200;300;400&family=Syne:wght@400;700;800&display=swap');

:root {
  --amber: #C8872B;
  --amber-light: #E8B86D;
  --amber-glow: #F5D394;
  --burgundy: #6B1D2A;
  --burgundy-deep: #3D0F18;
  --crystal: rgba(255,255,255,0.08);
  --crystal-edge: rgba(255,255,255,0.15);
  --bg-deep: #0A0604;
  --bg-mid: #120D08;
  --text-cream: #F2E8D8;
  --text-dim: #8A7A66;
  --cyan-flash: #5ECCD9;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--amber) var(--bg-deep);
}

body {
  background: var(--bg-deep);
  color: var(--text-cream);
  font-family: 'Outfit', sans-serif;
  font-weight: 200;
  overflow-x: hidden;
}

/* ── METABALL CANVAS (ambient liquid blobs) ── */
#metaball-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
}

/* ── GRAIN OVERLAY ── */
#grain {
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.5s steps(4) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-2%,-1%); }
  50%  { transform: translate(1%,2%); }
  75%  { transform: translate(-1%,-2%); }
  100% { transform: translate(2%,1%); }
}

/* ── CAUSTIC LIGHT OVERLAY ── */
#caustics {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.06;
  background:
    radial-gradient(ellipse 600px 400px at 30% 40%, var(--amber-glow), transparent),
    radial-gradient(ellipse 400px 600px at 70% 60%, var(--cyan-flash), transparent);
  animation: causticDrift 12s ease-in-out infinite alternate;
}
@keyframes causticDrift {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.06; }
  50%  { transform: translate(40px, -30px) scale(1.1); opacity: 0.09; }
  100% { transform: translate(-30px, 20px) scale(0.95); opacity: 0.05; }
}

/* ── CONDENSATION DROPS ── */
.condensation {
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), rgba(255,255,255,0.05));
  box-shadow: 0 1px 2px rgba(0,0,0,0.3), inset 0 -1px 1px rgba(255,255,255,0.1);
  pointer-events: none;
  z-index: 3;
  animation: condenseFade 8s ease-in-out infinite;
}
@keyframes condenseFade {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50%       { opacity: 0.4;  transform: scale(1.05) translateY(2px); }
}

/* ── RIPPLE CANVAS ── */
#ripple-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── GLOBAL LAYOUT ── */
.content-layer {
  position: relative;
  z-index: 5;
}

section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 40px;
  position: relative;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  mix-blend-mode: difference;
}
nav .logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 0.15em;
  color: var(--text-cream);
}
nav .nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
nav .nav-links a {
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dim);
  transition: color 0.3s;
}
nav .nav-links a:hover { color: var(--text-cream); }

/* ── HERO ── */
.hero {
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-pre {
  font-family: 'Outfit', sans-serif;
  font-weight: 100;
  font-size: clamp(11px, 1.2vw, 14px);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--amber-light);
  opacity: 0;
  animation: pourIn 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(48px, 9vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--text-cream);
  opacity: 0;
  animation: pourIn 2s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
  position: relative;
}

.hero h1 .liquid-letter {
  display: inline-block;
  animation: liquidFloat 4s ease-in-out infinite;
  position: relative;
}
.hero h1 .liquid-letter::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 10%;
  width: 80%;
  height: 3px;
  background: var(--amber);
  border-radius: 50%;
  opacity: 0;
  filter: blur(2px);
  animation: droplightPulse 4s ease-in-out infinite;
}

@keyframes liquidFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
@keyframes droplightPulse {
  0%, 100% { opacity: 0; }
  50%       { opacity: 0.5; }
}

.hero-sub {
  font-family: 'Outfit', sans-serif;
  font-weight: 100;
  font-size: clamp(16px, 2vw, 24px);
  color: var(--text-dim);
  margin-top: 32px;
  max-width: 560px;
  line-height: 1.6;
  opacity: 0;
  animation: pourIn 2s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}

.hero-sub em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--amber-light);
  font-size: 1.15em;
}

@keyframes pourIn {
  0%   { opacity: 0; transform: translateY(60px); filter: blur(8px); }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* ── CTA BUTTON ── */
.cta-liquid {
  margin-top: 56px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 48px;
  background: transparent;
  border: 1px solid var(--amber);
  color: var(--amber-light);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  opacity: 0;
  animation: pourIn 2s cubic-bezier(0.16, 1, 0.3, 1) 1.6s forwards;
  transition: color 0.4s, border-color 0.4s;
}
.cta-liquid::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 0%;
  background: linear-gradient(to top, var(--amber), var(--amber-light));
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}
.cta-liquid:hover::before { height: 100%; }
.cta-liquid:hover {
  color: var(--bg-deep);
  border-color: var(--amber-light);
}

/* second CTA (in manifesto, no entrance animation) */
.cta-liquid.static {
  opacity: 1;
  animation: none;
}

/* ── SCROLL INDICATOR ── */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: pourIn 2s ease 2.5s forwards;
}
.scroll-hint span {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.scroll-drop {
  width: 1px;
  height: 40px;
  position: relative;
  overflow: hidden;
}
.scroll-drop::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
  background: var(--amber);
  border-radius: 0 0 50% 50%;
  animation: scrollDrip 2s ease-in-out infinite;
}
@keyframes scrollDrip {
  0%   { top: -10px; opacity: 1; }
  100% { top: 40px;  opacity: 0; }
}

/* ── SECTION: PHILOSOPHY ── */
.philosophy {
  text-align: center;
  padding: 120px 40px;
}
.philosophy .label {
  font-size: 11px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 40px;
}
.philosophy h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1.15;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-cream);
}
.philosophy h2 .glow {
  color: var(--amber-light);
  text-shadow: 0 0 40px rgba(200, 135, 43, 0.3);
}
.philosophy p {
  margin-top: 40px;
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--text-dim);
  max-width: 520px;
  line-height: 1.8;
  margin-left: auto;
  margin-right: auto;
}

/* ── DIVIDER ── */
.liquid-divider {
  width: 100%;
  height: 120px;
  position: relative;
  overflow: hidden;
}
.liquid-divider svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}

/* ── PRODUCTS SECTION ── */
.products {
  padding: 100px 40px 140px;
}
.products .section-label {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 80px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  position: relative;
  background: linear-gradient(170deg, rgba(20,15,10,0.9), rgba(10,6,4,0.95));
  border: 1px solid rgba(200, 135, 43, 0.12);
  border-radius: 2px;
  padding: 48px 36px;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at var(--mx, 50%) var(--my, 50%), rgba(200,135,43,0.08), transparent 60%);
  pointer-events: none;
  transition: opacity 0.3s;
  opacity: 0;
}
.product-card:hover::before { opacity: 1; }
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 135, 43, 0.3);
}

.product-card .vintage {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: 0.7;
}
.product-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(28px, 3vw, 38px);
  margin-top: 16px;
  line-height: 1.15;
  color: var(--text-cream);
}
.product-card .price {
  font-family: 'Outfit', sans-serif;
  font-weight: 100;
  font-size: 28px;
  color: var(--amber-light);
  margin-top: 20px;
  letter-spacing: 0.05em;
}
.product-card .desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-top: 20px;
}
.product-card .tag {
  display: inline-block;
  margin-top: 24px;
  padding: 6px 16px;
  border: 1px solid rgba(200,135,43,0.2);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber-light);
}

/* Glass refraction shimmer */
.product-card::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255,255,255,0.03) 45%,
    rgba(255,255,255,0.06) 50%,
    rgba(255,255,255,0.03) 55%,
    transparent 60%
  );
  transform: rotate(0deg);
  transition: transform 0.8s ease;
  pointer-events: none;
}
.product-card:hover::after {
  transform: rotate(15deg) translate(10%, 10%);
}

/* ── QUOTE SECTION ── */
.quote-section {
  padding: 140px 40px;
  text-align: center;
  position: relative;
}
.quote-section .big-quote {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(24px, 4vw, 56px);
  line-height: 1.35;
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-cream);
}
.quote-section .big-quote .amber { color: var(--amber-light); }
.quote-section .attribution {
  margin-top: 36px;
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── RITUAL SECTION ── */
.ritual {
  padding: 120px 40px;
  max-width: 900px;
  margin: 0 auto;
}
.ritual .label {
  font-size: 11px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 48px;
  text-align: center;
}
.ritual-steps {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.ritual-step {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.ritual-step .step-num {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 64px;
  line-height: 1;
  color: var(--amber);
  opacity: 0.3;
  min-width: 80px;
  text-align: right;
}
.ritual-step .step-content h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 24px;
  color: var(--text-cream);
  margin-bottom: 8px;
}
.ritual-step .step-content p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ── MANIFESTO ── */
.manifesto {
  padding: 140px 40px;
  text-align: center;
  position: relative;
}
.manifesto .label {
  font-size: 11px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 48px;
}
.manifesto h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 6vw, 80px);
  line-height: 1.05;
  color: var(--text-cream);
  max-width: 800px;
  margin: 0 auto;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.manifesto h2 .outline-text {
  -webkit-text-stroke: 1px var(--amber-light);
  color: transparent;
}
.manifesto .manifesto-body {
  margin-top: 48px;
  font-size: clamp(14px, 1.4vw, 17px);
  color: var(--text-dim);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}
.manifesto .manifesto-body em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--amber-light);
  font-size: 1.1em;
}

/* ── FOOTER ── */
footer {
  padding: 80px 40px;
  text-align: center;
  border-top: 1px solid rgba(200,135,43,0.1);
  position: relative;
}
footer .footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 28px;
  color: var(--text-cream);
  letter-spacing: 0.08em;
}
footer .footer-tagline {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-dim);
}
footer .footer-legal {
  margin-top: 40px;
  font-size: 11px;
  color: rgba(138,122,102,0.4);
  line-height: 1.8;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 20px 24px; }
  nav .nav-links { display: none; }
  .product-grid { grid-template-columns: 1fr; max-width: 480px; }
  .ritual-step { flex-direction: column; gap: 12px; }
  .ritual-step .step-num { text-align: left; min-width: auto; }
  section { padding: 80px 24px; }
}
