/* ============================================================
   REIMAGINE FX · About page (v3)
   Editing-timeline career story, AI Lab, classified R&D file,
   filterable software grid, EN/DE. Builds on css/style.css v2.
   ============================================================ */

@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500;
  font-display: swap; src: url('/brand/fonts/cormorant-garamond-latin-500.woff2') format('woff2');
}

.ab-page {
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --aikya: #C7A253;
  --cream: #F3E9D4;
  --nav-h: 68px;
  --c-v1: 199, 162, 83;
  --c-v2: 240, 200, 90;
  --c-a1: 100, 210, 163;
  --c-v3: 255, 107, 74;
  --nle-bg: #09090D;
  --nle-line: rgba(255,255,255,0.07);
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.ab-lead { font-size: 17px; line-height: 1.75; color: var(--text2); max-width: 64ch; margin-bottom: var(--sp-5); }

@keyframes ab-draw { to { stroke-dashoffset: 0; } }
@keyframes ab-fade { to { opacity: 1; } }
@keyframes ab-blink { 50% { opacity: 0.15; } }
@keyframes ab-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ab-chip { from { opacity: 0; transform: translateY(6px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes ab-pop { from { opacity: 0; transform: translateY(6px) scale(0.97); } to { opacity: 1; transform: none; } }

/* ============ HERO ============ */
.ab-hero {
  position: relative; overflow: hidden;
  padding: 132px 48px 88px;
  background: radial-gradient(900px 520px at 18% 34%, rgba(199,162,83,0.09), transparent 70%), var(--bg);
}
.ab-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(216,178,70,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216,178,70,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 25%, transparent 75%);
}
.ab-hero-mark {
  position: absolute; z-index: 0; pointer-events: none;
  width: min(760px, 72vw); left: -9%; top: 50%; transform: translateY(-50%);
  color: var(--aikya); opacity: 0.07;
}
.ab-hero-mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ab-draw 2.4s cubic-bezier(.4,0,.2,1) 0.4s forwards; }
.ab-hero-mark path + path { animation-delay: 0.55s; }
.ab-hero-mark polygon { opacity: 0; animation: ab-fade 0.8s ease-out 2.2s forwards; }

.ab-hero-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 72px; align-items: center;
}

/* Viewfinder portrait: a nod to the photography/cinematography start */
.vf {
  position: relative; margin: 0;
  aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border); background: var(--black-2);
  box-shadow: var(--shadow-2);
}
.vf img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.vf::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(5,5,7,0.6), transparent 30%),
    linear-gradient(to bottom, rgba(5,5,7,0.4), transparent 20%);
}
.vf-c { position: absolute; z-index: 2; width: 26px; height: 26px; border: 0 solid rgba(245,242,235,0.78); }
.vf-c--tl { top: 16px; left: 16px; border-top-width: 2px; border-left-width: 2px; }
.vf-c--tr { top: 16px; right: 16px; border-top-width: 2px; border-right-width: 2px; }
.vf-c--bl { bottom: 16px; left: 16px; border-bottom-width: 2px; border-left-width: 2px; }
.vf-c--br { bottom: 16px; right: 16px; border-bottom-width: 2px; border-right-width: 2px; }
.vf-rec, .vf-fmt, .vf-tc {
  position: absolute; z-index: 3;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: rgba(245,242,235,0.92); text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}
