/* Forelab Signal: scene-based design language for the website (draft, /next).
   Identity: a forecasting lab for marketing. One luminous line runs through every page,
   marketing formats are shown as annotated specimens, and scroll drives each scene.
   Loaded after web.css (header, footer, buttons). Prefix: sg-. */

:root {
  --sg-ink: #07070b;
  --sg-ink-2: #0d0d14;
  --sg-ink-3: #15151e;
  --sg-paper: #f2f1ec;
  --sg-paper-2: #e9e7e0;
  --sg-paper-3: #dedbd2;
  --sg-text: #121218;
  --sg-dim: #63626b;
  --sg-on-ink: #ecebf2;
  --sg-on-ink-dim: rgba(236, 235, 242, 0.6);
  --sg-on-ink-faint: rgba(236, 235, 242, 0.34);
  --sg-hair-ink: rgba(255, 255, 255, 0.09);
  --sg-hair-paper: rgba(18, 18, 24, 0.12);
  --sg-a: #4f6bff;
  --sg-b: #8b6cff;
  --sg-c: #e06ad7;
  --sg-up: #2fcf94;
  --sg-warn: #f2a93b;
  --sg-down: #ff6b6b;
  --sg-line: linear-gradient(90deg, var(--sg-a), var(--sg-b) 55%, var(--sg-c));
  --sg-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sg-wrap: 1320px;
  --sg-gut: clamp(16px, 4vw, 56px);
  --sg-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --sg-out: cubic-bezier(0.16, 1, 0.3, 1);
}

body.sg { background: var(--sg-ink); }
body.sg main { overflow-x: clip; }
.sg-wrap { max-width: var(--sg-wrap); margin: 0 auto; padding: 0 var(--sg-gut); }
.sg-ink { background: var(--sg-ink); color: var(--sg-on-ink); }
.sg-paper { background: var(--sg-paper); color: var(--sg-text); }
.sg-paper-2 { background: var(--sg-paper-2); color: var(--sg-text); }
.sg-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.sg-scene { position: relative; }

/* ---------- type ---------- */
.sg-h1, .sg-h2, .sg-h3 { font-family: var(--sans); font-weight: 800; margin: 0; text-wrap: balance; }
.sg-h1 { font-size: clamp(2.9rem, 7.2vw, 7.4rem); line-height: 0.92; letter-spacing: -0.052em; }
.sg-h2 { font-size: clamp(2.3rem, 5.2vw, 5rem); line-height: 0.96; letter-spacing: -0.046em; }
.sg-h3 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.05; letter-spacing: -0.035em; }
.sg-h1 em, .sg-h2 em, .sg-h3 em, .sg-say em {
  font-family: var(--sg-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em;
  background: var(--sg-line); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0 0.08em 0.06em 0.02em;
}
.sg-lead { font-size: clamp(1.02rem, 1.35vw, 1.24rem); line-height: 1.55; max-width: 36rem; margin: 1.4rem 0 0; }
.sg-ink .sg-lead { color: var(--sg-on-ink-dim); }
.sg-paper .sg-lead, .sg-paper-2 .sg-lead { color: var(--sg-dim); }
.sg-kicker {
  display: inline-flex; align-items: center; gap: 0.7rem; margin: 0 0 1.4rem;
  font: 600 0.7rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
}
.sg-kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.6; }
.sg-ink .sg-kicker { color: var(--sg-on-ink-dim); }
.sg-paper .sg-kicker, .sg-paper-2 .sg-kicker { color: var(--sg-dim); }
.sg-kicker .sg-pill { margin-left: 0.2rem; }
.sg-fig { font: 500 0.7rem/1.55 var(--mono); letter-spacing: 0.02em; max-width: 34rem; }
.sg-fig b { font-weight: 600; margin-right: 0.7em; letter-spacing: 0.1em; text-transform: uppercase; }
.sg-ink .sg-fig { color: var(--sg-on-ink-faint); }
.sg-ink .sg-fig b { color: var(--sg-on-ink-dim); }
.sg-paper .sg-fig, .sg-paper-2 .sg-fig { color: var(--sg-dim); }
.sg-paper .sg-fig b, .sg-paper-2 .sg-fig b { color: var(--sg-text); }
.sg-pill {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.6rem; border-radius: 999px;
  font: 600 0.64rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid currentColor;
}
.sg-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sg-pill.live { color: var(--sg-up); }
.sg-pill.early { color: var(--sg-b); }
.sg-pill.soon { color: var(--sg-on-ink-faint); }
.sg-paper .sg-pill.soon, .sg-paper-2 .sg-pill.soon { color: var(--sg-dim); }
.sg-paper .sg-pill.live, .sg-paper-2 .sg-pill.live { color: #128a5f; }
.sg-paper .sg-pill.early, .sg-paper-2 .sg-pill.early { color: #5b3fd6; }

/* ---------- buttons ---------- */
.sg-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }
.sg-btn {
  display: inline-flex; align-items: center; gap: 0.55rem; height: 3.1rem; padding: 0 1.45rem; border-radius: 999px;
  font: 600 0.95rem/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  background: #fff; color: #0a0a0d; border: 1px solid #fff;
  transition: transform 0.35s var(--sg-out), box-shadow 0.35s var(--sg-out), background 0.2s;
}
.sg-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -14px rgba(139, 108, 255, 0.75); color: #0a0a0d; }
.sg-btn svg { width: 16px; height: 16px; }
.sg-btn.ghost { background: transparent; color: var(--sg-on-ink); border-color: var(--sg-hair-ink); }
.sg-btn.ghost:hover { background: rgba(255, 255, 255, 0.06); color: #fff; box-shadow: none; }
.sg-paper .sg-btn, .sg-paper-2 .sg-btn { background: #0a0a0d; color: #fff; border-color: #0a0a0d; }
.sg-paper .sg-btn.ghost, .sg-paper-2 .sg-btn.ghost { background: transparent; color: var(--sg-text); border-color: var(--sg-hair-paper); }

/* ---------- lab grid + corner marks ---------- */
.sg-grid { position: absolute; inset: 0; pointer-events: none; }
.sg-grid::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--sg-hair-ink) 1px, transparent 1px), linear-gradient(90deg, var(--sg-hair-ink) 1px, transparent 1px);
  background-size: 76px 76px; background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 78%);
  opacity: 0.55;
}
.sg-paper .sg-grid::before, .sg-paper-2 .sg-grid::before {
  background-image: linear-gradient(var(--sg-hair-paper) 1px, transparent 1px), linear-gradient(90deg, var(--sg-hair-paper) 1px, transparent 1px);
  opacity: 0.5;
}
.sg-plus { position: absolute; width: 13px; height: 13px; pointer-events: none; opacity: 0.55; }
.sg-plus::before, .sg-plus::after { content: ""; position: absolute; background: currentColor; }
.sg-plus::before { left: 6px; top: 0; width: 1px; height: 13px; }
.sg-plus::after { top: 6px; left: 0; height: 1px; width: 13px; }

/* =============================================================== HERO: noise to line */
.sg-hero { position: relative; height: 300vh; background: var(--sg-ink); color: var(--sg-on-ink);
  margin-top: calc(-1 * var(--film-header-h, var(--w-header-h))); }
.sg-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sg-hero .sg-glow { position: absolute; inset: -20% -10% auto; height: 90%; pointer-events: none;
  background: radial-gradient(40% 50% at 30% 40%, rgba(79, 107, 255, 0.16), transparent 70%),
              radial-gradient(35% 45% at 75% 30%, rgba(224, 106, 215, 0.1), transparent 70%);
  opacity: calc(0.4 + var(--p, 0) * 0.8); }
.sg-hero-copy { position: absolute; inset: 0; pointer-events: none; }
.sg-hero-copy > div { position: absolute; left: 0; right: 0; }
.sg-hero-a { top: 50%; transform: translateY(calc(-50% - var(--p, 0) * 120px)); opacity: clamp(0, 1 - var(--p, 0) * 4.2, 1); text-align: center; }
.sg-hero-a .sg-h1 { font-size: clamp(3.2rem, 9.6vw, 9.6rem); }
.sg-hero-a p { margin: 1.4rem auto 0; color: var(--sg-on-ink-dim); font-size: clamp(1rem, 1.4vw, 1.2rem); }
.sg-hero-b { top: clamp(6rem, 14vh, 9rem); opacity: clamp(0, (var(--p, 0) - 0.5) * 5, 1);
  transform: translateY(calc((1 - clamp(0, (var(--p, 0) - 0.5) * 5, 1)) * 36px)); }
