:root {
  --paper: #f4f1ec;
  --text: #f6f2ec;
  --ink: #2f2b28;
  --muted: rgba(246, 242, 236, 0.74);
  --muted-strong: rgba(246, 242, 236, 0.92);
  --clay: #b7a390;
  --clay-dark: #8f7a66;
  --rosewood: #8d665d;
  --slate: #566979;
  --sage: #536558;
  --warm: #ffd6a6;
  --glass: rgba(255, 255, 255, 0.10);
  --glass-strong: rgba(255, 255, 255, 0.16);
  --glass-line: rgba(255, 255, 255, 0.26);
  --shadow: 0 30px 80px rgba(10, 8, 6, 0.45);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 5.25rem; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.7;
  background: #0c0a09;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  padding: 0.7rem 1rem; border-radius: 999px;
  background: var(--warm); color: var(--ink); font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--warm);
  outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(255, 214, 166, 0.18);
}

/* WebGL stage stays alive behind everything */
.webgl-stage {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  background:
    linear-gradient(132deg, rgba(141, 102, 93, 0.24), rgba(141, 102, 93, 0) 42%),
    linear-gradient(224deg, rgba(86, 105, 121, 0.18), rgba(86, 105, 121, 0) 46%),
    linear-gradient(180deg, #15110f 0%, #0c0a09 52%, #070605 100%);
}
.webgl-stage::before {
  content: "";
  position: absolute;
  inset: -14%;
  pointer-events: none;
  background:
    conic-gradient(from 135deg at 50% 48%, rgba(244, 234, 220, 0.08), rgba(141, 102, 93, 0.16), rgba(83, 101, 88, 0.1), rgba(86, 105, 121, 0.14), rgba(244, 234, 220, 0.08));
  filter: blur(34px);
  opacity: 0.62;
  transform: scale(1.04);
  animation: stage-fallback-drift 18s ease-in-out infinite alternate;
  will-change: transform;
}
#aurora {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.72s ease;
}
body.stage-ready #aurora {
  opacity: 1;
}

@keyframes stage-fallback-drift {
  from { transform: scale(1.04) rotate(0deg); }
  to { transform: scale(1.1) rotate(4deg); }
}

@media (prefers-reduced-motion: reduce) {
  .webgl-stage::before { animation: none; }
  #aurora { transition: none; }
}

body.motion-reduced {
  scroll-behavior: auto;
}
body.motion-reduced .webgl-stage::before,
body.motion-reduced .ambient .blob,
body.motion-reduced .scroll-cue .dot::after {
  animation: none !important;
}
body.motion-reduced #aurora,
body.motion-reduced .reveal,
body.motion-reduced .hero-inner {
  transition: none !important;
}
body.motion-reduced .reveal,
body.motion-reduced .hero-inner {
  opacity: 1 !important;
  transform: none !important;
}

.stage-veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(12, 10, 9, 0) 40%, rgba(12, 10, 9, 0.55) 100%),
    linear-gradient(180deg, rgba(12, 10, 9, 0.28), rgba(12, 10, 9, 0.05) 30%, rgba(12, 10, 9, 0.4) 100%);
}

/* Floating ambient orbs (CSS, decorative) */
.ambient { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.ambient .blob {
  position: absolute; border-radius: 50%; filter: blur(50px); opacity: 0.5; mix-blend-mode: screen;
  will-change: transform;
}
.ambient .b1 { width: 36vw; height: 36vw; left: -6vw; top: 8vh; background: var(--rosewood); animation: float1 18s ease-in-out infinite; }
.ambient .b2 { width: 30vw; height: 30vw; right: -4vw; top: 30vh; background: var(--slate); animation: float2 22s ease-in-out infinite; }
.ambient .b3 { width: 26vw; height: 26vw; left: 30vw; bottom: -8vh; background: var(--sage); animation: float1 26s ease-in-out infinite reverse; }

@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(4vw,-3vh) scale(1.08); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-3vw,4vh) scale(1.1); } }

/* Content sits above the stage */
.content { position: relative; z-index: 2; }

