/* ════════════════════════════════════════════════════
   ALI AL-MASRI — PORTFOLIO v4
   ════════════════════════════════════════════════════

   HOW TO THEME:
   1. Change the hex values below
   2. Note down which ones you changed
   3. Give me the new hex codes → I'll update the JS

   Format: CSS var name = hex value (what it controls)
   ════════════════════════════════════════════════════ */

:root {
  /* ── CORE PALETTE ── */
  --bg:              #000000;  /* Main background — pure black for marquee hero */
  --fg:              #ffffff;  /* Primary text */
  --accent:          #f9d694;  /* Gold highlights, links, borders */
  --muted:           #0d1f35;  /* Divider lines, borders */
  --muted-fg:        rgba(232, 228, 220, 0.35);  /* Muted foreground text */
  --cyan:            #00e5ff;  /* HUD accents, highlights */

  /* ── NEBULA SKYBOX ──
     Darkened for text readability */
  --nebula-base:     #030e22;  /* Darkest fill */
  --nebula-royal:    #010818;  /* Rich blue patches — DARKENED */
  --nebula-navy:     #050810;  /* Midnight navy clouds — DARKENED */
  --nebula-ocean:    #010812;  /* Teal glow — DARKENED */
  --nebula-deep:     #020a1e;  /* Extra depth layers */
  --nebula-gold:     #ABC7E1;  /* Blue-white emissive peaks */
  --nebula-ice:      #0c141e;  /* Ice-blue highlights — DARKENED */

  /* ── STARS ── Dimmer for less distraction */
  --star-brightness: 0.6;    /* Global brightness multiplier (0.0–1.0) */
  --star-cold:       #8090b0;  /* Cool blue-white — DIMMED */
  --star-white:      #a0b0c0;  /* Near-white cold — DIMMED */

  /* ── AURORA BOREALIS ── Darkened */
  --aurora-teal:     #01101a;  /* Primary aurora curtain — DARKENED */
  --aurora-ice:      #00192A;  /* Bright peaks — DARKENED */
  --aurora-royal:    #0a2e6a;  /* Royal blue edges */
  --aurora-gold:     #946130;  /* Rare gold peaks */

  /* ── WIREFRAME / SPHERE RINGS ── */
  --wireframe:       #c9a96e;  /* Gold wireframe lines */

  /* ── TYPOGRAPHY ── */
  --serif:  'Cormorant Garamond', serif;
  --mono:   'IBM Plex Mono', monospace;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  overflow-x: hidden;
  cursor: none;
}

/* ── CURSOR ── */
.cursor {
  position: fixed; width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  top: 0; left: 0; transform: translate(-50%,-50%);
  transition: width .3s, height .3s, background .3s, border .3s;
}
.cursor-ring {
  position: fixed; width: 36px; height: 36px;
  border: 1px solid rgba(201,169,110,.35); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  top: 0; left: 0; transform: translate(-50%,-50%);
}
.cursor.is-hover {
  width: 52px; height: 52px;
  background: transparent; border: 1px solid var(--accent);
}

/* ── BACKGROUND CANVASES ── */
#webgl-canvas {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh; height: 100svh;
  z-index: 0; pointer-events: none; opacity: .3;
}

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; display: flex;
  justify-content: space-between; align-items: center;
  padding: 2rem 3rem;
}
.nav-logo {
  font-family: var(--mono); font-size: .72rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--fg); text-decoration: none;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: var(--mono); font-size: .65rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg); text-decoration: none;
  opacity: .45; transition: opacity .3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width .4s cubic-bezier(.25,1,.5,1);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { opacity: 1; color: var(--accent); }

/* ── MAIN ── */
main { position: relative; z-index: 1; }

/* ── PAGE HEADER ── */
.page-header {
  min-height: 100vh; min-height: 100svh; display: flex;
  flex-direction: column; justify-content: flex-end;
  padding: 0 3rem 5rem;
}
.page-header-eyebrow {
  font-family: var(--mono); font-size: .62rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.5rem; overflow: hidden;
}
.eyebrow-inner { display: block; }
.page-header-title {
  font-size: clamp(4rem, 10vw, 9.5rem);
  font-weight: 300; line-height: .92;
  letter-spacing: -.02em; font-style: italic;
}
.line-wrap { overflow: hidden; display: block; }
.line-inner { display: block; }
.page-header-meta {
  margin-top: 3rem; display: flex; align-items: flex-start; gap: 3rem;
}
.page-header-meta p {
  font-family: var(--mono); font-size: .63rem;
  letter-spacing: .06em; line-height: 1.9;
  color: rgba(232,228,220,.35); max-width: 32ch;
}
.header-count {
  font-family: var(--mono); font-size: .6rem;
  color: var(--accent); letter-spacing: .15em; opacity: .65;
}

/* ── SPHERE / DOME SECTION ── */
.sphere-section { position: relative; height: 730vh; margin-top: -130vh; z-index: 0; }
.sphere-sticky {
  position: sticky; top: 0;
  width: 100%; height: 100vh; height: 100svh; overflow: hidden;
  background: #030e22;
}
.sphere-sticky::after {
  content: '';
  position: absolute; inset: 0;
  /* VIGNETTE DISABLED — showing raw sphere
  background: radial-gradient(ellipse 93% 90% at 50% 50%, rgb(0 2 37 / 42%) 18%, rgba(3, 14, 34, 0.25) 50%, transparent 60%, rgba(3, 14, 34, 0.5) 80%, rgb(14 36 77 / 97%) 100%);
  */
  pointer-events: none; z-index: 5;
}
#sphere-canvas {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important; display: block;
}

/* ── HUD ── */
.dome-hud { position: absolute; inset: 0; pointer-events: none; z-index: 10; }
.dome-eyebrow {
  position: absolute; top: 2.2rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono); font-size: .55rem;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(201,169,110,.45); white-space: nowrap;
}

.dome-reticle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 44px; height: 44px; pointer-events: none;
}
.reticle-h, .reticle-v { position: absolute; background: rgba(201,169,110,.28); }
.reticle-h { width:100%; height:1px; top:50%; left:0; transform:translateY(-50%); }
.reticle-v { width:1px; height:100%; left:50%; top:0; transform:translateX(-50%); }
.reticle-circle {
  position: absolute; inset: 10px;
  border: 1px solid rgba(201,169,110,.18); border-radius: 50%;
}

.dome-info {
  position: absolute; left: 4rem; top: 50%;
  transform: translateY(-50%); max-width: 300px;
}
.dome-info-index {
  font-family: var(--mono); font-size: .55rem;
  letter-spacing: .22em; color: var(--accent);
  opacity: .6; margin-bottom: .8rem;
}
.dome-info-name-wrap { overflow: hidden; margin-bottom: 1.1rem; }
.dome-info-name {
  font-size: clamp(1.5rem, 2.8vw, 2.6rem);
  font-weight: 300; font-style: italic;
  letter-spacing: -.02em; line-height: 1; display: block;
}
.dome-info-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .7rem; }
.dome-info-tag {
  font-family: var(--mono); font-size: .5rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(232,228,220,.38); padding: .2rem .55rem;
  border: 1px solid rgba(232,228,220,.1);
}
.dome-info-year {
  font-family: var(--mono); font-size: .55rem;
  letter-spacing: .12em; color: rgba(232,228,220,.2); margin-bottom: 1.3rem;
}
.dome-info-cta {
  pointer-events: auto; display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .52rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--accent); text-decoration: none;
  padding-bottom: 2px; border-bottom: 1px solid rgba(201,169,110,.3);
  transition: border-color .3s;
}
.dome-info-cta:hover { border-color: var(--accent); }

