:root {
  --ivory: #fff8f0;
  --pearl: #f8efe7;
  --cream: #f1e4d8;
  --sand: #dfcfc1;
  --taupe: #b9a699;
  --blush: #d8a7a1;
  --rose: #a86f62;
  --sage: #a8b7a2;
  --champagne: #d9be88;
  --mist: #dde7e2;
  --espresso: #211815;
  --espresso-soft: #3d302a;
  --plum: #2a1a1e;
  --white: #ffffff;
  --line: rgba(33, 24, 21, 0.12);
  --line-strong: rgba(168, 111, 98, 0.28);
  --shadow-soft: 0 28px 90px rgba(95, 63, 47, 0.14);
  --shadow-card: 0 18px 54px rgba(95, 63, 47, 0.12);
  --display: "Instrument Serif", Georgia, serif;
  --body: "Manrope", "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--pearl);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--espresso);
  background:
    radial-gradient(circle at 14% 8%, rgba(216, 167, 161, 0.32), transparent 28rem),
    radial-gradient(circle at 90% 18%, rgba(217, 190, 136, 0.28), transparent 26rem),
    radial-gradient(circle at 84% 78%, rgba(168, 183, 162, 0.22), transparent 30rem),
    linear-gradient(135deg, var(--ivory) 0%, var(--pearl) 48%, #ead8cc 100%);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(33, 24, 21, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 24, 21, 0.028) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
}

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.28;
  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.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
}

.cursor-blush {
  position: fixed;
  z-index: -2;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 167, 161, 0.24), transparent 70%);
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}

body.has-pointer .cursor-blush { opacity: 1; }

.scroll-progress {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(33, 24, 21, 0.06);
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blush), var(--rose), var(--champagne));
}

h1, h2, h3, p { margin: 0; }

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.052em;
}

h1 {
  max-width: 9.6ch;
  font-size: clamp(4.6rem, 10.4vw, 10.2rem);
  line-height: 0.82;
}

h2 {
  font-size: clamp(3rem, 6.6vw, 7rem);
  line-height: 0.88;
}

h3 {
  font-size: clamp(1.18rem, 1.7vw, 1.55rem);
  line-height: 1.14;
  letter-spacing: -0.032em;
}

p { color: rgba(33, 24, 21, 0.72); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; }

[id] { scroll-margin-top: 112px; }
.section-shell { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }

.nav-shell {
  position: fixed;
  z-index: 80;
  top: 18px;
  left: 50%;
  display: flex;
  width: calc(100% - 28px);
  max-width: 1160px;
  transform: translateX(-50%);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0.8rem 0.72rem 0.95rem;
  border: 1px solid rgba(33, 24, 21, 0.1);
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.72);
  box-shadow: 0 18px 70px rgba(95, 63, 47, 0.12);
  backdrop-filter: blur(24px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--espresso);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.brand span span { color: var(--rose); }

.brand-mark {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 20%, #ffffff, #f3d8cf 43%, #a86f62 100%);
  box-shadow: inset 0 0 24px rgba(255,255,255,0.34), 0 12px 30px rgba(168, 111, 98, 0.22);
  color: var(--espresso);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 400;
}

.nav-links { display: flex; gap: 1.45rem; color: rgba(33,24,21,0.62); font-size: 0.88rem; font-weight: 800; }
.nav-links a { transition: color 180ms ease; }
.nav-links a:hover { color: var(--rose); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1.15rem;
  border-radius: 999px;
  background: var(--espresso);
  color: var(--ivory);
  font-size: 0.86rem;
  font-weight: 900;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.9fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 8.6rem 0 5.2rem;
}

.hero-media {
  position: relative;
  min-height: 690px;
  order: 2;
}

.hero-media img {
  width: 100%;
  height: 690px;
  object-fit: cover;
  border-radius: 46px;
  box-shadow: var(--shadow-soft);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.54);
  border-radius: 46px;
  pointer-events: none;
}

.hero-copy { order: 1; }

.eyebrow {
  color: var(--rose);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero-copy .eyebrow { margin-bottom: 1.35rem; }

.hero-lede {
  max-width: 45rem;
  margin-top: 1.55rem;
  color: rgba(33,24,21,0.76);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--espresso); color: var(--ivory); box-shadow: 0 20px 52px rgba(33, 24, 21, 0.16); }
.button-secondary { border-color: rgba(33,24,21,0.16); background: rgba(255,255,255,0.42); color: var(--espresso); }
.button-secondary:hover { border-color: var(--line-strong); background: rgba(216,167,161,0.15); }