.container { width: min(calc(100% - 2.4rem), var(--max)); margin: 0 auto; }
.container.narrow { max-width: 820px; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(18, 15, 13, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, transform 0.4s ease;
}
.nav { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-name { font-family: var(--serif); font-size: clamp(1.25rem, 2.1vw, 1.65rem); font-weight: 600; color: #fff5e8; letter-spacing: 0.01em; }
.brand-affiliation { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--clay); }
.nav-links { display: flex; align-items: center; gap: 1.15rem; }
.nav-links a { font-size: 0.86rem; color: var(--muted); transition: color 0.2s ease; }
.nav-links a:hover { color: #fff; }
.motion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 40px;
  min-width: 128px;
  padding: 0.55rem 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--muted-strong);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.motion-toggle:hover,
.motion-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 214, 166, 0.54);
  color: #fff5e8;
}
.motion-toggle[aria-pressed="true"] {
  background: rgba(255, 214, 166, 0.16);
  border-color: rgba(255, 214, 166, 0.68);
  color: #fff5e8;
}
.motion-toggle-dot {
  width: 0.72rem;
  height: 0.72rem;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
}
.motion-toggle[aria-pressed="true"] .motion-toggle-dot {
  background: var(--warm);
  box-shadow: 0 0 0 4px rgba(255, 214, 166, 0.14);
}
.nav-cta {
  padding: 0.5rem 1rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--warm), var(--clay));
  color: var(--ink) !important; font-weight: 700;
}
.nav-toggle { display: none; }

.sticky-bottleneck-cta {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.82rem 1.25rem;
  border: 1px solid rgba(255, 226, 184, 0.62);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--warm), var(--clay));
  color: var(--ink);
  box-shadow: 0 18px 48px rgba(255, 214, 166, 0.26), 0 14px 34px rgba(0, 0, 0, 0.24);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: none;
  transition: opacity 0.2s ease, box-shadow 0.2s ease, visibility 0.2s ease;
  visibility: hidden;
}
.sticky-bottleneck-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  visibility: visible;
}
.sticky-bottleneck-cta.is-visible:hover,
.sticky-bottleneck-cta.is-visible:focus-visible {
  box-shadow: 0 24px 58px rgba(255, 214, 166, 0.34), 0 16px 38px rgba(0, 0, 0, 0.28);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; border: 1px solid transparent; transition: box-shadow 0.25s ease, background 0.25s ease;
}
.btn-ai-icon {
  display: inline-grid;
  place-items: center;
  width: 1.08rem;
  height: 1.08rem;
  flex: 0 0 auto;
}
.btn-ai-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}
.btn-primary { background: linear-gradient(135deg, var(--warm), var(--clay)); color: var(--ink); box-shadow: 0 14px 34px rgba(255, 214, 166, 0.22); }
.btn-primary:hover { box-shadow: 0 20px 46px rgba(255, 214, 166, 0.34); }
.btn-ghost { background: var(--glass); color: #fff; border-color: var(--glass-line); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--glass-strong); }

/* Glass panel */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  box-shadow: var(--shadow);
}

/* Section rhythm */
.chapter { position: relative; padding: clamp(5rem, 12vh, 9rem) 0; scroll-margin-top: 5.25rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.74rem; color: var(--clay); font-weight: 700; }
.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.05; margin: 0.5rem 0 0.8rem; }
.section-head .lead { color: var(--muted); font-size: 1.05rem; }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 6rem; }
.hero-inner { max-width: 760px; }
.hero .eyebrow { margin-bottom: 1rem; }
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: 1.0; letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--warm); font-style: italic; }
.hero .lead { margin: 1.4rem 0 2rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted-strong); max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.social-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; align-items: center; }
.badge { padding: 0.35rem 0.85rem; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); font-size: 0.8rem; color: var(--muted-strong); }
.scroll-cue { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.4rem; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; }
.scroll-cue .dot { width: 22px; height: 36px; border: 1px solid var(--glass-line); border-radius: 999px; position: relative; }
.scroll-cue .dot::after { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; border-radius: 999px; background: var(--warm); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.card { padding: 1.7rem; border-radius: var(--radius); }
.card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; align-items: stretch; }
.price-card { padding: 1.9rem; display: flex; flex-direction: column; gap: 0.9rem; position: relative; }
.price-card.featured { outline: 1px solid var(--warm); box-shadow: 0 30px 80px rgba(255, 214, 166, 0.18); }
.ribbon { position: absolute; top: -0.7rem; right: 1.4rem; background: var(--warm); color: var(--ink); font-size: 0.72rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 999px; }
.price { font-family: var(--serif); font-size: 2rem; }
.price span { color: var(--warm); }
.price-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.price-list li { padding-left: 1.4rem; position: relative; font-size: 0.92rem; color: var(--muted-strong); }
.price-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--clay); }
.price-card .btn { margin-top: auto; }
.maintenance { margin-top: 1.3rem; padding: 1.8rem; display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.4rem; align-items: center; }
.maintenance .price { font-size: 1.6rem; }