.dome-dots {
  position: absolute; right: 4rem; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 1.1rem;
}
.dome-dot { display: flex; align-items: center; gap: .75rem; pointer-events: auto; cursor: pointer; }
.dome-dot-label {
  font-family: var(--mono); font-size: .46rem;
  letter-spacing: .13em; text-transform: uppercase;
  color: rgba(232,228,220,.18); transition: color .4s;
  white-space: nowrap; text-align: right;
}
.dome-dot-pip {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(232,228,220,.18); flex-shrink: 0;
  transition: background .4s, transform .4s;
}
.dome-dot.active .dome-dot-pip { background: var(--accent); transform: scale(2.2); }
.dome-dot.active .dome-dot-label { color: rgba(201,169,110,.65); }

.dome-hint {
  position: absolute; bottom: 7%; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono); font-size: .5rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(232,228,220,.18);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  white-space: nowrap;
}
.dome-hint-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(201,169,110,.55), transparent);
  animation: hintPulse 2s ease-in-out infinite;
}
@keyframes hintPulse {
  0%,100%{ opacity:.2; transform:scaleY(1); }
  50%{ opacity:.9; transform:scaleY(1.5); }
}

/* ── PROJECT LIST ── */
.divider {
  height: 1px; background: var(--muted);
  margin: 0 3rem; transform-origin: left; transform: scaleX(0);
}
.projects-section { padding: 0 3rem 10rem; }
.projects-list { list-style: none; }
.project-item { position: relative; border-bottom: 1px solid var(--muted); }
.project-item:first-child { border-top: 1px solid var(--muted); }
.project-item::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(201,169,110,.04); transform: scaleX(0);
  transform-origin: left; transition: transform .5s cubic-bezier(.25,1,.5,1);
  pointer-events: none;
}
.project-item:hover::before { transform: scaleX(1); }
.project-link {
  display: grid; grid-template-columns: 5rem 1fr auto auto;
  gap: 2rem; align-items: center; padding: 2.2rem 0;
  text-decoration: none; color: var(--fg);
  position: relative; z-index: 1;
}
.project-index {
  font-family: var(--mono); font-size: .6rem;
  letter-spacing: .15em; color: var(--accent); opacity: .55;
}
.project-name {
  font-size: clamp(1.8rem, 3.5vw, 2.9rem);
  font-weight: 300; font-style: italic;
  letter-spacing: -.01em; line-height: 1;
  transition: transform .45s cubic-bezier(.25,1,.5,1), color .3s;
}
.project-item:hover .project-name { transform: translateX(14px); color: var(--accent); }
.project-tags { display: flex; flex-direction: column; gap: .3rem; }
.tag {
  font-family: var(--mono); font-size: .52rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(232,228,220,.3); padding: .22rem .55rem;
  border: 1px solid rgba(232,228,220,.08);
}
.project-year {
  font-family: var(--mono); font-size: .6rem;
  letter-spacing: .1em; color: rgba(232,228,220,.25);
}

/* ── PREVIEW ── */
.project-preview {
  position: fixed; top: 0; left: 0;
  width: 300px; height: 200px;
  pointer-events: none; z-index: 500; opacity: 0;
  overflow: hidden; border: 1px solid rgba(201,169,110,.15);
}
#preview-canvas { display: block; width: 300px !important; height: 200px !important; }
.preview-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: .7rem 1rem;
  background: linear-gradient(transparent, rgba(3,14,34,.9));
  font-family: var(--mono); font-size: .52rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}

/* ── FOOTER ── */
footer {
  position: relative; z-index: 1;
  padding: 4rem 3rem; border-top: 1px solid var(--muted);
  display: flex; justify-content: space-between; align-items: flex-end;
}
.footer-left p {
  font-family: var(--mono); font-size: .6rem;
  letter-spacing: .1em; color: rgba(232,228,220,.22); line-height: 2.1;
}
.footer-cta {
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 300; font-style: italic; color: var(--fg);
  text-decoration: none; display: flex; align-items: center;
  gap: 1rem; transition: color .3s;
}
.footer-cta:hover { color: var(--accent); }
.footer-arrow {
  font-style: normal; font-size: 1.4rem; display: inline-block;
  transition: transform .4s cubic-bezier(.25,1,.5,1);
}
.footer-cta:hover .footer-arrow { transform: translate(8px,-8px); }

/* ── NOISE ── */
.noise {
  position: fixed; inset: 0; z-index: 9000;
  pointer-events: none; opacity: .032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ── OVERLAY ── */
#page-overlay {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 8000;
  transform-origin: top;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--muted); }

/* ── GLASS CARD ── */
.glass-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  /* P2 (Ali 2026-10-13): blur 14->10 — dome sits on animating WebGL; 10px keeps
     the frosted read at ~half compositor cost. Eye-gate flagged. Revert: style-merge.css.bak.P2 */
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top-color: rgba(255, 255, 255, 0.18);
  border-left-color: rgba(255, 255, 255, 0.18);
  border-right-color: rgba(255, 255, 255, 0.06);
  border-bottom-color: rgba(0, 0, 0, 0.25);
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset -1px 0 0 rgba(0, 0, 0, 0.12),
    0 2px 4px rgba(0, 0, 0, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.18),
    0 20px 48px rgba(0, 0, 0, 0.12);
  transition: opacity 0.6s ease, filter 0.6s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Top light gradient */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.04) 30%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Bottom shadow gradient */
.glass-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.04) 40%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Back/side cards — no expensive blur, simpler translucent bg */
.glass-card--back {
  background: rgba(10, 10, 25, 0.65);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: rgba(255, 255, 255, 0.03);
  border-top-color: rgba(255, 255, 255, 0.06);
  border-left-color: rgba(255, 255, 255, 0.05);
  border-right-color: rgba(255, 255, 255, 0.02);
  border-bottom-color: rgba(0, 0, 0, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset -1px 0 0 rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.1);
}
.glass-card--back::before { display: none; }
.glass-card--back::after { display: none; }

/* Hover / focus — golden specular glow */
.glass-card--focus {
  border-color: rgba(201, 169, 110, 0.4);
  border-top-color: rgba(201, 169, 110, 0.55);
  border-left-color: rgba(201, 169, 110, 0.45);
  border-right-color: rgba(201, 169, 110, 0.3);
  border-bottom-color: rgba(201, 169, 110, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 160, 0.5),
    inset -1px 0 0 rgba(0, 0, 0, 0.12),
    0 0 20px rgba(201, 169, 110, 0.12),
    0 0 40px rgba(201, 169, 110, 0.06),
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.2),
    0 20px 48px rgba(0, 0, 0, 0.15);
}
.glass-card--focus::before {
  background: linear-gradient(
    165deg,
    rgba(255, 220, 160, 0.18) 0%,
    rgba(201, 169, 110, 0.06) 25%,
    transparent 60%
  );
}
.glass-card--focus::after {
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.04) 40%,
    transparent 100%
  );
}

