/* =====================================================================
   Shadow Beach — landing page styles
   Drops in over Bootstrap 4.6.  All tokens promoted to --sb-* so they
   can be folded back into shadow_beach.css during integration.
   ===================================================================== */

:root {
  /* Surfaces — dusk / Southern Gothic */
  --sb-bg:        #efe3cf;   /* dusty cream, rose-warm */
  --sb-bg-2:      #e5d4b8;   /* foxed paper */
  --sb-bg-3:      #d8c39e;   /* deeper paper */
  --sb-nav-bg:    #1a120e;   /* burnt-umber dark */
  --sb-nav-bg-2:  #25180f;   /* slightly elevated dark */

  /* Ink */
  --sb-fg:        #1a120c;   /* deep ink */
  --sb-fg-soft:   #3a2920;   /* secondary text */
  --sb-muted:     #806f5b;   /* muted / metadata */
  --sb-line:      #c4a983;   /* hairline on cream — dusty sienna */
  --sb-line-dk:   #3e2a1d;   /* hairline on dark */

  /* Accent — sunset ember + dusk plum */
  --sb-accent:    #c14a26;   /* ember (sunset orange-red) */
  --sb-accent-2:  #962f14;   /* deeper ember */
  --sb-plum:      #5b2438;   /* dusk plum / wine */
  --sb-plum-soft: #7a3147;   /* lifted plum */
  --sb-redact:    #1a120e;   /* redaction block ink */

  /* Type */
  --sb-serif: "Newsreader", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sb-sans:  "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --sb-mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Rhythm */
  --sb-pad-section: clamp(72px, 9vw, 132px);
}

/* =====================================================================
   Dark mode — body.sb-dark
   Same token contract, inverted surfaces. Ember stays, plum lifts.
   ===================================================================== */

body.sb-dark {
  --sb-bg:        #15100b;   /* night-paper / deep umber */
  --sb-bg-2:      #1d160f;   /* elevated panel */
  --sb-bg-3:      #261c12;   /* deeper panel */
  --sb-nav-bg:    #0d0907;   /* darkest — for tension / footer inset */
  --sb-nav-bg-2:  #0a0604;

  --sb-fg:        #ece0c8;   /* cream-paper text */
  --sb-fg-soft:   #b3a48a;
  --sb-muted:     #7a6a52;
  --sb-line:      #3a2c1d;   /* warm dark hairline */
  --sb-line-dk:   #1f160e;

  --sb-accent:    #d35a2c;   /* lifted ember */
  --sb-accent-2:  #a23a18;
  --sb-plum:      #b14d68;   /* lifted dusk plum (reads on dark) */
  --sb-plum-soft: #cc6a82;
  --sb-redact:    #ece0c8;
}

/* Dim the paper noise on dark so it doesn't read as static */
body.sb-dark {
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.85  0 0 0 0 0.72  0 0 0 0.025 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Re-balance the fixed sky wash for dark — stronger ember at the horizon */
body.sb-dark::before {
  background:
    radial-gradient(ellipse at 78% -10%, rgba(211, 90, 44, 0.18), transparent 55%),
    radial-gradient(ellipse at 18% -20%, rgba(177, 77, 104, 0.13), transparent 60%);
}

/* Powers card hover shadow needs more contrast on dark */
body.sb-dark .sb-power:hover {
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--sb-accent);
}

/* Tension already dark — give it its own deeper inset + stronger ember
   glow so it reads as a separate stage in dark mode. */
body.sb-dark .sb-tension {
  background: var(--sb-nav-bg);
  box-shadow:
    inset 0 1px 0 var(--sb-line),
    inset 0 -1px 0 var(--sb-line);
}
body.sb-dark .sb-tension::before {
  background:
    radial-gradient(ellipse 70% 50% at 50% 95%, rgba(211, 90, 44, 0.28), transparent 60%),
    radial-gradient(ellipse 90% 70% at 50% 115%, rgba(177, 77, 104, 0.40), transparent 65%);
}

/* Premise: in dark mode, give the prose column its own faint vignette
   so the eye lands on it. */
