/* The Motion Index - Pro Marketing internal briefing tool */

:root {
  --bg: #04161f;
  --bg-2: #072634;
  --bg-3: #0b3245;
  --line: rgba(127, 216, 255, 0.14);
  --text: #eaf4f9;
  --dim: #93b1bd;
  --cyan: #03a9f4;
  --cyan-soft: #7fd8ff;
  --amber: #ffb454;
  --mint: #57e6b0;
  --font-display: "Fraunces", "Georgia", serif;
  --font-ui: "Montserrat", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(3, 169, 244, 0.35); color: #fff; }

a { color: var(--cyan-soft); text-decoration: none; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ---------- 17 page progress bar ---------- */

#pageProgress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: rgba(127, 216, 255, 0.08); z-index: 80;
}
#pageProgress .bar {
  height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-soft));
  transform-origin: 0 50%; transform: scaleX(0);
}
#pageProgress .pp-chip {
  position: absolute; top: 8px; right: 10px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em;
  color: rgba(127, 216, 255, 0.6); text-transform: uppercase;
}

/* ---------- reduced motion ---------- */

#rmBanner {
  display: none;
  background: var(--bg-3); border-bottom: 1px solid var(--line);
  padding: 12px 28px; font-family: var(--font-mono); font-size: 12px; color: var(--dim);
}
body.reduced #rmBanner { display: block; }
body.reduced .a-blob, body.reduced .orb { animation: none !important; }
body.reduced *, body.reduced *::before, body.reduced *::after {
  animation-duration: 0.001s !important;
  transition-duration: 0.001s !important;
}

/* ---------- hero ---------- */

.hero {
  position: relative; min-height: 92vh; min-height: 92svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; border-bottom: 1px solid var(--line);
  padding: 90px 0 70px;
}
.hero-inner { position: relative; z-index: 3; width: 100%; }
.hero-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: #a9c4d0;
}
.hero-meta strong { color: var(--cyan); font-weight: 500; }
.hero-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(56px, 9.4vw, 132px);
  line-height: 0.98; letter-spacing: -0.02em;
  margin: 34px 0 26px; max-width: 10ch;
}
.hero-title em { font-style: italic; color: var(--cyan-soft); }
.hero-sub {
  max-width: 54ch; color: #c9dde6; font-size: 15.5px; line-height: 1.75;
}
.hero-sub b { color: var(--text); font-weight: 600; }
.scroll-cue {
  margin-top: 54px; display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: #a9c4d0;
}
.cue-line {
  width: 1px; height: 46px;
  background: linear-gradient(var(--cyan), transparent);
  animation: cueDrop 1.8s ease-in-out infinite;
}
@keyframes cueDrop {
  0% { transform: translateY(-8px); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}
.hero-tags {
  position: absolute; right: 28px; bottom: 22px; z-index: 4;
  display: flex; gap: 8px;
}
.htag {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(127, 216, 255, 0.75);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px;
  background: rgba(4, 22, 31, 0.78); backdrop-filter: blur(6px);
}
.htag:hover { border-color: var(--cyan); color: var(--cyan-soft); }

/* hero ambient layers (specimens 24, 25, 27 in the wild) */
.hero .aurora, .hero .orb-field { position: absolute; inset: 0; z-index: 1; }
.grain-layer {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0.26;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.3 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* text-protection scrim: keeps the copy column WCAG-safe no matter where the aurora drifts */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 22, 31, 0.6) 0%, rgba(4, 22, 31, 0) 22%),
    linear-gradient(100deg, rgba(4, 22, 31, 0.93) 0%, rgba(4, 22, 31, 0.8) 40%, rgba(4, 22, 31, 0.36) 68%, rgba(4, 22, 31, 0.08) 100%);
}
.hero .a-blob { opacity: 0.34; }
.hero .a-blob.b1 { left: auto; right: 32%; top: -24%; }
.hero .a-blob.b3 { left: 60%; }
.hero .orb.o1 { left: auto; right: 28%; top: 18%; }
.hero .orb.o2 { left: 62%; top: 64%; }

/* ---------- sticky index nav ---------- */