.vf-rec { top: 21px; left: 50px; display: flex; align-items: center; gap: 7px; }
.vf-rec i { width: 8px; height: 8px; border-radius: 50%; background: #FF3B30; box-shadow: 0 0 10px rgba(255,59,48,0.8); animation: ab-blink 1.2s steps(2, jump-none) infinite; }
.vf-fmt { top: 21px; right: 50px; }
.vf-tc { bottom: 21px; left: 50px; font-variant-numeric: tabular-nums; }

.ab-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.ab-hero-top .section-label { margin: 0; }
.ab-lang {
  display: inline-flex; padding: 3px;
  border: 1px solid var(--border2); border-radius: var(--r-pill);
  background: rgba(255,255,255,0.03);
}
.ab-lang-btn, .tl-view-btn {
  min-width: 44px; min-height: 34px; padding: 0 13px;
  border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--text3);
  font: 700 11px/1 var(--font-body); letter-spacing: 0.14em;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.ab-lang-btn:hover, .tl-view-btn:hover { color: var(--text); }
.ab-lang-btn[aria-pressed="true"], .tl-view-btn[aria-pressed="true"] { background: var(--gold); color: var(--black-0); }

.ab-name {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(56px, 7.4vw, 108px); line-height: 0.92;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--cream); margin-bottom: 18px;
}
.ab-role {
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; line-height: 1.8;
  text-transform: uppercase; color: var(--gold); margin-bottom: 26px;
}
.ab-bio p { font-size: 16.5px; line-height: 1.8; color: var(--text2); margin-bottom: 16px; max-width: 62ch; }
.ab-bio strong { color: var(--text); font-weight: 600; }
.ab-sig {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(22px, 2.2vw, 28px); line-height: 1.35;
  color: #EAD9AE; max-width: 32ch;
  margin: 24px 0 32px; padding-left: 18px; border-left: 2px solid var(--gold);
}
.ab-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ STATS ============ */
.ab-stats { padding: 0 48px; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ab-stats-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ab-stat {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 34px 10px; text-align: center; border-left: 1px solid var(--border);
}
.ab-stat:first-child { border-left: 0; }
.ab-stat-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3vw, 44px); line-height: 1; letter-spacing: -0.02em;
  color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ab-stat-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.15em; line-height: 1.5; text-transform: uppercase; color: var(--text3); }

/* ============ TIMELINE: head ============ */
.ab-tl { position: relative; background: var(--bg); padding-top: var(--sp-7); }
.ab-tl-head {
  max-width: 1440px; margin: 0 auto; padding: 0 48px 34px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
}
.ab-tl-sub { color: var(--text2); max-width: 580px; }
.ab-tl-tools { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.tl-view { display: inline-flex; padding: 3px; border: 1px solid var(--border2); border-radius: var(--r-pill); }
.tl-view[hidden] { display: none; }
.tl-view-btn { min-width: 86px; letter-spacing: 0.1em; text-transform: uppercase; }
.tl-skip { font-size: 12px; letter-spacing: 0.06em; color: var(--text3); text-decoration: underline; text-underline-offset: 4px; }
.tl-skip:hover { color: var(--gold); }

.ab-tl[data-view="list"] .tl-scroller,
.ab-tl[data-view="list"] .tl-sub-tl { display: none; }
.ab-tl[data-view="timeline"] .tl-list,
.ab-tl[data-view="timeline"] .tl-sub-list { display: none; }

/* ============ TIMELINE: sticky stage (desktop) ============ */
.tl-scroller { position: relative; }
.tl-stage {
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  max-width: 1440px; margin: 0 auto;
  padding: 14px 48px 20px;
  display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px;
}
.tl-top { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); gap: 14px; min-height: 0; }