body.sb-dark .sb-premise__inner {
  position: relative;
}
body.sb-dark .sb-premise__inner::before {
  content: "";
  position: absolute;
  inset: -48px -120px;
  background: radial-gradient(ellipse at center, rgba(211, 90, 44, 0.05), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* World grid: increase border weight by a hair so dividers don't vanish */
body.sb-dark .sb-world__grid,
body.sb-dark .sb-world__cell {
  border-color: var(--sb-line);
}

/* Footer in dark mode: keep it the darkest surface */
body.sb-dark .sb-footer { background: var(--sb-nav-bg-2); }

/* Theme-toggle pill (review chrome — stripped during integration) */
.sb-theme-toggle {
  background: transparent;
  border: 1px solid var(--sb-line);
  color: var(--sb-fg-soft);
  font-family: var(--sb-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px 6px 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.sb-theme-toggle:hover {
  color: var(--sb-fg);
  border-color: var(--sb-fg);
}
.sb-theme-toggle__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--sb-fg);
  box-shadow: inset -3px 0 0 0 var(--sb-bg);
  display: inline-block;
}

/* ---------- Base resets / typography ----------------------------- */

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body.sb-landing {
  background: var(--sb-bg);
  color: var(--sb-fg);
  font-family: var(--sb-sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "ss02";
  /* Subtle paper grain over the whole page */
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.09  0 0 0 0 0.07  0 0 0 0 0.05  0 0 0 0.045 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-repeat: repeat;
  background-size: 240px 240px;
}

.sb-landing h1, .sb-landing h2, .sb-landing h3 {
  font-family: var(--sb-serif);
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--sb-fg);
  text-wrap: balance;
}
.sb-landing h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.04; letter-spacing: -0.02em; }
.sb-landing h2 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.12; }
.sb-landing h3 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.2; }

.sb-landing p { color: var(--sb-fg-soft); }
.sb-landing :where(a) { color: var(--sb-fg); text-decoration: none; border-bottom: 1px solid var(--sb-line); transition: color .15s ease, border-color .15s ease; }
.sb-landing :where(a):hover { color: var(--sb-accent); border-bottom-color: var(--sb-accent); }

/* Subtle, sun-stained sky wash anchored to the top of the page */
body.sb-landing::before {
  content: "";
  position: fixed; inset: 0 0 auto 0;
  height: 70vh; pointer-events: none;
  background:
    radial-gradient(ellipse at 80% -10%, rgba(193, 74, 38, 0.10), transparent 50%),
    radial-gradient(ellipse at 20% -20%, rgba(91, 36, 56, 0.07), transparent 55%);
  z-index: 0;
}
.sb-landing > * { position: relative; z-index: 1; }

/* Eyebrow / case-file labels */
.sb-eyebrow {
  font-family: var(--sb-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sb-accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.sb-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--sb-accent);
  display: inline-block;
}
.sb-eyebrow.sb-eyebrow--plain::before { display: none; }
.sb-eyebrow.sb-eyebrow--muted { color: var(--sb-muted); }
.sb-eyebrow.sb-eyebrow--muted::before { background: var(--sb-muted); }

/* Hairline divider */
.sb-rule { border: 0; border-top: 1px solid var(--sb-line); margin: 0; }
.sb-rule--dk { border-top-color: var(--sb-line-dk); }
.sb-rule--accent { border-top: 1px solid var(--sb-accent); width: 56px; margin: 0 auto; }

/* =====================================================================
   Buttons / CTAs
   ===================================================================== */

.sb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--sb-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 16px 28px;
  border: 1px solid var(--sb-fg);
  background: var(--sb-fg);
  color: var(--sb-bg);
  border-radius: 0;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  border-bottom: 1px solid var(--sb-fg);
  text-align: left;
}
.sb-btn:hover {
  background: var(--sb-accent);
  border-color: var(--sb-accent);
  color: #fff;
  border-bottom-color: var(--sb-accent);
}
.sb-btn .sb-btn__arrow { display: inline-block; transition: transform .2s ease; }
.sb-btn:hover .sb-btn__arrow { transform: translateX(4px); }