.idx-nav {
  position: sticky; top: 0; z-index: 70;
  display: flex; align-items: center; gap: 6px;
  padding: 11px 28px; overflow-x: auto;
  background: rgba(4, 22, 31, 0.86); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.idx-nav::-webkit-scrollbar { display: none; }
.nav-chip {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--dim); white-space: nowrap;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px;
  transition: color 0.2s, border-color 0.2s;
}
.nav-chip:hover { color: var(--cyan-soft); border-color: rgba(3, 169, 244, 0.5); }
.nav-chip span { color: var(--cyan); margin-right: 6px; }
.nav-note {
  margin-left: auto; font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim);
  white-space: nowrap; padding-left: 18px;
}

/* ---------- category sections ---------- */

.cat { padding: 88px 0 26px; }
.cat-head {
  display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px; margin-bottom: 30px;
}
.cat-range {
  font-family: var(--font-display); font-style: italic;
  font-size: 21px; color: var(--cyan);
}
.cat-head h2 {
  font-size: clamp(26px, 3.6vw, 42px); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em; line-height: 1;
}
.cat-note {
  margin-left: auto; color: var(--dim); font-size: 13px;
  max-width: 40ch; text-align: right; line-height: 1.55;
}

.spec-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
  gap: 24px;
}
/* grid items must not inherit intrinsic min-content sizing, or wide demo tracks
   (the horizontal strip is 2080px max-content by design) blow out the mobile column */
.spec-grid > * { min-width: 0; }

/* ---------- specimen card ---------- */

.spec {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
}
.spec:hover { border-color: rgba(3, 169, 244, 0.4); transform: translateY(-2px); }
.spec.feature { grid-column: 1 / -1; }

.stage {
  position: relative; height: 280px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 26px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(3, 169, 244, 0.1), transparent 55%),
    radial-gradient(110% 100% at 95% 100%, rgba(9, 60, 84, 0.7), transparent 60%),
    #051d29;
}
.stage[data-replay] { cursor: pointer; }
.stage[data-replay]::after {
  content: "click to replay";
  position: absolute; bottom: 10px; right: 14px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(127, 216, 255, 0.55);
  opacity: 0; transition: opacity 0.25s; pointer-events: none;
}
.stage[data-replay]:hover::after { opacity: 1; }