.sg-hero.is-b .sg-hero-b { pointer-events: auto; }
.sg-hero-b .sg-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); column-gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.sg-hero-b .sg-kicker { grid-column: 1 / -1; }
.sg-hero-b .sg-h1 { max-width: 12ch; font-size: clamp(2.6rem, 5.6vw, 5.8rem); }
.sg-hero-b .sg-lead { max-width: 30rem; margin-top: 0; font-size: clamp(0.98rem, 1.15vw, 1.1rem); }
.sg-hero-b .sg-actions { margin-top: 1.4rem; }
.sg-frags { position: absolute; inset: 0; pointer-events: none; }
.sg-frag {
  position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.42rem 0.62rem; border-radius: 9px; white-space: nowrap; will-change: transform, opacity;
  font: 500 0.74rem/1 var(--mono); color: var(--sg-on-ink);
  background: rgba(20, 20, 30, 0.72); border: 1px solid var(--sg-hair-ink);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.sg-frag i { display: none; }
.sg-frag small { color: var(--sg-on-ink-faint); font-size: 0.66rem; }
.sg-hero-foot { position: absolute; left: 0; right: 0; bottom: clamp(18px, 3.4vh, 32px); }
.sg-hero-foot .sg-wrap { display: flex; justify-content: flex-end; align-items: flex-end; gap: 2rem; }
.sg-cue { display: inline-flex; align-items: center; gap: 0.7rem; font: 600 0.66rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--sg-on-ink-faint); opacity: clamp(0, 1 - var(--p, 0) * 6, 1); }
.sg-cue span { position: relative; width: 1px; height: 34px; background: var(--sg-hair-ink); overflow: hidden; }
.sg-cue span::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--sg-on-ink); animation: sg-cue 1.8s var(--sg-ease) infinite; }
@keyframes sg-cue { to { top: 100%; } }
.sg-readout { position: absolute; pointer-events: none; font: 500 0.7rem/1.4 var(--mono); color: var(--sg-on-ink); background: rgba(10, 10, 16, 0.88);
  border: 1px solid var(--sg-hair-ink); border-radius: 8px; padding: 0.45rem 0.6rem; white-space: nowrap; opacity: 0; transition: opacity 0.2s; transform: translate(-50%, -120%); }
.sg-readout b { color: #fff; font-weight: 600; }
.sg-readout small { display: block; color: var(--sg-on-ink-faint); }
.sg-readout.on { opacity: 1; }

/* =============================================================== platform strip */
.sg-strip { border-top: 1px solid var(--sg-hair-ink); border-bottom: 1px solid var(--sg-hair-ink); }
.sg-strip .sg-wrap { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.6rem); min-height: 5.4rem; flex-wrap: wrap; padding-top: 1rem; padding-bottom: 1rem; }
.sg-strip-label { font: 600 0.66rem/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sg-on-ink-faint); }
.sg-src { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; font-size: 0.92rem; color: var(--sg-on-ink); }
.sg-src svg { width: 20px; height: 20px; }
.sg-src.soon { color: var(--sg-on-ink-faint); }
.sg-src.soon svg { opacity: 0.5; filter: grayscale(1); }
.sg-src small { font: 600 0.58rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--sg-up); }
.sg-src.soon small { color: var(--sg-on-ink-faint); }
.sg-strip-sep { flex: 1; }

/* =============================================================== statement (words light with scroll) */
.sg-say-scene { height: 220vh; }
.sg-say-scene .sg-pin { display: flex; align-items: center; }
.sg-say { font-family: var(--sans); font-weight: 700; font-size: clamp(2rem, 4.6vw, 4.4rem); line-height: 1.06; letter-spacing: -0.04em; margin: 0; max-width: 20ch; text-wrap: balance; }
.sg-say .w { transition: color 0.25s, opacity 0.25s; color: var(--sg-paper-3); }
.sg-say .w.on { color: var(--sg-text); }
.sg-say em { color: inherit; }
/* the phrase reads like the other words until every word of it is lit, then turns to the gradient */
.sg-say em:has(.w:not(.on)) { background: none; }
.sg-say em:not(:has(.w:not(.on))) .w { color: transparent; }

/* =============================================================== specimen track (horizontal, pinned) */
.sg-track { position: relative; }
.sg-track .sg-pin { display: flex; flex-direction: column; justify-content: center; gap: clamp(1rem, 3.2vh, 2.4rem); padding-top: var(--w-header-h); }
.sg-track-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.sg-track-head .sg-h2 { font-size: clamp(1.8rem, 3.3vw, 3.1rem); max-width: 19ch; }
.sg-track-head .sg-kicker { margin-bottom: 1rem; }
.sg-track-head .sg-lead { margin: 0; max-width: 26rem; }
.sg-track-meter { height: 1px; background: var(--sg-hair-paper); position: relative; margin-top: 1rem; }
.sg-track-meter i { position: absolute; left: 0; top: -1px; height: 3px; width: calc(var(--p, 0) * 100%); background: var(--sg-text); border-radius: 2px; }
.sg-track-row { display: flex; align-items: center; gap: clamp(90px, 10vw, 150px); padding: 0 var(--sg-gut) 0 calc(var(--sg-gut) + 40px); will-change: transform; }
.sg-spec { flex: none; position: relative; margin: 0; }
.sg-spec-label { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; font: 500 0.66rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sg-dim); }
.sg-spec-label b { color: var(--sg-text); font-weight: 600; }
.sg-spec-label svg { width: 15px; height: 15px; }
.sg-spec-body { position: relative; }
.sg-note {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 0.45rem;
  font: 500 0.7rem/1.2 var(--mono); white-space: nowrap; padding: 0.42rem 0.6rem; border-radius: 7px;
  background: var(--sg-text); color: #fff; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.45);
  opacity: 0; transform: translateY(8px) scale(0.96);
  transition: opacity 0.5s var(--sg-out) var(--d, 0s), transform 0.6s var(--sg-out) var(--d, 0s);
}
.sg-note b { font-weight: 600; }
.sg-note::after { content: ""; position: absolute; top: 50%; height: 1px; width: var(--len, 34px); background: var(--sg-text); opacity: 0.55; }
.sg-note.r::after { right: 100%; }
.sg-note.l::after { left: 100%; }
.sg-spec.is-on .sg-note, .sg-chap.is-on .sg-note { opacity: 1; transform: none; }
.sg-spec-cap { margin-top: 0.9rem; max-width: 21rem; font-size: 0.86rem; line-height: 1.5; color: var(--sg-dim); }

