/* ==========================================================================
   Route Threshold — Act III scene + Act VI preview surfaces
   Scope: .route-scene--threshold  /  .preview--threshold
   Implementer: Wave 4C
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Tajawal:wght@300;400;500;700&family=Work+Sans:wght@400;500;600&display=swap');


/* --------------------------------------------------------------------------
   Design tokens — scoped to both scene and preview namespaces
   -------------------------------------------------------------------------- */

.route-scene--threshold,
.preview--threshold {
  --thr-night:         #1A1A2E;    /* Night Margin — bg */
  --thr-pearl:         #F5F4F0;    /* Pearl Report — primary text */
  --thr-gold:          #C8A96E;    /* Interference — rationed, ONE per surface */
  --thr-fault:         #6B8FA3;    /* Fault Line */
  --thr-white:         #FAFAF8;    /* Witness White */
  --thr-font-display:  "Cormorant Garamond", Georgia, serif;
  --thr-font-display-ar: "Tajawal", sans-serif;
  --thr-font-body:     "Work Sans", system-ui, sans-serif;
  --thr-font-body-ar:  "Tajawal", sans-serif;
  --thr-font-mono:     var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
}


/* ==========================================================================
   ACT III — THRESHOLD SCENE
   ========================================================================== */

/* --------------------------------------------------------------------------
   Scene wrapper — full dark ground
   -------------------------------------------------------------------------- */

.route-scene--threshold {
  background-color: var(--thr-night);
  color: var(--thr-pearl);
  /* Transition in: body-class approach is handled by journey.js;
     the scene fills the viewport so dark bg suffices as the beat. */
  transition: background-color var(--dur-transition, 900ms) var(--ease-rule, cubic-bezier(0.65, 0, 0.35, 1));
}

.route-scene--threshold[data-theme="dark"] {
  background-color: var(--thr-night);
  color: var(--thr-pearl);
}

/* Scene entry reveal — slower than Ledger (dark-reveal cadence) */
.route-scene--threshold {
  opacity: 0;
  animation: thr-scene-reveal var(--dur-cinematic, 1200ms) var(--ease-reveal, cubic-bezier(0.22, 0.61, 0.36, 1)) forwards;
}

@keyframes thr-scene-reveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Body dark-mode beat: journey.js adds .in-threshold to body on IO entry */
body.in-threshold {
  background-color: var(--thr-night);
  transition: background-color var(--dur-transition, 900ms) var(--ease-rule, cubic-bezier(0.65, 0, 0.35, 1));
}


/* --------------------------------------------------------------------------
   1. Route title card
   -------------------------------------------------------------------------- */

.route-scene--threshold .route-scene__title-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 4.5rem 2rem;
  text-align: center;
}

.route-scene--threshold .route-scene__letter {
  font-family: var(--thr-font-display);
  font-size: 15rem;
  font-style: italic;
  font-weight: 500;
  line-height: 0.85;
  color: var(--thr-white);
  letter-spacing: -0.04em;
  opacity: 0;
  animation: thr-letter-reveal var(--dur-slow, 720ms) var(--ease-settle, cubic-bezier(0.16, 1, 0.3, 1)) 400ms forwards;
}