.plaque { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.p-top { display: flex; align-items: center; gap: 8px 13px; flex-wrap: wrap; }
.p-num {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 31px; color: var(--cyan); min-width: 46px; line-height: 1;
}
.p-name {
  flex: 1; font-size: 14.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
}
.badge {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.09em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 4px;
  border: 1px solid; white-space: nowrap;
}
.badge.gsap { color: #8fd9ff; border-color: rgba(3, 169, 244, 0.5); background: rgba(3, 169, 244, 0.1); }
.badge.css { color: #ffcf8f; border-color: rgba(255, 180, 84, 0.5); background: rgba(255, 180, 84, 0.08); }
.badge.native { color: #8ff0cb; border-color: rgba(87, 230, 176, 0.5); background: rgba(87, 230, 176, 0.08); }
.p-use { margin: 11px 0 15px; color: var(--dim); font-size: 13.5px; line-height: 1.6; }
.p-ask {
  margin-top: auto; display: flex; gap: 10px; align-items: center;
  background: rgba(2, 12, 18, 0.65); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px;
}
.ask-code {
  flex: 1; font-family: var(--font-mono); font-size: 11.5px;
  color: var(--cyan-soft); line-height: 1.5;
}
.copy-btn {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 7px 11px; border-radius: 6px;
  border: 1px solid rgba(3, 169, 244, 0.45); color: var(--cyan);
  background: transparent; cursor: pointer; white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.copy-btn:hover { background: rgba(3, 169, 244, 0.15); }
.copy-btn.done { color: var(--mint); border-color: rgba(87, 230, 176, 0.5); }

/* ---------- demo art helpers ---------- */

.frame {
  position: relative; width: min(420px, 100%); height: 210px;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.art {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.art .art-word {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(34px, 11vw, 54px); color: rgba(234, 244, 249, 0.28); letter-spacing: 0.02em;
}
.art-1 { background: linear-gradient(135deg, #0a3a52 0%, #03a9f4 60%, #7fd8ff 100%); }
.art-2 { background: conic-gradient(from 210deg at 60% 40%, #062836, #0d4a66, #03a9f4, #062836); }
.art-3 { background: linear-gradient(160deg, #0b3245 0%, #155a77 45%, #ffb454 130%); }
.art-4 { background: radial-gradient(120% 120% at 20% 20%, #7fd8ff 0%, #0d4a66 45%, #051d29 100%); }

/* ---------- 01-08 text specimens ---------- */

.d-headline {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 7.4vw, 30px);
  line-height: 1.15; text-align: center; max-width: 20ch;
}
.split-target .line { will-change: transform; }

.d-chars {
  font-family: var(--font-ui); font-weight: 800; font-size: clamp(18px, 6.7vw, 34px);
  letter-spacing: 0.14em; text-transform: uppercase;
}

.d-words {
  font-size: 17px; line-height: 1.8; text-align: center;
  max-width: 34ch; color: var(--text);
}

.type-line {
  font-family: var(--font-mono); font-size: clamp(11px, 3.4vw, 16.5px); color: var(--cyan-soft);
}
.caret {
  display: inline-block; width: 9px; height: 1.15em; margin-left: 3px;
  background: var(--cyan); vertical-align: text-bottom;
  animation: caretBlink 0.85s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

.d-scramble {
  font-family: var(--font-ui); font-weight: 800; font-size: clamp(13px, 4.6vw, 26px);
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text);
}

.d-count { display: flex; gap: 40px; text-align: center; }
.stat-num {
  font-family: var(--font-display); font-size: 46px; font-weight: 500;
  color: var(--cyan-soft); line-height: 1;
}
.stat-lab {
  margin-top: 8px; font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
}

.shimmer-line {
  font-family: var(--font-ui); font-weight: 800; font-size: clamp(15px, 5.4vw, 32px);
  text-transform: uppercase; letter-spacing: 0.06em;
  background: linear-gradient(100deg, var(--text) 20%, var(--cyan) 42%, #b7ecff 50%, var(--cyan) 58%, var(--text) 80%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmerSweep 3.2s linear infinite;
}
@keyframes shimmerSweep {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

.marquee {
  width: 100%; overflow: hidden; border-block: 1px solid var(--line);
  padding: 20px 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 44px; width: max-content; animation: mq 16s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq-item {
  font-family: var(--font-ui); font-weight: 800; font-size: clamp(20px, 6vw, 26px);
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--text);
  white-space: nowrap;
}
.mq-item:nth-child(even) {
  color: transparent; -webkit-text-stroke: 1px rgba(127, 216, 255, 0.7);
}
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- 09-17 scroll specimens ---------- */

.d-fadeup { display: flex; flex-direction: column; gap: 12px; width: min(400px, 100%); }
.fu-item {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 18px; font-size: 13px; color: var(--dim);
  display: flex; justify-content: space-between; align-items: center;
}
.fu-item b { color: var(--text); font-weight: 600; margin-right: 12px; }
.fu-item span { font-family: var(--font-mono); font-size: 10px; color: var(--cyan); }

.d-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(420px, 100%); }
.gr-tile {
  height: 78px; border-radius: 10px;
  background: linear-gradient(145deg, var(--bg-3), #0e435c);
  border: 1px solid var(--line);
  display: flex; align-items: flex-end; padding: 10px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--cyan-soft);
}

.par-img, .zoom-img, .kb-img { position: absolute; inset: 0; }
.par-img {
  height: 145%; top: -22%;
  background: linear-gradient(180deg, #0d4a66 0%, #03a9f4 55%, #063a51 100%);
  display: flex; align-items: center; justify-content: center;
}
.par-img .art-word { font-size: clamp(40px, 13vw, 64px); }
.zoom-img {
  background: conic-gradient(from 40deg at 30% 70%, #051d29, #0d4a66, #03a9f4, #093c54, #051d29);
  display: flex; align-items: center; justify-content: center;
  transform-origin: 50% 50%;
}
.wipe-img {
  position: absolute; inset: 0;
  background: linear-gradient(150deg, #ffb454 -30%, #03a9f4 45%, #053a52 100%);
  display: flex; align-items: center; justify-content: center;
}

/* 14 pinned chapter */
.pinwrap { position: relative; }
.pinstage {
  height: 420px; display: flex; align-items: center; gap: 6%;
  padding: 0 6%; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(90% 130% at 85% 10%, rgba(3, 169, 244, 0.14), transparent 55%),
    #051d29;
}
.pin-nums { position: relative; width: 180px; height: 150px; flex-shrink: 0; }
.pin-num {
  position: absolute; inset: 0;
  font-family: var(--font-display); font-style: italic; font-size: 130px;
  line-height: 150px; color: var(--cyan); opacity: 0;
}
.pin-steps { position: relative; flex: 1; height: 150px; }
.pin-step { position: absolute; inset: 0; opacity: 0; }
.pin-step h4 {
  font-size: 24px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 10px;
}
.pin-step p { color: var(--dim); max-width: 52ch; font-size: 14px; }
.pin-dots { position: absolute; right: 6%; display: flex; flex-direction: column; gap: 10px; }
.pin-dots .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(127, 216, 255, 0.25); transform: scale(0.8);
}

/* 15 horizontal strip */
.hstage { overflow: hidden; border-bottom: 1px solid var(--line); background: #051d29; }
.htrack { display: flex; height: 420px; width: max-content; }
.hpanel {
  width: 520px; flex-shrink: 0; border-right: 1px solid var(--line);
  padding: 40px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(160deg, rgba(3, 169, 244, 0.08), transparent 60%);
}
.hpanel .hp-num {
  font-family: var(--font-display); font-style: italic;
  font-size: 88px; color: rgba(127, 216, 255, 0.35); line-height: 1;
}
.hpanel h4 {
  font-size: 20px; text-transform: uppercase; letter-spacing: 0.08em;
  margin: 14px 0 8px;
}
.hpanel p { color: var(--dim); font-size: 13.5px; max-width: 38ch; }

/* 16 stacking cards */
.stackwrap { padding: 40px 6% 70px; background: #051d29; border-bottom: 1px solid var(--line); }
.stack-card {
  position: sticky; min-height: 300px; border-radius: 16px;
  border: 1px solid rgba(127, 216, 255, 0.22);
  padding: 36px 40px; margin-bottom: 26px;
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.35);
}
.stack-card:nth-child(1) { top: 90px; background: linear-gradient(160deg, #0b3245, #072634); }
.stack-card:nth-child(2) { top: 106px; background: linear-gradient(160deg, #0e4059, #0b3245); }
.stack-card:nth-child(3) { top: 122px; background: linear-gradient(160deg, #11506e, #0e4059); }
.stack-card h4 {
  font-size: 22px; text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 10px;
}
.stack-card h4 span {
  font-family: var(--font-display); font-style: italic;
  color: var(--cyan); margin-right: 14px;
}
.stack-card p { color: var(--dim); max-width: 60ch; font-size: 14px; }

/* 17 mini page */
.mini-page {
  width: min(400px, 100%); height: 210px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-3);
  overflow-y: auto; position: relative;
}
.mini-bar-track {
  position: sticky; top: 0; height: 4px; background: rgba(127, 216, 255, 0.12); z-index: 2;
}
.mini-bar { height: 100%; width: 100%; background: var(--cyan); transform-origin: 0 50%; transform: scaleX(0); }
.mini-content { padding: 18px; }
.mini-content h5 { font-size: 14px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.mini-content p { font-size: 12.5px; color: var(--dim); margin-bottom: 12px; }

/* ---------- 18-23 hover specimens ---------- */

.mag-area { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.btn-mag {
  display: inline-block; padding: 18px 38px; border-radius: 999px;
  background: var(--cyan); color: #032330; font-weight: 700; font-size: 14px;
  letter-spacing: 0.04em; text-transform: uppercase; border: none; cursor: pointer;
}

.btn-sweep {
  position: relative; display: inline-block; padding: 17px 36px;
  border: 1px solid rgba(127, 216, 255, 0.5); border-radius: 999px;
  color: var(--cyan-soft); font-weight: 700; font-size: 13px;
  letter-spacing: 0.05em; text-transform: uppercase;
  background: transparent; cursor: pointer; overflow: hidden;
  transition: color 0.35s;
}
.btn-sweep::before {
  content: ""; position: absolute; inset: 0; background: var(--cyan);
  transform: translateY(102%); transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0; border-radius: inherit;
}
.btn-sweep:hover::before { transform: translateY(0); }
.btn-sweep:hover { color: #032330; }
.btn-sweep span { position: relative; z-index: 1; }

.tilt-area { perspective: 900px; }
.tilt-card {
  width: min(280px, 100%); height: 190px; border-radius: 14px;
  background: linear-gradient(150deg, #0e4964, #072634 70%);
  border: 1px solid rgba(127, 216, 255, 0.3);
  padding: 22px; display: flex; flex-direction: column; justify-content: space-between;
  transform-style: preserve-3d; will-change: transform;
}
.tilt-card .tc-tag {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cyan);
}
.tilt-card h5 { font-size: 18px; font-weight: 700; transform: translateZ(30px); }

.imgcard {
  position: relative; width: min(300px, 100%); height: 200px; border-radius: 12px;
  overflow: hidden; cursor: pointer;
}
.imgcard .ic-img {
  position: absolute; inset: 0;
  background: linear-gradient(140deg, #12587a, #03a9f4 70%, #9fe2ff);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.imgcard::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(3, 18, 26, 0.85));
}
.imgcard .imgcap {
  position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 2;
  transform: translateY(10px); opacity: 0.75;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s;
}
.imgcard .imgcap b { display: block; font-size: 15px; }
.imgcard .imgcap span { font-size: 11.5px; color: var(--cyan-soft); font-family: var(--font-mono); }
.imgcard:hover .ic-img { transform: scale(1.08); }
.imgcard:hover .imgcap { transform: translateY(0); opacity: 1; }

.ulinks { display: flex; flex-direction: column; gap: 18px; font-size: 19px; font-weight: 600; }
.ul-link {
  color: var(--text); width: max-content;
  background: linear-gradient(var(--cyan), var(--cyan)) no-repeat 0 100% / 0 2px;
  transition: background-size 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  padding-bottom: 4px;
}
.ul-link:hover { background-size: 100% 2px; }

.spot-card {
  position: relative; width: min(400px, 100%); height: 190px; border-radius: 14px;
  border: 1px solid var(--line); background: #071f2b; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  --mx: 50%; --my: 50%;
}
.spot-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(3, 169, 244, 0.22), transparent 65%);
}
.spot-card p {
  position: relative; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim);
}

/* ---------- 24-27 ambient specimens ---------- */

.aurora { position: relative; width: 100%; height: 100%; overflow: hidden; }
.a-blob {
  position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%;
  filter: blur(60px); opacity: 0.65; mix-blend-mode: screen;
}
.a-blob.b1 { background: #03a9f4; top: -18%; left: -8%; animation: drift1 14s ease-in-out infinite alternate; }
.a-blob.b2 { background: #0d6f8f; bottom: -25%; right: -6%; animation: drift2 17s ease-in-out infinite alternate; }
.a-blob.b3 { background: #2fd0c8; top: 30%; left: 42%; width: 34%; animation: drift3 12s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(24%, 18%) scale(1.2); } }
@keyframes drift2 { to { transform: translate(-18%, -14%) scale(1.15); } }
@keyframes drift3 { to { transform: translate(-16%, 22%) scale(0.9); } }

.orb-field { position: relative; width: 100%; height: 100%; }
.orb {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(191, 235, 255, 0.95), rgba(3, 169, 244, 0.55) 55%, rgba(3, 169, 244, 0.06) 75%);
  filter: blur(1px);
}
.orb.o1 { width: 72px; height: 72px; top: 22%; left: 16%; }
.orb.o2 { width: 34px; height: 34px; top: 58%; left: 38%; }
.orb.o3 { width: 52px; height: 52px; top: 30%; right: 20%; }
.orb.o4 { width: 22px; height: 22px; bottom: 18%; right: 34%; }

.kb-img {
  background:
    radial-gradient(80% 60% at 70% 30%, rgba(255, 180, 84, 0.35), transparent 55%),
    linear-gradient(200deg, #10516f, #062836 75%);
  animation: kenburns 16s ease-in-out infinite alternate;
  display: flex; align-items: center; justify-content: center;
}
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.14) translate(-2.5%, 2%); }
}

.grain-split { display: flex; width: min(440px, 100%); height: 200px; border-radius: 12px; overflow: hidden; }
.g-half { position: relative; flex: 1; background: linear-gradient(160deg, #0e4a66, #072634); display: flex; align-items: flex-end; padding: 12px; }
.g-half span {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--cyan-soft);
}
.g-half.grained::after {
  content: ""; position: absolute; inset: 0; opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ---------- 28-32 svg and layout specimens ---------- */

.d-draw { text-align: center; }
.d-draw .draw-word { font-family: var(--font-display); font-style: italic; font-size: clamp(30px, 9.5vw, 42px); }
.d-draw svg { display: block; margin: 6px auto 0; overflow: visible; max-width: 100%; height: auto; }
.draw-path { fill: none; stroke: var(--cyan); stroke-width: 3.5; stroke-linecap: round; }

.morph-svg { width: 230px; height: 200px; }
.morph-shape { fill: rgba(3, 169, 244, 0.22); stroke: var(--cyan-soft); stroke-width: 1.5; }

.mp-svg { width: min(420px, 100%); height: 190px; }
.mp-path { fill: none; stroke: rgba(127, 216, 255, 0.35); stroke-width: 1.5; stroke-dasharray: 5 7; }
.mp-dot { fill: var(--cyan); }
.mp-dot-core { fill: #bfeaff; }

.flip-demo { width: 100%; padding: 0 8px; }
.flip-chips { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.fchip {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--dim); cursor: pointer;
  transition: all 0.2s;
}
.fchip.active { border-color: var(--cyan); color: var(--cyan-soft); background: rgba(3, 169, 244, 0.12); }
.flip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.ftile {
  height: 66px; border-radius: 9px; border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--bg-3), #0d425b);
  display: flex; align-items: flex-end; padding: 8px 10px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--cyan-soft);
}
.ftile.hide { display: none; }

.acc { width: min(430px, 100%); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; color: var(--text); cursor: pointer;
  font-family: var(--font-ui); font-size: 14.5px; font-weight: 600;
  padding: 15px 4px; text-align: left;
}
.acc-head .chev { color: var(--cyan); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.acc-item.open .chev { transform: rotate(45deg); }
.acc-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; }
.acc-inner p { padding: 0 4px 16px; color: var(--dim); font-size: 13px; }

/* ---------- 33 transitions ---------- */

.trans-demo { display: flex; align-items: center; justify-content: center; gap: 16px 22px; flex-wrap: wrap; }
.t-thumb {
  width: 120px; height: 150px; border-radius: 10px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-style: italic; font-size: 44px;
}
.t-thumb.ta { background: linear-gradient(160deg, #0b3245, #051d29); color: var(--cyan-soft); }
.t-thumb.tb { background: linear-gradient(160deg, #f3ead9, #d9c9a8); color: #6b4f1d; }
.t-arrow { font-size: 22px; color: var(--cyan); font-family: var(--font-mono); }

/* ---------- feature specimen shell (pin-safe: no transform, no overflow clip) ---------- */

.feature-block { grid-column: 1 / -1; min-width: 0; }
.demo-shell { overflow-x: clip; }
.feature-block .spec.feature { border-radius: 14px 14px 0 0; }
.feature-block .spec.feature:hover { transform: none; }
.demo-shell {
  border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 14px 14px; background: #051d29;
}

/* ---------- footer ---------- */

.rules { padding: 90px 0 40px; }
.rules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.rule {
  border: 1px solid var(--line); border-radius: 14px; padding: 26px;
  background: var(--bg-2);
}
.rule .r-num {
  font-family: var(--font-display); font-style: italic;
  font-size: 34px; color: var(--cyan); display: block; margin-bottom: 12px;
}
.rule h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 8px; }
.rule p { color: var(--dim); font-size: 13px; }
.colophon {
  margin-top: 60px; padding: 26px 0 40px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--dim);
}

/* ---------- responsive ---------- */

@media (max-width: 820px) {
  .wrap { padding: 0 20px; }
  .idx-nav { padding: 10px 16px; }
  .cat { padding: 64px 0 16px; }
  .cat-note { display: none; }
  .spec-grid { grid-template-columns: 1fr; gap: 18px; }
  .stage { height: 260px; padding: 22px; }
  .plaque { padding: 16px 16px 18px; }
  .hero-title { font-size: clamp(44px, 15vw, 132px); }
  .pinstage { flex-direction: column; justify-content: center; gap: 18px; height: 540px; padding-top: 36px; }
  .pin-nums { width: 120px; height: 84px; }
  .pin-num { font-size: 74px; line-height: 84px; }
  .pin-steps { height: 230px; }
  .pin-step p { max-width: 100%; }
  .pin-dots { display: none; }
  .hpanel { width: 82vw; padding: 24px; }
  .htrack { height: 380px; }
  .stackwrap { padding: 30px 20px 50px; }
  .stack-card { padding: 26px 20px; min-height: 260px; }
  .rules-grid { grid-template-columns: 1fr; }
  .d-count { gap: 22px; }
  .stat-num { font-size: 34px; }
  .flip-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-tags { display: none; }
}