/* Glass card image area */
.glass-card-img {
  position: relative;
  width: 100%;
  height: 170px;
  overflow: hidden;
}
.glass-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  filter: brightness(0.82) contrast(1.08);
}
.glass-card-img-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

/* Glass card content */
.glass-card-body {
  position: relative;
  z-index: 1;
  padding: 1.2rem;
}
.glass-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
}
.glass-card-num {
  font-size: 0.7rem;
  color: #555;
  font-variant-numeric: tabular-nums;
}
.glass-card-pills {
  display: flex;
  gap: 0.3rem;
}
.glass-card-pill {
  font-size: 0.6rem;
  padding: 0.2rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 100px;
  color: #999;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.glass-card-subtitle {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.35rem;
}
.glass-card-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 0.7rem;
  color: #fff;
}
.glass-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.glass-card-type {
  font-size: 0.7rem;
  color: #888;
}
.glass-card-year {
  font-size: 0.7rem;
  color: #555;
}

/* ── CASE STUDY OVERLAY ── */
/* ══ WORK-SAMPLE FILMSTRIP + HOLO DEEP-VIEW (Ali 2026-10-07) ══ */
.case-gallery { display:flex; gap:10px; flex-wrap:wrap; margin:1.4rem 0 0; }
.case-thumb { display:flex; flex-direction:column; gap:6px; background:rgba(111,247,255,.04); border:1px solid rgba(111,247,255,.16); padding:6px; cursor:pointer; transition:border-color .25s, background .25s, box-shadow .25s; }
.case-thumb:hover { border-color:rgba(111,247,255,.55); background:rgba(111,247,255,.10); box-shadow:0 0 18px rgba(111,247,255,.15); }
.case-thumb-imgwrap { display:block; width:132px; height:78px; overflow:hidden; background:#020812; }
.case-thumb-imgwrap img { width:100%; height:100%; object-fit:cover; object-position:top center; display:block; }
.case-thumb-label { font-family:'Share Tech Mono',monospace; font-size:10px; letter-spacing:.14em; color:#6ff7ff; text-align:center; }
.case-hero { cursor:pointer; position:relative; }
.case-hero-zoom { position:absolute; right:12px; bottom:12px; font-family:'Share Tech Mono',monospace; font-size:10px; letter-spacing:.16em; color:#6ff7ff; background:rgba(2,8,12,.72); border:1px solid rgba(111,247,255,.4); padding:5px 9px; opacity:0; transition:opacity .3s; pointer-events:none; }
.case-hero:hover .case-hero-zoom { opacity:1; }

.shot-viewer { position:fixed; inset:0; z-index:1500; visibility:hidden; pointer-events:none; opacity:0; }
.shot-backdrop { position:absolute; inset:0; background:rgba(2,6,12,.9); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); }
.shot-stage { position:absolute; inset:0 0 64px 0; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.shot-frame { position:relative; padding:18px; }
.shot-img { display:block; max-height:calc(100vh - 128px); max-height:calc(100svh - 128px); max-width:90vw; user-select:none; -webkit-user-drag:none; box-shadow:0 0 60px rgba(111,247,255,.08); }
.shot-b { position:absolute; width:26px; height:26px; opacity:0; }
.shot-b.b1 { top:0; left:0; border-top:2px solid #6ff7ff; border-left:2px solid #6ff7ff; }
.shot-b.b2 { top:0; right:0; border-top:2px solid #6ff7ff; border-right:2px solid #6ff7ff; }
.shot-b.b3 { bottom:0; left:0; border-bottom:2px solid #6ff7ff; border-left:2px solid #6ff7ff; }
.shot-b.b4 { bottom:0; right:0; border-bottom:2px solid #6ff7ff; border-right:2px solid #6ff7ff; }
.shot-scan { position:absolute; inset:0; pointer-events:none; background:repeating-linear-gradient(0deg, transparent 0 2px, rgba(111,247,255,.028) 2px 3px); }
.shot-scan::after { content:''; position:absolute; left:0; right:0; height:90px; background:linear-gradient(180deg, transparent, rgba(111,247,255,.05), transparent); animation:shotSweep 7s linear infinite; }
@keyframes shotSweep { 0%{top:-90px} 100%{top:100%} }
.shot-caption { position:absolute; left:0; right:0; bottom:-40px; display:flex; justify-content:space-between; gap:12px; font-family:'Share Tech Mono',monospace; font-size:11px; letter-spacing:.16em; color:#6ff7ff; text-shadow:0 0 8px rgba(111,247,255,.5); }
.shot-cap-hint { color:rgba(111,247,255,.55); }
.shot-nav { position:absolute; top:50%; transform:translateY(-50%); width:44px; height:44px; border:1px solid rgba(111,247,255,.35); background:rgba(2,8,12,.6); color:#6ff7ff; font-size:20px; cursor:pointer; transition:border-color .2s, background .2s; }
.shot-nav:hover { border-color:#6ff7ff; background:rgba(111,247,255,.12); }
.shot-prev { left:16px; } .shot-next { right:16px; }
.shot-close { position:absolute; top:16px; right:16px; width:40px; height:40px; border:1px solid rgba(111,247,255,.35); background:rgba(2,8,12,.6); color:#6ff7ff; font-size:15px; cursor:pointer; }
.shot-close:hover { border-color:#6ff7ff; }
@media (max-width:600px){ .shot-img{max-width:94vw} .shot-nav{width:36px;height:36px} .case-thumb-imgwrap{width:104px;height:62px} }

.case-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(3, 14, 34, 0.00);
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}
.case-overlay::-webkit-scrollbar { width: 10px; }
.case-overlay::-webkit-scrollbar-track { background: transparent; }
.case-overlay::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.case-overlay::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.28); background-clip: padding-box; border: 2px solid transparent; }
.case-overlay { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.18) transparent; }
.case-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #2888bb 0%, #66d18c 100%);
  box-shadow: 0 0 8px rgba(40, 136, 187, 0.5);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 1002;
  pointer-events: none;
  will-change: transform;
}
.case-overlay-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 3rem 4rem;
  min-height: calc(100vh - 8rem); min-height: calc(100svh - 8rem);
}
.case-overlay-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}
.case-hero {
  width: 100%;
  height: 340px;
  background-size: cover;
  background-position: top left;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: smooth;
  border-radius: 16px;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}
.case-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(3, 14, 34, 0.6) 100%);
  border-radius: inherit;
}
.case-close {
  position: fixed;
  top: 2rem;
  right: 2.5rem;
  z-index: 1001;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--fg);
  font-size: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
  font-family: var(--mono);
}
.case-close:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(201, 169, 110, 0.08);
}
.case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.case-number {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  opacity: 0.6;
}
.case-tags {
  display: flex;
  gap: 0.4rem;
}
.case-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 228, 220, 0.5);
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
}
.case-subtitle {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.case-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.case-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(232, 228, 220, 0.6);
  max-width: 100%;   /* Ali 2026-10-07 20:26: was 600px — paragraph now matches the hero image width (was ~200px narrower) */
  margin-bottom: 2rem;
}
.case-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.case-meta-item {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(232, 228, 220, 0.4);
}
.case-meta-dot {
  color: rgba(201, 169, 110, 0.3);
}
.case-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(201, 169, 110, 0.3);
  transition: border-color 0.3s;
}
.case-cta:hover {
  border-color: var(--accent);
}
.case-cta-arrow {
  font-style: normal;
  font-size: 1rem;
  transition: transform 0.3s;
}
.case-cta:hover .case-cta-arrow {
  transform: translate(4px, -4px);
}