@keyframes thr-letter-reveal {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.route-scene--threshold .route-scene__name {
  font-family: var(--thr-font-display);
  font-size: clamp(1.375rem, 3vw, 2.5rem);
  font-weight: 500;
  font-style: normal;
  color: var(--thr-pearl);
  letter-spacing: -0.01em;
  margin: 1.5rem 0 0.75rem;
}

.route-scene--threshold .route-scene__register {
  font-family: var(--thr-font-body);
  font-size: 1rem;
  color: var(--thr-fault);
  letter-spacing: 0.04em;
  max-width: 36rem;
}

/* Gold hairline under title card — the first rationed gold mark */
.route-scene--threshold .route-scene__title-rule {
  width: 48rem;
  max-width: 80vw;
  height: 1px;
  margin: 2.5rem auto 0;
  display: block;
  overflow: visible;
}

.route-scene--threshold .route-scene__title-rule path {
  stroke: var(--thr-gold);
  stroke-width: 1;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: thr-rule-draw var(--dur-slow, 720ms) var(--ease-rule, cubic-bezier(0.65, 0, 0.35, 1)) 900ms forwards;
}

@keyframes thr-rule-draw {
  from { stroke-dashoffset: 100; }
  to   { stroke-dashoffset: 0; }
}


/* --------------------------------------------------------------------------
   2. Palette reveal
   -------------------------------------------------------------------------- */

.route-scene--threshold .route-scene__palette {
  max-width: 56rem;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
}

.route-scene--threshold .route-scene__swatches {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0 0 3rem;
}

.route-scene--threshold .route-scene__swatch {
  flex: 0 0 auto;
  width: clamp(120px, 16vw, 160px);
  opacity: 0;
  transform: translateY(8px);
}

/* Stagger palette swatches 180ms apart (slower than Ledger's 120ms) */
.route-scene--threshold .route-scene__swatch:nth-child(1) { animation: thr-swatch-in var(--dur-medium, 420ms) var(--ease-reveal, cubic-bezier(0.22, 0.61, 0.36, 1)) 200ms forwards; }
.route-scene--threshold .route-scene__swatch:nth-child(2) { animation: thr-swatch-in var(--dur-medium, 420ms) var(--ease-reveal, cubic-bezier(0.22, 0.61, 0.36, 1)) 380ms forwards; }
.route-scene--threshold .route-scene__swatch:nth-child(3) { animation: thr-swatch-in var(--dur-medium, 420ms) var(--ease-reveal, cubic-bezier(0.22, 0.61, 0.36, 1)) 560ms forwards; }
.route-scene--threshold .route-scene__swatch:nth-child(4) { animation: thr-swatch-in var(--dur-medium, 420ms) var(--ease-reveal, cubic-bezier(0.22, 0.61, 0.36, 1)) 740ms forwards; }
.route-scene--threshold .route-scene__swatch:nth-child(5) { animation: thr-swatch-in var(--dur-medium, 420ms) var(--ease-reveal, cubic-bezier(0.22, 0.61, 0.36, 1)) 920ms forwards; }

@keyframes thr-swatch-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.route-scene--threshold .route-scene__swatch-block {
  display: block;
  width: 100%;
  height: 72px;
  background-color: var(--swatch-color);
  margin-bottom: 0.75rem;
  /* Pearl Report swatch needs a 1px border so it reads against night ground */
}

.route-scene--threshold .route-scene__swatch:nth-child(2) .route-scene__swatch-block {
  outline: 1px solid rgba(250, 250, 248, 0.25);
  outline-offset: -1px;
}

.route-scene--threshold .route-scene__swatch:nth-child(5) .route-scene__swatch-block {
  outline: 1px solid rgba(250, 250, 248, 0.15);
  outline-offset: -1px;
}

.route-scene--threshold .route-scene__swatch-name {
  display: block;
  font-family: var(--thr-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--thr-pearl);
  text-transform: uppercase;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.route-scene--threshold .route-scene__swatch-name code {
  font-family: inherit;
  color: var(--thr-fault);
}

.route-scene--threshold .route-scene__swatch-desc {
  display: block;
  font-family: var(--thr-font-body);
  font-size: 0.75rem;
  color: var(--thr-pearl);
  opacity: 0.6;
  line-height: 1.45;
}

.route-scene--threshold .route-scene__palette-intro {
  font-family: var(--thr-font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--thr-pearl);
  max-width: 44rem;
}


/* --------------------------------------------------------------------------
   3. Typography specimen
   -------------------------------------------------------------------------- */

.route-scene--threshold .route-scene__type-specimen {
  max-width: 56rem;
  margin: 0 auto;
  padding: 4rem 2rem 4rem;
  /* 2-col layout: left narrow pull-quote column, right wider main column */
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-template-rows: auto;
  column-gap: 3rem;
  row-gap: 2rem;
  align-items: start;
}

.route-scene--threshold .route-scene__specimen-heading {
  font-family: var(--thr-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--thr-fault);
  font-weight: 500;
  margin: 0;
  grid-column: 1 / -1;
}

.route-scene--threshold .route-scene__type-intro {
  font-family: var(--thr-font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--thr-pearl);
  opacity: 0.8;
  grid-column: 1 / -1;
}

/* Display line EN — gold underline on 'crime' via span.highlight-crime
   The spec says: 2px underline under the final word 'crime'
   Implemented via a sibling/descendant selector keyed to the text's structure;
   the HTML does not wrap 'crime' separately so we target the last word
   with a CSS trick: apply the gold underline to the whole line and clip
   all but the word — simpler: rely on markup span if present, else apply
   a data-attribute approach. The art direction spec says the underline
   draws 400ms after display line settles. We implement the underline as
   a CSS property and trust that the HTML marks the word if needed.
   For the word 'crime' the spec requires underline; it wraps no span in the
   current HTML so we apply a broad rule and note the caveat in Inferences. */

.route-scene--threshold .route-scene__display-en {
  font-family: var(--thr-font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--thr-white);
  grid-column: 1 / -1;
  /* Offset into main column by the left-column width to create the threshold split */
  margin-left: 0;
  opacity: 0;
  transform: translateY(4px);
  animation: thr-display-reveal var(--dur-slow, 720ms) var(--ease-reveal, cubic-bezier(0.22, 0.61, 0.36, 1)) 300ms forwards;
}

@keyframes thr-display-reveal {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Gold underline on 'crime' — the second rationed gold mark in the scene.
   The markup does not wrap 'crime' in a span. Applying a partial-word underline
   purely in CSS is not reliable. We note this in Inferences: the HTML partial
   needs a <span class="route-scene__gold-word"> around 'crime'. */

.route-scene--threshold .route-scene__display-en .route-scene__gold-word,
.route-scene--threshold .route-scene__gold-word {
  text-decoration: underline;
  text-decoration-color: var(--thr-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.route-scene--threshold .route-scene__display-ar {
  font-family: var(--thr-font-display-ar);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--thr-pearl);
  grid-column: 1 / -1;
  text-align: right;
  opacity: 0;
  transform: translateY(4px);
  animation: thr-display-reveal var(--dur-slow, 720ms) var(--ease-reveal, cubic-bezier(0.22, 0.61, 0.36, 1)) 480ms forwards;
}

/* Blockquote pull: left (narrow) column; body: right (wide) column */
.route-scene--threshold .route-scene__subhead-quote {
  grid-column: 1 / 2;
  font-family: var(--thr-font-display);
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
  color: var(--thr-pearl);
  border-left: 3px solid var(--thr-fault);
  margin: 0;
  padding: 0.75rem 0 0.75rem 1.25rem;
  /* Offset: left column starts 120px below the right column */
  margin-top: 120px;
}

.route-scene--threshold .route-scene__body-quote {
  grid-column: 2 / 3;
  font-family: var(--thr-font-body);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--thr-pearl);
  margin: 0;
  padding: 0;
}

.route-scene--threshold .route-scene__body-quote--ar {
  font-family: var(--thr-font-body-ar);
  font-size: 1.125rem;
  line-height: calc(1.65 + 0.1);
  text-align: right;
  grid-column: 1 / -1;
  border-right: 1px solid var(--thr-gold); /* Third rationed gold mark: vertical rule sep Arabic/Latin */
  padding-right: 1.5rem;
  margin-right: 0;
}

.route-scene--threshold .route-scene__body-citation {
  display: block;
  font-family: var(--thr-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--thr-gold); /* Datelines in gold per art direction spec */
  margin-top: 0.75rem;
  font-style: normal;
}


/* --------------------------------------------------------------------------
   4. Editorial image
   -------------------------------------------------------------------------- */

.route-scene--threshold .route-scene__image--hero {
  position: relative;
  width: 100%;
  margin: 0;
  /* Image starts dim, rises on entry */
  opacity: 0;
  animation: thr-image-rise var(--dur-cinematic, 1200ms) var(--ease-settle, cubic-bezier(0.16, 1, 0.3, 1)) 200ms forwards;
}

@keyframes thr-image-rise {
  from { opacity: 0.15; }
  to   { opacity: 1; }
}

.route-scene--threshold .route-scene__image--hero img {
  display: block;
  width: 100%;
  height: 80vh;
  object-fit: cover;
  object-position: center 30%;
  /* Duotone: Night Margin ↔ Pearl Report via filter + blend overlay */
  filter: grayscale(1) contrast(1.2) brightness(0.75);
}

.route-scene--threshold .route-scene__image-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Shadow-color overlay */
.route-scene--threshold .route-scene__image-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--thr-night);
  mix-blend-mode: multiply;
  opacity: 0.6;
}

/* Highlight overlay */
.route-scene--threshold .route-scene__image-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--thr-pearl);
  mix-blend-mode: screen;
  opacity: 0.15;
}