/* Showcases */
.showcase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem; }
.showcase-card { padding: 0; border-radius: var(--radius); overflow: hidden; transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease; }
.showcase-card:hover { transform: translateY(-6px); border-color: rgba(255, 214, 166, 0.42); background: var(--glass-strong); }
.showcase-feature { min-height: 430px; }
.showcase-visual { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: rgba(255, 255, 255, 0.08); }
.showcase-feature .showcase-visual { aspect-ratio: 16 / 10; }
.showcase-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 10, 9, 0) 42%, rgba(12, 10, 9, 0.58) 100%);
  pointer-events: none;
}
.showcase-thumbnail-title {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1rem;
  z-index: 1;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}
.showcase-card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.01); transition: transform 0.55s ease, filter 0.35s ease; }
.showcase-card:hover img { transform: scale(1.06); filter: saturate(1.06) contrast(1.02); }
.showcase-copy { padding: 1.45rem; display: flex; flex-direction: column; gap: 0.65rem; }
.showcase-card .eyebrow { color: var(--clay); }
.showcase-card h3 { font-size: clamp(1.18rem, 2vw, 1.45rem); line-height: 1.1; }
.showcase-card p { color: var(--muted); font-size: 0.94rem; }
.outcome-list { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.15rem; }
.outcome-list span { border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.08); border-radius: 999px; padding: 0.32rem 0.62rem; color: var(--muted-strong); font-size: 0.72rem; font-weight: 700; }
.showcase-card .link { display: inline-block; margin-top: 1rem; color: var(--warm); font-weight: 600; font-size: 0.9rem; }

/* Founding Five */
.founding-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: start; }
.founding-points { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.6rem; }
.founding-points > div { display: flex; gap: 1rem; align-items: flex-start; }
.founding-points span { font-family: var(--serif); font-size: 1.5rem; color: var(--warm); min-width: 2rem; }
.founding-form { padding: clamp(1.35rem, 3vw, 1.9rem); display: flex; flex-direction: column; gap: 1rem; }
.form-intro p:not(.eyebrow) { color: var(--muted); font-size: 0.9rem; margin-top: 0.35rem; max-width: 56ch; }
.form-required-note {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.62rem 0.78rem;
  border: 1px solid rgba(255, 214, 166, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(255, 214, 166, 0.08);
  color: var(--muted-strong) !important;
}
.form-required-note span,
.required-label {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0.15rem 0.46rem;
  border-radius: 999px;
  background: rgba(255, 214, 166, 0.16);
  color: var(--warm);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}
.form-error-summary {
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255, 177, 143, 0.42);
  border-radius: var(--radius-sm);
  background: rgba(255, 117, 91, 0.1);
  color: #ffd9cf;
  font-size: 0.88rem;
}
.form-error-summary strong { display: block; color: #ffe8e2; margin-bottom: 0.25rem; }
.form-error-summary ul { margin: 0.35rem 0 0 1.15rem; color: #ffd9cf; }
.form-section { border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius-sm); padding: 1rem; background: rgba(0, 0, 0, 0.12); display: flex; flex-direction: column; gap: 0.9rem; }
.form-step { display: flex; align-items: center; gap: 0.65rem; color: var(--muted-strong); }
.form-step span { display: inline-flex; align-items: center; justify-content: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: rgba(255, 214, 166, 0.14); color: var(--warm); font-family: var(--serif); font-weight: 600; }
.form-step strong { font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.84rem; color: var(--muted-strong); }
.label-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.42rem; }
input, select, textarea {
  font-family: inherit; font-size: 0.95rem; color: #fff;
  padding: 0.7rem 0.85rem; border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22); border: 1px solid var(--glass-line);
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.4); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--warm); outline-offset: 2px; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: rgba(255, 177, 143, 0.82);
  box-shadow: 0 0 0 2px rgba(255, 117, 91, 0.14);
}
.field-error {
  color: #ffd9cf;
  font-size: 0.78rem;
  line-height: 1.45;
}
select option { color: #111; }
.checkbox-label { flex-direction: row; align-items: flex-start; gap: 0.6rem; font-size: 0.82rem; }
.checkbox-label .field-error { flex-basis: 100%; margin-left: 1.55rem; }
.checkbox-label input {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}
.form-honey { position: absolute; left: -9999px; }
.form-status { font-size: 0.88rem; color: var(--warm); min-height: 1.2em; }
.form-note { font-size: 0.78rem; color: var(--muted); }
.full { grid-column: 1 / -1; }

/* Contact */
.contact-card { padding: 2rem; text-align: center; display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }
.contact-card .name { font-family: var(--serif); font-size: 1.6rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1rem; justify-content: center; }

/* Footer */
.site-footer { position: relative; z-index: 2; padding: 3rem 0; border-top: 1px solid rgba(255,255,255,0.08); background: rgba(12,10,9,0.5); backdrop-filter: blur(8px); }
.footer-wrap { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; color: var(--muted); font-size: 0.85rem; }
.footer-wrap nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-wrap nav a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

/* Scroll progress bar */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); z-index: 60; background: linear-gradient(90deg, var(--warm), var(--rosewood), var(--slate)); }

