:root {
  --black: #070505;
  --ink: #110c0a;
  --ink-2: #1a1210;
  --line: rgba(212, 175, 55, 0.18);
  --gold: #d4af37;
  --gold-light: #f3d98b;
  --gold-deep: #8a6b12;
  --red: #c1121f;
  --red-light: #ff3b3b;
  --red-deep: #5c0a10;
  --text: #f4ede1;
  --muted: #a3988a;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --gold-grad: linear-gradient(120deg, #8a6b12 0%, #f3d98b 35%, #d4af37 55%, #fff1c1 70%, #b08a1e 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
::selection { background: var(--red); color: var(--text); }

.gold-text {
  background: var(--gold-grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1.2rem;
}
.eyebrow::before { content: "— "; color: var(--red); }
.center { text-align: center; }
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  font: 500 0.95rem var(--sans);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s, color 0.3s;
}
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
.btn-gold {
  background: var(--gold-grad);
  background-size: 200% auto;
  color: #1a1206;
  box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.6);
}
.btn-gold:hover { transform: translateY(-2px); background-position: right center; box-shadow: 0 16px 40px -10px rgba(212, 175, 55, 0.8); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--red); background: rgba(193, 18, 31, 0.12); }

/* Progress bar */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100; }
.progress span {
  display: block; height: 100%; width: 100%;
  transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--red), var(--gold));
  box-shadow: 0 0 12px var(--red);
}

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem clamp(1rem, 4vw, 3rem);
  transition: background 0.4s, padding 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 5, 5, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-block: 0.8rem;
  border-color: var(--line);
}
.logo { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; letter-spacing: 0.08em; }
.logo em { color: var(--red); font-style: normal; margin-left: 2px; }
.logo-mark { color: var(--gold); font-size: 1rem; vertical-align: 3px; }
.nav-links { display: flex; gap: 2rem; font-size: 0.9rem; }
.nav-links a { color: var(--muted); position: relative; transition: color 0.3s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform 0.4s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 7rem clamp(1rem, 5vw, 4rem) 5rem;
  overflow: hidden;
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow {
  position: absolute; inset: auto -20% -40% -20%; height: 80%;
  background: radial-gradient(ellipse at center, rgba(193, 18, 31, 0.35), transparent 60%);
  pointer-events: none;
}
.hero-content { position: relative; max-width: 980px; text-align: center; }
.hero-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.98; letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .line > span {
  display: inline-block; transform: translateY(110%);
  animation: rise 1.1s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero-title .line:nth-child(2) > span { animation-delay: 0.15s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.3s; }
@keyframes rise { to { transform: translateY(0); } }
.red-dot { color: var(--red); }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 620px; margin: 0 auto 2.5rem; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.scroll-hint span { width: 1px; height: 48px; background: linear-gradient(var(--gold), transparent); animation: drip 2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Marquee */
.marquee {
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, var(--red-deep), #2a0508 50%, var(--red-deep));
  overflow: hidden; padding: 1.1rem 0;
}
.marquee-track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font-family: var(--serif); font-size: 1.6rem; font-style: italic; white-space: nowrap; }
.marquee b { color: var(--gold); font-size: 0.9rem; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(.2,.8,.2,1), transform 1s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Story */
.story {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 0 clamp(1rem, 5vw, 4rem);
  background: radial-gradient(ellipse at 25% 50%, rgba(193, 18, 31, 0.12), transparent 50%), var(--black);
}
.story-visual { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; }
.story-stage { position: relative; width: min(100%, 520px); aspect-ratio: 1; }
#storySvg { width: 100%; height: 100%; overflow: visible; }
#storyDots circle {
  transition: transform 1.2s cubic-bezier(.65,0,.35,1), fill 0.8s, opacity 0.8s;
  transform-box: view-box;
}
#storyLines line {
  stroke: var(--red); stroke-width: 0.8; opacity: 0;
  stroke-dasharray: 4 6;
  transition: opacity 0.8s;
  animation: flow 1.4s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -20; } }
.stage-2 #storyLines line { opacity: 0.55; }
#storyTrend {
  fill: none; stroke: var(--red-light); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 500; stroke-dashoffset: 500;
  filter: drop-shadow(0 0 8px var(--red));
  transition: stroke-dashoffset 1.6s cubic-bezier(.65,0,.35,1) 0.4s;
}
.stage-3 #storyTrend { stroke-dashoffset: 0; }
.story-badge {
  position: absolute; top: 4%; left: 0;
  font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--line); padding: 0.4rem 0.9rem; border-radius: 999px;
  background: rgba(7, 5, 5, 0.6);
}
.story-steps { padding: 30vh 0 30vh clamp(1rem, 4vw, 4rem); }
.step {
  min-height: 85vh; display: flex; flex-direction: column; justify-content: center;
  opacity: 0.18; transition: opacity 0.6s, transform 0.6s; transform: translateX(20px);
}
.step.active { opacity: 1; transform: none; }
.step-num { font-family: var(--serif); font-size: 5rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); margin-bottom: 1rem; }
.step.active .step-num { color: var(--red); -webkit-text-stroke: 1px var(--red); }
.step h2 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; margin-bottom: 1.2rem; font-weight: 600; }
.step p { color: var(--muted); font-size: 1.1rem; max-width: 480px; }
.step strong { font-weight: 700; font-size: 1.3em; }