/* Gold data label — fourth rationed gold mark in the scene */
.route-scene--threshold .route-scene__image-data {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--thr-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--thr-gold);
  z-index: 2;
}

.route-scene--threshold .route-scene__image-caption {
  font-family: var(--thr-font-body);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--thr-fault);
  padding: 0.75rem 2rem;
  letter-spacing: 0.01em;
}


/* --------------------------------------------------------------------------
   5. Mock report header
   -------------------------------------------------------------------------- */

.route-scene--threshold .route-scene__mock-header {
  max-width: 52rem;
  margin: 0 auto;
  padding: 4rem 2rem;
  border-top: 1px solid rgba(107, 143, 163, 0.3);
}

/* Gold rule above the mock report title — the fourth rationed mark
   (image data label is scene-level; mock header gold rule is header-level) */
.route-scene--threshold .route-scene__mock-accent-rule {
  width: 100%;
  height: 1px;
  background-color: var(--thr-gold);
  margin-bottom: 2rem;
}

.route-scene--threshold .route-scene__mock-dateline {
  font-family: var(--thr-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--thr-fault);
  margin-bottom: 1rem;
}

.route-scene--threshold .route-scene__mock-title {
  font-family: var(--thr-font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 600;
  font-style: normal;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--thr-white);
  margin-bottom: 1.25rem;
}

.route-scene--threshold .route-scene__mock-deck {
  font-family: var(--thr-font-display);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--thr-pearl);
  opacity: 0.85;
  max-width: 44rem;
  margin-bottom: 1rem;
}

.route-scene--threshold .route-scene__mock-byline {
  font-family: var(--thr-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--thr-fault);
}


/* --------------------------------------------------------------------------
   6. Failure-mode callout
   -------------------------------------------------------------------------- */

.route-scene--threshold .route-scene__failure-callout {
  max-width: 40rem;
  margin: 3rem auto;
  padding: 1.5rem 1.75rem;
  background-color: var(--thr-night);
  /* Left border only, gold at 50% saturation = blend with night */
  border-left: 3px solid color-mix(in oklch, var(--thr-gold) 50%, var(--thr-night));
  position: relative;
}

.route-scene--threshold .route-scene__failure-dagger {
  font-family: var(--thr-font-mono);
  font-size: 0.875rem;
  color: var(--thr-gold);
  position: absolute;
  top: 1.25rem;
  left: -1.25rem;
  line-height: 1;
}

.route-scene--threshold .route-scene__failure-callout p {
  font-family: var(--thr-font-body);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--thr-pearl);
  margin: 0;
}

.route-scene--threshold .route-scene__failure-callout strong {
  font-style: italic;
  font-weight: 600;
}


/* --------------------------------------------------------------------------
   7. Success gallery
   -------------------------------------------------------------------------- */

.route-scene--threshold .route-scene__success-gallery {
  max-width: 56rem;
  margin: 3rem auto;
  padding: 0 2rem;
}

.route-scene--threshold .route-scene__gallery-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex-wrap: wrap;
}

.route-scene--threshold .route-scene__gallery-item {
  flex: 0 0 auto;
}

.route-scene--threshold .route-scene__gallery-item figure {
  margin: 0;
}

.route-scene--threshold .route-scene__gallery-item img {
  display: block;
  width: 180px;
  height: 240px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.2) brightness(0.75);
  /* Gold hairline top border per spec */
  border-top: 1px solid color-mix(in oklch, var(--thr-gold) 40%, transparent);
}

.route-scene--threshold .route-scene__gallery-label {
  font-family: var(--thr-font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--thr-gold);
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
}

.route-scene--threshold .route-scene__gallery-label span {
  opacity: 0.7;
}

.route-scene--threshold .route-scene__success-caption {
  font-family: var(--thr-font-display);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--thr-pearl);
}


/* --------------------------------------------------------------------------
   8. Transition
   -------------------------------------------------------------------------- */

.route-scene--threshold .route-scene__transition {
  text-align: center;
  padding: 6rem 2rem;
}

