/* ==========================================================================
   Sylently — styles
   ----------------------------------------------------------------------
   Brand: motion that ships. Calm, refined, magazine. Warm off-white
   background, deep ink type, a single accent (deep teal). Generous
   whitespace, large serif headlines, tight mono accents.

   This file is the Sylently rebrand of the NSPP embed — same iframe
   + scene registry, different visual identity. The styles override
   NSPP's chrome by injecting CSS into the iframe body (see picker JS).
   ========================================================================== */

:root {
  /* ---- Color palette ------------------------------------------------
     Three tones: light (default), ink (dark sections), light-text
     (dark sections where the iframe is light). One accent, used
     sparingly — never on buttons, only on a single word in a
     headline or a hairline rule. */
  --bg:           #f5f3ee;
  --bg-soft:      #ece8df;
  --ink:          #0a0a0a;
  --ink-soft:     #1a1a1a;
  --ink-mid:      #4a4154;
  --ink-dim:      #80766e;
  --ink-faint:    #b8b0a4;
  --line:         rgba(10, 10, 10, 0.10);
  --line-strong:  rgba(10, 10, 10, 0.22);
  --accent:       #1a4d4d;   /* deep teal — used once per page */
  --accent-soft:  rgba(26, 77, 77, 0.08);

  /* When the iframe is showing a bright scene (tone=light in registry),
     the page theme flips so type stays readable. */
  --bg-dark:      #0a0a0a;
  --ink-dark:     #f5f3ee;
  --ink-mid-dark: #a8a099;
  --line-dark:    rgba(245, 243, 238, 0.12);

  --serif: "Fraunces", "Times New Roman", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.theme-light iframe#stage {
  /* When the iframe shows a bright scene, invert this and set theme-dark */
  mix-blend-mode: normal;
}

/* Theme inversion: when the user picks a bright scene from the registry
   (tone=light), JS adds [data-theme="dark"] on <html>. Below: dark
   background, light type. The transition is a 0.5s cross-fade so it
   doesn't feel jarring. */
html[data-theme="dark"] {
  --bg:       var(--bg-dark);
  --ink:      var(--ink-dark);
  --ink-mid:  var(--ink-mid-dark);
  --line:     var(--line-dark);
  background: var(--bg);
  color: var(--ink);
}

/* ==========================================================================
   Stage (iframe) — fixed full-viewport behind everything
   ========================================================================== */
#stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  border: 0;
  z-index: 0;
  pointer-events: none;
  /* Slight contrast bump so the type over the shader reads cleanly. */
  filter: contrast(1.05) saturate(1.05);
}

#boot-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
#boot-gate p {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0;
}
#boot-gate.show { opacity: 1; pointer-events: auto; }
.boot-mark {
  width: 32px; height: 32px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  position: relative;
  animation: boot-spin 2s linear infinite;
}
.boot-mark::before {
  content: "";
  position: absolute;
  top: -2px; left: 50%;
  width: 6px; height: 6px;
  margin-left: -3px;
  background: var(--ink);
  border-radius: 50%;
}
@keyframes boot-spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(245, 243, 238, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background 0.5s, border-color 0.5s;
}
html[data-theme="dark"] .nav {
  background: rgba(10, 10, 10, 0.72);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--sans);
}
.brand-mark {
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.brand-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
  animation: brand-pulse 3s ease-in-out infinite;
}
@keyframes brand-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%      { transform: scale(1.4); opacity: 1; }
}
.brand-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand-tag {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  padding-left: 10px;
  margin-left: 4px;
  border-left: 1px solid var(--line);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--bg);
  background: var(--ink);
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); }

@media (max-width: 720px) {
  .nav { padding: 14px 18px; }
  .nav-links { display: none; }
  .brand-tag { display: none; }
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
}
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }

code, .mono {
  font-family: var(--mono);
  font-size: 0.92em;
}

p { margin: 0 0 1em; }

em.hero-accent, em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 32px 80px;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  margin: 0 0 36px;
}
.eyebrow-line {
  display: inline-block;
  width: 48px;
  height: 1px;
  background: var(--ink);
  opacity: 0.4;
}
.hero-h1 {
  font-size: clamp(64px, 11vw, 168px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 400;
  margin: 0 0 32px;
  color: var(--ink);
}
.hero-italic {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.hero-accent {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.hero-lede {
  max-width: 620px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-mid);
  margin: 0 0 40px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  margin: 0 0 40px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  margin: 0;
}
.hero-meta .dot { color: var(--ink-faint); }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  margin: 0;
}
.scroll-arrow {
  display: inline-block;
  margin-right: 8px;
  animation: scroll-bounce 1.6s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* ==========================================================================
   Sections — shared
   ========================================================================== */
section {
  position: relative;
  z-index: 1;
  padding: 140px 32px;
  border-top: 1px solid var(--line);
}
.section-head {
  max-width: 1100px;
  margin: 0 auto 80px;
}
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  margin: 0 0 24px;
}
.section-title {
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  max-width: 18ch;
}
.section-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-mid);
  max-width: 56ch;
  margin: 0;
}