/* Sectors horizontal */
.sectors { position: relative; background: var(--ink); border-top: 1px solid var(--line); }
.sectors-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 2rem;
  padding-top: 4.5rem;
}
.sectors-head { padding: 0 clamp(1rem, 5vw, 4rem); display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.sectors-head .eyebrow { width: 100%; margin-bottom: -1rem; }
.sectors-counter { font-family: var(--serif); font-size: 1.4rem; color: var(--muted); }
.sectors-counter span { color: var(--gold); font-size: 2.6rem; }
.sectors-track { display: flex; gap: 1.5rem; padding: 0 clamp(1rem, 5vw, 4rem); width: max-content; will-change: transform; }
.sector-card {
  position: relative; width: min(380px, 80vw); flex-shrink: 0;
  padding: 2.2rem; border-radius: 22px;
  background: linear-gradient(160deg, var(--ink-2), #0b0807);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.5s, border-color 0.5s;
}
.sector-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, var(--gold), transparent 40%, transparent 60%, var(--red));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.5s;
}
.sector-card::after {
  content: ""; position: absolute; width: 220px; height: 220px; right: -80px; top: -80px;
  background: radial-gradient(circle, rgba(193, 18, 31, 0.35), transparent 70%);
  pointer-events: none;
}
.sector-card:hover { transform: translateY(-8px); }
.sector-card:hover::before { opacity: 1; }
.sector-icon svg { width: 52px; height: 52px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1.2rem; }
.sector-tag { font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--red-light); }
.sector-card h3 { font-family: var(--serif); font-size: 2rem; font-weight: 600; margin: 0.4rem 0 0.8rem; }
.sector-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.2rem; }
.sector-card ul { list-style: none; margin-bottom: 1.6rem; }
.sector-card li { padding: 0.35rem 0; font-size: 0.9rem; border-bottom: 1px dashed rgba(212,175,55,0.12); }
.sector-card li::before { content: "◆"; color: var(--gold); font-size: 0.55rem; margin-right: 0.7rem; vertical-align: 2px; }
.sector-metric { display: flex; align-items: baseline; gap: 0.8rem; }
.sector-metric strong { font-family: var(--serif); font-size: 2.8rem; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sector-metric span { color: var(--muted); font-size: 0.85rem; }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: var(--black);
}
.stat { padding: 4rem 1.5rem; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 4.5rem); font-weight: 600; color: var(--gold); line-height: 1; margin-bottom: 0.6rem; }
.stat:nth-child(even) strong { color: var(--red-light); }
.stat span { color: var(--muted); font-size: 0.9rem; }

/* Manifesto */
.manifesto { height: 260vh; position: relative; background: linear-gradient(var(--black), #140405 50%, var(--black)); }
.manifesto-sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; padding: 0 clamp(1rem, 6vw, 6rem); }
.manifesto-text {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2rem, 5vw, 4.4rem); line-height: 1.15; max-width: 1200px; text-align: center;
}
.manifesto-text .w { opacity: 0.12; transition: opacity 0.25s, color 0.25s; }
.manifesto-text .w.on { opacity: 1; }
.manifesto-text .w.key.on { color: var(--gold); }
.manifesto-text .w.neg.on { color: var(--red-light); text-decoration: line-through; text-decoration-thickness: 3px; }

/* Process */
.process { padding: 9rem clamp(1rem, 5vw, 4rem); background: var(--black); }
.process .section-title { margin-bottom: 5rem; }
.process-wrap { position: relative; max-width: 1000px; margin: 0 auto; }
.process-line { position: absolute; left: 50%; top: 0; width: 10px; height: 100%; transform: translateX(-50%); overflow: visible; }
.process-line path {
  fill: none; stroke: var(--gold); stroke-width: 2; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
  filter: drop-shadow(0 0 6px var(--gold));
}
.process-item { position: relative; display: flex; justify-content: flex-start; padding: 2rem 0; }
.process-item.right { justify-content: flex-end; }
.process-dot {
  position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; border-radius: 50%;
  transform: translate(-50%, -50%); background: var(--black); border: 2px solid var(--red);
  box-shadow: 0 0 0 6px rgba(193, 18, 31, 0.15);
  transition: background 0.4s, box-shadow 0.4s;
}
.process-item.lit .process-dot { background: var(--red); box-shadow: 0 0 0 8px rgba(193, 18, 31, 0.25), 0 0 30px var(--red); }
.process-card {
  width: calc(50% - 3rem); padding: 2rem; border-radius: 18px;
  background: var(--ink); border: 1px solid var(--line);
}
.process-card span { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red-light); }
.process-card h3 { font-family: var(--serif); font-size: 2rem; margin: 0.3rem 0 0.6rem; font-weight: 600; }
.process-card p { color: var(--muted); }