.route-scene--threshold .route-scene__transition-text {
  font-family: var(--thr-font-display);
  font-size: 1.375rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--thr-pearl);
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

.route-scene--threshold .route-scene__transition-glyph {
  font-size: 1.375rem;
  color: var(--thr-fault);
  animation: thr-bob 1.8s ease-in-out 2;
}

@keyframes thr-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(4px); }
}


/* --------------------------------------------------------------------------
   Reduced-motion overrides
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .route-scene--threshold,
  .route-scene--threshold .route-scene__letter,
  .route-scene--threshold .route-scene__title-rule path,
  .route-scene--threshold .route-scene__swatch,
  .route-scene--threshold .route-scene__display-en,
  .route-scene--threshold .route-scene__display-ar,
  .route-scene--threshold .route-scene__image--hero,
  .route-scene--threshold .route-scene__transition-glyph {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
    transition-duration: 0.01ms !important;
  }
}


/* --------------------------------------------------------------------------
   Responsive — Act III
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  .route-scene--threshold .route-scene__type-specimen {
    grid-template-columns: 1fr;
  }

  .route-scene--threshold .route-scene__subhead-quote {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .route-scene--threshold .route-scene__body-quote {
    grid-column: 1 / -1;
  }

  .route-scene--threshold .route-scene__letter {
    font-size: 8rem;
  }

  .route-scene--threshold .route-scene__gallery-list {
    justify-content: center;
  }
}


/* ==========================================================================
   ACT VI — THRESHOLD PREVIEW SURFACES
   ========================================================================== */

/* --------------------------------------------------------------------------
   Preview wrapper
   -------------------------------------------------------------------------- */

.preview--threshold {
  background: transparent;
}

/* Common stage ground for dark surfaces */
.preview--threshold .preview-surface[data-theme="dark"] .preview-surface__stage {
  background-color: var(--thr-night);
  color: var(--thr-pearl);
}

/* Common stage ground for light surface (Surface 7 — email) */
.preview--threshold .preview-surface__stage--email {
  background-color: var(--thr-white);
  color: var(--thr-night);
}

/* Chrome band */
.preview--threshold .preview-surface__chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 6px;
  height: 28px;
}

.preview--threshold .preview-surface__label {
  font-family: var(--thr-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6F6A60;
}

.preview--threshold .preview-surface__open-hint {
  font-family: var(--thr-font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: #6F6A60;
  opacity: 0.65;
}

/* Stage base */
.preview--threshold .preview-surface__stage {
  border-top: 1px solid #E5E0D5;
  border-bottom: 1px solid #E5E0D5;
  overflow: hidden;
}

/* Caption below stage */
.preview--threshold .preview-surface__caption {
  display: block;
  margin-top: 0.75rem;
}

.preview--threshold .preview-surface__caption-eyebrow {
  display: block;
  font-family: var(--thr-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6F6A60;
  line-height: 1.4;
}

.preview--threshold .preview-surface__caption-annotation {
  display: block;
  font-family: var(--thr-font-display);
  font-size: 1rem;
  font-style: italic;
  color: #3A3631;
  max-width: 48ch;
  line-height: 1.5;
  margin-top: 0.25rem;
}

/* Shared gold underline utility */
.preview--threshold .preview-surface__gold-underline {
  text-decoration: underline;
  text-decoration-color: var(--thr-gold);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}


/* --------------------------------------------------------------------------
   Surface 1 — saracheikh.com hero
   Night bg · pearl bilingual wordmark · positioning · gold underline on 'lasts'
   -------------------------------------------------------------------------- */

.preview--threshold .preview-surface[data-surface="1"] .preview-surface__stage {
  aspect-ratio: 16 / 9;
  display: grid;
  grid-template-columns: 1fr 40%;
  overflow: hidden;
}

.preview--threshold .preview-surface[data-surface="1"] .preview-surface__typography-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2.5rem 3rem 3rem;
}

.preview--threshold .preview-surface[data-surface="1"] .preview-surface__wordmark {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.preview--threshold .preview-surface[data-surface="1"] .preview-surface__wordmark-en {
  font-family: var(--thr-font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  color: var(--thr-pearl);
  letter-spacing: -0.02em;
}

.preview--threshold .preview-surface[data-surface="1"] .preview-surface__wordmark-rule {
  display: block;
  width: 1px;
  height: 2.5rem;
  background-color: var(--thr-fault);
  flex-shrink: 0;
}

.preview--threshold .preview-surface[data-surface="1"] .preview-surface__wordmark-ar {
  font-family: var(--thr-font-display-ar);
  font-size: clamp(2.3rem, 4vw, 3.45rem); /* ~115% of Latin for cap-height parity */
  font-weight: 500;
  color: var(--thr-pearl);
  line-height: 1.05;
}

.preview--threshold .preview-surface[data-surface="1"] .preview-surface__positioning {
  font-family: var(--thr-font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--thr-pearl);
  max-width: 44ch;
  margin-bottom: 1.25rem;
}

.preview--threshold .preview-surface[data-surface="1"] .preview-surface__tagline {
  font-family: var(--thr-font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--thr-pearl);
  opacity: 0.8;
  margin: 0;
}

.preview--threshold .preview-surface[data-surface="1"] .preview-surface__portrait-col {
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--thr-fault);
}

.preview--threshold .preview-surface[data-surface="1"] .preview-surface__portrait-col img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(1) contrast(1.2) brightness(0.75);
}

/* 5% Interference gold screen in highlights — portrait tint for Threshold */
.preview--threshold .preview-surface[data-surface="1"] .preview-surface__portrait-col::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--thr-gold);
  mix-blend-mode: screen;
  opacity: 0.05;
  pointer-events: none;
}