/* Program monitor */
.tl-monitor {
  position: relative; min-height: 0; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--border);
  background: radial-gradient(120% 90% at 50% 42%, #16161D 0%, #0A0A0E 60%, #060608 100%);
}
.tl-monitor::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.018) 0 1px, transparent 1px 3px);
}
.mon-safe { position: absolute; inset: 8% 6%; border: 1px dashed rgba(245,242,235,0.1); border-radius: 4px; }
.mon-safe::before, .mon-safe::after { content: ''; position: absolute; left: 50%; top: 50%; background: rgba(245,242,235,0.14); transform: translate(-50%, -50%); }
.mon-safe::before { width: 18px; height: 1px; }
.mon-safe::after { width: 1px; height: 18px; }
.mon-year {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: clamp(96px, 17vh, 200px); line-height: 1;
  letter-spacing: 0.04em; color: rgba(199,162,83,0.075); white-space: nowrap; pointer-events: none;
}
.mon-redact {
  display: inline-block; width: 1.1em; height: 0.66em; margin-left: 0.05em;
  background: #000; border: 1px solid rgba(255,107,74,0.28); border-radius: 2px;
}
.mon-ico { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(40%, 250px); color: var(--aikya); }
.mon-ico[data-icon="origins"] { width: min(76%, 470px); }
.mon-ico[data-icon="aikya"] { width: min(34%, 210px); }
.mon-ico svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 0 16px rgba(199,162,83,0.28)); }
.mon-ico .d {
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: ab-draw 1.1s cubic-bezier(.4,0,.2,1) forwards; animation-delay: calc(var(--i, 0) * 70ms);
}
.mon-ico[data-icon="origins"] .d { stroke-width: 2.2; }
.mon-ico[data-icon="aikya"] .d { stroke-width: 12; stroke-linecap: butt; stroke-linejoin: miter; }
.mon-ico[data-icon="chip"] { color: rgb(var(--c-v3)); }
.mon-ico .f { fill: currentColor; opacity: 0; animation: ab-fade 0.5s ease-out forwards; animation-delay: calc(var(--i, 0) * 70ms + 0.6s); }
.mon-tl, .mon-tr, .mon-bl, .mon-br {
  position: absolute; z-index: 4;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(245,242,235,0.72); white-space: nowrap;
}
.mon-tl { top: 13px; left: 18px; color: var(--gold); max-width: 60%; overflow: hidden; text-overflow: ellipsis; }
.mon-tr { top: 13px; right: 18px; }
.mon-bl { bottom: 12px; left: 18px; display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.mon-br { bottom: 12px; right: 18px; }
.mon-rec { width: 7px; height: 7px; border-radius: 50%; background: #FF3B30; box-shadow: 0 0 8px rgba(255,59,48,0.8); animation: ab-blink 1.2s steps(2, jump-none) infinite; }

/* Inspector */
.tl-inspector {
  position: relative; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column;
  border-radius: 16px; border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018));
}
.tl-inspector:focus { outline: none; }
.tl-inspector:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.tl-insp-card {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 20px 24px 16px; scrollbar-width: thin; scrollbar-color: var(--border2) transparent;
}
.tl-insp-card.is-in { animation: ab-in 0.45s var(--ease-out); }
.tl-insp-card .tl-title { font-size: clamp(22px, 1.9vw, 28px); }
.tl-insp-card .tl-body p { font-size: 14.5px; }
.tl-insp-card .chip { animation: ab-chip 0.4s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 30ms + 120ms); }
.tl-insp-foot {
  flex: 0 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; align-items: center;
  padding: 11px 24px 13px; border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text3);
}
.tl-count { font-variant-numeric: tabular-nums; }
.tl-count b { color: var(--gold); font-weight: 600; }
.tl-bar { grid-column: 1 / -1; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.07); overflow: hidden; }
.tl-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold2)); transition: width 0.5s var(--ease-out); }

/* Timeline panel */
.tl-edit {
  --hdr: 64px;
  position: relative;
  border-radius: 16px; border: 1px solid var(--border); background: var(--nle-bg);
  padding: 8px 14px 8px;
}
.tl-ruler-row, .tl-row { display: grid; grid-template-columns: var(--hdr) minmax(0, 1fr); }
.tl-ruler { position: relative; height: 26px; border-bottom: 1px solid var(--nle-line); }
.tl-tick {
  position: absolute; bottom: 0; transform: translateX(-50%);
  padding-bottom: 7px; white-space: nowrap;
  font-family: var(--mono); font-size: 10px; color: var(--text3); font-variant-numeric: tabular-nums;
}
.tl-tick::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 1px; height: 5px; background: rgba(255,255,255,0.25); }
.tl-tick--origins { letter-spacing: 0.12em; text-transform: uppercase; }
.tl-tick--origins::after { display: none; }
.tl-tick--now { color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; }
.tl-tick--now::after { background: var(--gold); }
.tl-tracks { padding-top: 6px; }
.tl-row { height: 30px; margin-bottom: 5px; }
.tl-row:last-child { margin-bottom: 2px; }
.tl-hdr {
  display: flex; align-items: center; gap: 7px;
  padding-left: 4px; margin-right: 8px; border-right: 1px solid var(--nle-line);
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--text3);
}
.tl-hdr svg { width: 14px; height: 14px; opacity: 0.8; }
.tl-hdr--ruler { border-right-color: transparent; }
.tl-lane { position: relative; border-radius: 6px; background: rgba(255,255,255,0.012); }
.tl-lane > i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,0.035); pointer-events: none; }
.tl-lane > i.tl-lane-origin { background: rgba(199,162,83,0.2); }