@media (max-width: 768px) {
  .case-overlay-inner {
    padding: 5rem 1.5rem 3rem;
  }
  .case-hero {
    height: 200px;
    border-radius: 12px;
  }
  .case-close {
    top: 1rem;
    right: 1rem;
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { padding: 1.5rem; }
  .page-header { padding: 0 1.5rem 3.5rem; }
  .projects-section { padding: 0 1.5rem 5rem; }
  footer { padding: 3rem 1.5rem; flex-direction: column; gap: 2rem; align-items: flex-start; }
  .project-link { grid-template-columns: 3.5rem 1fr; gap: 1rem; }
  .project-tags, .project-year, .project-preview { display: none; }
  .dome-info { left: 1.2rem; max-width: 200px; }
  .dome-dots { right: 1rem; }
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}

/* ════════════════════════════════════════════════════
   MARQUEE HERO — Kinetic typography background
   ════════════════════════════════════════════════════ */

.marquee-hero {
  position: relative;
  width: 100%;
  min-height: 100vh; min-height: 100svh;
  overflow: hidden;
  background: transparent;  /* fi3 (Ali 16:19): hero under-layer neutral so BED alpha composites to page black; tile #fi-tile owns the color now */
  display: flex;
  align-items: center;
  padding: 0 3rem;
  justify-content: center;
}

/* ── DAMASK ORNAMENTAL HERO BG (Ali 2026-10-08 22:27): acanthus scrolls + lotus tile,
   charcoal-on-black, edge vignette per reference; near-imperceptible 90s drift ── */
#damask-bg {
  position: absolute;
  left: -60px; top: -60px;
  width: calc(100% + 120px);
  height: calc(100% + 120px);
  z-index: 0;
  pointer-events: none;
  animation: damask-drift 90s ease-in-out infinite;
}
@keyframes damask-drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-24px, 16px); }
}
.damask-vignette {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 85% 75% at 50% 50%,
              rgba(0,0,0,0) 38%,
              rgba(0,0,0,.62) 68%,
              #000 100%);
}
@media (prefers-reduced-motion: reduce) { #damask-bg { animation: none; } }

/* ── INK DIALS LAB PANEL (Ali 2026-10-08 23:42): live tuning box, hero-only ── */
#ink-dials {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 400;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: #cfd8dc;
  text-align: left;
}
#ink-dials-toggle {
  font: inherit; letter-spacing: .1em;
  background: rgba(2,8,12,.7);
  border: 1px solid rgba(111,247,255,.35);
  color: #6ff7ff;
  padding: 5px 10px; cursor: pointer;
}
#ink-dials-body {
  display: block;
  margin-top: 6px;
  width: 220px;
  padding: 10px 12px 12px;
  background: rgba(2,8,12,.82);
  border: 1px solid rgba(111,247,255,.25);
}
.ink-dials-title { letter-spacing: .08em; color: #8fa; margin: 0 0 8px; }
.ink-dial { margin: 6px 0; }
.ink-dial label { display: flex; justify-content: space-between; font-size: 10px; color: #b8c4c9; margin-bottom: 2px; }
.ink-dial output { color: #6ff7ff; }
.ink-dial input[type="range"] { width: 100%; height: 14px; }
#ink-dials-copy {
  margin-top: 8px; width: 100%;
  font: inherit; color: #f9d694;
  background: rgba(249,214,148,.08);
  border: 1px solid rgba(249,214,148,.45);
  padding: 5px 10px; cursor: pointer;
}
#ink-dials-json {
  margin: 6px 0 0; font: 9px/1.35 'Share Tech Mono', monospace;
  color: #9fb4bd; max-height: 180px; overflow: auto; white-space: pre;
}

/* ── HERO INK FLUID (Ali 2026-10-08 23:14): WebGL autopilot ink above the damask
   fallback; damask keeps z-0 for no-WebGL devices; marquee text rides z-10 ── */
#hero-ink {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ── FORMAL INVITATION TILE (Ali 2026-10-09 16:11): damask via CSS mask.
   hero-patterns.com by Steve Schoger — CC BY 4.0 (attribution required).
   Pattern color = --damask-fg paints the masked layer; bed = --damask-bed.
   Both live via the two pickers (#fiFg/#fiBed -> js/fi-lab.js). ── */
/* LOCKED (Ali 2026-10-09 16:49): Temple, pattern #2a5d84 @ .08,
   bed #011228, 320px (lock3 tweak) — from his lab session json */
#marqueeHero { --damask-fg: rgba(42, 93, 132, 0.08); --damask-bed: rgba(1, 18, 40, 1); --fi-tile-w: 320px; }
#fi-tile {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--damask-bed);
}
#fi-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--damask-fg);
  -webkit-mask-image: var(--fi-tile-img, url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22152%22%20height%3D%22152%22%20viewBox%3D%220%200%20152%20152%22%3E%3Cg%20fill-rule%3D%22evenodd%22%3E%3Cg%20id%3D%22temple%22%20fill%3D%22%23000%22%3E%3Cpath%20d%3D%22M152%20150v2H0v-2h28v-8H8v-20H0v-2h8V80h42v20h20v42H30v8h90v-8H80v-42h20V80h42v40h8V30h-8v40h-42V50H80V8h40V0h2v8h20v20h8V0h2v150zm-2%200v-28h-8v20h-20v8h28zM82%2030v18h18V30H82zm20%2018h20v20h18V30h-20V10H82v18h20v20zm0%202v18h18V50h-18zm20-22h18V10h-18v18zm-54%2092v-18H50v18h18zm-20-18H28V82H10v38h20v20h38v-18H48v-20zm0-2V82H30v18h18zm-20%2022H10v18h18v-18zm54%200v18h38v-20h20V82h-18v20h-20v20H82zm18-20H82v18h18v-18zm2-2h18V82h-18v18zm20%2040v-18h18v18h-18zM30%200h-2v8H8v20H0v2h8v40h42V50h20V8H30V0zm20%2048h18V30H50v18zm18-20H48v20H28v20H10V30h20V10h38v18zM30%2050h18v18H30V50zm-2-40H10v18h18V10z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E"));
          mask-image: var(--fi-tile-img, url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22152%22%20height%3D%22152%22%20viewBox%3D%220%200%20152%20152%22%3E%3Cg%20fill-rule%3D%22evenodd%22%3E%3Cg%20id%3D%22temple%22%20fill%3D%22%23000%22%3E%3Cpath%20d%3D%22M152%20150v2H0v-2h28v-8H8v-20H0v-2h8V80h42v20h20v42H30v8h90v-8H80v-42h20V80h42v40h8V30h-8v40h-42V50H80V8h40V0h2v8h20v20h8V0h2v150zm-2%200v-28h-8v20h-20v8h28zM82%2030v18h18V30H82zm20%2018h20v20h18V30h-20V10H82v18h20v20zm0%202v18h18V50h-18zm20-22h18V10h-18v18zm-54%2092v-18H50v18h18zm-20-18H28V82H10v38h20v20h38v-18H48v-20zm0-2V82H30v18h18zm-20%2022H10v18h18v-18zm54%200v18h38v-20h20V82h-18v20h-20v20H82zm18-20H82v18h18v-18zm2-2h18V82h-18v18zm20%2040v-18h18v18h-18zM30%200h-2v8H8v20H0v2h8v40h42V50h20V8H30V0zm20%2048h18V30H50v18zm18-20H48v20H28v20H10V30h20V10h38v18zM30%2050h18v18H30V50zm-2-40H10v18h18V10z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E"));   /* fi6: live tile dropdown */
  -webkit-mask-size: var(--fi-tile-w, 320px) auto;
          mask-size: var(--fi-tile-w, 320px) auto;   /* fi6: W auto -> each tile keeps its own ratio */
  -webkit-mask-repeat: repeat;
          mask-repeat: repeat;
}
#fi-lab {
  /* fi2 (Ali 16:17): lab moved to <body> by js/fi-lab.js — inside the hero it
     sat in the hero's stacking context (scrub transforms) and the fixed NAV
     (z100 full-width 84px band) painted over the chips, eating clicks.
     As a body child, z400 > 100 wins; top 96px keeps it below the nav band. */
  position: absolute;
  top: 96px; right: 14px;
  z-index: 400;
  display: flex;
  gap: 8px;
}
.fi-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: .1em;
  color: #8fa3b5;
  background: rgba(2,8,12,.7);
  border: 1px solid rgba(111,247,255,.25);
  padding: 4px 8px;
  border-radius: 3px;
  cursor: pointer;
}
.fi-chip input[type="color"] {
  width: 22px; height: 22px;
  border: none; padding: 0; margin: 0;
  background: none;
  cursor: pointer;
}
.fi-alpha {
  width: 52px; height: 12px;
  margin-left: 2px;
  accent-color: #6ff7ff;
  cursor: pointer;
}
.fi-select {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: #b8c4c9;
  background: rgba(2,8,12,.9);
  border: 1px solid rgba(111,247,255,.25);
  padding: 2px 3px;
  cursor: pointer;
  max-width: 120px;
}
.fi-copy-btn {
  align-self: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px; letter-spacing: .08em;
  color: #f9d694;
  background: rgba(249,214,148,.08);
  border: 1px solid rgba(249,214,148,.45);
  padding: 4px 8px;
  cursor: pointer;
}
.fi-copy-out {
  position: absolute;
  top: 40px; right: 14px;
  margin: 0;
  font: 9px/1.3 'Share Tech Mono', monospace;
  color: #9fb4bd;
  background: rgba(2,8,12,.9);
  border: 1px solid rgba(111,247,255,.2);
  padding: 6px 8px;
  white-space: pre;
  z-index: 401;
}