.preview--threshold .preview-surface[data-surface="1"] .preview-surface__portrait-caption {
  position: absolute;
  bottom: 0.75rem;
  left: 1rem;
  font-family: var(--thr-font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--thr-fault);
  line-height: 1.4;
}

@media (max-width: 767px) {
  .preview--threshold .preview-surface[data-surface="1"] .preview-surface__stage {
    grid-template-columns: 1fr;
    aspect-ratio: 4 / 5;
  }

  .preview--threshold .preview-surface[data-surface="1"] .preview-surface__portrait-col {
    height: 280px;
    border-left: none;
    border-top: 1px solid var(--thr-fault);
  }
}


/* --------------------------------------------------------------------------
   Surface 2 — Substack masthead
   Night bg · gold hairline under name · Pearl Report about-modal
   -------------------------------------------------------------------------- */

.preview--threshold .preview-surface[data-surface="2"] .preview-surface__stage {
  display: flex;
  flex-direction: column;
}

.preview--threshold .preview-surface__masthead-banner {
  display: flex;
  gap: 2rem;
  align-items: stretch;
  padding: 1.5rem 2rem;
  background-color: var(--thr-night);
  aspect-ratio: 4 / 1;
}

.preview--threshold .preview-surface__masthead-name-zone {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.preview--threshold .preview-surface__masthead-name {
  font-family: var(--thr-font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 600;
  color: var(--thr-pearl);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.preview--threshold .preview-surface__masthead-rule-ar {
  display: block;
  width: 1px;
  height: 2rem;
  background-color: var(--thr-fault);
  margin: 0.25rem 0;
  visibility: hidden; /* Hidden — only used if Arabic is inline; here it's stacked */
}

.preview--threshold .preview-surface__masthead-name-ar {
  font-family: var(--thr-font-display-ar);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--thr-pearl);
  display: block;
  margin-top: 0.25rem;
  line-height: 1.05;
}

/* Gold hairline under the name — the single rationed instance */
.preview--threshold .preview-surface__gold-hairline {
  display: block;
  width: 60%;
  height: 1px;
  background-color: var(--thr-gold);
  margin: 0.5rem 0;
}

.preview--threshold .preview-surface__masthead-tagline {
  font-family: var(--thr-font-body);
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--thr-pearl);
  opacity: 0.7;
  margin: 0;
}

/* Right zone: empty (dark ground and gold hairline do the work) */
.preview--threshold .preview-surface__masthead-right {
  width: 35%;
  flex-shrink: 0;
  border-left: 1px solid var(--thr-fault);
  opacity: 0.4;
}

/* About-modal zone — Pearl Report band */
.preview--threshold .preview-surface__masthead-modal {
  background-color: var(--thr-pearl);
  color: var(--thr-night);
  padding: 1.25rem 2rem;
}

.preview--threshold .preview-surface__masthead-modal-eyebrow {
  font-family: var(--thr-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--thr-night);
  opacity: 0.6;
  margin: 0 0 0.75rem;
}

.preview--threshold .preview-surface__masthead-about {
  font-family: var(--thr-font-body);
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--thr-night);
  max-width: 56rem;
  margin: 0 0 1rem;
}

.preview--threshold .preview-surface__subscribe-btn {
  font-family: var(--thr-font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--thr-night);
  color: var(--thr-night);
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  border-radius: 0;
  display: block;
  margin-left: auto;
}

.preview--threshold .preview-surface__subscribe-btn:focus-visible {
  outline: 2px solid var(--thr-gold);
  outline-offset: 2px;
}


/* --------------------------------------------------------------------------
   Surface 3 — Commissioned report cover
   Night bg · pearl type · gold underline on 'Muslims'
   -------------------------------------------------------------------------- */

.preview--threshold .preview-surface[data-surface="3"] .preview-surface__stage--cover {
  aspect-ratio: 1 / 1.414;
  background-color: var(--thr-night);
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2.25rem;
  position: relative;
  overflow: hidden;
}

.preview--threshold .preview-surface__cover-eyebrow {
  font-family: var(--thr-font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--thr-fault);
  text-align: center;
  margin: 0 0 auto;
  padding-bottom: 1rem;
}

.preview--threshold .preview-surface__cover-title {
  font-family: var(--thr-font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  font-weight: 600;
  font-style: normal;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--thr-pearl);
  text-align: center;
  max-width: 80%;
  margin: 0 auto;
}

.preview--threshold .preview-surface__cover-deck {
  font-family: var(--thr-font-display);
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--thr-pearl);
  opacity: 0.75;
  text-align: center;
  max-width: 74%;
  margin: 1rem auto;
}

.preview--threshold .preview-surface__cover-rule {
  width: 60%;
  border: none;
  border-top: 1px solid var(--thr-fault);
  margin: 1rem auto;
}

.preview--threshold .preview-surface__cover-arabic-title {
  font-family: var(--thr-font-display-ar);
  font-size: 0.875rem;
  line-height: calc(1.6 + 0.1);
  color: var(--thr-pearl);
  text-align: center;
  max-width: 80%;
  margin: 0 auto 1rem;
}

.preview--threshold .preview-surface__cover-byline,
.preview--threshold .preview-surface__cover-date,
.preview--threshold .preview-surface__cover-prepared {
  font-family: var(--thr-font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--thr-pearl);
  opacity: 0.7;
  text-align: center;
  margin: 0.1rem 0;
}

.preview--threshold .preview-surface__cover-prepared {
  font-style: italic;
  text-transform: none;
  font-family: var(--thr-font-body);
  font-size: 0.5625rem;
}