.tl-clip {
  --c: var(--c-v1);
  position: absolute; top: 2px; bottom: 2px;
  left: calc(var(--l) * 1%); width: calc(var(--w) * 1%); min-width: 28px;
  display: flex; align-items: center; gap: 6px; padding: 0 8px;
  border-radius: 6px; border: 1px solid rgba(var(--c), 0.38);
  background-color: rgba(var(--c), 0.13);
  font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
  color: rgba(245,242,235,0.85); white-space: nowrap; overflow: hidden; text-align: left;
  opacity: 0.7; cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, box-shadow 0.25s, opacity 0.25s;
}
.tl-clip:hover { opacity: 1; background-color: rgba(var(--c), 0.22); }
.tl-clip.is-past { opacity: 0.88; }
.tl-clip.is-active {
  opacity: 1; z-index: 2; color: #fff;
  background-color: rgba(var(--c), 0.3); border-color: rgba(var(--c), 0.95);
  box-shadow: 0 0 0 1px rgba(var(--c), 0.35), 0 0 22px rgba(var(--c), 0.28);
}
.tl-clip:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; }
/* First view: clips wipe in left to right, like an edit being laid down.
   fill-mode backwards = no clip-path left behind to cut off the active glow. */
.tl-stage.is-armed:not(.is-live) .tl-clip { clip-path: inset(0 100% 0 0); }
.tl-stage.is-live .tl-clip { animation: ab-wipe 0.7s var(--ease-out) backwards; animation-delay: calc(var(--k, 0) * 70ms + 120ms); }
@keyframes ab-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.tl-stage.is-armed .tl-playhead { opacity: 0; transition: opacity 0.6s ease 0.9s; }
.tl-stage.is-armed.is-live .tl-playhead { opacity: 1; }
.tl-stage.is-settled .tl-clip { animation: none; clip-path: none; }
.tl-stage.is-settled .tl-playhead { opacity: 1; transition: none; }
.tl-clip-label { overflow: hidden; }
.tl-clip[data-track="v2"] { --c: var(--c-v2); }
.tl-clip[data-track="v2"]::before { content: ''; flex: 0 0 auto; width: 7px; height: 7px; background: rgb(var(--c-v2)); transform: rotate(45deg); }
.tl-clip[data-track="a1"] {
  --c: var(--c-a1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='24' viewBox='0 0 64 24'%3E%3Cg fill='rgba(100,210,163,0.32)'%3E%3Crect x='1' y='9' width='2' height='6'/%3E%3Crect x='5' y='6' width='2' height='12'/%3E%3Crect x='9' y='3' width='2' height='18'/%3E%3Crect x='13' y='8' width='2' height='8'/%3E%3Crect x='17' y='5' width='2' height='14'/%3E%3Crect x='21' y='10' width='2' height='4'/%3E%3Crect x='25' y='7' width='2' height='10'/%3E%3Crect x='29' y='2' width='2' height='20'/%3E%3Crect x='33' y='6' width='2' height='12'/%3E%3Crect x='37' y='9' width='2' height='6'/%3E%3Crect x='41' y='4' width='2' height='16'/%3E%3Crect x='45' y='8' width='2' height='8'/%3E%3Crect x='49' y='5' width='2' height='14'/%3E%3Crect x='53' y='9' width='2' height='6'/%3E%3Crect x='57' y='3' width='2' height='18'/%3E%3Crect x='61' y='7' width='2' height='10'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: 0 50%; background-size: 64px 100%;
}
.tl-clip[data-track="v3"] {
  --c: var(--c-v3);
  background-image: repeating-linear-gradient(135deg, rgba(255,107,74,0.24) 0 5px, rgba(255,107,74,0.06) 5px 10px);
}

.tl-playhead {
  position: absolute; z-index: 6; pointer-events: none;
  top: 8px; bottom: 30px; left: calc(14px + var(--hdr)); width: 0;
  will-change: transform;
}
.tl-playhead::before { content: ''; position: absolute; top: 20px; bottom: 0; left: -1px; width: 2px; background: var(--gold2); box-shadow: 0 0 12px rgba(240,200,90,0.7); }
.tl-playhead::after { content: ''; position: absolute; top: 14px; left: -6px; width: 12px; height: 12px; background: var(--gold2); transform: rotate(45deg); box-shadow: 0 0 10px rgba(240,200,90,0.8); }
.tl-ph-tag {
  position: absolute; top: 0; left: 10px;
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.06em;
  padding: 2px 6px; border-radius: 3px; background: var(--gold2); color: var(--black-0);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.tl-hint {
  margin-top: 4px; text-align: right;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text3);
}

/* ============ TIMELINE: chapter cards (list view + inspector) ============ */
.tl-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tl-badge {
  --c: var(--c-v1);
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  padding: 3px 7px; border-radius: 4px;
  border: 1px solid rgba(var(--c), 0.5); color: rgb(var(--c)); background: rgba(var(--c), 0.1);
}
.tl-badge[data-track="v2"] { --c: var(--c-v2); }
.tl-badge[data-track="a1"] { --c: var(--c-a1); }
.tl-badge[data-track="v3"] { --c: var(--c-v3); }
.tl-when { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--text3); }
.tl-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 2.2vw, 30px); line-height: 1.12; letter-spacing: -0.01em;
  color: var(--text); margin-bottom: 10px;
}
.tl-body p { font-size: 15px; line-height: 1.72; color: var(--text2); margin-bottom: 10px; }
.tl-beats { list-style: none; display: grid; gap: 9px; margin: 12px 0 6px; counter-reset: beat; }
.tl-beats li { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 10px; font-size: 14px; line-height: 1.55; color: var(--text2); }
.tl-beats li::before { counter-increment: beat; content: counter(beat, decimal-leading-zero); grid-row: span 2; padding-top: 2px; font-family: var(--mono); font-size: 11px; color: var(--gold); }
.tl-beats b { font-size: 14px; font-weight: 600; color: var(--text); }
.tl-points { list-style: none; display: grid; gap: 6px; margin: 8px 0 10px; }
.tl-points li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.55; color: var(--text2); }
.tl-points li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.tl-link { margin-top: 4px; }
.tl-link a { font-size: 13px; font-weight: 600; letter-spacing: 0.03em; color: var(--gold); }
.tl-link a:hover { color: var(--gold2); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip {
  font-family: var(--mono); font-size: 11px; line-height: 1;
  padding: 6px 9px; border-radius: 6px;
  border: 1px solid var(--border2); background: rgba(255,255,255,0.025); color: var(--text2);
}
.chip-plus { border-color: var(--gold-border); background: var(--gold-dim); color: var(--gold); font-weight: 600; }
.chip-x { width: 70px; border-color: rgba(255,107,74,0.45); background: repeating-linear-gradient(135deg, #000 0 6px, #141414 6px 12px); }

/* List view */
.tl-list { list-style: none; position: relative; max-width: 920px; margin: 0 auto; padding: 8px 48px var(--sp-7); }
.tl-list::before {
  content: ''; position: absolute; left: 66px; top: 0; bottom: var(--sp-7); width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(199,162,83,0.5) 5%, rgba(199,162,83,0.5) 95%, transparent);
}
.tl-ch { position: relative; padding-left: 52px; margin-bottom: 22px; }
.tl-ch::before {
  content: ''; position: absolute; left: 13px; top: 30px;
  width: 10px; height: 10px; background: var(--bg); border: 2px solid var(--gold); transform: rotate(45deg);
}
.tl-ch .tl-card {
  border-radius: 18px; border: 1px solid var(--border); padding: 24px 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
}
.tl-ch--x::before { border-color: rgb(var(--c-v3)); }
.tl-ch--x .tl-card {
  border-color: rgba(255,107,74,0.35);
  background: repeating-linear-gradient(135deg, rgba(255,107,74,0.045) 0 10px, transparent 10px 20px), rgba(255,255,255,0.02);
}

/* ============ AI LAB ============ */
.ab-lab { position: relative; overflow: hidden; background: var(--bg2); border-top: 1px solid var(--border); }
.ab-lab::before {
  content: ''; position: absolute; top: -220px; right: -160px; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(216,178,70,0.08), transparent 65%); pointer-events: none;
}
.lab-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.lab-card {
  grid-column: span 2; position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 12px;
  padding: 26px 26px 24px; border-radius: 20px; border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  transition: border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.lab-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(216,178,70,0.12), transparent 60%);
}
.lab-card:hover { border-color: var(--gold-border); transform: translateY(-3px); }
.lab-card:hover::before { opacity: 1; }
.lab-card--wide { grid-column: span 4; }
.lab-card--full { grid-column: 1 / -1; }
.lab-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lab-kicker { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text3); }
.lab-status {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 4px 9px; border-radius: var(--r-pill);
  border: 1px solid rgba(216,178,70,0.35); background: rgba(216,178,70,0.08); color: #E7C77A;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
}
.lab-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lab-status.is-live { color: #6FE0A8; border-color: rgba(30,200,100,0.35); background: rgba(30,200,100,0.08); }
.lab-status.is-live::before { animation: ab-pulse 2s ease-in-out infinite; }
@keyframes ab-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(111,224,168,0.6); } 50% { box-shadow: 0 0 0 5px rgba(111,224,168,0); } }
.lab-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--text); }
.lab-card p { font-size: 14.5px; line-height: 1.7; color: var(--text2); }
.lab-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.lab-chips li { font-family: var(--mono); font-size: 10.5px; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--border2); color: var(--text2); }
.lab-chips--lg { margin-top: 0; padding-top: 0; }
.lab-chips--lg li { font-size: 12px; padding: 7px 11px; color: var(--text); }
.lab-more { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--gold); }
.lab-more:hover { color: var(--gold2); }

