/* ========================================
   YAMA PROVISIONS v2 — Stio × Patagonia × Momofuku × Goop
   ======================================== */

:root {
  --cream:        #FAFAF7;
  --sand:         #F0EAE0;
  --sand-light:   #F6F2EB;
  --forest:       #2F4A35;
  --forest-light: #4A7050;
  --charcoal:     #1C1C1A;
  --text:         #1C1C1A;
  --text-muted:   #6A6460;
  --stone:        #8A837A;
  --border:       #DDD5C8;
  --border-light: #E8E2DA;
  --gold:         #C8973A;
  --alpenglow:    #B06030;
  --clarity:      #6A8020;
  --apres:        #A82820;
  --winddown:     #2A3E60;

  --font-serif: 'Playfair Display', serif;
  --font-sans:  'DM Sans', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ---- FADE-UP ---- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

/* ======================================
   NAV
====================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 48px;
  transition: background 0.35s, box-shadow 0.35s;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  transition: border-color 0.35s;
}
.nav.scrolled {
  background: var(--cream);
  box-shadow: 0 1px 0 var(--border);
}
.nav.scrolled .nav-inner { border-bottom: none; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  transition: color 0.3s;
}
.nav.scrolled .nav-logo { color: var(--forest); }

.logo-mark { width: 30px; height: 28px; }

.logo-wordmark {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.82);
  transition: color 0.2s;
}
.nav.scrolled .nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: white; }
.nav.scrolled .nav-links a:hover { color: var(--forest); }

.nav-cta {
  padding: 7px 18px !important;
  border: 1.5px solid rgba(255,255,255,0.55) !important;
  font-size: 10.5px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s, color 0.2s !important;
}
.nav.scrolled .nav-cta {
  border-color: var(--forest) !important;
  color: var(--forest) !important;
}
.nav-cta:hover { background: rgba(255,255,255,0.12) !important; }
.nav.scrolled .nav-cta:hover {
  background: var(--forest) !important;
  color: white !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: white;
  transition: background 0.3s;
}
.nav.scrolled .nav-toggle span { background: var(--text); }

/* ======================================
   HERO
====================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,8,0.75) 0%,
    rgba(10,10,8,0.35) 45%,
    rgba(10,10,8,0.08) 100%
  );
}
.hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 80px 72px;
  max-width: 760px;
}
.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 18px;
}
.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(52px, 7.5vw, 96px);
  font-weight: 700;
  color: white;
  line-height: 1.04;
  margin-bottom: 20px;
}
.hero-headline em {
  font-style: italic;
  font-weight: 400;
}
.hero-body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  max-width: 460px;
  margin-bottom: 36px;
  line-height: 1.65;
}
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border: 1.5px solid rgba(255,255,255,0.65);
  color: white;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: background 0.25s, border-color 0.25s;
  background: transparent;
}
.btn-hero:hover {
  background: rgba(255,255,255,0.14);
  border-color: white;
}

/* ======================================
   EDITORIAL STRIP
====================================== */
.editorial-strip {
  background: var(--charcoal);
  padding: 15px 0;
  overflow: hidden;
}
.editorial-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.strip-dot {
  color: var(--gold);
  font-size: 16px;
  line-height: 1;
  opacity: 0.8;
}

/* ======================================
   SECTION UTILITIES
====================================== */
.section-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 14px;
}
.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.18;
  margin-bottom: 20px;
}
.section-sub {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 64px;
}

/* ======================================
   WHAT'S IN A STICK
====================================== */
.whats-in {
  padding: 100px 0 80px;
  background: var(--cream);
}
.whats-in .section-heading { margin-bottom: 60px; }

.icons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  border-top: 1px solid var(--border);
}
.icon-item {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 36px 28px;
  border-bottom: 1px solid var(--border);
}
.icon-item:nth-child(odd) { border-right: 1px solid var(--border); }

.icon-num {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 400;
  color: var(--border);
  line-height: 1;
  min-width: 56px;
  margin-top: -4px;
}
.icon-text strong {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
.icon-text p {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ======================================
   STORY
====================================== */
.story { background: var(--sand); }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 680px;
}
.story-img-col {
  overflow: hidden;
  position: relative;
}
.story-img-col img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s ease;
}
.story-img-col:hover img { transform: scale(1.03); }

.story-text-col {
  padding: 80px 72px 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.story-text-col h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin: 14px 0 28px;
}
.story-text-col p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 20px;
}
.story-text-col blockquote {
  font-family: var(--font-serif);
  font-size: 21px;
  font-style: italic;
  font-weight: 400;
  color: var(--forest);
  border-left: 2px solid var(--forest);
  padding: 4px 0 4px 22px;
  margin: 28px 0;
  line-height: 1.55;
}

