/* ============================================
   Nex Drinks Partners — Landing Page
   ============================================ */

:root {
  --teal-900: #0a4a42;
  --teal-800: #0b6b5e;
  --teal-700: #0d7d6f;
  --teal-600: #1ea593;
  --teal-400: #66ccc4;
  --teal-300: #99dcd4;
  --teal-200: #c7e9e4;
  --teal-100: #e3f3f0;
  --teal-50:  #f0faf9;

  --ink:      #0f2624;
  --ink-2:    #2c4843;
  --ink-3:    #5a716d;
  --rule:     #d6e5e1;

  --cream:    #f7f4ec;
  --paper:    #fbfaf5;

  --shadow-1: 0 1px 2px rgba(13,125,111,0.04), 0 4px 18px rgba(13,125,111,0.06);
  --shadow-2: 0 4px 12px rgba(13,125,111,0.06), 0 20px 60px rgba(10,74,66,0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============ Typography ============ */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-700);
  padding: 6px 0;
  border-top: 1px solid var(--teal-700);
  position: relative;
}
.eyebrow.on-dark {
  color: var(--teal-300);
  border-top-color: var(--teal-400);
}

h1, h2, h3, h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}

h1.display {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.hero h1.display { color: white; }
h2.section-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.02;
  max-width: 18ch;
  text-wrap: balance;
}
h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }

.lede {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
  text-wrap: pretty;
}

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  background: rgba(13, 125, 111, 0);
  transition: background 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.scrolled {
  background: rgba(251, 250, 245, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  padding: 14px 40px;
  border-bottom: 1px solid rgba(13,125,111,0.08);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  height: 36px;
  width: auto;
  transition: opacity 0.3s ease;
}
.nav-logo.dark { display: none; }
.nav.scrolled .nav-logo.light { display: none; }
.nav.scrolled .nav-logo.dark { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: white; }
.nav.scrolled .nav-links a { color: var(--ink-2); }
.nav.scrolled .nav-links a:hover { color: var(--teal-700); }

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.4);
  color: white !important;
  font-weight: 500;
  transition: all 0.2s ease;
}
.btn-contact:hover {
  background: white;
  color: var(--teal-700) !important;
  border-color: white;
}
.nav.scrolled .btn-contact {
  border-color: var(--teal-700);
  color: var(--teal-700) !important;
  background: transparent;
}
.nav.scrolled .btn-contact:hover {
  background: var(--teal-700);
  color: white !important;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--teal-700);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px 0 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(102,204,196,0.35), transparent 70%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(10,74,66,0.45), transparent 70%),
    linear-gradient(180deg, var(--teal-800) 0%, var(--teal-700) 50%, var(--teal-900) 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.hero-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.hero-tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-300);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero-tag::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal-400);
  box-shadow: 0 0 0 4px rgba(102,204,196,0.2);
}

h1.display .accent { color: var(--teal-300); font-style: italic; font-weight: 400; }

.hero-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: end;
}
.hero-content .lede {
  color: rgba(255,255,255,0.85);
  font-size: 19px;
  max-width: 42ch;
}

.hero-stats {
  display: flex;
  gap: 40px;
}
.hero-stat .num {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: white;
}
.hero-stat .lbl {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: 10px;
}

/* ============ Section base ============ */
section {
  padding: 130px 0;
  position: relative;
}
section.tight { padding: 100px 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 70px;
}
.section-head.center {
  grid-template-columns: 1fr;
  text-align: center;
  align-items: center;
  margin-bottom: 80px;
}
.section-head.center .eyebrow,
.section-head.center h2,
.section-head.center .lede {
  margin-left: auto;
  margin-right: auto;
}
.section-head .eyebrow { margin-bottom: 24px; }

/* ============ What we are ============ */
.intro {
  background: var(--paper);
}
.intro-quote {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 26ch;
  color: var(--ink);
  text-wrap: balance;
}
.intro-copy {
  display: grid;
  gap: 22px;
}
.intro-copy p {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: start;
}
.intro-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.fact {
  background: white;
  padding: 32px 28px;
}
.fact .v {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--teal-700);
  line-height: 1;
}
.fact .k {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

/* ============ Why now (3-up) ============ */
.why {
  background: var(--teal-50);
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  background: white;
  border-radius: 4px;
  padding: 40px 32px 36px;
  border: 1px solid var(--rule);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}
.pillar-num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--teal-700);
  margin-bottom: 28px;
}
.pillar h3 {
  font-size: 26px;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.pillar p {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.55;
}
.pillar .icon {
  width: 44px; height: 44px;
  margin-bottom: 24px;
  color: var(--teal-700);
}

/* ============ Market ============ */
.market {
  background: var(--ink);
  color: white;
  position: relative;
  overflow: hidden;
}
.market::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(30,165,147,0.18), transparent 70%);
  pointer-events: none;
}
.market h2.section-title { color: white; }
.market .lede { color: rgba(255,255,255,0.7); }
.market .eyebrow.on-dark { color: var(--teal-300); border-color: var(--teal-400); }