/* RFX Manager: agents relay */
.lab-agents { position: relative; display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; padding: 12px 0 0; }
.lab-agents::before {
  content: ''; position: absolute; left: 6%; right: 6%; top: calc(50% + 6px); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216,178,70,0.55), transparent);
}
.lab-agents::after {
  content: ''; position: absolute; left: 6%; top: calc(50% + 4px); width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold2); box-shadow: 0 0 10px var(--gold2);
  animation: ab-relay 3.4s ease-in-out infinite alternate;
}
@keyframes ab-relay { to { left: 94%; } }
.lab-agent {
  position: relative; z-index: 1;
  font-family: var(--mono); font-size: 10.5px; color: var(--text);
  padding: 6px 10px; border-radius: var(--r-pill);
  background: #121218; border: 1px solid rgba(216,178,70,0.35);
}

/* Aikya: voice bars */
.lab-wave { display: flex; align-items: center; gap: 3px; height: 30px; margin-top: 2px; }
.lab-wave i {
  flex: 0 0 3px; height: 100%; border-radius: 2px; transform-origin: 50% 50%;
  background: linear-gradient(to top, var(--gold-deep), var(--gold2));
  transform: scaleY(0.25); animation: ab-wave 1.1s ease-in-out infinite;
}
.lab-wave i:nth-child(3n) { animation-delay: -0.35s; }
.lab-wave i:nth-child(3n+1) { animation-delay: -0.7s; }
.lab-wave i:nth-child(4n) { animation-duration: 1.4s; }
@keyframes ab-wave { 0%, 100% { transform: scaleY(0.22); } 50% { transform: scaleY(0.95); } }