/* ======================================
   MISSION
====================================== */
.mission { background: var(--cream); }
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 680px;
}
.mission-text-col {
  padding: 80px 64px 80px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  order: 1;
}
.mission-img-col {
  overflow: hidden;
  position: relative;
  order: 2;
}
.mission-img-col img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.mission-img-col:hover img { transform: scale(1.03); }

.mission-text-col h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  margin: 14px 0 32px;
}
.mission-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.mission-list li {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.mission-list li:last-child { border-bottom: 1px solid var(--border); }
.mission-list strong {
  font-weight: 600;
  color: var(--text);
}
.mission-closing {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 8px;
}
.mission-closing strong {
  font-weight: 600;
  color: var(--text);
}

/* ======================================
   PRODUCTS
====================================== */
.products {
  padding: 100px 0;
  background: var(--sand-light);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.product-card {
  background: var(--cream);
  display: flex;
  flex-direction: column;
}

.product-visual {
  padding: 36px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  position: relative;
}
.alpenglow-visual { background: #F9EFE6; border-top: 3px solid var(--alpenglow); }
.clarity-visual   { background: #EFF5E4; border-top: 3px solid var(--clarity); }
.apres-visual     { background: #F9E8E8; border-top: 3px solid var(--apres); }
.winddown-visual  { background: #E8EDF6; border-top: 3px solid var(--winddown); }

.stick-sachet {
  height: 270px;
  width: auto;
  max-width: none;
  overflow: visible;
}

.product-info {
  padding: 28px 36px 36px;
  border-top: 1px solid var(--border-light);
  flex: 1;
}
.product-badge {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 14px;
}
.alpenglow-badge { background: #FFF0E0; color: #8B4A20; }
.clarity-badge   { background: #EFF5D8; color: #4A5A20; }
.apres-badge     { background: #FFE8E8; color: #8B2020; }
.winddown-badge  { background: #E8EDF8; color: #2A3A5A; }

.product-name {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px;
  line-height: 1.15;
}
.product-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 18px;
}
.product-herbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.product-herbs span {
  font-size: 10.5px;
  font-weight: 500;
  padding: 4px 11px;
  background: var(--sand);
  color: var(--text-muted);
  letter-spacing: 0.3px;
}
.product-tcm {
  font-size: 12px;
  color: var(--stone);
  margin: 0;
  font-style: italic;
}

/* ======================================
   PAIRINGS
====================================== */
.pairings {
  padding: 100px 0;
  background: var(--cream);
}

/* Matrix */
.matrix-wrap {
  overflow-x: auto;
  margin-bottom: 88px;
  border: 1px solid var(--border);
}
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  min-width: 820px;
}
.matrix-table th {
  padding: 16px 18px;
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--charcoal);
  color: rgba(255,255,255,0.72);
  border-right: 1px solid rgba(255,255,255,0.08);
}
.matrix-corner { color: rgba(255,255,255,0.3) !important; font-size: 9px !important; }

.matrix-broth {
  padding: 18px 20px;
  font-size: 13px;
  vertical-align: top;
  border-right: 1px solid var(--border);
  background: var(--sand-light);
}
.matrix-broth strong {
  display: block;
  font-weight: 600;
  color: var(--text);
  font-size: 12.5px;
  margin-bottom: 4px;
}
.matrix-broth span {
  font-size: 9.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--stone);
}
.alpenglow-row { border-left: 3px solid var(--alpenglow); }
.clarity-row   { border-left: 3px solid var(--clarity); }
.apres-row     { border-left: 3px solid var(--apres); }
.winddown-row  { border-left: 3px solid var(--winddown); }

.matrix-table td {
  padding: 15px 18px;
  vertical-align: top;
  border: 1px solid var(--border-light);
  background: white;
}
.matrix-table td.featured { background: #FAFAF0; }
.pairing-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}
.pairing-desc {
  font-size: 11px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Top 4 */
.top4-section {
  border-top: 1px solid var(--border);
  padding-top: 80px;
}
.top4-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 600;
  color: var(--text);
  margin: 14px 0 52px;
}
.top4-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.top4-card {
  background: var(--cream);
  display: flex;
  flex-direction: column;
}
.top4-num {
  font-family: var(--font-serif);
  font-size: 80px;
  font-weight: 400;
  color: var(--border-light);
  padding: 32px 36px 0;
  line-height: 1;
  user-select: none;
}
.top4-header {
  padding: 12px 36px 24px;
}
.top4-rank {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--stone);
  display: block;
  margin-bottom: 8px;
}
.top4-header h4 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.15;
}
.apres-accent    { color: var(--apres); }
.alpenglow-accent { color: var(--alpenglow); }
.clarity-accent  { color: var(--clarity); }
.winddown-accent { color: var(--winddown); }

.top4-combo {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}
.top4-combo span { color: var(--stone); margin: 0 4px; }

.top4-body {
  padding: 0 36px 36px;
  flex: 1;
}
.top4-body > p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.78;
  margin-bottom: 18px;
}
.top4-feel {
  font-size: 12.5px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
  background: var(--sand);
  padding: 14px 18px;
  border-left: 2px solid var(--border);
  margin-bottom: 18px;
}
.top4-feel strong { font-weight: 600; color: var(--text); }
.top4-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.top4-stats span {
  font-size: 10px;
  font-weight: 500;
  padding: 4px 11px;
  background: white;
  border: 1px solid var(--border);
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* ======================================
   TCM
====================================== */
.tcm { background: var(--sand); }
.tcm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
}
.tcm-img-col {
  overflow: hidden;
  position: relative;
}
.tcm-img-col img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.tcm-img-col:hover img { transform: scale(1.03); }

.tcm-text-col {
  padding: 80px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tcm-text-col h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.28;
  margin: 14px 0 26px;
}
.tcm-text-col p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.tcm-text-col p em { color: var(--text); font-style: italic; font-weight: 400; }
.tcm-elements {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 36px;
}
.tcm-el {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 6px;
  background: white;
  border: 1px solid var(--border);
  text-align: center;
  gap: 4px;
}
.tcm-icon { font-size: 20px; margin-bottom: 4px; }
.tcm-el strong {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  display: block;
}
.tcm-el span {
  font-size: 9px;
  color: var(--stone);
  letter-spacing: 0.3px;
  line-height: 1.4;
}

/* ======================================
   GALLERY
====================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 420px;
  gap: 4px;
}
.gallery-item { overflow: hidden; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ======================================
   SIGNUP
====================================== */
.signup {
  background: var(--charcoal);
  padding: 108px 48px;
}
.signup-inner {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}
.signup-mark { width: 52px; margin: 0 auto 22px; }
.signup-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--forest-light);
  margin-bottom: 4px;
}
.signup-tagline {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 36px;
}
.signup-heading {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 600;
  color: white;
  margin-bottom: 10px;
  line-height: 1.2;
}
.signup-launch {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.signup-sub {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  margin-bottom: 36px;
}
.signup-sub em { color: rgba(255,255,255,0.7); }

.signup-form {
  display: flex;
  border: 1px solid rgba(255,255,255,0.15);
  overflow: hidden;
  max-width: 440px;
  margin: 0 auto 28px;
}
.signup-form input {
  flex: 1;
  padding: 14px 20px;
  background: rgba(255,255,255,0.05);
  border: none;
  color: white;
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
}
.signup-form input::placeholder { color: rgba(255,255,255,0.28); }
.signup-form button {
  padding: 14px 24px;
  background: var(--forest);
  color: white;
  border: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.signup-form button:hover { background: var(--forest-light); }

.signup-disclaimer {
  font-size: 10px;
  color: rgba(255,255,255,0.18);
  line-height: 1.6;
}

/* ======================================
   RESPONSIVE
====================================== */
@media (max-width: 960px) {
  .story-grid,
  .mission-grid,
  .tcm-grid { grid-template-columns: 1fr; }

  .story-img-col,
  .mission-img-col,
  .tcm-img-col { height: 360px; }

  .mission-text-col { order: 1; }
  .mission-img-col { order: 2; }

  .product-grid { grid-template-columns: 1fr; }
  .top4-grid { grid-template-columns: 1fr; }
  .gallery { height: 280px; grid-template-columns: 1fr; height: auto; }
  .gallery-item { height: 240px; }
}

@media (max-width: 720px) {
  .container { padding: 0 24px; }
  .nav { padding: 0 24px; }
  .hero-content { padding: 0 32px 56px; }
  .story-text-col,
  .mission-text-col,
  .tcm-text-col { padding: 56px 32px; }
  .icons-grid { grid-template-columns: 1fr; }
  .icon-item { border-right: none !important; }
  .top4-num { font-size: 56px; }
  .top4-body { padding: 0 24px 24px; }
  .top4-header { padding: 8px 24px 16px; }
  .top4-num { padding: 24px 24px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--cream);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  .nav-links.open a { color: var(--text-muted) !important; font-size: 14px; }
  .nav-links.open .nav-cta {
    border-color: var(--forest) !important;
    color: var(--forest) !important;
    padding: 10px 20px !important;
    align-self: flex-start;
  }
  .matrix-table { font-size: 11px; }
}