.preview--threshold .preview-surface__cover-footer {
  font-family: var(--thr-font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--thr-fault);
  text-align: center;
  margin-top: auto;
  padding-top: 1rem;
}


/* --------------------------------------------------------------------------
   Surface 4 — Keynote opening slide
   Night Margin · Witness White title · gold hairline under title
   -------------------------------------------------------------------------- */

.preview--threshold .preview-surface[data-surface="4"] .preview-surface__stage--slide {
  aspect-ratio: 16 / 9;
  background-color: var(--thr-night);
  display: grid;
  grid-template-rows: auto;
  align-content: center;
  justify-items: center;
  padding: 2.5rem 3rem;
  position: relative;
}

.preview--threshold .preview-surface__slide-eyebrow {
  font-family: var(--thr-font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--thr-fault);
  position: absolute;
  top: 1.5rem;
  left: 1.75rem;
  margin: 0;
}

.preview--threshold .preview-surface__slide-title {
  font-family: var(--thr-font-display);
  font-size: clamp(1.5rem, 3.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--thr-white);
  text-align: center;
  max-width: 78%;
  margin: 0 0 0.5rem;
}

/* Gold hairline under slide title — the rationed instance */
.preview--threshold .preview-surface__gold-hairline--title {
  display: block;
  width: 50%;
  height: 1px;
  background-color: var(--thr-gold);
  margin: 0 auto 0.75rem;
}

.preview--threshold .preview-surface__slide-title-ar {
  font-family: var(--thr-font-display-ar);
  font-size: clamp(1rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: calc(1.15 + 0.1);
  color: var(--thr-pearl);
  text-align: center;
  margin: 0 0 1rem;
}

.preview--threshold .preview-surface__slide-subtitle {
  font-family: var(--thr-font-display);
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--thr-pearl);
  opacity: 0.75;
  text-align: center;
  max-width: 60ch;
  margin: 0 0 2rem;
}

.preview--threshold .preview-surface__slide-speaker {
  position: absolute;
  bottom: 1.75rem;
  left: 1.75rem;
  text-align: left;
}

.preview--threshold .preview-surface__slide-speaker-name {
  font-family: var(--thr-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--thr-pearl);
  margin: 0;
}

.preview--threshold .preview-surface__slide-speaker-role {
  font-family: var(--thr-font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--thr-fault);
  margin: 0.25rem 0 0;
}

.preview--threshold .preview-surface__slide-footer {
  position: absolute;
  bottom: 1.75rem;
  right: 1.75rem;
  font-family: var(--thr-font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--thr-fault);
  margin: 0;
}


/* --------------------------------------------------------------------------
   Surface 5 — LinkedIn banner + headline
   Night Margin + dark portrait bg · watermelon as inline SVG in gold
   -------------------------------------------------------------------------- */

.preview--threshold .preview-surface[data-surface="5"] .preview-surface__stage {
  display: flex;
  flex-direction: column;
}

.preview--threshold .preview-surface__linkedin-banner {
  aspect-ratio: 4 / 1;
  position: relative;
  overflow: hidden;
  background-color: var(--thr-night);
}

.preview--threshold .preview-surface__linkedin-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: luminosity;
  opacity: 0.55;
}

.preview--threshold .preview-surface__linkedin-copy {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  text-align: right;
  z-index: 2;
}

.preview--threshold .preview-surface__linkedin-line1 {
  font-family: var(--thr-font-display);
  font-size: clamp(1rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--thr-pearl);
  margin: 0;
}

.preview--threshold .preview-surface__linkedin-line2 {
  font-family: var(--thr-font-body);
  font-size: clamp(0.75rem, 1.5vw, 1.0625rem);
  color: var(--thr-pearl);
  margin: 0.25rem 0;
}

.preview--threshold .preview-surface__linkedin-line3 {
  font-family: var(--thr-font-body);
  font-size: clamp(0.625rem, 1.25vw, 0.875rem);
  font-style: italic;
  color: var(--thr-pearl);
  opacity: 0.75;
  margin: 0;
}

.preview--threshold .preview-surface__linkedin-arabic {
  font-family: var(--thr-font-display-ar);
  font-size: clamp(0.875rem, 1.75vw, 1.375rem);
  font-weight: 600;
  color: var(--thr-pearl);
  position: absolute;
  bottom: 0.75rem;
  left: 1rem;
  margin: 0;
}

/* Profile disc + headline card */
.preview--threshold .preview-surface__linkedin-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: var(--thr-night);
  padding: 1rem 1.5rem;
  position: relative;
}

.preview--threshold .preview-surface__linkedin-avatar-wrap {
  flex-shrink: 0;
  margin-top: -2.75rem; /* Overlap the banner bottom */
}

.preview--threshold .preview-surface__linkedin-avatar {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--thr-pearl);
  filter: grayscale(1) contrast(1.1) brightness(0.8);
}

.preview--threshold .preview-surface__linkedin-headline-col {
  flex: 1;
  min-width: 0;
}

.preview--threshold .preview-surface__linkedin-headline {
  font-family: var(--thr-font-body);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--thr-pearl);
  margin: 0 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

/* Watermelon SVG — rendered inline in markup, just needs sizing and alignment */
.preview--threshold .preview-surface__watermelon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.preview--threshold .preview-surface__linkedin-followers {
  font-family: var(--thr-font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--thr-fault);
  margin: 0;
}

@media (max-width: 767px) {
  .preview--threshold .preview-surface__linkedin-avatar-wrap {
    margin-top: 0;
  }

  .preview--threshold .preview-surface__linkedin-card {
    flex-direction: column;
  }
}


