:root {
  --bg: #fafaf7;
  --bg-soft: #f2f1eb;
  --graphite: #171717;
  --graphite-soft: #222220;
  --ink: #171717;
  --ink-muted: #575752;
  --paper: #fafaf7;
  --paper-muted: rgba(250, 250, 247, 0.76);
  --rule: rgba(23, 23, 23, 0.12);
  --rule-light: rgba(250, 250, 247, 0.16);
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #60a5fa;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --header-h: 74px;
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Hair-thin scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 60;
  pointer-events: none;
}

/* Overlaid minimal header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 50;
  color: var(--paper);
  transition: background-color 300ms var(--ease-out), border-color 300ms var(--ease-out),
    color 300ms var(--ease-out), backdrop-filter 300ms var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background-color: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  border-bottom-color: var(--rule);
}

.header-inner {
  max-width: calc(var(--container) + var(--gutter) * 2);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-weight: 400;
  opacity: 0.78;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav a {
  opacity: 0.85;
  transition: opacity 180ms ease, color 180ms ease;
}

.site-nav a:hover {
  opacity: 1;
}

.site-nav .nav-cta {
  opacity: 1;
  padding: 8px 15px;
  border: 1px solid currentColor;
  border-radius: 6px;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-nav .nav-cta:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

/* 1. HERO — Full-bleed poster, calm left tonal area */
.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 40px) var(--gutter) clamp(52px, 8vh, 92px);
  background-color: var(--graphite);
  color: var(--paper);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.04);
  animation: heroSettle 1.8s var(--ease-out) forwards;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    96deg,
    rgba(20, 20, 19, 0.9) 0%,
    rgba(20, 20, 19, 0.72) 48%,
    rgba(20, 20, 19, 0.24) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.hero-brand,
.hero-title,
.hero-lead,
.hero-actions {
  max-width: 660px;
}

.hero-brand {
  margin: 0 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
}

.hero-brand .sep {
  color: var(--accent-soft);
}

.hero-title {
  margin: 0 0 22px;
  font-weight: 700;
  font-size: clamp(2.35rem, 4.9vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--paper);
}