.sb-btn--ghost {
  background: transparent;
  color: var(--sb-fg);
}
.sb-btn--ghost:hover {
  background: var(--sb-fg);
  color: var(--sb-bg);
  border-color: var(--sb-fg);
}

.sb-btn--on-dark {
  background: var(--sb-bg);
  color: var(--sb-fg);
  border-color: var(--sb-bg);
}
.sb-btn--on-dark:hover {
  background: var(--sb-accent);
  color: #fff;
  border-color: var(--sb-accent);
}
.sb-btn--ghost-on-dark {
  background: transparent;
  color: var(--sb-bg);
  border-color: var(--sb-bg);
}
.sb-btn--ghost-on-dark:hover {
  background: var(--sb-bg);
  color: var(--sb-fg);
}

/* =====================================================================
   1. Hero
   ===================================================================== */

.sb-hero {
  position: relative;
  padding: clamp(48px, 8vw, 120px) 0 clamp(72px, 9vw, 140px);
  border-bottom: 1px solid var(--sb-line);
  overflow: hidden;
}

.sb-hero__case {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 22px;
  font-family: var(--sb-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sb-muted);
  margin-bottom: 56px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--sb-line);
}
.sb-hero__case > span {
  white-space: nowrap;
}
.sb-hero__case span + span::before {
  content: "·";
  margin-right: 14px;
  color: var(--sb-line);
}

.sb-hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
}

.sb-hero__title {
  margin: 22px 0 28px;
  max-width: 14ch;
}
.sb-hero__lede {
  font-family: var(--sb-serif);
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.5;
  color: var(--sb-fg-soft);
  max-width: 46ch;
  margin-bottom: 40px;
}

.sb-hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.sb-hero__meta {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--sb-line);
}
.sb-hero__meta dt {
  font-family: var(--sb-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sb-muted);
  margin-bottom: 6px;
  font-weight: 400;
}
.sb-hero__meta dd {
  font-family: var(--sb-serif);
  font-size: 16px;
  color: var(--sb-fg);
  margin: 0;
}