/* Plans */
.plans { padding: 8rem clamp(1rem, 5vw, 4rem); background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.08), transparent 60%), var(--ink); border-top: 1px solid var(--line); }
.plans .section-title { margin-bottom: 4rem; }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1180px; margin: 0 auto; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 2.5rem 2rem; border-radius: 22px;
  background: var(--black); border: 1px solid var(--line);
  transition: transform 0.4s, border-color 0.4s;
}
.plan:hover { transform: translateY(-6px); border-color: rgba(212,175,55,0.45); }
.plan-featured {
  background: linear-gradient(170deg, #2a0a0d, var(--black) 60%);
  border-color: var(--gold);
  box-shadow: 0 30px 80px -30px rgba(193, 18, 31, 0.6);
}
.plan-ribbon {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: var(--text); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.4rem 1rem; border-radius: 999px; font-weight: 600; white-space: nowrap;
}
.plan h3 { font-family: var(--serif); font-size: 2rem; font-weight: 600; }
.plan-desc { color: var(--muted); font-size: 0.95rem; margin: 0.4rem 0 1.6rem; }
.plan-price { display: flex; align-items: baseline; gap: 0.6rem; padding-bottom: 1.6rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.plan-price strong { font-family: var(--serif); font-size: 2.8rem; color: var(--gold); line-height: 1; }
.plan-price span { color: var(--muted); font-size: 0.85rem; }
.plan ul { list-style: none; margin-bottom: 2rem; flex: 1; }
.plan li { padding: 0.45rem 0; font-size: 0.95rem; }
.plan li::before { content: "✓"; color: var(--red-light); margin-right: 0.7rem; font-weight: 700; }

/* Contact */
.contact { padding: 8rem clamp(1rem, 5vw, 4rem); background: linear-gradient(160deg, #1d0507, var(--black) 55%); border-top: 1px solid var(--line); }
.contact-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }
.contact-copy .section-title { margin-bottom: 1.5rem; }
.contact-copy p:last-child { color: var(--muted); font-size: 1.1rem; max-width: 440px; }
.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
  padding: 2.5rem; border-radius: 22px; background: rgba(17, 12, 10, 0.8); border: 1px solid var(--line);
}
.contact-form label { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.8rem; letter-spacing: 0.05em; color: var(--muted); }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: 400 1rem var(--sans); color: var(--text);
  background: var(--black); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.85rem 1rem; outline: none; transition: border-color 0.3s, box-shadow 0.3s; resize: vertical;
}
.contact-form select option { background: var(--black); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15); }
.contact-form .invalid { border-color: var(--red-light); }
.form-status { font-size: 0.9rem; min-height: 1.4em; color: var(--gold-light); }
.form-status.error { color: var(--red-light); }

/* Footer */
.footer { padding: 3rem clamp(1rem, 5vw, 4rem); text-align: center; border-top: 1px solid var(--line); display: grid; gap: 0.6rem; }
.footer p { color: var(--muted); font-size: 0.9rem; }
.footer .muted { font-size: 0.8rem; opacity: 0.6; }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .story { grid-template-columns: 1fr; }
  .story-visual { height: 55vh; top: 60px; z-index: 1; }
  .story-stage { width: min(80vw, 360px); }
  .story-steps { padding: 0 0 20vh; position: relative; z-index: 2; }
  .step { min-height: 70vh; justify-content: flex-end; padding-bottom: 6vh; transform: none; }
  .step > * { background: rgba(7, 5, 5, 0.82); backdrop-filter: blur(6px); }
  .step h2, .step p { padding: 0 0.4rem; }
  .step-num { font-size: 3rem; background: none; backdrop-filter: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .process-line { left: 12px; }
  .process-dot { left: 12px; }
  .process-item, .process-item.right { justify-content: flex-end; }
  .process-card { width: calc(100% - 44px); }
  .plans-grid { grid-template-columns: 1fr; max-width: 460px; }
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-form { grid-template-columns: 1fr; padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