/* specimen: shared social chrome */
.sg-post { width: 300px; background: #fff; border-radius: 14px; box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 24px 50px -28px rgba(18, 18, 24, 0.45); overflow: hidden; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; color: #111; }
.sg-post header { display: flex; align-items: center; gap: 0.55rem; padding: 0.7rem 0.8rem; font-size: 0.8rem; }
.sg-post header b { display: block; font-size: 0.8rem; }
.sg-post header small { display: block; font-size: 0.68rem; color: #6b6b72; }
.sg-post header .dots { margin-left: auto; letter-spacing: 0.1em; color: #6b6b72; }
.sg-av { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 700 0.72rem/1 var(--sans); color: #fff; }
.sg-av.sahra { background: radial-gradient(circle at 30% 30%, #d9a066, #6b3a1c); }
.sg-av.bayt { background: radial-gradient(circle at 30% 30%, #e8b48f, #a24d32); }
.sg-av.rimal { background: radial-gradient(circle at 30% 30%, #ffb35c, #c2410c); }
.sg-post .copy { padding: 0 0.8rem 0.6rem; font-size: 0.8rem; line-height: 1.4; margin: 0; }
.sg-post .bar { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.6rem 0.8rem; background: #f3f3f5; font-size: 0.72rem; }
.sg-post .bar small { display: block; color: #6b6b72; text-transform: uppercase; font-size: 0.6rem; letter-spacing: 0.04em; }
.sg-post .bar b { font-size: 0.82rem; }
.sg-post .bar span { padding: 0.45rem 0.7rem; border-radius: 6px; background: #e4e4e8; font-weight: 600; font-size: 0.74rem; white-space: nowrap; }
.sg-post .react { display: flex; gap: 0.9rem; align-items: center; padding: 0.55rem 0.8rem 0.7rem; font-size: 0.72rem; color: #55555c; }
.sg-post .react svg { width: 17px; height: 17px; }
.sg-post .react .sp { flex: 1; }
.sg-post .likes { padding: 0 0.8rem; font-size: 0.74rem; font-weight: 600; }
.sg-post .cap { padding: 0.25rem 0.8rem 0.85rem; font-size: 0.74rem; line-height: 1.45; color: #222; }
.sg-post .cap span[lang="ar"] { display: block; direction: rtl; font-size: 0.8rem; margin-top: 0.15rem; color: #444; }

/* art: Iftar coffee (paid social) */
.sg-art { position: relative; overflow: hidden; }
.art-iftar { aspect-ratio: 1 / 1; background:
  radial-gradient(2px 2px at 18% 22%, #fff8, transparent), radial-gradient(1.5px 1.5px at 72% 12%, #fff9, transparent),
  radial-gradient(1.5px 1.5px at 84% 38%, #fff6, transparent), radial-gradient(2px 2px at 40% 9%, #fff7, transparent),
  linear-gradient(180deg, #1b1240 0%, #3b1f4a 48%, #b4553a 100%); }
.art-iftar .moon { position: absolute; top: 12%; right: 14%; width: 62px; height: 62px; border-radius: 50%; box-shadow: -12px 8px 0 0 #ffd98a; transform: rotate(-20deg); }
.art-iftar .cup { position: absolute; left: 50%; bottom: 13%; width: 118px; height: 92px; margin-left: -70px; background: linear-gradient(180deg, #f6efe6, #d8cbbb); border-radius: 6px 6px 46px 46px; box-shadow: inset -10px -6px 0 rgba(0,0,0,0.06); }
.art-iftar .cup::after { content: ""; position: absolute; right: -32px; top: 18px; width: 36px; height: 38px; border: 9px solid #e9dfd2; border-left: 0; border-radius: 0 22px 22px 0; }
.art-iftar .cup::before { content: ""; position: absolute; left: 8px; right: 8px; top: 7px; height: 11px; border-radius: 50%; background: #5a3620; }
.art-iftar .saucer { position: absolute; left: 50%; bottom: 9%; width: 190px; height: 22px; margin-left: -95px; border-radius: 50%; background: #e9dfd2; box-shadow: 0 10px 24px rgba(0,0,0,0.35); }
.art-iftar .steam { position: absolute; left: 50%; bottom: 40%; width: 60px; height: 64px; margin-left: -40px; }
.art-iftar .steam i { position: absolute; bottom: 0; width: 3px; height: 54px; border-radius: 3px; background: linear-gradient(transparent, #fff6, transparent); animation: sg-steam 3.2s ease-in-out infinite; }
.art-iftar .steam i:nth-child(1) { left: 12px; }
.art-iftar .steam i:nth-child(2) { left: 28px; animation-delay: -1.1s; height: 62px; }
.art-iftar .steam i:nth-child(3) { left: 44px; animation-delay: -2.1s; }
@keyframes sg-steam { 0% { transform: translateY(10px) scaleY(0.6); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(-16px) scaleY(1.1) skewX(8deg); opacity: 0; } }
.art-iftar .t1 { position: absolute; left: 7%; top: 9%; font: italic 400 2.5rem/0.9 var(--sg-serif); color: #ffe7c2; letter-spacing: -0.01em; }
.art-iftar .t2 { position: absolute; left: 7%; top: 37%; font: 700 0.62rem/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: #ffd98a; }

/* art: running reel (short video) */
.sg-reel { width: 236px; height: 420px; border-radius: 24px; overflow: hidden; position: relative; color: #fff; font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(180deg, #ff9a52 0%, #f0683a 30%, #8c2f3d 62%, #2a1430 100%); box-shadow: 0 30px 60px -30px rgba(18, 18, 24, 0.6); }
.sg-reel .sun { position: absolute; left: 50%; top: 24%; width: 150px; height: 150px; margin-left: -75px; border-radius: 50%; background: radial-gradient(circle, #ffe2a8, #ffb35c 60%, transparent 70%); }
.sg-reel .dune { position: absolute; left: -20%; right: -20%; border-radius: 50% 50% 0 0; }
.sg-reel .dune.d1 { bottom: 26%; height: 120px; background: #b8452f; }
.sg-reel .dune.d2 { bottom: 12%; height: 150px; background: #7a2a2f; left: -40%; }
.sg-reel .dune.d3 { bottom: -6%; height: 160px; background: #3a1726; }
.sg-reel .runner { position: absolute; left: 56%; bottom: 33%; width: 26px; height: 62px; animation: sg-run 0.7s ease-in-out infinite alternate; }
.sg-reel .runner::before { content: ""; position: absolute; left: 7px; top: 0; width: 13px; height: 13px; border-radius: 50%; background: #1d0d16; }
.sg-reel .runner::after { content: ""; position: absolute; left: 9px; top: 14px; width: 9px; height: 30px; border-radius: 6px; background: #1d0d16; box-shadow: -9px 22px 0 -1px #1d0d16, 9px 26px 0 -1px #1d0d16; transform: rotate(10deg); }
@keyframes sg-run { to { transform: translateY(-4px); } }
.sg-reel .cap-k { position: absolute; left: 0; right: 0; top: 13%; text-align: center; font: 800 1.45rem/1.05 var(--sans); letter-spacing: -0.02em; text-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.sg-reel .cap-k span { display: block; opacity: 0; animation: sg-kin 6s infinite; }
.sg-reel .cap-k span:nth-child(2) { animation-delay: 0.7s; }
.sg-reel .cap-k span:nth-child(3) { animation-delay: 1.4s; color: #ffe2a8; font-size: 2.3rem; }
@keyframes sg-kin { 0% { opacity: 0; transform: translateY(10px); } 8%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }
.sg-reel .rail { position: absolute; right: 10px; bottom: 74px; display: flex; flex-direction: column; gap: 16px; align-items: center; font-size: 0.66rem; font-weight: 600; }
.sg-reel .rail span { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.sg-reel .rail svg { width: 24px; height: 24px; fill: rgba(255,255,255,0.92); stroke: none; }
.sg-reel .who { position: absolute; left: 12px; right: 60px; bottom: 26px; font-size: 0.74rem; line-height: 1.35; }
.sg-reel .who b { display: block; }
.sg-reel .prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,0.25); }
.sg-reel .prog i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #fff; animation: sg-prog 6s linear infinite; }
@keyframes sg-prog { to { width: 100%; } }

/* art: majlis lighting carousel */
.art-bayt { aspect-ratio: 1 / 1; background: linear-gradient(180deg, #efe3d3, #e2cdb4); }
.art-bayt .arch { position: absolute; bottom: 0; width: 34%; height: 70%; border-radius: 999px 999px 0 0; }
.art-bayt .arch.a1 { left: 8%; background: #c9764f; }
.art-bayt .arch.a2 { left: 33%; height: 82%; background: #a24d32; }
.art-bayt .arch.a3 { left: 58%; background: #d9a87c; }
.art-bayt .lamp { position: absolute; left: 50%; top: 0; width: 2px; height: 26%; background: #3b2418; }
.art-bayt .lamp::after { content: ""; position: absolute; left: -22px; bottom: -26px; width: 46px; height: 30px; border-radius: 46px 46px 6px 6px; background: #f3c26b; box-shadow: 0 18px 60px 18px rgba(255, 210, 130, 0.55); }
.art-bayt .sofa { position: absolute; left: 6%; right: 6%; bottom: 0; height: 15%; background: #f6efe4; border-radius: 12px 12px 0 0; box-shadow: inset 0 6px 0 #fbf7f0; }
.art-bayt .tt { position: absolute; left: 8%; top: 8%; font: italic 400 1.9rem/0.95 var(--sg-serif); color: #3b2418; max-width: 9ch; }
.art-bayt .n { position: absolute; right: 10px; top: 10px; font: 600 0.66rem/1 var(--sans); background: rgba(20,20,20,0.6); color: #fff; padding: 0.3rem 0.45rem; border-radius: 99px; }
.sg-post .dotsrow { display: flex; justify-content: center; gap: 4px; padding-top: 0.55rem; }
.sg-post .dotsrow i { width: 6px; height: 6px; border-radius: 50%; background: #d0d0d6; }
.sg-post .dotsrow i:first-child { background: #3b82f6; }

/* specimen: search result */
.sg-serp { width: 440px; background: #fff; border-radius: 14px; padding: 1rem 1.1rem 1.2rem; box-shadow: 0 24px 50px -28px rgba(18, 18, 24, 0.45); font-family: Arial, Helvetica, sans-serif; color: #202124; }
.sg-serp .q { display: flex; align-items: center; gap: 0.6rem; border: 1px solid #dfe1e5; border-radius: 99px; padding: 0.55rem 0.9rem; font-size: 0.84rem; margin-bottom: 0.9rem; }
.sg-serp .q svg { width: 15px; height: 15px; color: #6b6b72; }
.sg-serp ol { list-style: none; margin: 0; padding: 0; position: relative; }
.sg-serp li { padding: 0.55rem 0.2rem; border-radius: 10px; transition: transform 1s var(--sg-out), background 0.6s; }
.sg-serp li small { display: flex; align-items: center; gap: 0.4rem; font-size: 0.7rem; color: #4d5156; }
.sg-serp li small i { width: 16px; height: 16px; border-radius: 50%; background: #e8eaed; display: inline-block; }
.sg-serp li b { display: block; color: #1a0dab; font-weight: 400; font-size: 0.96rem; margin: 0.15rem 0; }
.sg-serp li p { margin: 0; font-size: 0.74rem; color: #4d5156; line-height: 1.4; }
.sg-serp li.ours { background: #f3f0ff; padding-left: 0.6rem; padding-right: 0.6rem; }
.sg-serp li.ours small i { background: linear-gradient(135deg, #ffb35c, #c2410c); }
.sg-serp .pos { position: absolute; right: 0.4rem; font: 600 0.66rem/1 var(--mono); color: #5b3fd6; }
.sg-spec .sg-serp li.ours { transform: translateY(calc(var(--climb, 0) * 1px)); }

/* specimen: AI answer */
.sg-ai { width: 420px; background: #fff; border-radius: 16px; padding: 1.1rem 1.2rem 1.2rem; box-shadow: 0 24px 50px -28px rgba(18, 18, 24, 0.45); color: #1b1b1f; font-size: 0.84rem; line-height: 1.55; }
.sg-ai .ask { margin-left: auto; width: fit-content; max-width: 85%; background: #f1f0f5; border-radius: 14px 14px 4px 14px; padding: 0.55rem 0.8rem; font-size: 0.8rem; }
.sg-ai .ans { margin-top: 0.9rem; display: flex; gap: 0.7rem; }
.sg-ai .ans > i { width: 24px; height: 24px; border-radius: 7px; flex: none; background: conic-gradient(from 200deg, #4f6bff, #8b6cff, #e06ad7, #4f6bff); }
.sg-ai .ans p { margin: 0; }
.sg-ai sup { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 3px; margin-left: 2px; border-radius: 4px; background: #ecebf3; font: 600 0.6rem/1 var(--mono); color: #4b4b55; vertical-align: 2px; }
.sg-ai sup.me { background: #8b6cff; color: #fff; }
.sg-ai .src { margin-top: 0.9rem; display: grid; gap: 0.4rem; }
.sg-ai .src span { display: flex; gap: 0.5rem; align-items: center; font-size: 0.72rem; color: #55555f; padding: 0.42rem 0.55rem; border: 1px solid #ecebf0; border-radius: 8px; }
.sg-ai .src span.me { border-color: #cfc3ff; background: #f6f3ff; color: #2d2156; font-weight: 600; }
.sg-ai .src em { font-style: normal; font: 600 0.6rem/1 var(--mono); color: #8a8a94; }

/* specimen: store funnel */
.sg-funnel { width: 420px; background: #fff; border-radius: 14px; padding: 1.1rem 1.2rem 1.2rem; box-shadow: 0 24px 50px -28px rgba(18, 18, 24, 0.45); }
.sg-funnel h4 { margin: 0 0 0.2rem; font-size: 0.86rem; font-weight: 700; }
.sg-funnel > small { display: block; font: 500 0.66rem/1.4 var(--mono); color: #77767f; margin-bottom: 0.9rem; }
.sg-funnel .st { display: grid; grid-template-columns: 7.5rem 1fr 4.2rem; align-items: center; gap: 0.6rem; margin: 0.42rem 0; font-size: 0.76rem; }
.sg-funnel .st span { color: #44434b; }
.sg-funnel .st b { font: 600 0.74rem/1 var(--mono); text-align: right; }
.sg-funnel .st i { display: block; height: 20px; border-radius: 5px; background: linear-gradient(90deg, #4f6bff, #8b6cff); width: 0; transition: width 1.1s var(--sg-out) var(--d, 0s); }
.sg-spec.is-on .sg-funnel .st i, .sg-chap.is-on .sg-funnel .st i { width: var(--w); }
.sg-funnel .st.drop i { background: linear-gradient(90deg, #f2a93b, #ff6b6b); }

/* =============================================================== Buddy scene */
.sg-ask { height: 340vh; }
.sg-ask .sg-pin { display: flex; align-items: center; }
.sg-ask-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; width: 100%; }
.sg-q { font: 700 clamp(2rem, 4.4vw, 4.2rem)/1.02 var(--sans); letter-spacing: -0.045em; margin: 0; min-height: 2.1em; }
.sg-q .caret { display: inline-block; width: 0.06em; height: 0.9em; margin-left: 0.05em; vertical-align: -0.08em; background: var(--sg-b); animation: sg-blink 1s steps(1) infinite; }
@keyframes sg-blink { 50% { opacity: 0; } }
.sg-ans { position: relative; border: 1px solid var(--sg-hair-ink); border-radius: 22px; padding: clamp(1.1rem, 2vw, 1.6rem); background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)); }
.sg-ans-top { display: flex; align-items: center; gap: 0.6rem; font: 600 0.68rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--sg-on-ink-dim); margin-bottom: 1.1rem; }
.sg-ans-top i { width: 22px; height: 22px; border-radius: 7px; background: conic-gradient(from 200deg, var(--sg-a), var(--sg-b), var(--sg-c), var(--sg-a)); }
.sg-ln { opacity: 0.12; transform: translateY(8px); transition: opacity 0.5s var(--sg-out), transform 0.6s var(--sg-out); }
.sg-ln.on { opacity: 1; transform: none; }
.sg-ln + .sg-ln { margin-top: 0.95rem; }
.sg-srcs { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.sg-srcs span { display: inline-flex; align-items: center; gap: 0.4rem; font: 500 0.7rem/1 var(--mono); padding: 0.42rem 0.55rem; border-radius: 7px; border: 1px solid var(--sg-hair-ink); color: var(--sg-on-ink-dim); }
.sg-srcs svg { width: 14px; height: 14px; }
.sg-ln p { margin: 0; color: var(--sg-on-ink); font-size: clamp(0.94rem, 1.15vw, 1.04rem); line-height: 1.55; }
.sg-ln p b { color: #fff; }
.sg-ln p .num { font-family: var(--mono); font-size: 0.92em; color: #fff; background: rgba(139,108,255,0.18); padding: 0.05em 0.3em; border-radius: 5px; }
.sg-chart { width: 100%; height: auto; display: block; }
.sg-chart .ax { stroke: var(--sg-hair-ink); }
.sg-chart text { font: 500 10px var(--mono); fill: var(--sg-on-ink-faint); }
.sg-chart .l1, .sg-chart .l2 { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--q, 0)); }
.sg-chart .l1 { stroke: var(--sg-up); }
.sg-chart .l2 { stroke: var(--sg-warn); }
.sg-legend { display: flex; gap: 1rem; margin-top: 0.4rem; font: 500 0.66rem/1 var(--mono); color: var(--sg-on-ink-dim); }
.sg-legend i { display: inline-block; width: 10px; height: 2px; margin-right: 0.4rem; vertical-align: 3px; }
.sg-act { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.8rem; border-radius: 12px; background: rgba(47, 207, 148, 0.08); border: 1px solid rgba(47, 207, 148, 0.25); font-size: 0.86rem; }
.sg-act + .sg-act { margin-top: 0.5rem; }
.sg-act svg { width: 16px; height: 16px; color: var(--sg-up); flex: none; }
.sg-act small { margin-left: auto; font: 500 0.66rem/1 var(--mono); color: var(--sg-on-ink-faint); white-space: nowrap; }
.sg-ask-side { display: flex; flex-direction: column; gap: 1.6rem; }
.sg-ask-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; max-width: 26rem; }
.sg-ask-rail i { height: 3px; border-radius: 3px; background: var(--sg-hair-ink); position: relative; overflow: hidden; }
.sg-ask-rail i::after { content: ""; position: absolute; inset: 0; background: var(--sg-line); transform-origin: left; transform: scaleX(var(--f, 0)); }
.sg-ask-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; max-width: 26rem; font: 500 0.62rem/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--sg-on-ink-faint); }

/* =============================================================== region calendar */
.sg-cal { padding: clamp(5rem, 12vh, 9rem) 0; position: relative; overflow: hidden; }
.sg-cal-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem; align-items: end; }
.sg-cal-scroll { margin-top: clamp(2.5rem, 6vh, 4rem); overflow-x: auto; scrollbar-width: none; }
.sg-cal-scroll::-webkit-scrollbar { display: none; }
.sg-cal-svg { display: block; width: 100%; min-width: 860px; height: auto; overflow: visible; }
.sg-cal-svg .base { stroke: var(--sg-hair-paper); }
.sg-cal-svg .tick text, .sg-cal-svg text.m { font: 600 11px var(--mono); fill: var(--sg-dim); letter-spacing: 0.08em; }
.sg-cal-svg .wknd { fill: rgba(18, 18, 24, 0.035); }
.sg-cal-svg .ln { fill: none; stroke: url(#sg-cal-grad); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); }
.sg-cal-svg .band { fill: url(#sg-cal-band); opacity: calc(var(--p, 0) * 1); }
.sg-cal-svg .ev { opacity: 0; transition: opacity 0.5s var(--sg-out), transform 0.6s var(--sg-out); transform: translateY(8px); transform-box: fill-box; }
.sg-cal-svg .ev.on { opacity: 1; transform: none; }
.sg-cal-svg .ev line { stroke: var(--sg-text); stroke-dasharray: 3 4; opacity: 0.35; }
.sg-cal-svg .ev rect { fill: var(--sg-text); }
.sg-cal-svg .ev text { font: 600 11px var(--sans); fill: #fff; }
.sg-cal-svg .ev.mus rect { fill: #3d2aa8; }
.sg-cal-svg .ev.chr rect { fill: #9b2f6e; }
.sg-cal-svg .ev.nat rect { fill: #0f6b52; }
.sg-cal-svg .ev.com rect { fill: #121218; }
.sg-cal-key { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.6rem; font: 500 0.72rem/1 var(--mono); color: var(--sg-dim); }
.sg-cal-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 0.5rem; vertical-align: -1px; }
.sg-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: clamp(3rem, 7vh, 5rem); border-top: 1px solid var(--sg-hair-paper); padding-top: 1.8rem; }
.sg-facts h3 { margin: 0 0 0.5rem; font-size: 1.05rem; letter-spacing: -0.02em; }
.sg-facts p { margin: 0; color: var(--sg-dim); font-size: 0.92rem; line-height: 1.55; }
.sg-facts b.n { display: block; font: 600 0.68rem/1 var(--mono); color: var(--sg-dim); letter-spacing: 0.1em; margin-bottom: 1rem; }

/* =============================================================== editorial index (products) */
.sg-index { padding: clamp(5rem, 12vh, 9rem) 0 clamp(4rem, 10vh, 7rem); position: relative; }
.sg-index-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.sg-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sg-hair-ink); }
.sg-row { border-bottom: 1px solid var(--sg-hair-ink); }
.sg-row a { display: grid; grid-template-columns: 4rem minmax(0, 1.1fr) minmax(0, 1fr) 8rem 1.5rem; align-items: center; gap: 1.5rem; padding: clamp(1.1rem, 2.4vh, 1.6rem) 0; color: var(--sg-on-ink); text-decoration: none; position: relative; }
.sg-row a::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(139,108,255,0.12), transparent 70%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.sg-row .n { font: 500 0.72rem/1 var(--mono); color: var(--sg-on-ink-faint); }
.sg-row .t { font: 700 clamp(1.5rem, 3vw, 2.7rem)/1 var(--sans); letter-spacing: -0.04em; transition: transform 0.5s var(--sg-out); }
.sg-row .d { color: var(--sg-on-ink-dim); font-size: 0.94rem; line-height: 1.5; }
.sg-row .s { justify-self: end; }
.sg-row a > svg { width: 20px; height: 20px; color: var(--sg-on-ink-faint); transition: transform 0.4s var(--sg-out), color 0.3s; }
.sg-row a:hover::before, .sg-row a:focus-visible::before { opacity: 1; }
.sg-row a:hover .t, .sg-row a:focus-visible .t { transform: translateX(14px); }
.sg-row a:hover > svg { transform: translateX(4px); color: #fff; }
.sg-peek { position: fixed; left: 0; top: 0; z-index: 40; width: 300px; height: 196px; border-radius: 16px; pointer-events: none; overflow: hidden;
  background: #101018; border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8);
  opacity: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(0.92); transition: opacity 0.25s, transform 0.1s linear; }
.sg-peek.on { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(1); }
.sg-peek svg { width: 100%; height: 100%; display: block; }
.sg-peek-src { display: none; }

/* =============================================================== numbers */
.sg-nums { padding: clamp(4.5rem, 11vh, 8rem) 0; position: relative; }
.sg-nums-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--sg-hair-paper); }
.sg-num { padding: 1.6rem 1.2rem 0 0; }
.sg-num + .sg-num { border-left: 1px solid var(--sg-hair-paper); padding-left: 1.2rem; }
.sg-num b { display: block; font: 800 clamp(2.6rem, 5.4vw, 5.2rem)/0.9 var(--sans); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.sg-num span { display: block; margin-top: 0.8rem; font: 500 0.7rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--sg-dim); max-width: 12rem; }

/* =============================================================== lab notes (learn) */
.sg-notes { padding: 0 0 clamp(5rem, 12vh, 8rem); }
.sg-notes-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 2rem; }
.sg-note-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
.sg-note-list li { border-top: 1px solid var(--sg-hair-paper); }
.sg-note-list a { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) 1.2rem; gap: 1rem; align-items: baseline; padding: 1.3rem 0; text-decoration: none; color: var(--sg-text); }
.sg-note-list small { font: 600 0.64rem/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--sg-dim); }
.sg-note-list b { font-size: clamp(1.05rem, 1.5vw, 1.28rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; transition: color 0.2s; }
.sg-note-list svg { width: 18px; height: 18px; color: var(--sg-dim); transition: transform 0.3s var(--sg-out); align-self: center; }
.sg-note-list a:hover b { color: #4b2fd0; }
.sg-note-list a:hover svg { transform: translateX(4px); }

/* =============================================================== closing */
.sg-end { position: relative; padding: clamp(7rem, 18vh, 12rem) 0 clamp(5rem, 12vh, 8rem); overflow: hidden; }
.sg-end-line { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; width: 100%; pointer-events: none; }
.sg-end .sg-btn.ghost { background: rgba(7, 7, 11, 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sg-end { padding-bottom: clamp(9rem, 22vh, 14rem); }
.sg-end-line .h { fill: none; stroke: url(#sg-end-grad); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); }
.sg-end-line .f { fill: none; stroke: #e06ad7; stroke-width: 2; stroke-dasharray: 6 7; opacity: clamp(0, (var(--p, 0) - 0.7) * 4, 1); }
.sg-end-line .b { fill: rgba(224, 106, 215, 0.1); opacity: clamp(0, (var(--p, 0) - 0.7) * 4, 1); }
.sg-end-line .today { stroke: rgba(255,255,255,0.4); stroke-dasharray: 2 4; opacity: clamp(0, (var(--p, 0) - 0.6) * 4, 1); }
.sg-end-line text { font: 600 10px var(--mono); fill: rgba(255,255,255,0.5); letter-spacing: 0.1em; opacity: clamp(0, (var(--p, 0) - 0.6) * 4, 1); }
.sg-end .sg-h1 { font-size: clamp(2.8rem, 7vw, 7rem); max-width: 14ch; position: relative; }
.sg-end .sg-lead { position: relative; }
.sg-end .sg-actions { position: relative; }

/* =============================================================== inner page: feed wall (Social Studio hero) */
.sg-wallhero { height: 250vh; position: relative; background: var(--sg-ink); color: var(--sg-on-ink); margin-top: calc(-1 * var(--film-header-h, var(--w-header-h))); }
.sg-wallhero .sg-pin { display: flex; align-items: center; padding-top: var(--w-header-h); }
.sg-wallhero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; width: 100%; }
.sg-crumbs { display: flex; gap: 0.5rem; font: 500 0.68rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sg-on-ink-faint); margin-bottom: 1.6rem; }
.sg-crumbs a { color: var(--sg-on-ink-dim); text-decoration: none; }
.sg-crumbs a:hover { color: #fff; }
.sg-wall { position: relative; width: 100%; aspect-ratio: 4 / 3.15; }
.sg-tile { position: absolute; left: 0; top: 0; border-radius: 12px; overflow: hidden; will-change: transform; transition: box-shadow 0.4s, filter 0.4s; }
.sg-tile .art { position: absolute; inset: 0; }
.sg-tile b { position: absolute; left: 7px; bottom: 7px; font: 600 0.66rem/1 var(--mono); padding: 0.3rem 0.4rem; border-radius: 6px; background: rgba(8, 8, 12, 0.72); color: #fff; }
.sg-tile b.hi { background: var(--sg-up); color: #04130d; }
.sg-tile b.lo { color: var(--sg-on-ink-dim); }
.sg-tile > svg { position: absolute; right: 7px; top: 7px; width: 16px; height: 16px; color: #fff; opacity: 0.9; }
.sg-wall.sorted .sg-tile.top { box-shadow: 0 0 0 2px var(--sg-up), 0 18px 40px -16px rgba(47, 207, 148, 0.55); }
.sg-wall.sorted .sg-tile.low { filter: saturate(0.35) brightness(0.6); }
.sg-wall-axis { position: absolute; left: 0; right: 0; bottom: -2.2rem; display: flex; justify-content: space-between; font: 500 0.64rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sg-on-ink-faint); }
.sg-wall-axis span:nth-child(2) { opacity: var(--sorted, 0); }
/* tile art palette */
.ta-1 { background: radial-gradient(circle at 70% 30%, #ffe2a8 0 14%, transparent 15%), linear-gradient(160deg, #3b1f4a, #b4553a); }
.ta-2 { background: radial-gradient(ellipse 60% 40% at 50% 100%, #7a2a2f 60%, transparent 61%), linear-gradient(180deg, #ff9a52, #c2410c); }
.ta-3 { background: radial-gradient(circle at 50% 120%, #a24d32 0 45%, transparent 46%), linear-gradient(180deg, #efe3d3, #d9a87c); }
.ta-4 { background: repeating-linear-gradient(135deg, #1e2a5a 0 10px, #24346e 10px 20px); }
.ta-5 { background: radial-gradient(circle at 35% 40%, #f6efe6 0 18%, transparent 19%), radial-gradient(circle at 35% 40%, #5a3620 0 23%, transparent 24%), linear-gradient(180deg, #d9c7b0, #b89a7a); }
.ta-6 { background: linear-gradient(180deg, transparent 55%, #0f3d33 56%), radial-gradient(circle at 50% 40%, #2fcf94 0 20%, transparent 21%), #0c2621; }
.ta-7 { background: conic-gradient(from 90deg at 50% 60%, #e06ad7, #8b6cff, #4f6bff, #e06ad7); }
.ta-8 { background: radial-gradient(circle at 50% 35%, #2a1430 0 16%, transparent 17%), radial-gradient(ellipse 34% 40% at 50% 95%, #2a1430 0 99%, transparent 100%), linear-gradient(180deg, #ffb35c, #f0683a); }
.ta-9 { background: linear-gradient(90deg, #f2f1ec 0 50%, #121218 50%); }
.ta-10 { background: radial-gradient(circle at 30% 70%, #f3c26b 0 12%, transparent 13%), linear-gradient(160deg, #a24d32, #3b2418); }
.ta-11 { background: repeating-radial-gradient(circle at 50% 50%, #8b6cff 0 6px, #15151e 6px 14px); }
.ta-12 { background: linear-gradient(135deg, #e9e7e0 0 40%, #c9764f 40% 70%, #3b2418 70%); }

/* =============================================================== inner page: video reader */
.sg-reader { height: 300vh; }
.sg-reader .sg-pin { display: flex; align-items: center; padding-top: var(--w-header-h); }
.sg-reader-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) auto minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 4rem); align-items: center; width: 100%; }
.sg-vid { position: relative; width: clamp(220px, 22vw, 290px); aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: #2a1430; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.5); }
.sg-vid .sc { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s; }
.sg-vid .sc.on { opacity: 1; }
.sg-vid .sc1 { background: radial-gradient(circle at 50% 38%, #e9b48f 0 19%, transparent 20%), radial-gradient(ellipse 46% 30% at 50% 88%, #3b2418 0 99%, transparent 100%), linear-gradient(180deg, #d9a87c, #8c4a2f); }
.sg-vid .sc1::after { content: ""; position: absolute; left: 50%; top: 22%; width: 34%; height: 13%; margin-left: -17%; border-radius: 50% 50% 0 0; background: #2a1810; }
.sg-vid .sc2 { background: radial-gradient(circle at 46% 56%, #f6efe6 0 15%, transparent 16%), radial-gradient(circle at 46% 56%, #5a3620 0 20%, transparent 21%), radial-gradient(ellipse 30% 22% at 60% 72%, #e9b48f 0 99%, transparent 100%), linear-gradient(180deg, #3b1f4a, #b4553a); }
.sg-vid .sc3 { background: linear-gradient(180deg, #1b1240, #3b1f4a 50%, #b4553a); }
.sg-vid .sc3 span, .sg-vid .sc4 span { position: absolute; left: 10%; right: 10%; top: 36%; text-align: center; font: 800 1.9rem/1 var(--sans); letter-spacing: -0.03em; color: #ffe7c2; }
.sg-vid .sc3 span em { display: block; font: italic 400 1.4rem/1.1 var(--sg-serif); color: #fff; margin-top: 0.4rem; }
.sg-vid .sc4 { background: linear-gradient(180deg, #3b1f4a, #b4553a); }
.sg-vid .sc4 span { top: auto; bottom: 18%; font-size: 1rem; padding: 0.8rem; border-radius: 12px; background: #fff; color: #1b1240; }
.sg-vid .tl { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.3); }
.sg-vid .tl i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); border-radius: 4px; background: #fff; }
.sg-vid .clock { position: absolute; left: 12px; top: 12px; font: 600 0.66rem/1 var(--mono); padding: 0.3rem 0.45rem; border-radius: 6px; background: rgba(0,0,0,0.45); color: #fff; }
.sg-tags { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.sg-tags li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 0.8rem; align-items: center; padding: 0.75rem 0.9rem; border-radius: 12px; border: 1px solid var(--sg-hair-paper); background: rgba(255,255,255,0.6); opacity: 0.25; transform: translateX(10px); transition: opacity 0.4s var(--sg-out), transform 0.5s var(--sg-out), background 0.3s; }
.sg-tags li.on { opacity: 1; transform: none; }
.sg-tags li.now { background: #fff; box-shadow: 0 14px 30px -20px rgba(18,18,24,0.45); }
.sg-tags time { font: 600 0.72rem/1 var(--mono); color: #5b3fd6; }
.sg-tags b { display: block; font-size: 0.92rem; }
.sg-tags small { display: block; font-size: 0.78rem; color: var(--sg-dim); margin-top: 0.15rem; }
.sg-verdict { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 14px; background: var(--sg-text); color: #fff; opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--sg-out), transform 0.6s var(--sg-out); }
.sg-verdict.on { opacity: 1; transform: none; }
.sg-verdict small { display: block; font: 600 0.62rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 0.5rem; }
.sg-verdict p { margin: 0; font-size: 0.95rem; line-height: 1.5; }

/* =============================================================== inner page: stacked chapters */
.sg-stack { padding: clamp(4rem, 10vh, 7rem) 0 clamp(5rem, 12vh, 8rem); }
.sg-stack-head { margin-bottom: clamp(2rem, 5vh, 3rem); display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.sg-chap { position: sticky; top: calc(var(--w-header-h) + 1rem + var(--i, 0) * 16px); margin-bottom: 4vh; transform-origin: 50% 0; transform: scale(calc(1 - var(--cover, 0) * 0.05)); filter: brightness(calc(1 - var(--cover, 0) * 0.12)); }
.sg-chap-in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; min-height: min(72vh, 640px); padding: clamp(1.6rem, 3.4vw, 3.2rem); border-radius: 28px; background: var(--tint, #fff); border: 1px solid rgba(18, 18, 24, 0.07); box-shadow: 0 -18px 40px -30px rgba(18,18,24,0.35); }
.sg-chap-n { display: flex; align-items: center; gap: 0.7rem; font: 600 0.68rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sg-dim); margin-bottom: 1.2rem; }
.sg-chap h3 { margin: 0; font: 800 clamp(1.8rem, 3.4vw, 3.2rem)/1 var(--sans); letter-spacing: -0.045em; text-wrap: balance; }
.sg-chap h3 em { font-family: var(--sg-serif); font-style: italic; font-weight: 400; }
.sg-chap p { color: #4c4b53; font-size: 1rem; line-height: 1.6; margin: 1.1rem 0 0; max-width: 30rem; }
.sg-chap-vis { position: relative; display: grid; place-items: center; min-height: 340px; }
/* chapter visuals */
.sg-board { width: 100%; max-width: 470px; background: #fff; border-radius: 18px; padding: 1.1rem; box-shadow: 0 24px 50px -28px rgba(18, 18, 24, 0.4); }
.sg-board h5 { margin: 0 0 0.8rem; display: flex; justify-content: space-between; font-size: 0.82rem; }
.sg-board h5 small { font: 500 0.66rem/1 var(--mono); color: #77767f; }
.sg-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-bottom: 0.8rem; }
.sg-kpis span { border: 1px solid #ecebf0; border-radius: 10px; padding: 0.55rem 0.6rem; font-size: 0.66rem; color: #77767f; }
.sg-kpis b { display: block; font: 700 1.05rem/1.1 var(--sans); color: #121218; letter-spacing: -0.02em; margin-top: 0.15rem; }
.sg-kpis em { font-style: normal; font: 600 0.62rem/1 var(--mono); color: #128a5f; }
.sg-mini { width: 100%; height: auto; display: block; }
.sg-mini .h { fill: none; stroke: #5b3fd6; stroke-width: 2; }
.sg-mini .f { fill: none; stroke: #e06ad7; stroke-width: 2; stroke-dasharray: 5 5; }
.sg-mini .b { fill: rgba(224, 106, 215, 0.12); }
.sg-mini .dot { fill: #ff6b6b; }
.sg-mini .g { stroke: #ecebf0; }
.sg-mini text { font: 500 9px var(--mono); fill: #8a8a94; }
.sg-week { width: 100%; max-width: 480px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.sg-week > span { font: 600 0.6rem/1 var(--mono); color: #77767f; text-align: center; padding-bottom: 0.3rem; letter-spacing: 0.06em; }
.sg-week .day { min-height: 150px; border-radius: 10px; background: rgba(255,255,255,0.7); border: 1px solid #ecebf0; padding: 5px; display: flex; flex-direction: column; gap: 5px; }
.sg-week .slot { border-radius: 7px; padding: 6px; font-size: 0.62rem; line-height: 1.25; color: #fff; }
.sg-week .slot small { display: block; font: 600 0.54rem/1.2 var(--mono); opacity: 0.8; margin-top: 2px; text-transform: uppercase; letter-spacing: 0.04em; }
.sg-week .s-reel { background: #c2410c; }
.sg-week .s-car { background: #a24d32; }
.sg-week .s-post { background: #3d2aa8; }
.sg-week .s-shoot { background: #fff; color: #121218; border: 1px dashed #b9b8c2; }
.sg-play { width: 100%; max-width: 460px; background: #121218; color: #fff; border-radius: 18px; padding: 1.3rem; box-shadow: 0 24px 50px -28px rgba(18,18,24,0.6); }
.sg-play small { font: 600 0.62rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.sg-play h6 { margin: 0.6rem 0 0.4rem; font: 700 1.2rem/1.2 var(--sans); letter-spacing: -0.02em; }
.sg-play p { color: rgba(255,255,255,0.68); font-size: 0.86rem; margin: 0; max-width: none; }
.sg-play .bars { display: grid; gap: 0.45rem; margin-top: 1rem; }
.sg-play .bars span { display: grid; grid-template-columns: 8.5rem 1fr 3rem; gap: 0.6rem; align-items: center; font-size: 0.72rem; color: rgba(255,255,255,0.7); }
.sg-play .bars i { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.12); position: relative; overflow: hidden; }
.sg-play .bars i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--sg-line); border-radius: 4px; }
.sg-play .bars b { font: 600 0.72rem/1 var(--mono); text-align: right; }
.sg-play .proof { margin-top: 1rem; font: 500 0.68rem/1.4 var(--mono); color: rgba(255,255,255,0.5); }
.sg-rivals { width: 100%; max-width: 480px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.sg-rival { background: #fff; border-radius: 14px; padding: 0.7rem; box-shadow: 0 18px 40px -28px rgba(18,18,24,0.45); }
.sg-rival header { display: flex; align-items: center; gap: 0.4rem; font-size: 0.7rem; font-weight: 700; margin-bottom: 0.55rem; }
.sg-rival header i { width: 18px; height: 18px; border-radius: 50%; }
.sg-rival .g { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.sg-rival .g span { aspect-ratio: 1; border-radius: 5px; }
.sg-rival footer { margin-top: 0.55rem; font: 500 0.6rem/1.4 var(--mono); color: #77767f; }
.sg-rival footer b { color: #121218; }
.sg-rival.you { outline: 2px solid #5b3fd6; }
.sg-boost { width: 100%; max-width: 460px; display: grid; gap: 0.6rem; }
.sg-boost > div { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 0.8rem; align-items: center; background: #fff; border-radius: 14px; padding: 0.6rem; box-shadow: 0 18px 40px -28px rgba(18,18,24,0.45); }
.sg-boost .th { width: 56px; height: 56px; border-radius: 10px; }
.sg-boost b { display: block; font-size: 0.82rem; }
.sg-boost small { display: block; font: 500 0.64rem/1.4 var(--mono); color: #77767f; }
.sg-boost em { font-style: normal; font: 600 0.64rem/1 var(--mono); padding: 0.4rem 0.5rem; border-radius: 6px; background: #e8f7f1; color: #128a5f; white-space: nowrap; }
.sg-boost em.no { background: #f3f2f6; color: #77767f; }

/* ---------- editorial rows (who / faq) ---------- */
.sg-who { padding: clamp(4.5rem, 11vh, 8rem) 0; }
.sg-who-row { display: grid; grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.5rem; padding: 1.6rem 0; border-top: 1px solid var(--sg-hair-paper); align-items: baseline; }
.sg-who-row:last-child { border-bottom: 1px solid var(--sg-hair-paper); }
.sg-who-row small { font: 600 0.68rem/1 var(--mono); color: var(--sg-dim); }
.sg-who-row h3 { margin: 0; font: 700 clamp(1.4rem, 2.6vw, 2.2rem)/1.05 var(--sans); letter-spacing: -0.035em; }
.sg-who-row p { margin: 0; color: var(--sg-dim); line-height: 1.6; }
.sg-faq { padding: clamp(4rem, 10vh, 7rem) 0; }
.sg-faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); }
.sg-faq details { border-top: 1px solid var(--sg-hair-paper); }
.sg-faq details:last-child { border-bottom: 1px solid var(--sg-hair-paper); }
.sg-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.3rem 0; font: 700 clamp(1.02rem, 1.4vw, 1.2rem)/1.3 var(--sans); letter-spacing: -0.015em; }
.sg-faq summary::-webkit-details-marker { display: none; }
.sg-faq summary::after { content: "+"; font: 400 1.5rem/1 var(--sans); color: var(--sg-dim); transition: transform 0.3s var(--sg-out); }
.sg-faq details[open] summary::after { transform: rotate(45deg); }
.sg-faq details p { margin: 0 0 1.4rem; color: var(--sg-dim); line-height: 1.65; max-width: 40rem; }

/* =============================================================== reveal */
.sg-js .sg-rise { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--sg-out), transform 1s var(--sg-out); transition-delay: var(--d, 0s); }
.sg-js .sg-rise.in { opacity: 1; transform: none; }
.sg-js .sg-mask { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--sg-out); transition-delay: var(--d, 0s); }
.sg-js .sg-mask.in { clip-path: inset(0 0 -10% 0); }

/* =============================================================== responsive */
@media (max-width: 1080px) {
  .sg-row a { grid-template-columns: 3rem minmax(0, 1fr) 7rem 1.2rem; }
  .sg-row .d { display: none; }
  .sg-nums-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sg-num:nth-child(4) { border-left: 0; padding-left: 0; }
  .sg-reader-grid { grid-template-columns: auto minmax(0, 1fr); }
  .sg-reader-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .sg-ask-grid, .sg-wallhero-grid, .sg-chap-in, .sg-cal-head, .sg-faq-grid { grid-template-columns: minmax(0, 1fr); }
  .sg-ask-grid { gap: 1.2rem; }
  .sg-q { font-size: clamp(1.7rem, 7vw, 2.4rem); min-height: 2.2em; }
  .sg-ask-side .sg-fig, .sg-ask-steps { display: none; }
  .sg-ans { padding: 1rem; }
  .sg-ln + .sg-ln { margin-top: 0.7rem; }
  .sg-ln p { font-size: 0.88rem; }
  .sg-facts { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .sg-note-list { grid-template-columns: minmax(0, 1fr); }
  .sg-wallhero { height: auto; }
  .sg-wallhero .sg-pin { position: relative; height: auto; padding: calc(var(--w-header-h) + 2rem) 0 4.5rem; }
  .sg-chap { position: relative; top: auto; transform: none; filter: none; }
  .sg-chap-vis { min-height: 0; }
  .sg-who-row { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .sg-track-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
@media (max-width: 760px) {
  .sg-hero-b { top: 6.2rem; }
  .sg-strip-sep { display: none; }
  .sg-track { height: auto !important; }
  .sg-track .sg-pin { position: relative; height: auto; padding: 4.5rem 0; overflow: visible; }
  .sg-track-row { transform: none !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1.4rem; padding: 0.5rem var(--sg-gut) 1rem; scrollbar-width: none; align-items: flex-start; }
  .sg-track-row::-webkit-scrollbar { display: none; }
  .sg-spec { scroll-snap-align: center; max-width: 86vw; }
  .sg-spec-body { display: flex; flex-direction: column; }
  .sg-note { position: static; opacity: 1; transform: none; margin: 0.4rem 0.35rem 0 0; align-self: flex-start; }
  .sg-note::after { display: none; }
  .sg-track-meter { display: none; }
  .sg-post, .sg-serp, .sg-ai, .sg-funnel { width: min(330px, 84vw); }
  .sg-funnel .st { grid-template-columns: 6rem 1fr 3.6rem; }
  .sg-row a { grid-template-columns: 2.4rem minmax(0, 1fr) 1.2rem; gap: 0.9rem; }
  .sg-row .s { display: none; }
  .sg-nums-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg-num, .sg-num + .sg-num { border-left: 0; padding-left: 0; }
  .sg-num:nth-child(even) { border-left: 1px solid var(--sg-hair-paper); padding-left: 1rem; }
  .sg-note-list a { grid-template-columns: minmax(0, 1fr) 1.2rem; }
  .sg-note-list small { grid-column: 1 / -1; }
  .sg-reader-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .sg-reader-grid > * { justify-self: stretch; }
  .sg-vid { justify-self: center; width: 52vw; }
  .sg-reader .sg-pin { align-items: flex-start; padding-top: calc(var(--w-header-h) + 1rem); }
  .sg-reader-grid > :first-child { display: none; }
  .sg-tags li { padding: 0.55rem 0.7rem; }
  .sg-tags small { display: none; }
  .sg-week { grid-template-columns: repeat(4, 1fr); }
  .sg-week .day:nth-of-type(n+5) { display: none; }
  .sg-week > span:nth-child(n+5):nth-child(-n+7) { display: none; }
  .sg-rivals { grid-template-columns: repeat(2, 1fr); }
  .sg-rival:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sg-hero, .sg-say-scene, .sg-ask, .sg-reader, .sg-wallhero { height: auto; }
  .sg-js .sg-rise, .sg-js .sg-mask { opacity: 1; transform: none; clip-path: none; transition: none; }
  .sg-note, .sg-ln, .sg-tags li, .sg-verdict, .sg-cal-svg .ev { opacity: 1; transform: none; transition: none; }
  .sg-reel *, .art-iftar *, .sg-cue span::after, .sg-q .caret { animation: none !important; }
  .sg-chap { position: relative; top: auto; transform: none; filter: none; }
}

/* heading colors follow the scene, never web.css's ink default */
.sg-ink .sg-h1, .sg-ink .sg-h2, .sg-ink .sg-h3, .sg-ink .sg-q,
.sg-hero .sg-h1, .sg-wallhero .sg-h1, .sg-ink h2, .sg-ink h3 { color: var(--sg-on-ink); }
.sg-paper .sg-h1, .sg-paper .sg-h2, .sg-paper .sg-h3, .sg-paper-2 .sg-h2, .sg-paper-2 .sg-h3,
.sg-paper h2, .sg-paper h3, .sg-paper-2 h3 { color: var(--sg-text); }
/* platform marks: one ink, like a lab label */
.sg-strip svg, .sg-srcs svg, .sg-spec-label svg { fill: currentColor; }
/* left-hand notes sit on the specimen itself, so neighbours never collide */
.sg-note.l { right: auto !important; left: 12px !important; }
.sg-note.l::after { display: none; }
@media (max-height: 820px) and (min-width: 761px) {
  .sg-spec-cap { display: none; }
  .sg-track-head .sg-lead { font-size: 0.95rem; }
}

/* header tone on Signal pages: paper glass by default, ink glass over dark scenes */
body.sg .w-header { background: rgba(242, 241, 236, 0.88); }
body.sg .w-header.is-scrolled:not(.over-hero) { background: rgba(242, 241, 236, 0.97); }
body.sg .w-header.over-hero { background: rgba(7, 7, 11, 0.42); }
body.sg .w-header.over-hero.is-scrolled { background: rgba(7, 7, 11, 0.9); border-bottom-color: rgba(255, 255, 255, 0.07); }
/* phone menu open: header turns white with the drawer under it, even over a dark scene */
body.sg.w-menu-open .w-header,
body.sg.w-menu-open .w-header.over-hero,
body.sg.w-menu-open .w-header.over-hero.is-scrolled { background: #fff; border-bottom-color: var(--border); }

/* phone: hero B stacks, line stays below the copy; index head wraps; chips stay inside the screen */
@media (max-width: 760px) {
  .sg-hero-b .sg-wrap { display: block; }
  .sg-hero-b .sg-h1 { font-size: clamp(2.3rem, 11vw, 3rem); max-width: none; }
  .sg-hero-b .sg-lead { margin-top: 0.9rem; font-size: 0.95rem; }
  .sg-hero-b .sg-actions { margin-top: 1.1rem; }
  .sg-frag:nth-of-type(even) { display: none; }
  .sg-frag { max-width: calc(100vw - 2 * var(--sg-gut)); }
  /* a kicker that wraps keeps its lines apart; the centred hero kicker fits on one line without its dash */
  .sg-kicker { line-height: 1.5; }
  .sg-hero-a .sg-kicker { letter-spacing: 0.1em; margin-bottom: 0.9rem; }
  .sg-hero-a .sg-kicker::before { display: none; }
  .sg-index-head { flex-wrap: wrap; align-items: flex-start; gap: 1rem; }
}

/* ---------------------------------------------------------------- real photos and footage
   {{media:slot}} drops an .sg-real image or video into a specimen; the drawn art underneath hides,
   the titles stay on top with a soft shade for legibility. */
.sg-real { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 0; }
.art-iftar:has(> .sg-real) > .moon, .art-iftar:has(> .sg-real) > .steam, .art-iftar:has(> .sg-real) > .saucer,
.art-iftar:has(> .sg-real) > .cup, .art-bayt:has(> .sg-real) > .arch, .art-bayt:has(> .sg-real) > .lamp,
.art-bayt:has(> .sg-real) > .sofa, .sg-reel:has(> .sg-real) > .sun, .sg-reel:has(> .sg-real) > .dune,
.sg-reel:has(> .sg-real) > .runner, .sg-tile:has(> .sg-real) > .art { display: none; }
.sg-art:has(> .sg-real)::after, .sg-reel:has(> .sg-real)::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 9, 16, 0.58) 0%, rgba(12, 9, 16, 0) 42%, rgba(12, 9, 16, 0) 62%, rgba(12, 9, 16, 0.5) 100%); }
.sg-art > :not(.sg-real), .sg-reel > :not(.sg-real) { z-index: 2; }
.art-bayt:has(> .sg-real) .tt { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.sg-tile > .sg-real { z-index: 0; }
.sg-tile > svg, .sg-tile > b { z-index: 1; }
.sg-vid:has(.sg-real) .sc { background: none; }
.sg-vid:has(.sg-real) .sc::after { display: none; }
.sg-vid:has(.sg-real) .sc3 span { left: 12%; right: 12%; padding: 0.7rem 0.6rem 0.8rem; border-radius: 14px; color: #fff;
  background: rgba(24, 14, 10, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sg-vid:has(.sg-real) .sc3 span em { color: #ffe7c2; }
.sg-vid > .sg-real { z-index: 0; }
.sg-vid > :not(.sg-real) { z-index: 2; }

/* full-bleed photograph that opens as it passes: <figure class="sg-photo" data-scene="photo">{{media:slot}}<figcaption>..</figcaption></figure> */
.sg-photo { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: #1b1b22;
  clip-path: inset(calc((1 - var(--p, 1)) * 9%) calc((1 - var(--p, 1)) * 14%) round 18px); }
.sg-photo > .sg-real { transform: scale(calc(1.14 - var(--p, 1) * 0.14)) translateY(calc((0.5 - var(--p, 1)) * 3%)); transform-origin: 50% 60%; }
.sg-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0.16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.sg-photo figcaption { position: absolute; left: 1rem; bottom: 0.9rem; z-index: 2; font: 500 0.68rem/1.4 var(--mono, monospace); letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.86); background: rgba(10, 10, 14, 0.45); padding: 0.35rem 0.6rem; border-radius: 6px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); max-width: calc(100% - 2rem); }
.sg-photo:not(:has(.sg-real)) { display: none; }
@media (prefers-reduced-motion: reduce) { .sg-photo { clip-path: none; } .sg-photo > .sg-real { transform: none; } }

/* credits page: who took each photograph and under which license (CC BY / BY-SA need it) */
.sg-credits { padding: clamp(7rem, 14vh, 10rem) 0 6rem; }
.sg-cr-list { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 1.4rem 2.4rem; }
.sg-cr { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; align-items: start; padding-top: 1.2rem; border-top: 1px solid rgba(7, 7, 11, 0.12); }
.sg-cr img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: var(--sg-paper-3); }
.sg-cr b { display: block; font-weight: 600; font-size: 0.92rem; line-height: 1.35; overflow-wrap: anywhere; }
.sg-cr span { display: block; font-size: 0.82rem; line-height: 1.5; color: var(--sg-dim); margin-top: 0.15rem; }
.sg-cr span.m { font: 500 0.68rem/1.5 var(--mono); letter-spacing: 0.02em; margin-top: 0.4rem; }
.sg-cr a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* a photograph between scenes: hidden until its slot has a real file */
.sg-photo-band { padding: clamp(3.5rem, 9vh, 6.5rem) 0; }
.sg-photo-band:not(:has(.sg-real)) { display: none; }
.sg-photo figcaption { opacity: clamp(0, calc((var(--p, 1) - 0.84) * 7), 1); }
.sg-photo figcaption b { font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-right: 0.7em; }
@media (max-width: 760px) { .sg-photo { aspect-ratio: 4 / 3; border-radius: 14px; } }

/* ---------- no badges: status is a plain word, never a pill ---------- */
.sg-pill { padding: 0; border: 0; border-radius: 0; background: none; }
.sg-pill::before { content: none; }