/* Hero image — paper / evidence photo treatment */
.sb-photo {
  position: relative;
  background: var(--sb-bg-2);
  border: 1px solid var(--sb-line);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.sb-photo--wide { aspect-ratio: 16 / 11; }

.sb-photo__inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background-image:
    /* sun haze just above the horizon */
    radial-gradient(ellipse 60% 35% at 62% 58%, rgba(255, 168, 96, 0.55), transparent 65%),
    /* upper-corner dusk plum */
    radial-gradient(ellipse at 90% 0%, rgba(45, 18, 38, 0.55), transparent 55%),
    /* foreground silhouette wash */
    radial-gradient(ellipse at 20% 110%, rgba(20, 12, 8, 0.85), transparent 60%),
    /* dusk-sky vertical stack: plum → wine → ember → earth → silhouette */
    linear-gradient(180deg,
      #4a2540 0%,
      #7a3142 22%,
      #b8482a 52%,
      #8a3a1d 66%,
      #4a2a18 82%,
      #1c120c 100%);
}
/* Suggestion of treeline at the horizon (live oak silhouette wash) */
.sb-photo__inner::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 32%;
  background:
    radial-gradient(ellipse 35% 80% at 12% 100%, #120b07 30%, transparent 65%),
    radial-gradient(ellipse 50% 100% at 38% 105%, #120b07 35%, transparent 65%),
    radial-gradient(ellipse 30% 90% at 68% 100%, #120b07 30%, transparent 65%),
    radial-gradient(ellipse 40% 95% at 92% 102%, #120b07 35%, transparent 65%);
  pointer-events: none;
}
.sb-photo__grain {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.22;
  mix-blend-mode: multiply;
}
.sb-photo__label {
  position: absolute;
  left: 16px; bottom: 16px;
  font-family: var(--sb-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,242,220,0.85);
  background: rgba(26,22,17,0.65);
  padding: 6px 10px;
  border: 1px solid rgba(255,242,220,0.25);
  backdrop-filter: blur(2px);
}
.sb-photo__stamp {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--sb-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 10px;
  color: var(--sb-accent);
  border: 1px solid var(--sb-accent);
  background: rgba(243,236,224,0.85);
  transform: rotate(-3deg);
}
.sb-photo__corner {
  position: absolute; width: 28px; height: 28px;
  border: 1px solid rgba(255,242,220,0.6);
}
.sb-photo__corner--tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.sb-photo__corner--br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

/* =====================================================================
   2. Premise (narrow block of prose)
   ===================================================================== */

.sb-premise {
  padding: var(--sb-pad-section) 0;
  text-align: center;
}
.sb-premise__inner {
  max-width: 640px;
  margin: 0 auto;
}
.sb-premise__rule {
  width: 100%;
  height: 1px;
  background: var(--sb-line);
  margin: 0 0 56px;
}
.sb-premise__body {
  font-family: var(--sb-serif);
  font-size: clamp(19px, 1.55vw, 23px);
  line-height: 1.55;
  color: var(--sb-fg);
  text-align: left;
}
.sb-premise__body p { color: var(--sb-fg); margin-bottom: 1.2em; }
.sb-premise__body p:last-child { margin-bottom: 0; font-style: italic; color: var(--sb-fg-soft); }
.sb-premise__close {
  width: 100%;
  height: 1px;
  background: var(--sb-line);
  margin: 56px 0 0;
}
.sb-premise__file {
  font-family: var(--sb-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sb-muted);
  margin-bottom: 24px;
}

/* =====================================================================
   3. Three Powers
   ===================================================================== */

.sb-powers {
  padding: var(--sb-pad-section) 0;
  background: var(--sb-bg-2);
  border-top: 1px solid var(--sb-line);
  border-bottom: 1px solid var(--sb-line);
  position: relative;
}

.sb-section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 64px;
}
.sb-section-head__title { margin: 18px 0 0; }
.sb-section-head__note {
  font-family: var(--sb-serif);
  font-size: 18px;
  color: var(--sb-fg-soft);
  line-height: 1.55;
  max-width: 50ch;
}

.sb-power {
  background: var(--sb-bg);
  border: 1px solid var(--sb-line);
  padding: 32px 32px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.sb-power:hover {
  border-color: var(--sb-accent);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -22px rgba(26, 18, 14, 0.55);
}
.sb-power__num {
  position: absolute;
  top: 24px; right: 28px;
  font-family: var(--sb-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--sb-muted);
}
.sb-power__eyebrow {
  margin-bottom: 14px;
}
.sb-power__title {
  font-family: var(--sb-serif);
  font-size: 30px;
  line-height: 1.08;
  margin: 0 0 8px;
}
.sb-power__pitch {
  font-family: var(--sb-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--sb-plum);
  margin: 0 0 18px;
  line-height: 1.4;
}
.sb-power__rule {
  width: 32px;
  height: 1px;
  background: var(--sb-line);
  margin: 0 0 18px;
}
.sb-power__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--sb-fg-soft);
  margin: 0 0 24px;
}
.sb-power__more {
  margin-top: auto;
  font-family: var(--sb-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sb-fg);
  border: 0;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--sb-fg);
  align-self: flex-start;
  transition: color .18s ease, border-color .18s ease, gap .18s ease;
  display: inline-flex; gap: 8px;
}
.sb-power__more:hover { color: var(--sb-accent); border-bottom-color: var(--sb-accent); gap: 14px; }

/* =====================================================================
   4. World — secondary teaser cards
   ===================================================================== */

.sb-world {
  padding: var(--sb-pad-section) 0;
}

.sb-world__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--sb-line);
  border-left: 1px solid var(--sb-line);
}
.sb-world__cell {
  border-right: 1px solid var(--sb-line);
  border-bottom: 1px solid var(--sb-line);
  background: var(--sb-bg);
  padding: 32px 28px 28px;
  position: relative;
  display: flex; flex-direction: column;
  min-height: 280px;
  transition: background .25s ease;
}
.sb-world__cell:hover { background: var(--sb-bg-2); }
.sb-world__cell a.sb-world__overlay {
  position: absolute; inset: 0; border: 0;
}
.sb-world__num {
  font-family: var(--sb-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--sb-muted);
  margin-bottom: 28px;
}
.sb-world__title {
  font-family: var(--sb-serif);
  font-size: 24px;
  line-height: 1.1;
  margin: 0 0 12px;
}
.sb-world__tease {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--sb-fg-soft);
  margin: 0 0 24px;
}
.sb-world__more {
  margin-top: auto;
  font-family: var(--sb-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sb-fg);
  border-bottom: 0;
  display: inline-flex; gap: 8px; align-items: center;
}
.sb-world__cell:hover .sb-world__more { color: var(--sb-accent); }
.sb-world__cell:hover .sb-world__more .sb-btn__arrow { transform: translateX(4px); }
.sb-world__more .sb-btn__arrow { transition: transform .2s ease; }