/* Reveal animation base. Content stays visible before motion libraries load. */
.reveal { opacity: 1; transform: none; }

/* Confirmation modal */
.modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.modal[hidden] { display: none; }
body.modal-open { overflow: hidden; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8,6,5,0.7); backdrop-filter: blur(6px); }
.modal-dialog { position: relative; max-width: 460px; padding: 2.2rem; text-align: center; }
.modal-dialog h2 { font-family: var(--serif); font-size: 1.8rem; margin: 0.4rem 0 0.8rem; }
.modal-close { position: absolute; top: 0.8rem; right: 1rem; background: none; border: none; color: var(--muted); font-size: 1.6rem; cursor: pointer; }
.modal-actions { display: flex; gap: 0.8rem; justify-content: center; margin-top: 1.4rem; }

/* ===== Act 2: the capabilities engine (scroll-driven dive) ===== */
/* Tall section gives the pinned orb room to scroll through (6 faces). */
.engine { position: relative; z-index: 2; height: 680vh; }

/* Source content; JS reparents each card into the CSS 3D layer. */
#face-cards { display: none; }

/* CSS 3D layer: shares the orb's camera so cards sit ON the gem faces. */
.css3d-layer { position: fixed; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.css3d-layer > div { pointer-events: none; }

.face-card {
  --facet-clip: polygon(50% 2%, 96.5% 36.5%, 79% 95%, 21% 95%, 3.5% 36.5%);
  --facet-glow: rgba(255, 214, 166, 0.26);
  --facet-bloom: 0;
  --glint-opacity: 0;
  --glint-x: -38%;
  --copy-opacity: 0;
  --copy-y: 14px;
  --copy-blur: 8px;
  --desc-opacity: 0;
  --desc-y: 12px;
  --desc-blur: 7px;
  --content-lift: 0px;
  width: 640px;
  height: 620px;
  box-sizing: border-box;
  padding: 94px 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  opacity: 0;
  will-change: opacity;
  pointer-events: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  font-family: var(--sans);
  color: var(--text);
  clip-path: var(--facet-clip);
  background: transparent;
  box-shadow: none;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  transform-style: preserve-3d;
}
.face-card::before,
.face-card::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: var(--facet-clip);
  pointer-events: none;
  display: block;
}
.face-card::before {
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 34%, rgba(255, 226, 184, 0.24), transparent 44%),
    linear-gradient(116deg, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(296deg, rgba(255, 214, 166, 0.12), transparent 38%);
  mix-blend-mode: screen;
  opacity: var(--facet-bloom);
}
.face-card::after {
  z-index: 3;
  inset: -10% -38%;
  background: linear-gradient(104deg, transparent 38%, rgba(255, 242, 214, 0.0) 44%, rgba(255, 235, 196, 0.42) 50%, rgba(255, 242, 214, 0.0) 56%, transparent 62%);
  mix-blend-mode: screen;
  opacity: var(--glint-opacity);
  transform: translateX(var(--glint-x));
  will-change: opacity, transform;
}
.face-card .fc-name,
.face-card .fc-desc {
  position: relative;
  z-index: 1;
}
.face-card .fc-name {
  opacity: var(--copy-opacity);
  transform: translateY(calc(var(--copy-y) + var(--content-lift)));
  transform-origin: center;
  filter: blur(var(--copy-blur));
  will-change: opacity, transform, filter;
}
.face-card .fc-name { width: 100%; min-height: 146px; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 60px; line-height: 0.96; margin: 0; max-width: 520px; color: #fff5e8; text-align: center; text-wrap: balance; text-shadow: 0 6px 26px rgba(0, 0, 0, 0.58); }
.face-card .fc-desc { color: rgba(246, 242, 236, 0.9); font-size: 20px; line-height: 1.36; margin: 0 auto; max-width: 450px; text-wrap: balance; opacity: var(--desc-opacity); transform: translateY(calc(var(--desc-y) + var(--content-lift))); transform-origin: center; filter: blur(var(--desc-blur)); will-change: opacity, transform, filter; }
.face-card .fc-desc-mobile { display: none; }
.face-card.is-front { pointer-events: auto; }

/* engine HUD: capability index dots */
.engine-hud {
  position: fixed; top: 50%; right: 1.6rem; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.7rem;
  z-index: 40; opacity: 0; transition: opacity 0.4s ease; pointer-events: none;
}
.engine-hud.visible { opacity: 1; }
.hud-row { display: flex; align-items: center; gap: 0.55rem; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.04em; }
.hud-row .hud-name { opacity: 0; transform: translateX(6px); transition: opacity 0.3s ease, transform 0.3s ease; white-space: nowrap; }
.hud-row.active .hud-name { opacity: 1; transform: translateX(0); color: var(--muted-strong); }
.hud-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(246,242,236,0.28); transition: transform 0.3s ease, background 0.3s ease; }
.hud-row.active .hud-dot { background: var(--warm); transform: scale(1.5); }