.marquee-bg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
  z-index: 3;   /* ink2 (Ali 23:28): text ABOVE opaque ink canvas (context alpha:false covers z-1) — marquee rows vanished under it */
}

.marquee-row {
  flex: 1;
  display: flex;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2.5rem;
  padding: 0 1.25rem;
}

.marquee-item {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(2rem, 2vw, 6rem);
  color: rgba(170, 170, 170, 0.16);
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: color 0.6s ease, text-shadow 0.6s ease;
}

.marquee-item.highlight {
  color: rgba(226, 196, 141, 0.85) !important;
  text-shadow: 0 0 24px rgba(226, 196, 141, 0.3);
  transition: color 1.2s ease, text-shadow 1.2s ease;
}

.marquee-row.odd .marquee-track {
  animation: marquee-left 50s linear infinite;
}

.marquee-row.even .marquee-track {
  animation: marquee-right 50s linear infinite;
}

@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}
/* S32 (Ali 00:35 'still animating earlier' — ROOT CAUSE: css/style.css is NEVER LOADED (only style-merge.css?v=40 + inline styles load); S30's hold rule sat in a dead file. The hold belongs HERE. */
body.hero-hold .hero-content *,
body.hero-hold .scroll-indicator,
body.hero-hold .scroll-indicator * { animation-play-state: paused !important; }

/* ── HUD frame around hero content ── */
.hero-frame {
  position: relative;
  padding: 2.5rem 3rem;
  text-align: center;
}
.hero-frame::before,
.hero-frame::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: rgba(0, 229, 255, 0.2);
  border-style: solid;
  border-width: 0;
}
.hero-frame::before {
  top: 0; left: 0;
  border-top-width: 1px;
  border-left-width: 1px;
}
.hero-frame::after {
  bottom: 0; right: 0;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

/* ── Eyebrow with HUD lines ── */
.hero-eyebrow-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.5rem;
}
.hero-eyebrow-wrap::before,
.hero-eyebrow-wrap::after {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.4;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0;
  animation: fadeIn 0.8s ease 1.6s forwards;
}

/* ── Name — THE HERO ── */
.hero-name {
  font-family: var(--serif);
  font-size: clamp(5rem, 15vw, 16rem);
  font-weight: 300;
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin: 0;
}
.hero-name .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px);
  animation: charReveal 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
@keyframes charReveal {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Rotating descriptor tags ── */
.hero-tags {
  font-size: 1rem;
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  position: relative;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 0.8s ease 2.3s forwards;
}
.pos {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  height: 1.4em;
}
.pos0, .pos2 {
  width: 190px;
  min-width: 190px;
}
.pos0 { text-align: right; justify-content: flex-end; }
.pos2 { text-align: left; justify-content: flex-start; }
.pos1 {
  width: 280px;
  min-width: 312px;
  text-align: center;
  justify-content: center;
  gap: 0;
}
.hero-tag {
  color: var(--muted-fg);
  display: block;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  height: 1.4em;
  line-height: 1.4em;
}
.pos1 .hero-tag {
  width: auto;
  min-width: 168px;
}
.hero-tag .flap-span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
}
.hero-tag.flipping .flap-span {
  animation: flapIn 0.4s ease forwards;
}
@keyframes flapIn {
  0%   { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.hero-tag-sep {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin: 0 auto;
  opacity: 0.6;
  user-select: none;
  flex-shrink: 0;
}
.hero-tag.flipping {
  color: rgba(0, 229, 255, 0.6);
}
.hero-tag.settled {
  color: rgba(232, 228, 220, 0.7);
}

/* ── Stats row ── */
.hero-stats {
  margin-top: 3.5rem;
  display: flex;
  gap: 3rem;
  justify-content: center;
  align-items: flex-end;        /* Ali 17:24: marry the three cards at their bottoms — labels one line, val bases level (odo boxes taller than plain infinity) */
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;          /* Ali 17:24: center val+label in card */
  gap: 9px;
  width: 118px;
  opacity: 0;
  transform: translateY(15px);
  animation: fadeSlideUp 0.6s ease forwards;
}
.hero-stat:nth-child(1) { animation-delay: 4.1s; }
.hero-stat:nth-child(2) { animation-delay: 4.25s; }
.hero-stat:nth-child(3) { animation-delay: 4.4s; }
.hero-stat-val {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--accent);
  line-height: 1;
}
.hero-stat-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-fg);
}