.hero-lead {
  margin: 0 0 34px;
  max-width: 540px;
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  line-height: 1.6;
  color: var(--paper-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background-color: var(--accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: -0.01em;
  border-radius: 8px;
  transition: background-color 200ms ease, transform 200ms var(--ease-out);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-primary .btn-arrow {
  transition: transform 200ms var(--ease-out);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-ghost {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--paper);
  padding: 6px 0;
  border-bottom: 1px solid rgba(250, 250, 247, 0.45);
  transition: border-color 180ms ease;
}

.btn-ghost:hover {
  border-color: var(--paper);
}

[data-hero-reveal] {
  opacity: 0;
  transform: translateY(16px);
  animation: heroRise 740ms var(--ease-out) forwards;
}

[data-hero-reveal]:nth-child(1) { animation-delay: 70ms; }
[data-hero-reveal]:nth-child(2) { animation-delay: 160ms; }
[data-hero-reveal]:nth-child(3) { animation-delay: 260ms; }
[data-hero-reveal]:nth-child(4) { animation-delay: 360ms; }

@keyframes heroRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSettle {
  to {
    transform: scale(1);
  }
}

/* Shared layout */
.container {
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(76px, 10vw, 132px) 0;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow-light {
  color: var(--accent-soft);
}

.section-title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.85rem, 3.2vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* 2. SUPPORT — Two clear doors (cardless editorial split) */
.section-doors {
  border-bottom: 1px solid var(--rule);
}

.doors-head {
  max-width: 780px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.doors-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.door-col {
  padding: clamp(32px, 4vw, 52px) clamp(24px, 4vw, 48px) clamp(32px, 4vw, 52px) 0;
  display: flex;
  flex-direction: column;
}

.door-col:nth-child(2) {
  padding-left: clamp(24px, 4vw, 48px);
  padding-right: 0;
  border-left: 1px solid var(--rule);
}

.door-num {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

.door-title {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
}

.door-summary {
  margin: 0 0 24px;
  color: var(--ink-muted);
  font-size: 0.99rem;
}

.door-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.door-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.95rem;
  color: var(--ink);
}

.door-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

.door-link {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1.5px solid var(--accent);
  transition: color 180ms ease;
}

.door-link:hover {
  color: var(--accent);
}

.launch-strip {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px 48px;
  align-items: center;
}

.launch-kicker {
  margin: 0 0 4px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.launch-price {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.launch-note {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-muted);
}

.launch-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  color: var(--ink);
}

/* 3. DETAIL — Process + Parallax photograph */
.section-process {
  background-color: var(--bg-soft);
  border-bottom: 1px solid var(--rule);
}

.process-header {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.editorial-frame {
  margin: 0 0 clamp(44px, 6vw, 68px);
  aspect-ratio: 16 / 8.5;
  overflow: hidden;
  border-radius: 10px;
  background-color: #e4e3dc;
}

.editorial-frame img {
  width: 100%;
  height: 114%;
  object-fit: cover;
  object-position: center;
  transform: translate3d(0, -4%, 0) scale(1.03);
  will-change: transform;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 52px);
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.step-day {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.timeline-step h3 {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

.timeline-step p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* 4. RUBROS — Interactive index */
.rubros-head {
  max-width: 700px;
  margin-bottom: clamp(36px, 5vw, 54px);
}

.rubros-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
}

.rubros-list {
  border-top: 1px solid var(--rule);
}

.rubro-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 22px 0;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  transition: padding-left 240ms var(--ease-out);
}

.rubro-row:hover,
.rubro-row.is-active {
  padding-left: 14px;
}

.rubro-name {
  font-weight: 600;
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  letter-spacing: -0.02em;
  color: var(--ink-muted);
  transition: color 180ms ease;
}

.rubro-row.is-active .rubro-name,
.rubro-row:hover .rubro-name {
  color: var(--ink);
}

.rubro-row.is-active .rubro-name::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 11px;
  vertical-align: middle;
  transform: translateY(-2px);
}

.rubro-tag {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.rubro-detail {
  padding-top: 10px;
  border-top: 2px solid var(--ink);
}

.detail-label {
  margin: 16px 0 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.detail-summary {
  margin: 0 0 16px;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--ink);
}

.detail-outcome {
  margin: 0 0 26px;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.detail-action {
  display: inline-block;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1.5px solid var(--accent);
  transition: color 180ms ease;
}

.detail-action:hover {
  color: var(--accent);
}

/* 5. FINAL CTA — Soft graphite band */
.section-cta {
  padding: clamp(84px, 10vw, 136px) 0;
  background-color: var(--graphite);
  color: var(--paper);
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.cta-title {
  margin: 0 0 18px;
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--paper);
}

.cta-lead {
  margin: 0;
  max-width: 42ch;
  color: var(--paper-muted);
  font-size: 1.02rem;
}

.builder-label {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-muted);
}

.intent-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule-light);
}

.intent-btn {
  padding: 5px 0;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--paper-muted);
  border-bottom: 2px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.intent-btn:hover {
  color: var(--paper);
}

.intent-btn.is-selected {
  color: var(--paper);
  border-bottom-color: var(--accent-soft);
}

.message-preview {
  margin: 0 0 26px;
  padding-left: 16px;
  border-left: 2px solid var(--accent-soft);
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--paper);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.btn-large {
  padding: 15px 26px;
}

.btn-subtle-light {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--paper-muted);
  padding: 8px 2px;
  border-bottom: 1px solid var(--rule-light);
  transition: color 180ms ease, border-color 180ms ease;
}

.btn-subtle-light:hover {
  color: var(--paper);
  border-color: var(--paper);
}

.cta-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--paper-muted);
}

.cta-meta a {
  color: var(--paper);
  border-bottom: 1px solid var(--rule-light);
}

.cta-meta a:hover {
  border-color: var(--accent-soft);
}

/* Footer */
.site-footer {
  background-color: var(--graphite);
  color: var(--paper-muted);
  border-top: 1px solid var(--rule-light);
  padding: 26px 0;
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer-brand,
.footer-meta {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .doors-grid,
  .launch-strip,
  .rubros-layout,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .door-col {
    padding: 32px 0;
  }

  .door-col:nth-child(2) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .editorial-frame {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 66px;
  }

  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding-bottom: 44px;
  }

  .hero-scrim {
    background: linear-gradient(
      180deg,
      rgba(20, 20, 19, 0.45) 0%,
      rgba(20, 20, 19, 0.74) 48%,
      rgba(20, 20, 19, 0.94) 100%
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media img,
  [data-hero-reveal],
  [data-reveal] {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