/* --------------------------------------------------------------------------
   Surface 6 — Substack post opening
   Night Margin outer · Pearl Report inner article band · gold diamond at byline
   -------------------------------------------------------------------------- */

.preview--threshold .preview-surface[data-surface="6"] .preview-surface__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--thr-night);
  padding: 2.5rem 1.5rem;
  aspect-ratio: 16 / 10;
}

@media (max-width: 767px) {
  .preview--threshold .preview-surface[data-surface="6"] .preview-surface__stage {
    aspect-ratio: 4 / 5;
    padding: 1.5rem 1rem;
  }
}

/* Pearl Report inner band */
.preview--threshold .preview-surface__article-band {
  background-color: var(--thr-pearl);
  color: var(--thr-night);
  width: 76%;
  padding: 2rem 2.25rem;
}

.preview--threshold .preview-surface__article-eyebrow {
  font-family: var(--thr-font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--thr-fault);
  margin: 0 0 0.75rem;
}

.preview--threshold .preview-surface__article-title {
  font-family: var(--thr-font-display);
  font-size: clamp(1.25rem, 2.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--thr-night);
  margin: 0 0 0.75rem;
}

.preview--threshold .preview-surface__article-deck {
  font-family: var(--thr-font-display);
  font-size: 0.9375rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--thr-night);
  opacity: 0.8;
  margin: 0 0 0.75rem;
}

.preview--threshold .preview-surface__article-byline {
  font-family: var(--thr-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--thr-fault);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0 0 0.75rem;
}

.preview--threshold .preview-surface__byline-diamond {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

.preview--threshold .preview-surface__article-rule {
  border: none;
  border-top: 1px solid var(--thr-fault);
  width: 40%;
  margin: 0.75rem 0;
  opacity: 0.4;
}

.preview--threshold .preview-surface__article-body {
  font-family: var(--thr-font-body);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--thr-night);
  margin: 0 0 0.75rem;
}

.preview--threshold .preview-surface__article-republication {
  font-family: var(--thr-font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--thr-fault);
  opacity: 0.7;
  margin: 0;
}


/* --------------------------------------------------------------------------
   Surface 7 — Email signature
   White email-client ground · Night Margin text · gold diamond at hinge
   Override: this surface does NOT use dark theme
   -------------------------------------------------------------------------- */

.preview--threshold .preview-surface[data-surface="7"] .preview-surface__stage--email {
  background-color: var(--thr-white);
  color: var(--thr-night);
  padding: 1.5rem;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Email chrome lines */
.preview--threshold .preview-surface__email-chrome {
  border-bottom: 1px solid rgba(107, 143, 163, 0.25);
  padding-bottom: 0.5rem;
}

.preview--threshold .preview-surface__email-chrome p {
  font-family: var(--thr-font-body);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #7A7A7A;
  margin: 0;
  opacity: 0.9;
}

/* Placeholder body text */
.preview--threshold .preview-surface__email-body-placeholder p {
  font-family: var(--thr-font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #5A5A5A;
  margin: 0;
}

/* Signature block */
.preview--threshold .preview-surface__signature {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(107, 143, 163, 0.15);
}

.preview--threshold .preview-surface__signature-avatar {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--thr-night);
  filter: grayscale(1) contrast(1.05) brightness(0.9);
  flex-shrink: 0;
}

.preview--threshold .preview-surface__signature-text {
  flex: 1;
  min-width: 0;
}

.preview--threshold .preview-surface__signature-latin {
  font-family: var(--thr-font-body);
  font-size: 0.875rem;
  font-style: normal;
  line-height: 1.55;
  color: var(--thr-night);
}

.preview--threshold .preview-surface__signature-latin strong {
  font-family: var(--thr-font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--thr-night);
}

/* Gold diamond at hinge — the single rationed instance */
.preview--threshold .preview-surface__signature-hinge {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
}

.preview--threshold .preview-surface__signature-arabic {
  font-family: var(--thr-font-display-ar);
  font-size: 0.9375rem;
  font-style: normal;
  line-height: calc(1.55 + 0.1);
  color: var(--thr-night);
  display: block;
  text-align: right;
}

.preview--threshold .preview-surface__signature-arabic strong {
  font-family: var(--thr-font-display-ar);
  font-size: 1.1875rem;
  font-weight: 600;
}

.preview--threshold .preview-surface__signature-footer {
  font-family: var(--thr-font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--thr-fault);
  opacity: 0.5;
  margin: 0.5rem 0 0;
}

@media (max-width: 767px) {
  .preview--threshold .preview-surface[data-surface="7"] .preview-surface__stage--email {
    aspect-ratio: 4 / 3;
  }
}


/* --------------------------------------------------------------------------
   Surface 8 — Arabic-primary hero (RTL)
   Night Margin · Tajawal dominant · gold underline on يدوم
   -------------------------------------------------------------------------- */

.preview--threshold .preview-surface[data-surface="8"] .preview-surface__stage {
  aspect-ratio: 16 / 9;
  display: grid;
  grid-template-columns: 40% 1fr;
  overflow: hidden;
  direction: rtl;
}

.preview--threshold .preview-surface[data-surface="8"] .preview-surface__portrait-col--rtl {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--thr-fault);
}

.preview--threshold .preview-surface[data-surface="8"] .preview-surface__portrait-col--rtl img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(1) contrast(1.2) brightness(0.75);
}

/* 5% gold screen tint — matches Surface 1 treatment */
.preview--threshold .preview-surface[data-surface="8"] .preview-surface__portrait-col--rtl::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--thr-gold);
  mix-blend-mode: screen;
  opacity: 0.05;
  pointer-events: none;
}