/* ── Scroll indicator ── */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 0.8s ease 2.8s forwards;
}
.scroll-indicator-text {
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
}
.scroll-line {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, transparent, var(--cyan));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* ── HUD measurement marks (top-right) ── */
.hud-marks {
  position: absolute;
  top: 2rem;
  right: 3rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  opacity: 0;
  animation: fadeIn 1s ease 3s forwards;
}
.hud-mark {
  font-family: var(--mono);
  font-size: 0.45rem;
  letter-spacing: 0.2em;
  color: rgba(0, 229, 255, 0.2);
  text-transform: uppercase;
}
.hud-mark-val {
  color: rgba(0, 229, 255, 0.4);
}

/* Radial vignette for depth */
.marquee-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
  z-index: 5;
}

/* ════════════════════════════════════════════════════
   v7 ADDITIONS — Loader, Telescope, Labels
   ════════════════════════════════════════════════════ */

/* ── Loading Screen ── */
#loader {
  position: fixed; inset: 0; z-index: 99999;
  background: #000000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }
/* OPTICAL DIAL loader v3 (Ali blessed lab2, 2026-10-12): one great ring
   seats the whole instrument; ring arc = real byte progress (telescope-hero.js).
   Beige marks identity/completion; cyan stays machinery. */
#loader .lp-grad { position:absolute; inset:0;
  background: radial-gradient(ellipse 90% 70% at 50% 46%, rgba(22,58,102,.55) 0%, rgba(10,26,48,.28) 45%, rgba(2,5,9,0) 78%), #000; }
#loader .lp-stars, #loader .lp-field { position:absolute; inset:0; }
#loader .lp-field { pointer-events:none; }
#loader .lp-stars i { position:absolute; border-radius:50%; background:#fff; animation:lpTw var(--d,3s) ease-in-out infinite; }
#loader .lp-stars i.s1 { width:1px; height:1px; opacity:.22; }
#loader .lp-stars i.s2 { width:2px; height:2px; opacity:.3; }
#loader .lp-stars i.s3 { width:2.5px; height:2.5px; opacity:.42; box-shadow:0 0 6px rgba(255,255,255,.7); }
#loader .lp-stars i.s4 { width:3px; height:3px; opacity:.5; box-shadow:0 0 10px 1px rgba(215,254,255,.8); }
@keyframes lpTw { 0%,100%{ opacity:.12; } 50%{ opacity:.6; } }
#loader .lp-scan { position:absolute; left:0; right:0; height:1px;
  background:linear-gradient(90deg, transparent, rgba(111,247,255,.22), transparent);
  animation:lpScan 6s linear infinite; }
@keyframes lpScan { 0%{ top:8%; } 100%{ top:92%; } }
#loader .lp-center { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; }
#loader .lp-dial { position:relative; width:380px; height:380px; }
#loader .lp-dial svg { position:absolute; inset:0; transform:rotate(-90deg); }
#loader .lp-track { fill:none; stroke:rgba(111,247,255,.12); stroke-width:1; }
#loader .lp-tick { fill:none; stroke:rgba(111,247,255,.28); stroke-width:1; stroke-dasharray:1 14; }
#loader .lp-arc { fill:none; stroke:#6ff7ff; stroke-width:1.5; stroke-linecap:round; filter:drop-shadow(0 0 7px rgba(111,247,255,.55)); }
#loader .lp-sweep { position:absolute; inset:0; animation:lpSweep 3.2s linear infinite; pointer-events:none; }
#loader .lp-sweep::before { content:''; position:absolute; left:50%; top:50%; width:372px; height:372px; margin:-186px 0 0 -186px; border-radius:50%;
  box-shadow: inset 0 0 0 1px rgba(215,254,255,.28);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1), rgba(0,0,0,0)); mask-image: linear-gradient(180deg, rgba(0,0,0,1), rgba(0,0,0,0)); }
@keyframes lpSweep { to { transform:rotate(360deg); } }
#loader .lp-inner { position:absolute; inset:20px; display:flex; flex-direction:column; align-items:center; justify-content:center; }
#loader .lp-kicker { font-family:'Share Tech Mono',monospace; font-size:.56rem; letter-spacing:.38em; color:#2b7f8c; text-indent:.38em; }
#loader .lp-name { color:#f9d694; }
#loader .lp-title { margin-top:8px; font-family:'Share Tech Mono',monospace; font-size:1.3rem; letter-spacing:.22em; color:#d7feff; text-shadow:0 0 14px rgba(111,247,255,.4); text-indent:.22em; }
#loader .lp-pctbox { display:flex; align-items:baseline; margin-top:14px; }
#loader .lp-br { font-size:1.4rem; color:#f9d694; }
#loader .lp-num { font-family:'Share Tech Mono',monospace; font-size:2.7rem; color:#d7feff; letter-spacing:.04em; min-width:2.1ch; text-align:center; text-shadow:0 0 16px rgba(111,247,255,.45); }
#loader .lp-sign { font-size:1.1rem; color:#2b7f8c; margin-left:.1em; }
#loader .lp-bar { width:190px; height:3px; margin-top:16px; background:rgba(111,247,255,.15); position:relative; }
#loader .lp-fill { position:absolute; left:0; top:0; bottom:0; width:0; background:linear-gradient(90deg, #6ff7ff, #d7feff); box-shadow:0 0 10px #6ff7ff; }
#loader .lp-notch { position:absolute; top:-3px; bottom:-3px; width:1px; background:rgba(111,247,255,.35); }
#loader .lp-status { margin-top:14px; font-family:'Share Tech Mono',monospace; font-size:.58rem; letter-spacing:.26em; color:#2b7f8c; min-height:1em; }
#loader .lp-tags { position:absolute; left:36px; bottom:36px; font-family:'Share Tech Mono',monospace; font-size:.55rem; letter-spacing:.2em; color:rgba(111,247,255,.5); line-height:1.75; text-align:left; }
#loader .lp-tags span { color:rgba(215,254,255,.75); }
#loader .lp-done { color:#f9d694 !important; }
#loader .lp-note { position:absolute; right:36px; bottom:36px; font-family:'Share Tech Mono',monospace; font-size:.55rem; letter-spacing:.2em; color:rgba(111,247,255,.35); text-align:right; line-height:1.75; }

/* ── Telescope Section ── */
#telescope-hero {
  position: relative;
  width: 100%;
  height: 500vh;
  background: #000000;
  z-index: 1;
}
#telescope-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: #050a12;
}
#telescope-canvas {
  pointer-events: none;
  background: transparent !important;
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
  display: block; z-index: 2; opacity: 1;
}
#telescope-labels {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 3; overflow: hidden;
}
#telescope-status {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  font-family: 'IBM Plex Mono', monospace; font-size: 0.6rem;
  letter-spacing: 0.15em; color: rgba(136, 204, 255, 0.4);
  z-index: 4; text-transform: uppercase;
}