@media (max-width: 900px) {
  .engine-hud { display: none; }
  .face-card {
    --content-lift: -26px;
    width: min(430px, 112vw);
    height: min(430px, 78vh);
    padding: 46px 24px;
    gap: 8px;
  }
  .face-card .fc-name {
    min-height: 132px;
    font-size: clamp(2.42rem, 10.8vw, 2.92rem);
    line-height: 0.92;
    max-width: min(350px, calc(100vw - 48px));
    white-space: normal;
    text-wrap: balance;
  }
  .face-card .fc-desc {
    font-size: clamp(1.58rem, 6.25vw, 1.78rem);
    line-height: 1.08;
    max-width: min(330px, calc(100vw - 60px));
    text-wrap: nowrap;
  }
  .face-card .fc-desc-desktop {
    display: none;
  }
  .face-card .fc-desc-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .face-card .fc-desc-line {
    display: block;
    white-space: nowrap;
  }
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 900px) and (hover: none) and (pointer: coarse) {
    .face-card {
      --content-lift: -54px;
    }
  }
}

/* Screen-reader only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Capabilities gem orbiting labels */
.cap-orbit { position: fixed; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.cap-label {
  position: absolute; top: 0; left: 0; transform: translate3d(-50%, -50%, 0);
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.8rem; border-radius: 999px;
  background: rgba(18, 14, 12, 0.52);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
  font-size: 0.8rem; font-weight: 600; color: var(--muted-strong);
  white-space: nowrap; will-change: transform, opacity;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}
.cap-label svg { width: 16px; height: 16px; flex: none; stroke: var(--warm); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cap-label .lab-main { line-height: 1.05; }
.cap-label .lab-sub { display: block; font-weight: 500; color: var(--muted); font-size: 0.66rem; letter-spacing: 0.02em; }

@media (max-width: 820px) {
  .cap-orbit { display: none; }
  .cap-label { font-size: 0.62rem; padding: 0.3rem 0.55rem; gap: 0.35rem; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28); }
  .cap-label svg { width: 12px; height: 12px; }
  .cap-label .lab-sub { font-size: 0.56rem; }
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .card-grid, .pricing-grid, .showcase-grid, .founding-grid, .maintenance, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .card-grid > *, .pricing-grid > *, .showcase-grid > *, .founding-grid > *, .maintenance > *, .form-grid > * { min-width: 0; }
  .hero { min-height: 100svh; align-items: flex-start; padding-top: 7.2rem; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.4rem); max-width: 9ch; }
  .hero .lead { max-width: 23rem; }
  .showcase-feature { min-height: 0; }
  .showcase-copy { padding: 1.25rem; }
  .form-section { padding: 0.9rem; }
}

@media (max-width: 520px) {
  .container { width: auto; max-width: none; margin-left: 1rem; margin-right: 1rem; }
  .site-header { background: rgba(18, 15, 13, 0.58); }
  .nav { min-height: 66px; }
  .brand-name { font-size: 1.28rem; }
  .brand-affiliation { font-size: 0.52rem; letter-spacing: 0.13em; }
  .motion-toggle {
    min-width: 44px;
    width: 44px;
    min-height: 44px;
    padding: 0;
  }
  .motion-toggle [data-motion-toggle-label] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .sticky-bottleneck-cta {
    left: 1rem;
    right: 1rem;
    bottom: max(0.85rem, env(safe-area-inset-bottom));
    min-height: 56px;
    padding: 0.95rem 1rem;
    font-size: 0.95rem;
  }
  .scroll-cue { bottom: 5.7rem; }
  .btn { width: 100%; min-height: 54px; }
  .hero-actions { max-width: 280px; }
  .social-row { max-width: 285px; }
  .showcase-grid { gap: 1rem; }
  .showcase-visual,
  .showcase-feature .showcase-visual { aspect-ratio: 4 / 3; }
  .outcome-list span { font-size: 0.68rem; }
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ambient .blob, .scroll-cue .dot::after { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
