/* SIP Bar — shared styles */

:root {
  --sip-wine: #45041c;
  --sip-wine-deep: #2a020f;
  --sip-wine-dark: #1a0108;
  --sip-neon: #ff7481;
  --sip-neon-soft: #ffa0aa;
  --sip-cream: #f4e6d4;
  --sip-paper: #ede1d0;
  --sip-ink: #1a0108;
  --sip-hairline: rgba(244, 230, 212, 0.14);
  --sip-hairline-strong: rgba(244, 230, 212, 0.28);

  --font-display: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --font-body: "Geist", "Inter", system-ui, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  --edge: clamp(24px, 3vw, 56px);
  --gutter: clamp(16px, 1.6vw, 28px);
}

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

html, body {
  background: var(--sip-wine);
  color: var(--sip-cream);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(ellipse 80% 50% at 70% 0%, rgba(255, 116, 129, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 100%, rgba(255, 116, 129, 0.06), transparent 60%),
    var(--sip-wine);
}

/* Grain overlay — subtle film texture everywhere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Typography ------------------------------------------------------------- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--sip-neon-soft);
}

.mono-small {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sip-neon-soft);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--sip-neon);
  display: inline-block;
}

/* Layout ------------------------------------------------------------------ */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.edge {
  padding-left: var(--edge);
  padding-right: var(--edge);
}

.container {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
}

.container-wide {
  width: 100%;
  max-width: 2040px;
  margin: 0 auto;
}

/* NAV --------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--edge);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.3s ease;
}
.nav.scrolled {
  background: rgba(26, 1, 8, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--sip-hairline);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 88px;
  justify-self: start;
  transition: height 0.3s ease;
}
.nav-logo img {
  height: 88px;
  width: auto;
  filter: drop-shadow(0 0 18px rgba(255, 116, 129, 0.45));
  transition: filter 0.4s ease, transform 0.4s ease, height 0.3s ease;
  image-rendering: -webkit-optimize-contrast;
}
.nav-logo:hover img {
  filter: drop-shadow(0 0 26px rgba(255, 116, 129, 0.75));
  transform: scale(1.03);
}
/* Slightly smaller once the nav is in scrolled/condensed state, still ~1.7x original */
.nav.scrolled .nav-logo,
.nav.scrolled .nav-logo img {
  height: 72px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 40px);
  list-style: none;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sip-cream);
  opacity: 0.78;
  position: relative;
  padding: 6px 0;
  transition: opacity 0.25s ease, color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--sip-neon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(.3,.7,.3,1);
}
.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--sip-neon-soft);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  gap: 10px;
  padding: 12px 22px;
  min-width: 168px;
  border: 1px solid var(--sip-neon);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sip-cream);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.4s ease;
}
.nav-cta:hover {
  background: var(--sip-neon);
  color: var(--sip-wine-deep);
  box-shadow: 0 0 24px rgba(255, 116, 129, 0.45);
}
.nav-cta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sip-neon);
  box-shadow: 0 0 10px var(--sip-neon);
  animation: pulse 2.2s ease-in-out infinite;
}
.nav-cta:hover .dot { background: var(--sip-wine-deep); box-shadow: none; }