.preview--threshold .preview-surface[data-surface="8"] .preview-surface__typography-col--rtl {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3rem 3rem 2.5rem;
  text-align: right;
}

.preview--threshold .preview-surface[data-surface="8"] .preview-surface__wordmark--rtl {
  display: flex;
  align-items: baseline;
  flex-direction: row-reverse; /* Arabic is dominant — comes first visually in RTL */
  gap: 1rem;
  margin-bottom: 1.75rem;
  justify-content: flex-start;
}

/* Arabic dominant wordmark */
.preview--threshold .preview-surface[data-surface="8"] .preview-surface__wordmark-ar--dominant {
  font-family: var(--thr-font-display-ar);
  font-size: clamp(2.25rem, 4vw, 4rem);
  font-weight: 700;
  color: var(--thr-pearl);
  line-height: 1.05;
}

.preview--threshold .preview-surface[data-surface="8"] .preview-surface__wordmark-rule {
  display: block;
  width: 1px;
  height: 2.5rem;
  background-color: var(--thr-fault);
  flex-shrink: 0;
  align-self: center;
}

/* Latin secondary wordmark */
.preview--threshold .preview-surface[data-surface="8"] .preview-surface__wordmark-en--secondary {
  font-family: var(--thr-font-display);
  font-size: clamp(1.375rem, 2.5vw, 2.4rem);
  font-weight: 500;
  color: var(--thr-fault);
  letter-spacing: -0.01em;
  direction: ltr;
  unicode-bidi: isolate;
}

/* Arabic positioning */
.preview--threshold .preview-surface[data-surface="8"] .preview-surface__positioning--ar {
  font-family: var(--thr-font-body-ar);
  font-size: 1.0625rem;
  line-height: calc(1.65 + 0.1);
  color: var(--thr-pearl);
  max-width: 40ch;
  margin-bottom: 1.25rem;
  text-align: right;
}

/* Gold underline on يدوم — spec notes CSS text-decoration may under-weight
   in RTL; we implement via the span.preview-surface__gold-underline class
   and supplement with a border approach for RTL safety. */
.preview--threshold .preview-surface[data-surface="8"] .preview-surface__gold-underline {
  text-decoration: none;
  position: relative;
  display: inline;
}

.preview--threshold .preview-surface[data-surface="8"] .preview-surface__gold-underline::after {
  content: "";
  position: absolute;
  bottom: -4px;
  /* In RTL inline flow, right:0 + left:0 spans the element width */
  right: 0;
  left: 0;
  height: 1.5px;
  background-color: var(--thr-gold);
}

/* Arabic tagline */
.preview--threshold .preview-surface[data-surface="8"] .preview-surface__tagline--ar {
  font-family: var(--thr-font-display-ar);
  font-size: clamp(0.875rem, 1.5vw, 1.25rem);
  font-style: normal;
  color: var(--thr-pearl);
  margin: 0 0 0.5rem;
  text-align: right;
}

/* Latin secondary tagline */
.preview--threshold .preview-surface[data-surface="8"] .preview-surface__tagline-secondary {
  font-family: var(--thr-font-body);
  font-size: 0.875rem;
  font-style: italic;
  color: var(--thr-fault);
  margin: 0 0 1.5rem;
  text-align: right;
  direction: ltr;
  unicode-bidi: isolate;
}

.preview--threshold .preview-surface[data-surface="8"] .preview-surface__portrait-caption--rtl {
  font-family: var(--thr-font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  color: var(--thr-fault);
  text-align: right;
  margin: 0;
}

@media (max-width: 767px) {
  .preview--threshold .preview-surface[data-surface="8"] .preview-surface__stage {
    grid-template-columns: 1fr;
    aspect-ratio: 4 / 5;
  }

  .preview--threshold .preview-surface[data-surface="8"] .preview-surface__portrait-col--rtl {
    height: 280px;
    border-right: none;
    border-bottom: 1px solid var(--thr-fault);
  }
}


/* --------------------------------------------------------------------------
   Preview surface scroll-reveal (Act VI)
   -------------------------------------------------------------------------- */

.preview--threshold .preview-surface {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--dur-slow, 720ms) var(--ease-reveal, cubic-bezier(0.22, 0.61, 0.36, 1)),
    transform var(--dur-slow, 720ms) var(--ease-reveal, cubic-bezier(0.22, 0.61, 0.36, 1));
}

.preview--threshold .preview-surface.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger: handled by JS setting transition-delay;
   CSS fallback stagger for static/no-JS environments */
.preview--threshold .preview-surface:nth-child(2) { transition-delay: 120ms; }
.preview--threshold .preview-surface:nth-child(3) { transition-delay: 240ms; }
.preview--threshold .preview-surface:nth-child(4) { transition-delay: 360ms; }
.preview--threshold .preview-surface:nth-child(5) { transition-delay: 480ms; }
.preview--threshold .preview-surface:nth-child(6) { transition-delay: 600ms; }
.preview--threshold .preview-surface:nth-child(7) { transition-delay: 720ms; }
.preview--threshold .preview-surface:nth-child(8) { transition-delay: 840ms; }

@media (prefers-reduced-motion: reduce) {
  .preview--threshold .preview-surface {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* --------------------------------------------------------------------------
   Focus outlines — visible on dark backgrounds
   -------------------------------------------------------------------------- */

.route-scene--threshold :focus-visible,
.preview--threshold :focus-visible {
  outline: 2px solid var(--thr-gold);
  outline-offset: 3px;
}

/* For light-ground surfaces (email signature), use night ink outline */
.preview--threshold .preview-surface[data-surface="7"] :focus-visible {
  outline-color: var(--thr-night);
}