.availability-strip { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.15rem; }
.availability-strip span {
  padding: 0.55rem 0.72rem;
  border: 1px solid rgba(33,24,21,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.4);
  color: rgba(33,24,21,0.68);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-float {
  position: absolute;
  display: grid;
  gap: 0.32rem;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 22px;
  background: rgba(255,248,240,0.72);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
}
.hero-float span { color: var(--rose); font-family: var(--mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-float strong { color: var(--espresso); font-size: 1rem; }
.float-one { top: 8%; left: -5%; animation: floatCard 5.6s ease-in-out infinite; }
.float-two { right: -4%; bottom: 12%; animation: floatCard 6.4s ease-in-out infinite reverse; }

.brand-strip { overflow: hidden; border-block: 1px solid var(--line); background: rgba(255,248,240,0.42); }
.brand-strip-track { display: flex; width: max-content; animation: ticker 28s linear infinite; }
.brand-strip span { display: inline-flex; min-height: 4.2rem; align-items: center; padding: 0 2.2rem; color: var(--rose); font-family: var(--mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }

.industry, .system, .journey, .markets, .territory, .apply { padding: clamp(5.6rem, 9vw, 9rem) 0; }
.section-kicker { display: grid; max-width: 930px; gap: 0.95rem; margin-bottom: 2.6rem; }

.insight-grid, .market-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.insight-grid article, .market-grid article, .system-card {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,0.43);
  box-shadow: var(--shadow-card);
}
.insight-grid article, .market-grid article { min-height: 260px; padding: 1.35rem; }
.insight-grid span, .market-grid span, .system-card span { color: var(--rose); font-family: var(--mono); font-size: 0.76rem; font-weight: 700; text-transform: uppercase; }
.insight-grid h3, .market-grid h3 { margin-top: 3.6rem; color: var(--espresso); }
.insight-grid p { margin-top: 0.85rem; }

.system { display: grid; grid-template-columns: 0.82fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.system-intro { position: sticky; top: 7rem; display: grid; gap: 1rem; }
.system-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.system-card { min-height: 290px; padding: 1.3rem; overflow: hidden; }
.card-large { grid-column: span 2; min-height: 440px; }
.system-card h3 { margin-top: 3.2rem; }
.system-card p { margin-top: 0.85rem; }
.card-visual { position: relative; height: 190px; margin: -0.2rem -0.2rem 1.2rem; border-radius: 24px; background: linear-gradient(135deg, #fff8f0, #ead0c8 48%, #d9be88); overflow: hidden; }
.serum-bottle { position: absolute; right: 22%; bottom: 24px; width: 54px; height: 132px; border-radius: 28px 28px 14px 14px; background: rgba(255,255,255,0.72); box-shadow: inset 0 0 18px rgba(168,111,98,0.12); }
.cream-jar { position: absolute; right: 8%; bottom: 22px; width: 112px; height: 70px; border-radius: 28px; background: rgba(255,255,255,0.62); }
.leaf-shape { position: absolute; left: 9%; top: 26px; width: 150px; height: 230px; border-radius: 90% 0 90% 0; background: rgba(168,183,162,0.52); transform: rotate(-28deg); }

.journey { display: grid; grid-template-columns: 0.58fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.journey-copy { display: grid; gap: 1rem; }
.journey-line { display: grid; gap: 1rem; }
.journey-step { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; align-items: center; padding: 1.1rem; border: 1px solid var(--line); border-radius: 26px; background: rgba(255,255,255,0.42); box-shadow: var(--shadow-card); }
.journey-step span { color: var(--rose); font-family: var(--display); font-size: 2.7rem; line-height: 0.9; }
.journey-step.is-active { background: rgba(216,167,161,0.18); border-color: var(--line-strong); }

.territory { display: grid; grid-template-columns: 0.78fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.territory-copy { display: grid; gap: 1rem; }
.territory-controls { display: flex; flex-wrap: wrap; gap: 0.62rem; margin-top: 1rem; }
.territory-pill { min-height: 2.55rem; padding: 0 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.48); color: var(--espresso); cursor: pointer; font-weight: 900; }
.territory-pill.is-active, .territory-pill:hover { border-color: var(--line-strong); background: rgba(216,167,161,0.22); color: var(--rose); }
.map-card { overflow: hidden; border: 1px solid var(--line); border-radius: 36px; background: rgba(255,255,255,0.44); box-shadow: var(--shadow-soft); }
.map-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.map-header span { color: rgba(33,24,21,0.55); }
.map-header strong { color: var(--rose); }
.soft-map { width: 100%; min-height: 390px; }
.map-grid-lines path { stroke: rgba(33,24,21,0.11); stroke-width: 1; }
.map-road-shadow { fill: none; stroke: rgba(168,183,162,0.38); stroke-width: 20; stroke-linecap: round; }
.map-road { fill: none; stroke: var(--rose); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 16 13; animation: dashRoute 7s linear infinite; }
.map-zone circle { fill: rgba(255,248,240,0.42); stroke: rgba(168,111,98,0.28); stroke-width: 1.5; animation: pulseZone 3.8s ease-in-out infinite; transform-origin: center; }
.map-zone text { fill: var(--espresso); font-family: var(--mono); font-size: 16px; font-weight: 700; text-anchor: middle; }
.zone-two circle { animation-delay: 450ms; }
.zone-three circle { animation-delay: 900ms; }
.map-points circle { fill: var(--rose); animation: pointBlink 2.4s ease-in-out infinite; }
.map-ledger { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.map-ledger div { display: grid; gap: 0.2rem; padding: 1rem; border-right: 1px solid var(--line); }
.map-ledger div:last-child { border-right: 0; }
.map-ledger span { color: rgba(33,24,21,0.55); font-family: var(--mono); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; }
.map-ledger strong { color: var(--espresso); }

.apply-card { display: grid; grid-template-columns: 0.84fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); padding: clamp(1.5rem, 4vw, 3.5rem); border: 1px solid var(--line); border-radius: 38px; background: rgba(255,255,255,0.52); box-shadow: var(--shadow-soft); }
.apply-card > div:first-child { display: grid; align-content: start; gap: 1rem; }
.territory-form { display: grid; gap: 0.92rem; }
.territory-form label { display: grid; gap: 0.45rem; color: var(--espresso); font-size: 0.86rem; font-weight: 900; }
.territory-form input, .territory-form select { width: 100%; min-height: 3.25rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,248,240,0.72); color: var(--espresso); outline: none; padding: 0 1rem; }
.territory-form input:focus, .territory-form select:focus { border-color: var(--line-strong); box-shadow: 0 0 0 4px rgba(216,167,161,0.18); }
.territory-form .button { width: 100%; margin-top: 0.3rem; }
.form-status { min-height: 1.5rem; color: var(--rose); font-size: 0.9rem; }

.footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 3rem 0 4rem; border-top: 1px solid var(--line); }
.footer p { margin-top: 0.8rem; }
.footer-link { color: var(--rose); font-weight: 900; }

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 760ms cubic-bezier(0.16,1,0.3,1), transform 760ms cubic-bezier(0.16,1,0.3,1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.hero [data-reveal] { opacity: 1; transform: none; }

@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes floatCard { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes dashRoute { to { stroke-dashoffset: -220; } }
@keyframes pulseZone { 0%,100% { transform: scale(1); opacity: 0.78; } 50% { transform: scale(1.07); opacity: 1; } }
@keyframes pointBlink { 0%,100% { opacity: 0.58; } 50% { opacity: 1; } }

@media (max-width: 1020px) {
  .nav-links { display: none; }
  .hero, .system, .journey, .territory, .apply-card { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 8.3rem; }
  .hero-media { order: 1; min-height: 520px; }
  .hero-media img { height: 520px; }
  .hero-copy { order: 2; }
  .insight-grid, .market-grid { grid-template-columns: 1fr 1fr; }
  .system-intro { position: static; }
}

@media (max-width: 700px) {
  .section-shell, .hero { width: min(100% - 28px, 1200px); }
  .nav-shell { top: 10px; }
  .nav-cta { display: none; }
  h1 { font-size: clamp(4.25rem, 18vw, 6rem); }
  h2 { font-size: clamp(3.1rem, 14vw, 5rem); }
  .hero-actions, .button { width: 100%; }
  .hero-media { min-height: 360px; }
  .hero-media img { height: 360px; border-radius: 34px; }
  .float-one { left: 4%; top: 5%; }
  .float-two { right: 4%; bottom: 7%; }
  .insight-grid, .market-grid, .system-grid, .map-ledger { grid-template-columns: 1fr; }
  .card-large { grid-column: span 1; }
  .journey-step { grid-template-columns: 1fr; }
  .soft-map { min-height: 330px; }
  .footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