.nav-mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  justify-self: end;
}
.nav-mobile-toggle span {
  position: absolute;
  left: 8px; right: 8px;
  height: 1px;
  background: var(--sip-cream);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-mobile-toggle span:nth-child(1) { top: 14px; }
.nav-mobile-toggle span:nth-child(2) { top: 20px; }
.nav-mobile-toggle span:nth-child(3) { top: 26px; }
.nav-mobile-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile-panel {
  position: fixed;
  inset: 0;
  background: rgba(26, 1, 8, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 90;
  padding: 120px var(--edge) 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.nav-mobile-panel.open {
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile-panel a {
  font-family: var(--font-display);
  font-size: 42px;
  padding: 14px 0;
  border-bottom: 1px solid var(--sip-hairline);
  color: var(--sip-cream);
  transition: color 0.25s ease, padding 0.25s ease;
}
.nav-mobile-panel a:hover,
.nav-mobile-panel a.active {
  color: var(--sip-neon);
  padding-left: 8px;
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.4s ease, background 0.3s ease, color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--sip-neon);
  color: var(--sip-wine-deep);
  box-shadow: 0 0 0 rgba(255, 116, 129, 0), 0 10px 40px -10px rgba(255, 116, 129, 0);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(255, 116, 129, 0.55), 0 10px 40px -10px rgba(255, 116, 129, 0.6);
}
.btn--ghost {
  background: transparent;
  color: var(--sip-cream);
  border: 1px solid var(--sip-hairline-strong);
}
.btn--ghost:hover {
  border-color: var(--sip-neon);
  color: var(--sip-neon-soft);
  box-shadow: 0 0 24px rgba(255, 116, 129, 0.25);
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.btn:hover .arrow { transform: translateX(4px); }

/* Footer ----------------------------------------------------------------- */

.footer {
  margin-top: auto;
  padding: clamp(60px, 8vw, 120px) var(--edge) 32px;
  border-top: 1px solid var(--sip-hairline);
  position: relative;
  background: linear-gradient(180deg, transparent, rgba(26, 1, 8, 0.6));
}
.footer-inner {
  max-width: 1680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(24px, 4vw, 80px);
  align-items: start;
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sip-neon-soft);
  margin-bottom: 22px;
  font-weight: 400;
}
.footer-brand img {
  height: 56px;
  width: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 14px rgba(255, 116, 129, 0.3));
}
.footer-brand p {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 320px;
  opacity: 0.85;
}
.footer-col ul { list-style: none; }
.footer-col li {
  padding: 7px 0;
  font-size: 14px;
  opacity: 0.85;
  display: flex;
  justify-content: flex-start;
  gap: 14px;
}
.footer-col li span:first-child { opacity: 0.6; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; min-width: 72px; flex-shrink: 0; }
.footer-col a { transition: color 0.25s ease; }
.footer-col a:hover { color: var(--sip-neon); }

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--sip-hairline-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: border-color 0.3s ease, color 0.3s ease, box-shadow 0.4s ease;
}
.footer-social:hover {
  border-color: var(--sip-neon);
  color: var(--sip-neon-soft);
  box-shadow: 0 0 20px rgba(255, 116, 129, 0.3);
}
.footer-social svg { width: 14px; height: 14px; }

.footer-bottom {
  max-width: 1680px;
  margin: 80px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--sip-hairline);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.5;
  flex-wrap: wrap;
}

/* Reveal animations ----------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }
.reveal.delay-5 { transition-delay: 0.4s; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}

@keyframes neonFlicker {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 14px rgba(255, 116, 129, 0.5)); }
  42% { opacity: 1; filter: drop-shadow(0 0 16px rgba(255, 116, 129, 0.6)); }
  43% { opacity: 0.72; filter: drop-shadow(0 0 4px rgba(255, 116, 129, 0.2)); }
  45% { opacity: 1; filter: drop-shadow(0 0 18px rgba(255, 116, 129, 0.7)); }
  75% { opacity: 1; }
  76% { opacity: 0.85; }
  77% { opacity: 1; }
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 30px rgba(255, 116, 129, 0.25), inset 0 0 30px rgba(255, 116, 129, 0.05); }
  50% { box-shadow: 0 0 55px rgba(255, 116, 129, 0.4), inset 0 0 40px rgba(255, 116, 129, 0.08); }
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 960px) {
  .nav-links, .nav > .nav-cta { display: none; }
  .nav-mobile-toggle { display: block; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  /* Plan B: non-fixed nav on mobile — scrolls away with page.
     Eliminates the iOS Safari position:fixed compositing gap entirely. */
  .nav {
    position: relative;
    top: auto;
    padding: 0 var(--edge);
    background: rgba(26, 1, 8, 0.95);
    border-bottom: 1px solid var(--sip-hairline);
    transition: none;
  }
  .nav.scrolled {
    position: relative;
    padding: 0 var(--edge);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(26, 1, 8, 0.95);
  }
  .nav-logo,
  .nav-logo img,
  .nav.scrolled .nav-logo,
  .nav.scrolled .nav-logo img {
    height: 72px;
    transition: none;
  }
}

@media (max-width: 640px) {
  :root { --edge: 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}