/* ==========================================================================
   Manifesto (three pillars)
   ========================================================================== */
.pillars {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pillar {
  background: var(--bg);
  padding: 48px 36px 56px;
}
.pillar-num {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  margin-bottom: 32px;
}
.pillar-title {
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.pillar-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-mid);
  margin: 0;
}
.pillar-body code {
  display: inline-block;
  padding: 2px 6px;
  font-size: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 4px;
}
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Showroom
   ========================================================================== */
.marquee {
  max-width: 1100px;
  margin: 0 auto 64px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  animation: marquee-scroll 36s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.marquee-sep {
  color: var(--ink-faint);
  font-size: 32px;
}
@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}

.tiles {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tile {
  position: relative;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 32px 28px 36px;
  border-radius: 4px;
  font-family: var(--sans);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s, background 0.3s;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.tile:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.tile:hover .tile-num,
.tile:hover .tile-sub { color: rgba(245, 243, 238, 0.6); }
.tile-num {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.3s;
}
.tile-title {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  font-weight: 500;
}
.tile-sub {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  margin: 0;
  transition: color 0.3s;
}
@media (max-width: 900px) {
  .tiles { grid-template-columns: 1fr; }
}

.showroom-cta {
  max-width: 1100px;
  margin: 48px auto 0;
  text-align: center;
}
.showroom-cta a {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.showroom-cta a:hover { color: var(--accent); border-color: var(--accent); }

/* ==========================================================================
   How (four steps)
   ========================================================================== */
.how-steps {
  max-width: 1100px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.how-steps li {
  padding: 36px 28px 36px 0;
  border-right: 1px solid var(--line);
  counter-increment: step;
}
.how-steps li:last-child { border-right: 0; }
.how-steps li:nth-child(n+2) { padding-left: 28px; }
.how-num {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  margin-bottom: 24px;
}
.how-steps h3 {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  margin: 0 0 12px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.how-steps p {
  font-size: 14px;
  color: var(--ink-mid);
  margin: 0;
  line-height: 1.55;
}
@media (max-width: 900px) {
  .how-steps { grid-template-columns: 1fr; }
  .how-steps li { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 0 !important; }
  .how-steps li:last-child { border-bottom: 0; }
}

/* ==========================================================================
   Numbers
   ========================================================================== */
.numbers-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.number {
  padding: 48px 28px;
  border-right: 1px solid var(--line);
}
.number:last-child { border-right: 0; }
.number-val {
  font-family: var(--serif);
  font-size: clamp(56px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
  font-weight: 400;
}
.number-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink);
  margin-bottom: 6px;
}
.number-sub {
  font-size: 13px;
  color: var(--ink-dim);
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .number { border-right: 0; border-bottom: 1px solid var(--line); }
  .number:nth-child(2n) { border-right: 0; }
  .number:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ==========================================================================
   Code
   ========================================================================== */
.code-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.code-card {
  background: var(--ink);
  color: #f5f3ee;
  border-radius: 6px;
  padding: 24px 28px 28px;
  overflow: hidden;
}
.code-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(245, 243, 238, 0.5);
  margin: 0 0 16px;
}
.code-block {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #f5f3ee;
  overflow-x: auto;
  white-space: pre;
}
.code-block .c-tag  { color: #ec8a73; }
.code-block .c-attr { color: #c8a2ff; }
.code-block .c-str  { color: #b8d49a; }
.code-block .c-kw   { color: #ec8a73; font-style: italic; }
.code-block .c-var  { color: #f5f3ee; }
.code-block .c-fn   { color: #7dd3d8; }
.code-block .c-num  { color: #e8a55a; }
.code-block .c-cmt  { color: rgba(245, 243, 238, 0.45); font-style: italic; }
@media (max-width: 900px) {
  .code-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.price {
  padding: 40px 32px 44px;
  border-right: 1px solid var(--line);
  background: var(--bg);
}
.price:last-child { border-right: 0; }
.price-feature {
  background: var(--ink);
  color: var(--bg);
}
.price-name {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin: 0 0 24px;
  color: var(--ink-dim);
}
.price-feature .price-name { color: rgba(245, 243, 238, 0.6); }
.price-amount {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 400;
}
.price-period {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 6px 0 32px;
}
.price-feature .price-period { color: rgba(245, 243, 238, 0.5); }
.price-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}
.price-list li {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.price-feature .price-list li { border-top-color: rgba(245, 243, 238, 0.12); }
.price-list li:last-child { border-bottom: 1px solid var(--line); }
.price-feature .price-list li:last-child { border-bottom-color: rgba(245, 243, 238, 0.12); }
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .price { border-right: 0; border-bottom: 1px solid var(--line); }
  .price:last-child { border-bottom: 0; }
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.cta-final {
  position: relative;
  z-index: 1;
  padding: 160px 32px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.cta-title {
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}
.cta-sub {
  font-size: 18px;
  color: var(--ink-mid);
  max-width: 56ch;
  margin: 0 auto 40px;
}
.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.cta-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
}
.cta-bullets li::before {
  content: "— ";
  color: var(--ink-faint);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: var(--ink-dark);
  padding: 80px 32px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto 64px;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 64px;
}
.footer-brand .brand-mark .brand-dot {
  background: var(--ink-dark);
}
.footer-brand .brand-name { color: var(--ink-dark); font-size: 32px; }
.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  margin: 12px 0 0;
  color: rgba(245, 243, 238, 0.7);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-head {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(245, 243, 238, 0.5);
  margin: 0 0 16px;
}
.footer-col a, .footer-col span {
  display: block;
  color: var(--ink-dark);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.footer-col a:hover { opacity: 1; }
.footer-strip {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 243, 238, 0.12);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(245, 243, 238, 0.5);
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Picker (bottom-right floating)
   ========================================================================== */
.picker {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: auto;
}
.picker-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  background: rgba(245, 243, 238, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.picker-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s;
}
.picker-trigger:hover { transform: translateY(-1px); }
.picker-caret { display: inline-block; }

.picker-panel {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 360px;
  max-width: calc(100vw - 48px);
  max-height: 70vh;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: auto;
}
.picker-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 12px 14px;
  border-bottom: 1px solid var(--line);
}
.picker-search {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  padding: 4px 0;
}
.picker-search::placeholder { color: var(--ink-faint); }
.picker-close {
  background: transparent;
  border: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.picker-close:hover { background: var(--accent-soft); color: var(--ink); }
.picker-options {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
}
.picker-option {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: var(--sans);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s;
}
.picker-option:hover { background: var(--accent-soft); }
.picker-option.is-highlighted { background: var(--accent-soft); outline: 1px solid var(--accent); outline-offset: -1px; }
.picker-option.is-current::before {
  content: "●";
  margin-right: 8px;
  color: var(--accent);
}
.picker-option-title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.picker-option-sub {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  white-space: nowrap;
}
.picker-empty {
  padding: 24px 16px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.picker-foot {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}
.picker-opacity {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
}
.picker-opacity-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 2px;
  background: var(--line-strong);
  border-radius: 1px;
}
.picker-opacity-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
  border: 2px solid var(--bg);
}
.picker-opacity-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
  border: 2px solid var(--bg);
}
.picker-opacity-val { min-width: 36px; text-align: right; }

@media (max-width: 720px) {
  .picker { bottom: 18px; right: 18px; left: 18px; align-items: stretch; }
  .picker-panel { width: auto; max-width: none; right: auto; left: 0; }
  .picker-trigger { width: 100%; justify-content: center; }
  .picker-close { display: none; }
}


/* ==========================================================================
   FEATURED SCENES — 10 of the best
   Each .feature section is a full-viewport slice with its own NSPP scene
   running in the background iframe. Off-screen iframes are auto-paused by
   the browser (display: none on a container), so the GPU only renders
   the active section.
   ========================================================================== */
.feature {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.feature-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.feature-bg-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  /* Slight color treatment to keep text legible without a heavy scrim */
  filter: saturate(1.05) brightness(0.95) contrast(1.02);
}
.feature-bg-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(245, 243, 238, 0.55) 0%,
    rgba(245, 243, 238, 0.18) 38%,
    rgba(245, 243, 238, 0.0) 60%
  );
  pointer-events: none;
}
/* For sections where the user might want a darker treatment, override
   per-section via .feature-dark class. For now we use the warm cream
   palette to match the rest of Sylently. */
.feature-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 80px 56px;
  margin-left: 0;
}
@media (min-width: 1100px) {
  .feature-inner {
    margin-left: max(0px, calc(50vw - 720px));
  }
}
@media (max-width: 720px) {
  .feature-inner { padding: 60px 28px; }
}
.feature-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft, #6b6258);
  margin: 0 0 28px;
}
.feature-divider {
  opacity: 0.5;
}
.feature-headline {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.022em;
  margin: 0 0 32px;
  color: var(--ink, #0a0a0a);
}
.feature-headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent, #c75a2a);
}
.feature-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft, #3a342a);
  max-width: 38ch;
  margin: 0 0 28px;
}
.feature-tagline {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute, #8a826f);
  margin: 0 0 36px;
  max-width: 36ch;
}
.feature-cta {
  margin: 0;
}
.feature-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--ink, #0a0a0a);
  border-radius: 99px;
  background: transparent;
  color: var(--ink, #0a0a0a);
  font: 500 13px/1 var(--mono, monospace);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(.2, .7, .2, 1);
}
.feature-cta .btn:hover {
  background: var(--ink, #0a0a0a);
  color: var(--bg, #f5f3ee);
  transform: translateY(-1px);
}

/* Featured intro (the section heading that introduces the 10) */
.featured-intro {
  max-width: 1100px;
  margin: 0 auto;
  padding: 140px 32px 80px;
  text-align: left;
}
.featured-intro .section-lede {
  max-width: 60ch;
  margin-top: 16px;
  color: var(--ink-soft, #6b6258);
  font-size: 18px;
  line-height: 1.55;
}

/* On a feature section: hide the global fixed iframe (the one with
   the hero/manifesto scene). The feature's own iframe takes over. */
body.in-feature #stage { opacity: 0; }
#stage { transition: opacity 0.5s ease; }

/* Featured-scenes progress rail (right edge) */
.feature-rail {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 99px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.6s ease;
}
body.in-feature .feature-rail { opacity: 1; }
.feature-rail a {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
}
.feature-rail a:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: scale(1.2);
}
.feature-rail a.active {
  background: var(--accent, #c75a2a);
  transform: scale(1.5);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent, #c75a2a) 50%, transparent);
}
@media (max-width: 720px) {
  .feature-rail { display: none; }
}


/* ==========================================================================
   SNAP-SCROLL
   One full-viewport panel per swipe. Each section is a panel. CSS
   scroll-snap-type is the fallback (proximity). The JS controller
   enforces "one section per gesture" with smooth animation.
   ========================================================================== */

/* Lock the page to the viewport — no native scrollbars. */
html, body {
  height: 100vh;
  overflow: hidden;
  overscroll-behavior: none;
}
/* Native scroll-snap fallback (so the panel position is correct even
   if the JS is still booting or disabled). */
body {
  scroll-snap-type: y proximity;
}

/* The stage: a transformable container. JS animates its translateY. */
.stage-wrap {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  /* Animate the panel transition. JS sets translateY directly. */
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

/* Each panel = one viewport. */
.panel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  /* Default flex layout — centers content vertically. Sections can
     override with align-items: flex-start etc. */
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* The existing sections were laid out for a tall page. We need to
   ensure their CONTENT fits in 100vh. The CSS below tightens layouts
   that were originally multi-screen. */
.panel.hero { padding: 0; }
.panel.manifesto { padding: 100px 32px 40px; }
.panel.showroom { padding: 100px 32px 40px; }
.panel.featured-intro { padding: 120px 32px 40px; }
.panel.feature { padding: 0; }
.panel.how { padding: 100px 32px 40px; }
.panel.numbers { padding: 80px 32px 40px; }
.panel.code { padding: 80px 32px 40px; }
.panel.pricing { padding: 80px 32px 40px; }
.panel.cta-final { padding: 60px 32px; }
.panel.footer { padding: 0; height: auto; min-height: 0; flex: 0 0 auto; }
.panel.footer .footer { padding: 60px 32px; min-height: 0; }

/* On panels where the original section had a .section-head, give it
   tighter spacing now that the panel is 100vh. */
.panel .section-head { margin-bottom: 40px; }
.panel .section-title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.panel .section-lede { font-size: 16px; }

/* The 3-pillar grid in manifesto: tighten so it fits 100vh. */
.panel.manifesto .pillars { gap: 0; }
.panel.manifesto .pillar { padding: 32px 28px 36px; }
.panel.manifesto .pillar-title { font-size: 22px; }

/* The showroom tile grid: 3 cols, smaller tiles. */
.panel.showroom .tiles { gap: 12px; }

/* The how-steps: 4 horizontal items, compact. */
.panel.how .how-steps { gap: 24px; }
.panel.how .step { padding: 24px; }
.panel.how .step h3 { font-size: 18px; }

/* Numbers: 4 columns compact. */
.panel.numbers .stat-grid { gap: 24px; }
.panel.numbers .stat-num { font-size: 60px; }

/* Code: 2 columns, compact. */
.panel.code .code-block { padding: 24px; }
.panel.code pre { font-size: 12px; max-height: 60vh; overflow: auto; }

/* Pricing: 3 columns compact. */
.panel.pricing .tiers { gap: 16px; }
.panel.pricing .tier { padding: 24px; }
.panel.pricing .tier-name { font-size: 18px; }
.panel.pricing .tier-price { font-size: 28px; }

/* cta-final: single block, full width. */
.panel.cta-final .cta-block { max-width: 720px; padding: 40px 0; }

/* Reduce hero h1 size so it fits. */
.panel.hero .hero-title { font-size: clamp(2.4rem, 6.8vw, 5rem); }
.panel.hero .hero-inner { padding: 80px 32px; }

/* Reduce feature paddings so the scene fills more of the screen. */
.panel.feature .feature-inner { padding: 80px 48px; max-width: 720px; }

/* On smaller screens, stack tighter. */
@media (max-width: 720px) {
  .panel.manifesto .pillars { grid-template-columns: 1fr; }
  .panel.showroom .tiles { grid-template-columns: 1fr 1fr; }
  .panel.how .how-steps { grid-template-columns: 1fr; }
  .panel.numbers .stat-grid { grid-template-columns: 1fr 1fr; }
  .panel.pricing .tiers { grid-template-columns: 1fr; }
}

/* Indicator: which panel is current. */
.panel-current { /* used by JS to mark active */ }


/* Manifesto: 3 pillars in a row, compact padding */
.panel.manifesto .section-head { margin-bottom: 24px; }
.panel.manifesto .kicker { font-size: 10px; margin-bottom: 12px; }
.panel.manifesto .section-title { font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.05; }
.panel.manifesto .section-lede { font-size: 13px; margin-top: 8px; }
.panel.manifesto .pillars { gap: 0; }
.panel.manifesto .pillar { padding: 18px 18px 22px; }
.panel.manifesto .pillar-num { font-size: 10px; margin-bottom: 12px; }
.panel.manifesto .pillar-title { font-size: 16px; line-height: 1.15; margin: 0 0 8px; }
.panel.manifesto .pillar-body { font-size: 12px; line-height: 1.45; }
.panel.manifesto .pillar-body code { padding: 1px 4px; font-size: 11px; }

/* Showroom: smaller tiles, tighter header */
.panel.showroom .section-head { margin-bottom: 24px; padding-top: 24px; }
.panel.showroom .kicker { font-size: 10px; margin-bottom: 12px; }
.panel.showroom .section-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.05; }
.panel.showroom .section-sub { font-size: 12px; margin-top: 8px; }
.panel.showroom .tiles {
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 8px !important;
  max-width: 1100px;
}
.panel.showroom .tile { padding: 12px 10px 14px; min-height: 100px; }
.panel.showroom .tile-name { font-size: 11px; }
.panel.showroom .tile-tag { font-size: 9px; }

/* Hide the marquee on the showroom panel — takes too much vertical space */
.panel.showroom .marquee { display: none; }


/* Make .section-head fill the panel width so its children (h2, lede)
   can have a proper width. */
.panel .section-head {
  display: block;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
.panel.manifesto .section-head { margin-bottom: 24px; }


/* Reset panel layout to a simple block with vertical centering.
   The flex from earlier was for content alignment — replace with
   padding + min-height 100vh. */
.panel {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  display: block;          /* was: flex — flex was causing children to size to content */
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
/* Section-head fills the panel width. */
.panel .section-head {
  display: block;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}
/* Specific panels: different padding. */
.panel.manifesto .section-head { margin-bottom: 24px; padding-top: 60px; }
.panel.showroom .section-head { margin-bottom: 24px; padding-top: 60px; }
.panel.featured-intro .section-head { margin-bottom: 24px; padding-top: 60px; }
.panel.how .section-head { margin-bottom: 24px; padding-top: 60px; }
.panel.numbers .section-head { margin-bottom: 24px; padding-top: 60px; }
.panel.code .section-head { margin-bottom: 24px; padding-top: 60px; }
.panel.pricing .section-head { margin-bottom: 24px; padding-top: 60px; }
.panel.cta-final .section-head { margin-bottom: 24px; padding-top: 60px; }


/* z-index 2 disabled for testing */
/* The features have their own iframe background; that should be at the
   panel's z-index 0, and the feature-inner text on top. */
.feature-bg-iframe {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.feature-inner {
  position: relative;
  z-index: 1;
}
/* Hero section's content needs to be in front too. */
.hero-inner {
  position: relative;
  z-index: 1;
}