/* =====================================================================
   5. The Tension — pull quote on dark
   ===================================================================== */

.sb-tension {
  background: var(--sb-nav-bg);
  color: var(--sb-bg);
  padding: clamp(110px, 14vw, 200px) 0;
  position: relative;
  overflow: hidden;
}
/* Dusk ember glow rising from below the type */
.sb-tension::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 95%, rgba(193, 74, 38, 0.22), transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(91, 36, 56, 0.35), transparent 65%);
  pointer-events: none;
}
.sb-tension::after {
  content: "";
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 64px;
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--sb-accent), transparent);
}
.sb-tension__topline {
  position: absolute; left: 50%; transform: translateX(-50%);
  top: 64px;
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--sb-accent), transparent);
}
.sb-tension__quote {
  font-family: var(--sb-serif);
  font-size: clamp(28px, 3.6vw, 50px);
  line-height: 1.18;
  color: var(--sb-bg);
  max-width: 22ch;
  margin: 0 auto;
  text-align: center;
  letter-spacing: -0.012em;
  font-weight: 400;
}
.sb-tension__mark {
  color: var(--sb-accent);
  font-family: var(--sb-serif);
}
.sb-tension__quote em.sb-tension__plum {
  font-style: normal;
  color: #d18a96; /* lifted plum so it reads on dark */
}
.sb-tension__sub {
  font-family: var(--sb-sans);
  font-size: 14px;
  color: rgba(243,236,224,0.55);
  text-align: center;
  margin-top: 32px;
  font-style: italic;
}
.sb-tension__case {
  font-family: var(--sb-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243,236,224,0.45);
  text-align: center;
  margin-bottom: 40px;
}

/* =====================================================================
   6. Dual CTA strip (final)
   ===================================================================== */