/* Chipset: PCB traces */
.lab-pcb {
  position: absolute; right: -14px; bottom: -10px; width: 190px; height: 126px; z-index: -1;
  opacity: 0.22; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='190' height='126' viewBox='0 0 190 126' fill='none' stroke='%23D8B246' stroke-width='1.3'%3E%3Cpath d='M0 20h40l12 12h50'/%3E%3Cpath d='M0 44h24l10-10h30'/%3E%3Cpath d='M60 126V88l14-14h40l10 10h66'/%3E%3Cpath d='M100 126v-24l8-8h82'/%3E%3Cpath d='M146 0v30l-10 10H98'/%3E%3Ccircle cx='102' cy='32' r='3'/%3E%3Ccircle cx='64' cy='34' r='3'/%3E%3Ccircle cx='124' cy='84' r='3'/%3E%3Ccircle cx='98' cy='40' r='3'/%3E%3Crect x='28' y='58' width='24' height='24' rx='2'/%3E%3C/svg%3E") no-repeat right bottom / contain;
}

.lab-sub { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.005em; color: var(--text); margin-bottom: 16px; }
.lab-rules { margin-top: var(--sp-6); }
.lab-rules-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.lab-rules-grid li { padding-top: 16px; border-top: 1px solid var(--gold-border); }
.lab-rule-n { display: block; margin-bottom: 8px; font-family: var(--mono); font-size: 11px; color: var(--gold); }
.lab-rules-grid b { display: block; margin-bottom: 6px; font-family: var(--font-display); font-size: 16px; color: var(--text); }
.lab-rules-grid p { font-size: 14px; line-height: 1.65; color: var(--text2); }
.lab-stack { margin-top: var(--sp-6); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px; }
.lab-tools { margin-top: var(--sp-6); }
.lab-tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lab-tool-group { padding: 18px 18px 16px; border-radius: 16px; border: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.lab-tool-cat { display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.lab-tool-group ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.lab-tool-group li { font-size: 13px; padding: 6px 11px; border-radius: var(--r-pill); background: rgba(255,255,255,0.055); color: var(--text); }
.lab-studied { margin-top: 22px; font-size: 14px; color: var(--text3); }

/* ============ CLASSIFIED ============ */
.ab-cl { position: relative; overflow: hidden; background: var(--bg); }
.ab-cl::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 900px; height: 520px; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(255,107,74,0.07), transparent 65%); pointer-events: none;
}
.cl-file {
  position: relative; max-width: 900px; margin: 0 auto; overflow: hidden;
  border-radius: 18px; border: 1px solid rgba(255,107,74,0.35);
  background:
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.012) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #120C0B, #0A0A0D);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.cl-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 22px;
  padding: 12px 22px; border-bottom: 1px dashed rgba(255,107,74,0.35); background: rgba(255,107,74,0.06);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #FF9B85;
}
.cl-body { position: relative; padding: 34px 36px 32px; }
.cl-body .section-label { color: #FF9B85; }
.cl-body .section-label::before { background: #FF9B85; }
.cl-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(44px, 6vw, 76px); line-height: 1; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cream); margin-bottom: 22px;
}
.cl-lines { max-width: 62ch; font-family: var(--mono); font-size: clamp(13px, 1.25vw, 15.5px); line-height: 1.75; color: var(--text); }
.cl-line { margin-bottom: 8px; }
.cl-line--last { margin-top: 14px; color: var(--text2); }
.cl-redact { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.cl-redact i { position: relative; display: block; overflow: hidden; width: var(--w); height: 1.05em; border-radius: 2px; background: #000; border: 1px solid rgba(255,255,255,0.06); }
.cl-redact i::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  animation: ab-sheen 3.6s ease-in-out infinite;
}
.cl-redact i:nth-child(2)::after { animation-delay: 0.5s; }
.cl-redact i:nth-child(3)::after { animation-delay: 1s; }
@keyframes ab-sheen { 60%, 100% { transform: translateX(100%); } }
.cl-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 26px; }
.cl-btn {
  min-height: 44px; padding: 12px 18px; border-radius: 8px;
  border: 1px solid rgba(255,107,74,0.55); background: rgba(255,107,74,0.08); color: #FFB3A1;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s;
}
.cl-btn:hover { background: rgba(255,107,74,0.16); border-color: #FF6B4A; }
.cl-btn.is-denied { animation: ab-shake 0.45s; }
@keyframes ab-shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.cl-toast { min-height: 1.2em; font-family: var(--mono); font-size: 12px; color: #FF9B85; }
.cl-stamp {
  position: absolute; right: 34px; top: 82px; pointer-events: none;
  padding: 8px 14px 8px 18px; border: 3px solid rgba(255,107,74,0.6); border-radius: 6px;
  font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,107,74,0.78); transform: rotate(-9deg); opacity: 0.85;
}
.cl-file.is-armed:not(.is-stamped) .cl-stamp { opacity: 0; }
.cl-file.is-stamped .cl-stamp { animation: ab-stamp 0.5s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes ab-stamp { from { opacity: 0; transform: rotate(-9deg) scale(1.6); } to { opacity: 0.85; transform: rotate(-9deg) scale(1); } }

/* ============ SOFTWARE ============ */
.ab-ars { background: var(--bg2); border-top: 1px solid var(--border); }
.ars-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ars-f {
  min-height: 40px; padding: 0 16px; border-radius: var(--r-pill);
  border: 1px solid var(--border2); background: transparent; color: var(--text2);
  font: 600 12px/1 var(--font-body); letter-spacing: 0.04em;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.ars-f:hover { color: var(--text); border-color: var(--text3); }
.ars-f[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--black-0); }
.ars-count { margin-bottom: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text3); }
.ars-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.ars-item {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 16px 30px 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255,255,255,0.025);
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.ars-item:hover { border-color: var(--gold-border); background: rgba(216,178,70,0.05); transform: translateY(-2px); }
.ars-item[hidden] { display: none; }
.ars-item.is-in { animation: ab-pop 0.35s var(--ease-out) both; }
.ars-item b { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--text); }
.ars-item span { font-size: 11px; letter-spacing: 0.04em; color: var(--text3); }
.ars-item.is-daily::after {
  content: ''; position: absolute; top: 15px; right: 14px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 10px rgba(216,178,70,0.7);
}
.ars-edu { margin-top: 28px; font-size: 14px; color: var(--text2); }
.ars-edu b { margin-right: 10px; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }

/* ============ TEACHING ============ */
.ab-teach { background: var(--bg); }
.teach-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: var(--sp-4); }
.teach-card {
  display: flex; flex-direction: column; gap: 10px; min-height: 220px;
  padding: 26px; border-radius: 20px; border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  transition: border-color 0.3s, transform 0.3s;
}
.teach-card:hover { border-color: var(--gold-border); transform: translateY(-3px); }
.teach-plat { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.teach-stat { font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--text); }
.teach-desc { font-size: 14.5px; line-height: 1.65; color: var(--text2); }
.teach-go { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--gold); }
.teach-note { margin-top: 18px; font-size: 13px; color: var(--text3); }

/* ============ CTA ============ */
.ab-cta { text-align: center; background: var(--bg2); border-top: 1px solid var(--border); }
.ab-cta-title { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 5vw, 64px); line-height: 1.08; letter-spacing: 0.02em; color: var(--cream); margin-bottom: 16px; }
.ab-cta-sub { max-width: 560px; margin: 0 auto 30px; font-size: 16px; color: var(--text2); }
.ab-cta-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ============ Responsive ============ */
@media (max-width: 1200px) {
  .lab-rules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .ab-hero { padding: 112px 32px 72px; }
  .ab-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .vf { max-width: 440px; }
  .ab-stats { padding: 0 32px; }
  .ab-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ab-stat:nth-child(4) { border-left: 0; }
  .ab-stat:nth-child(n+4) { border-top: 1px solid var(--border); }
  .ab-tl-head { padding: 0 32px 30px; }
  .tl-list { padding: 8px 32px var(--sp-7); }
  .tl-list::before { left: 50px; }
  .lab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-card { grid-column: span 1; }
  .lab-card--wide, .lab-card--full { grid-column: 1 / -1; }
  .lab-stack { grid-template-columns: minmax(0, 1fr); }
  .teach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .ab-hero { padding: 100px 20px 56px; }
  .ab-hero-mark { width: 120vw; left: -30%; top: 22%; }
  .vf { max-width: 100%; aspect-ratio: 4 / 5; }
  .ab-bio p { font-size: 16px; }
  .ab-stats { padding: 0 20px; }
  .ab-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-stat { padding: 26px 8px; border-left: 1px solid var(--border); border-top: 0; }
  .ab-stat:nth-child(odd) { border-left: 0; }
  .ab-stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .ab-tl { padding-top: var(--sp-6); }
  .ab-tl-head { padding: 0 20px 26px; }
  .tl-list { padding: 4px 20px var(--sp-6); }
  .tl-list::before { left: 30px; bottom: var(--sp-6); }
  .tl-ch { padding-left: 36px; }
  .tl-ch::before { left: 5px; }
  .tl-ch .tl-card { padding: 20px 18px; }
  .lab-grid { grid-template-columns: minmax(0, 1fr); }
  .lab-card, .lab-card--wide, .lab-card--full { grid-column: auto; }
  .lab-agents { flex-wrap: wrap; justify-content: flex-start; }
  .lab-agents::before, .lab-agents::after { display: none; }
  .lab-rules-grid, .lab-tools-grid { grid-template-columns: minmax(0, 1fr); }
  .cl-body { padding: 26px 20px 24px; }
  .cl-stamp { top: auto; bottom: 18px; right: 14px; font-size: 15px; letter-spacing: 0.24em; }
  .ars-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teach-grid { grid-template-columns: minmax(0, 1fr); }
  .teach-card { min-height: 0; }
}
@media (max-width: 400px) {
  .ab-name { font-size: 48px; }
  .ars-grid { grid-template-columns: minmax(0, 1fr); }
  .vf-rec, .vf-tc { left: 44px; }
  .vf-fmt { right: 44px; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  .ab-hero-mark path { stroke-dashoffset: 0; animation: none; }
  .ab-hero-mark polygon { opacity: 1; animation: none; }
  .vf-rec i, .mon-rec, .lab-wave i, .lab-status.is-live::before, .lab-agents::after, .cl-redact i::after { animation: none; }
  .mon-ico .d { stroke-dashoffset: 0; animation: none; }
  .mon-ico .f { opacity: 1; animation: none; }
  .tl-insp-card.is-in, .tl-insp-card .chip, .ars-item.is-in, .tl-stage.is-live .tl-clip { animation: none; }
  .tl-stage.is-armed:not(.is-live) .tl-clip { clip-path: none; }
  .tl-stage.is-armed .tl-playhead { opacity: 1; }
  .cl-file.is-armed:not(.is-stamped) .cl-stamp { opacity: 0.85; }
  .cl-file.is-stamped .cl-stamp { animation: none; }
}