/* ── Scroll Hint ── */
.scroll-hint {
  position: absolute;
  bottom: 2rem; right: 3rem;
  z-index: 4;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.55rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}
.scroll-hint::after {
  content: ' ↓';
  font-size: 0.8rem;
}

/* ── HUD Labels (sci-fi style) ── */
.t-label {
  position: absolute;
  /* P2 (Ali 2026-10-13): backdrop-filter removed — tiny 82%-opaque chips forced
     a compositor layer each; bg 0.82->0.92 compensates. Revert: style-merge.css.bak.P2 */
  background: rgba(4, 12, 20, 0.92);
  padding: 8px 14px 8px 12px;
  white-space: nowrap;
  opacity: 0; transition: opacity 0.4s ease;
}
.t-label::before, .t-label::after {
  content: ''; position: absolute; width: 10px; height: 10px;
  border-color: rgba(0, 229, 255, 0.7); border-style: solid; border-width: 0;
}
.t-label::before {
  top: 0; left: 0;
  border-top-width: 1.5px; border-left-width: 1.5px;
}
.t-label::after {
  bottom: 0; right: 0;
  border-bottom-width: 1.5px; border-right-width: 1.5px;
}
.t-label-header {
  font-size: 9px; color: rgba(0, 229, 255, 0.6); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 3px; font-family: 'SF Mono', monospace;
}
.t-label-title {
  font-size: 12px; color: #e0f7ff; letter-spacing: 0.5px;
  font-family: 'SF Mono', monospace; text-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}
.t-label-spec {
  font-size: 9px; color: rgba(160, 200, 220, 0.6); margin-top: 3px;
  font-family: 'SF Mono', monospace; letter-spacing: 0.5px;
}
.t-leader-line {
  position: absolute; pointer-events: none;
  height: 1px; transform-origin: 0 0;
  background: linear-gradient(90deg, rgba(0,229,255,0.7), rgba(0,229,255,0.15));
  box-shadow: 0 0 4px rgba(0, 229, 255, 0.4);
  opacity: 0; transition: opacity 0.4s ease;
}
.t-leader-node {
  position: absolute; pointer-events: none;
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(0, 229, 255, 0.9);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.6), 0 0 16px rgba(0, 229, 255, 0.3);
  transform: translate(-50%, -50%);
  opacity: 0; transition: opacity 0.4s ease;
}

/* CSS glow to compensate for removed Three.js bloom */
.t-label-title {
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4), 0 0 16px rgba(0, 229, 255, 0.15);
}
.t-leader-node {
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.6), 0 0 16px rgba(0, 229, 255, 0.3), 0 0 24px rgba(0, 229, 255, 0.15);
}

/* ════════════════════════════════════════════════════
   ANTIKYTHERA SKILLS ENGINE — v2
   Stepped concentric rings, pointer arms, planetary spheres,
   fine tick engravings, aged bronze patina
   ════════════════════════════════════════════════════ */

/* Sticky container - scroll drives the mechanism */
.mechanism-scroll-wrap {
  position: relative;
  height: 1800vh; /* 600vh per ring phase — each phase gets a full rotation */
  background: #030e22;
  z-index: 0;
  /* no margin — mechanism starts right after sphere */
}
.mechanism-section {
  position: sticky;
  top: 0;
  height: 100vh; height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#mechanism-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hud-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
}
.hud-top { display: flex; justify-content: space-between; align-items: flex-start; }
.hud-bottom { display: flex; justify-content: space-between; align-items: flex-end; }

.section-label {
  font-family: var(--mono); font-size: 0.65rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent);
}
.section-headline {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300; font-style: italic;
  letter-spacing: -0.01em; line-height: 1.05;
  margin-top: 0.5rem;
}
.section-headline .accent { color: var(--accent); }
.section-intro {
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.06em; line-height: 1.8;
  color: var(--muted-fg); max-width: 400px;
  margin-top: 1rem;
}

.hud-coords {
  font-family: var(--mono); font-size: 0.55rem;
  letter-spacing: 0.15em; color: var(--muted-fg);
  text-align: right;
}
.hud-coords span { color: var(--accent); }

.hud-instruction {
  font-family: var(--mono); font-size: 0.55rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted-fg);
}
.hud-instruction span { color: var(--accent); }

.active-skill {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 5;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.active-skill.visible { opacity: 1; }
.active-skill-name {
  font-family: var(--serif); font-size: 2rem;
  font-weight: 300; font-style: italic;
  color: var(--accent);
  text-shadow: 2px 2px 0 rgba(0,0,0,0.4), 4px 4px 0 rgba(0,0,0,0.2), 0 0 30px rgba(249, 214, 148, 0.5), 0 0 60px rgba(249, 214, 148, 0.2);
}
.active-skill-category {
  font-family: var(--mono); font-size: 0.55rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--muted-fg);
  margin-top: 0.5rem;
}

.tools-section { padding: 4rem 3rem 3rem; }
.tools-label {
  font-family: var(--mono); font-size: 0.55rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); opacity: 0.55;
  margin-bottom: 1.2rem;
}
.tools-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tool-pill {
  font-family: var(--mono); font-size: 0.52rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(232, 228, 220, 0.3); padding: 0.3rem 0.7rem;
  border: 1px solid rgba(232, 228, 220, 0.08);
  transition: color 0.3s, border-color 0.3s;
}
.tool-pill:hover { color: var(--accent); border-color: rgba(201, 169, 110, 0.3); }
.certs-row { margin-top: 2rem; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.cert-badge {
  font-family: var(--mono); font-size: 0.55rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); opacity: 0.7;
  padding: 0.4rem 0.9rem; border: 1px solid rgba(201, 169, 110, 0.2);
}

@media (max-width: 768px) {
  .hud-overlay { padding: 1.5rem; }
  .section-headline { font-size: 1.8rem; }
  .tools-section { padding: 2rem 1.5rem; }
}

/* Fog transition layer */
#fog-canvas {
  /* OVERSCAN (Ali 2026-10-08 18:09): element extends 5% past every viewport edge —
     no boundary rounding/resize lag can expose a raw strip (mechanism peeked bottom-left) */
  position: fixed; top: -5vh; left: -5vw;
  width: 110vw; height: 110vh;
  z-index: 9999; pointer-events: none;
}

/* ── Odometer stat roll (Ali 16:20: stats get transitions; text tags stay blessed) ── */
.hero-stat-val.stat-odo { display: inline-flex; align-items: flex-end; }   /* box-align: overflow:hidden cols have NO text baseline (bottom-edge rule lifted digits off the +); flex-end + matching 1.2em line-boxes realigns glyphs */
.stat-col {
  display: inline-block;
  height: 1.2em;                 /* pitch > glyph ink: neighbor cells never peek into the window */
  overflow: hidden;
  vertical-align: baseline;
}
.stat-strip {
  display: inline-block;
  line-height: 1em;
  will-change: transform;
}
.stat-strip > span { display: block; height: 1.2em; line-height: 1.2em; }
.stat-suffix { display: inline-block; line-height: 1.2em; }   /* same line-box as cells -> glyph baseline coincides */