.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 20px;
}
.chart-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 40px 36px 36px;
}
.chart-card .region {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--teal-300);
}
.chart-card h3 {
  color: white;
  font-size: 22px;
  margin-top: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.chart-card h3 + p {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  margin-top: 6px;
}

.bars {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: end;
  height: 240px;
}
.bar-col { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.bar-col .yr {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  text-align: center;
  order: 3;
}
.bar-col .val {
  font-size: 26px;
  font-weight: 700;
  color: white;
  text-align: center;
  order: 1;
  letter-spacing: -0.02em;
}
.bar {
  background: linear-gradient(180deg, var(--teal-400), var(--teal-600));
  border-radius: 2px 2px 0 0;
  order: 2;
  transform-origin: bottom;
  animation: grow 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  position: relative;
  overflow: hidden;
}
.bar.dim {
  background: linear-gradient(180deg, rgba(102,204,196,0.4), rgba(30,165,147,0.6));
}
.bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 40%);
}
@keyframes grow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.chart-cagr {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chart-cagr .cagr-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--teal-300);
  letter-spacing: -0.02em;
}
.chart-cagr .cagr-lbl {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ============ Approach ============ */
.approach { background: var(--paper); }
.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.approach-cell {
  background: var(--paper);
  padding: 44px 28px 40px;
}
.approach-cell .v {
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--teal-700);
  line-height: 0.95;
}
.approach-cell .k {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 600;
}
.approach-cell .d {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--ink-3);
  line-height: 1.45;
}

/* ============ Team ============ */
.team {
  background: var(--teal-50);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.member {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.member:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}
.member-portrait {
  aspect-ratio: 4 / 5;
  background: var(--teal-700);
  position: relative;
  overflow: hidden;
}
.portrait-bg {
  position: absolute; inset: 0;
}
.portrait-bg.a { background: linear-gradient(160deg, var(--teal-600) 0%, var(--teal-900) 100%); }
.portrait-bg.b { background: linear-gradient(160deg, var(--teal-700) 0%, var(--ink) 100%); }
.portrait-bg.c { background: linear-gradient(160deg, var(--teal-400) 0%, var(--teal-800) 100%); }

.portrait-initial {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 180px;
  font-weight: 800;
  color: rgba(255,255,255,0.12);
  letter-spacing: -0.04em;
}
.portrait-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: grayscale(100%) contrast(1.02);
}
/* Brand tint + bottom scrim so the name stays legible */
.member-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15,38,36,0.78) 0%, rgba(15,38,36,0.12) 38%, rgba(15,38,36,0) 62%),
    linear-gradient(160deg, color-mix(in srgb, var(--teal-700) 32%, transparent) 0%, transparent 55%);
  pointer-events: none;
}
.portrait-name { z-index: 1; }
.portrait-role {
  position: absolute;
  top: 24px; left: 24px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.portrait-name {
  position: absolute;
  bottom: 24px; left: 24px; right: 24px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
  line-height: 1.05;
}
.member-body {
  padding: 28px;
}
.member-body .pitch {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 14px;
  text-wrap: balance;
}
.member-body p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.member-body .linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: var(--teal-50);
  border: 1px solid var(--rule);
  color: var(--teal-700);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.member-body .linkedin svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.member-body .linkedin:hover {
  background: var(--teal-700);
  color: white;
  border-color: var(--teal-700);
  transform: translateY(-1px);
}

/* ============ CTA / Footer ============ */
.cta {
  background: var(--teal-700);
  color: white;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 90% 50%, rgba(102,204,196,0.3), transparent 70%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(10,74,66,0.5), transparent 60%);
}
.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
.cta h2 {
  color: white;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}
.cta p { color: rgba(255,255,255,0.75); margin-top: 20px; max-width: 50ch; font-size: 18px; }

.contacts {
  display: grid;
  gap: 16px;
}
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.contact-row:hover {
  background: rgba(255,255,255,0.12);
  transform: translateX(4px);
}
.contact-row .name {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.contact-row .email {
  font-family: 'Manrope', monospace;
  color: var(--teal-300);
  font-size: 14px;
  font-weight: 500;
}

footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 50px 0 40px;
  font-size: 13px;
}
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.foot-logo { height: 28px; opacity: 0.85; }
.foot-disclaimer {
  font-size: 11.5px;
  color: rgba(255,255,255,0.4);
  max-width: 70ch;
  line-height: 1.5;
  margin-top: 24px;
}

/* ============ Reveal animations ============ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.2,0.7,0.2,1), transform 0.9s cubic-bezier(0.2,0.7,0.2,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .wrap { padding: 0 24px; }
  .nav, .nav.scrolled { padding: 14px 20px; }
  .hero { padding: 100px 0 40px; }
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { gap: 30px; }
  .hero-stat .num { font-size: 32px; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .pillars { grid-template-columns: 1fr; }
  .charts { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .nav-links { display: none; }
  section { padding: 80px 0; }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 16px; }
  .foot { flex-direction: column; align-items: flex-start; }
}