.sb-final {
  padding: var(--sb-pad-section) 0;
  background: var(--sb-bg);
  border-top: 1px solid var(--sb-line);
}
.sb-final__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--sb-line);
  border-bottom: 1px solid var(--sb-line);
}
.sb-final__cell {
  padding: 64px 48px;
  border-right: 1px solid var(--sb-line);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background .25s ease;
}
.sb-final__cell:last-child { border-right: 0; }
.sb-final__cell:hover { background: var(--sb-bg-2); }
.sb-final__num {
  position: absolute;
  top: 20px; right: 24px;
  font-family: var(--sb-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--sb-muted);
}
.sb-final__title {
  font-family: var(--sb-serif);
  font-size: clamp(28px, 2.6vw, 40px);
  margin: 0;
  line-height: 1.1;
}
.sb-final__desc {
  font-size: 15px;
  color: var(--sb-fg-soft);
  margin: 0 0 12px;
  max-width: 42ch;
}
.sb-final__cta {
  margin-top: 8px;
  font-family: var(--sb-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  align-self: flex-start;
  border-bottom: 1px solid var(--sb-fg);
  padding-bottom: 4px;
  display: inline-flex; align-items: center; gap: 10px;
}
.sb-final__cta:hover { color: var(--sb-accent); border-bottom-color: var(--sb-accent); }
.sb-final__cta .sb-btn__arrow { transition: transform .2s ease; }
.sb-final__cta:hover .sb-btn__arrow { transform: translateX(4px); }

.sb-final__head {
  text-align: center;
  margin-bottom: 56px;
}
.sb-final__head h2 {
  margin: 18px 0 0;
}

/* =====================================================================
   Page chrome — mock navbar + footer (integration replaces with base.html)
   ===================================================================== */

.sb-navbar {
  background: var(--sb-bg);
  border-bottom: 1px solid var(--sb-line);
  padding: 18px 0;
  font-family: var(--sb-sans);
  position: relative;
  z-index: 5;
}
.sb-navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
}
.sb-navbar__brand {
  font-family: var(--sb-serif);
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--sb-fg);
  border: 0;
  display: inline-flex; align-items: center; gap: 12px;
}
.sb-navbar__brand .sb-mark {
  display: inline-block;
  width: 22px; height: 22px;
  background: var(--sb-fg);
  position: relative;
}
.sb-navbar__brand .sb-mark::after {
  content: ""; position: absolute; inset: 5px;
  background: var(--sb-accent);
}
.sb-navbar__links {
  display: flex; gap: 28px;
  font-size: 14px;
}
.sb-navbar__links a {
  border: 0;
  color: var(--sb-fg-soft);
  font-family: var(--sb-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.sb-navbar__links a.sb-active { color: var(--sb-fg); }
.sb-navbar__links a:hover { color: var(--sb-accent); }
.sb-navbar__cta {
  display: flex; gap: 12px;
  font-family: var(--sb-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sb-navbar__cta a {
  border: 0;
  color: var(--sb-fg-soft);
  padding: 6px 0;
}
.sb-navbar__cta a.sb-navbar__play {
  color: var(--sb-bg);
  background: var(--sb-fg);
  padding: 8px 16px;
}
.sb-navbar__cta a.sb-navbar__play:hover {
  background: var(--sb-accent);
  color: #fff;
}

.sb-footer {
  background: var(--sb-nav-bg);
  color: rgba(243,236,224,0.6);
  padding: 56px 0 36px;
  font-size: 13px;
  font-family: var(--sb-sans);
}
.sb-footer a { color: rgba(243,236,224,0.85); border-bottom-color: rgba(243,236,224,0.25); }
.sb-footer a:hover { color: var(--sb-accent); border-bottom-color: var(--sb-accent); }
.sb-footer__row {
  display: flex; justify-content: space-between; align-items: flex-end;
  border-top: 1px solid rgba(243,236,224,0.12);
  padding-top: 32px;
  margin-top: 8px;
}
.sb-footer__meta {
  font-family: var(--sb-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(243,236,224,0.5);
}
.sb-footer__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}
.sb-footer__col h4 {
  font-family: var(--sb-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243,236,224,0.5);
  margin: 0 0 18px;
  font-weight: 400;
}
.sb-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sb-footer__about {
  font-family: var(--sb-serif);
  font-size: 16px;
  line-height: 1.5;
  color: rgba(243,236,224,0.78);
  margin: 0;
}

/* =====================================================================
   Responsive
   ===================================================================== */

@media (max-width: 991.98px) {
  .sb-hero__inner { grid-template-columns: 1fr; }
  .sb-section-head { grid-template-columns: 1fr; gap: 18px; }
  .sb-world__grid { grid-template-columns: repeat(2, 1fr); }
  .sb-final__grid { grid-template-columns: 1fr; }
  .sb-final__cell { border-right: 0; border-bottom: 1px solid var(--sb-line); }
  .sb-final__cell:last-child { border-bottom: 0; }
  .sb-footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
  .sb-hero__meta { grid-template-columns: 1fr; }
  .sb-world__grid { grid-template-columns: 1fr; }
  .sb-navbar__links { display: none; }
  .sb-footer__cols { grid-template-columns: 1fr; }
  .sb-footer__row { flex-direction: column; align-items: flex-start; gap: 18px; }
}