/* ============================================================
   R1+R2 MOBILE (Ali 21:26-21:27) — ≤768px ONLY.
   Desktop rules above are untouched; everything here is scoped.
   R1: burger + full-screen menu (z 90 — under nav z100 so brand+burger stay visible; above scene z1; under shot-viewer 1500 + veil 12000).
   R2: hero — one flap tag (pos0/pos2 hidden, blessed loop untouched underneath), stats row fluid.
   ============================================================ */
.nav-burger { display: none; }   /* base: inert on desktop, zero pixels */
.mobile-menu { display: none; }   /* base: menu is media-scoped; never paints on desktop */
@media (max-width: 768px) {
  /* ---- R1: burger nav ---- */
  nav { padding: 1.2rem 1.4rem; }
  .nav-links { display: none; }
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 9px;
    background: none; border: none; cursor: pointer;
  }
  .nb-l { display: block; width: 26px; height: 1.5px; background: var(--fg); transition: transform .35s cubic-bezier(.25,1,.5,1), opacity .25s; }
  .nav-burger.is-open .nb-l:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-burger.is-open .nb-l:nth-child(2) { opacity: 0; }
  .nav-burger.is-open .nb-l:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .mobile-menu {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(3, 6, 14, 0.88);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .4s ease, visibility 0s linear .4s;
    display: flex; flex-direction: column; justify-content: center;
    padding: 5.5rem 9vw 3rem;
  }
  /* F18 (Ali 23:24): ✕ close affordance — top-right, 44px tap target, aligned
     with the nav row; hides/fades with the overlay (it lives inside .mobile-menu) */
  .mm-close {
    position: absolute; top: 1.35rem; right: 1.35rem;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(8, 22, 40, 0.6);
    border: 1px solid rgba(111, 247, 255, 0.35);
    color: #bfe9ff; font-size: 17px; line-height: 1;
    cursor: pointer; border-radius: 2px;
  }
  .mm-close:active { background: rgba(111, 247, 255, 0.18); }
  .mobile-menu.mm-open {
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: opacity .4s ease;
  }
  .mm-eyebrow {
    font-family: var(--mono); font-size: .62rem; letter-spacing: .3em;
    color: var(--muted-fg); margin-bottom: 1.6rem;
  }
  .mm-list { list-style: none; }
  .mm-item {
    border-bottom: 1px solid rgba(255,255,255,.07);
    opacity: 0; transform: translateY(14px);
    transition: opacity .45s ease calc(var(--mmi) * .05s + .1s), transform .45s cubic-bezier(.25,1,.5,1) calc(var(--mmi) * .05s + .1s);
  }
  .mm-open .mm-item { opacity: 1; transform: none; }
  .mm-link {
    display: flex; align-items: baseline; gap: 1.1rem;
    padding: 1.05rem 2px;   /* tall rows -> 44px+ tap */
    font-family: var(--serif); font-style: italic; font-size: 2rem;
    color: var(--fg); text-decoration: none;
    opacity: .55; transition: opacity .3s, color .3s;
  }
  .mm-link.active, .mm-link:hover { opacity: 1; color: var(--accent); }
  .mm-idx { font-family: var(--mono); font-style: normal; font-size: .62rem; letter-spacing: .2em; color: var(--muted-fg); }
  .mm-foot {
    margin-top: 2.4rem; font-family: var(--mono); font-size: .58rem;
    letter-spacing: .25em; color: var(--muted-fg);
  }

  /* ---- R2: hero one tag + fluid stats ---- */
  .pos0, .pos2 { display: none; }          /* one tag (Creative Strategy / pos1); blessed flap loop runs untouched underneath */
  .pos1 { width: auto; min-width: 0; }
  .pos1 .hero-tag { min-width: 0; }
  .hero-tags { font-size: .85rem; margin-top: 1.8rem; }
  .hero-stats { gap: clamp(1rem, 4vw, 3rem); }
  .hero-stat { width: auto; min-width: 0; padding: 0 .15rem; }
  .hero-stat-val { font-size: clamp(1.6rem, 5.5vw, 2.4rem); }
}

/* ---- R2b (SE screenshot verdict 21:48): name wrapped mid-word ("Ali Ma/sri") —
   char-stagger spans + white-space:normal wrap between chars; nowrap + fluid
   floor. Label "PIXELS PUSHED" wrapped -> third card taller -> ∞ pushed up
   under flex-end; labels nowrap + slightly tighter on small screens. ---- */
@media (max-width: 768px) {
  .hero-name { white-space: nowrap; font-size: clamp(4.2rem, 15vw, 5rem); }
  .hero-stat-label { white-space: nowrap; font-size: 0.62rem; }
}
/* ═══ F18 (Ali 23:24): hero mobile polish — all body.mobile-tier-gated, desktop byte-untouched ═══ */
/* (2) stats spacing = desktop proportions scaled to the phone: same rhythm, roomier gaps */
body.mobile-tier .hero-stats { gap: 1.25rem; margin-top: 2.5rem; }
body.mobile-tier .hero-stat { width: 96px; }
body.mobile-tier .hero-stat-val { font-size: 2rem; }
body.mobile-tier .hero-stat-label { font-size: 0.62rem; }
/* (3) the / separators flanking the flipping skill names: off on mobile */
body.mobile-tier .hero-tag-sep { display: none; }
/* (4a) flipping skill names: bigger on mobile */
body.mobile-tier .hero-tags { font-size: 1.15rem; }
/* (4b) eyebrow on one line ("Portfolio — Selected Work") */
body.mobile-tier .hero-eyebrow { white-space: nowrap; }
/* F19 (Ali 23:30): name up a notch (4.2->4.8rem floor, 15vw term unchanged, cap 5->5.6rem
   for wider phones); flipping tag a notch down (1.15->1rem) — the name reclaims the scale */
body.mobile-tier .hero-name { font-size: clamp(5.5rem, 15vw, 6.3rem); }   /* F19c (Ali 23:32): tiny bit more — 5.2->5.5rem floor (~88px on 390px), cap 6->6.3rem */
body.mobile-tier .hero-tags { font-size: 1rem; }

/* ═══ T2b (Ali 17:49): chips a notch smaller on mobile ═══
   Desktop .t-label scale (12px titles) reads chunky on the phone; ~20% down,
   spec kept (part of the instrument look). Desktop untouched. */
body.mobile-tier .t-label { padding: 5px 9px; }
body.mobile-tier .t-label-header { font-size: 7px; letter-spacing: 1.5px; margin-bottom: 2px; }
body.mobile-tier .t-label-title { font-size: 10px; letter-spacing: 0.4px; }
body.mobile-tier .t-label-spec { font-size: 7.5px; margin-top: 2px; }
/* S36 (Ali 17:26 "dark grey description text on mobile seems a bit dark"): case-desc lift S36 — MOBILE-scoped 0.6 -> 0.8 alpha (OLED reads .6 muddy); desktop untouched (S23 lesson: wrap the media query) */
@media (max-width: 900px) {
  .case-desc { color: rgba(232, 228, 220, 0.8); }
}
