/* ============================================================
   PERSONA X — CLARITY / FINAL
   "Read before you decide." An instrument that reads you as you read it.
   Award-grade: refined type rhythm, musical motion, magnetic detail.
============================================================ */

:root{
  --paper:#F6F7F8;
  --paper2:#EDF0F2;
  --paper3:#E3E8EB;
  --ink:#0A0C0F;
  --ink2:#191D22;
  --dim:#4A5058;        /* stronger body contrast on light pages */
  --faint:#6E757E;
  --hair:rgba(10,12,15,0.09);
  --hair2:rgba(10,12,15,0.16);
  --signal:#FF5A1F;
  --signal2:#FF7A45;
  --signaldim:rgba(255,90,31,0.5);
  --signalfaint:rgba(255,90,31,0.08);

  --mono:'Geist Mono',ui-monospace,'SF Mono',Menlo,monospace;
  --sans:'Geist',system-ui,-apple-system,sans-serif;
  --serif:'Fraunces',Georgia,serif;

  --pad:clamp(24px,7vw,128px);
  --ease:cubic-bezier(.16,1,.3,1);
  --ease-io:cubic-bezier(.65,0,.35,1);
  --maxw:1400px;
  --rhythm:clamp(110px,17vh,230px);

  /* Experience tokens (Refined, smaller scale) */
  --type-display:clamp(2.5rem,7vw,6.5rem);
  --type-xl:clamp(2.15rem,5vw,4.2rem);
  --type-lg:clamp(1.75rem,3.5vw,2.8rem);
  --type-md:clamp(1.25rem,2vw,1.8rem);
  --type-lede:clamp(1.05rem,1.2vw,1.15rem);
  --type-body:clamp(0.95rem,1vw,1.05rem);
}

/* Reduced scale (~25% down) for elegant typography on standard/light content pages */
:root:not(.dark-page) {
  --type-display: clamp(2.0rem, 5.2vw, 4.8rem);
  --type-xl: clamp(1.6rem, 3.8vw, 3.15rem);
  --type-lg: clamp(1.3rem, 2.6vw, 2.1rem);
  --type-md: clamp(1.0rem, 1.6vw, 1.45rem);
}

/*
  ARCHITECTURE (2026-07 elevation)
  ─────────────────────────────────
  DARK (black instrument):  symphony.html · scope-engine.html (Pulse) · engines.html
  LIGHT (homepage paper):   index · method · signal-room · about · request · subjects · rest
*/

.dark-page {
  --paper:#0A0A0B;
  --paper2:#141416;
  --paper3:#1E1E22;
  --ink:#F6F4EE;
  --ink2:#E0DDD6;
  --dim:#B4B7BC;        /* was #8A8D93 — higher body contrast */
  --faint:#8A8D93;      /* was #565C64 — readable secondary */
  --hair:rgba(255, 255, 255, 0.10);
  --hair2:rgba(255, 255, 255, 0.18);
}

*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;scroll-behavior:smooth;overflow-x:hidden;width:100%;position:relative;}
body{background:var(--paper);color:var(--ink);font-family:var(--sans);line-height:1.5;overflow-x:hidden;width:100%;position:relative;font-feature-settings:"ss01","cv01";letter-spacing:-0.003em;}
::selection{background:var(--ink);color:var(--paper)}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button{font-family:inherit;border:none;background:none}

/* ─────────────────────────────────────────────────────────────
   BOLD KEYWORD HOVER — orange underline on strong / .kw
   Usage: wrap any important phrase in <strong> or class="kw"
───────────────────────────────────────────────────────────── */
strong, b, .kw {
  font-weight: 600;
  position: relative;
  display: inline;
  text-decoration: none;
  cursor: default;
  /* underline base */
  background-image: linear-gradient(var(--signal), var(--signal));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1.5px;
  transition: background-size 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.28s ease;
  padding-bottom: 1px;
}
strong:hover, b:hover, .kw:hover {
  background-size: 100% 1.5px;
  color: var(--signal);
}
/* Dark page — white underline then orange */
.dark-page strong, .dark-page b, .dark-page .kw {
  background-image: linear-gradient(var(--signal2), var(--signal2));
}
.dark-page strong:hover, .dark-page b:hover, .dark-page .kw:hover {
  color: var(--signal2);
}
/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  strong, b, .kw { transition: none; }
}

/* ─────────────────────────────────────────────────────────────
   PAGE VIEW TRANSITIONS — smooth cross-page fade+lift
   (Modern browsers supporting View Transitions API)
───────────────────────────────────────────────────────────── */
@keyframes px-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes px-fade-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}
@supports (view-transition-name: root) {
  ::view-transition-old(root) {
    animation: px-fade-out 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  ::view-transition-new(root) {
    animation: px-fade-in 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

/* ─────────────────────────────────────────────────────────────
   SCROLL REVEAL — sections + cards gracefully enter view
───────────────────────────────────────────────────────────── */
@keyframes px-reveal {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  animation: px-reveal 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-play-state: paused;
}
.reveal.is-visible {
  animation-play-state: running;
}

/* subtle film grain */
body::after{content:"";position:fixed;inset:0;pointer-events:none;z-index:5;opacity:.018;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");mix-blend-mode:multiply}

/* 10/10 GLOBAL METRICS */
:root {
  --pad-section: clamp(80px, 15vh, 180px);
}
.m-arch-grid {
  position: relative;
}
.m-arch-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: repeating-linear-gradient(to right, var(--hair) 0, var(--hair) 1px, transparent 1px, transparent calc(100vw / 12));
  opacity: 0.5;
}

/* ---------------- NAV ---------------- */
@keyframes shrinkNav {
  from { padding: 24px var(--pad); background: transparent; border-color: transparent; backdrop-filter: blur(0px); }
  to { padding: 15px var(--pad); background: rgba(246, 247, 248, 0.7); backdrop-filter: blur(20px) saturate(1.5); border-color: var(--hair); }
}
@keyframes shrinkNavDark {
  from { padding: 24px var(--pad); background: transparent; border-color: transparent; backdrop-filter: blur(0px); }
  to { padding: 15px var(--pad); background: rgba(10, 10, 11, 0.7); backdrop-filter: blur(20px) saturate(1.5); border-color: var(--hair); }
}
.nav{position:fixed;top:0;left:0;right:0;z-index:80;display:flex;align-items:center;justify-content:space-between;
  border-bottom:1px solid transparent;
  animation: shrinkNav linear both;
  animation-timeline: scroll(root);
  animation-range: 0px 40px;}
.dark-page .nav{animation-name: shrinkNavDark;}
.brand{display:flex;align-items:center;gap:14px;font-family:var(--mono);font-size:13px;letter-spacing:.22em;text-transform:uppercase;font-weight:500}
.brand .mk{width:11px;height:11px;border-radius:50%;background:var(--signal);position:relative;flex-shrink:0}
.brand .mk::after{content:"";position:absolute;inset:0;border-radius:50%;background:var(--signal);animation:halo 3s var(--ease) infinite}
@keyframes halo{0%{box-shadow:0 0 0 0 var(--signaldim)}70%{box-shadow:0 0 0 8px transparent}100%{box-shadow:0 0 0 0 transparent}}
.logo-mark{width:60px;height:60px;flex-shrink:0;overflow:visible;transition:width .4s var(--ease),height .4s var(--ease)}
.nav.shrink .logo-mark{width:44px;height:44px}
.links{display:flex;align-items:center;gap:36px}
.links a{font-family:var(--mono);font-size:15px;letter-spacing:.12em;text-transform:uppercase;color:var(--dim);transition:color .35s var(--ease);position:relative;padding:8px 0}
.links a::after{content:"";position:absolute;left:0;bottom:0;width:100%;height:1px;background:var(--signal);transform:scaleX(0);transform-origin:right;transition:transform .45s var(--ease)}
.links a:hover{color:var(--ink)}
.links a:hover::after{transform:scaleX(1);transform-origin:left}
.links a[aria-current]{color:var(--ink)}
.links a[aria-current]::after{transform:scaleX(1)}

/* Dropdown Navigation */
.dropdown { position: relative; display: inline-block; }
.dropdown-trigger { display: flex; align-items: center; gap: 4px; }
.dropdown-trigger .arrow { font-size: 8px; transition: transform 0.4s var(--ease); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.97);
  min-width: 180px;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  z-index: 200;
}
body:not(.dark-page) .dropdown-menu {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--hair2);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}
.dropdown-menu a {
  padding: 11px 22px;
  margin: 0;
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--mono);
  color: var(--dim);
  transition: background 0.25s, color 0.25s;
}
.dropdown-menu a::after { display: none; }
.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--signal) !important;
}
body:not(.dark-page) .dropdown-menu a:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--signal) !important;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}
.dropdown:hover .dropdown-trigger .arrow {
  transform: rotate(180deg);
}
.req{color:var(--ink);transition:all .4s var(--ease);display:inline-flex;align-items:center;gap:8px;font-weight:500;text-transform:uppercase;font-size:11px;letter-spacing:.08em;line-height:1}

.req:hover{color:var(--signal);}

.req::after{display:none}
.req-dot{width:6px;height:6px;background-color:var(--signal);border-radius:50%;display:inline-block;transition:background-color .3s;animation:reqPulse 1.8s infinite ease-in-out}
@keyframes reqPulse{0%{transform:scale(0.85);opacity:0.6;box-shadow:0 0 0 0 rgba(255,90,31,0.7)}70%{transform:scale(1.2);opacity:1;box-shadow:0 0 0 6px rgba(255,90,31,0)}100%{transform:scale(0.85);opacity:0.6;box-shadow:0 0 0 0 rgba(255,90,31,0)}}
.nav-toggle{display:none}

/* ---------------- LAYOUT ---------------- */
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 var(--pad)}
.sec{position:relative;padding:var(--rhythm) 0}
.sec-line{border-top:1px solid var(--hair)}
.grid12{display:grid;grid-template-columns:repeat(12,1fr);gap:clamp(16px,2.2vw,36px)}
.col-7{grid-column:1/8}.col-6{grid-column:1/7}.col-5{grid-column:8/13}.col-8{grid-column:1/9}.col-4{grid-column:9/13}.col-12{grid-column:1/13}
@media(max-width:920px){.col-7,.col-6,.col-5,.col-8,.col-4{grid-column:1/13}}

/* ---------------- TYPE (world-class readable scale) ---------------- */
.kicker{font-family:var(--mono);font-size:13px;letter-spacing:.24em;text-transform:uppercase;color:var(--signal);display:inline-flex;align-items:center;gap:14px}
.kicker::before{content:"";width:32px;height:1px;background:var(--signal);transform-origin:left;animation:drawLine 1.2s var(--ease) both}
@keyframes drawLine{from{transform:scaleX(0)}to{transform:scaleX(1)}}
/* GLOBAL HEADING HIERARCHY & TOKEN MAPPINGS */
h1, .display, .seo-heading {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
  font-size: var(--type-display);
  color: var(--ink);
}
h2, .h-xl, .type-xl {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-size: var(--type-xl);
  color: var(--ink);
}
h3, .h-lg, .type-lg {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-size: var(--type-lg);
  color: var(--ink);
}
h4, .type-md {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  font-size: var(--type-md);
  color: var(--ink);
}
.cut{font-family:var(--serif);font-style:italic;font-weight:400;letter-spacing:-.01em;display:inline-block;transition:transform 0.25s ease;}
.cut:hover{animation:pxGlitch 0.35s cubic-bezier(.25,.46,.45,.94) both;color:var(--signal,#FF5A1F);}
@keyframes pxGlitch{
  0%{text-shadow:0.5px 0 0 rgba(255,90,31,0.5), -0.5px 0 0 rgba(0,176,255,0.5);transform:translate(0);}
  20%{text-shadow:-1px 0 0 rgba(255,90,31,0.6), 1px 0 0 rgba(0,176,255,0.6);transform:translate(-0.5px,0.5px);}
  40%{text-shadow:1px -0.5px 0 rgba(255,90,31,0.6), -1px 0.5px 0 rgba(0,176,255,0.6);transform:translate(0.5px,-0.5px);}
  60%{text-shadow:-0.5px 0.5px 0 rgba(255,90,31,0.5), 0.5px -0.5px 0 rgba(0,176,255,0.5);transform:translate(-0.5px,-0.5px);}
  80%{text-shadow:0.5px 0 0 rgba(255,90,31,0.4), -0.5px 0 0 rgba(0,176,255,0.4);transform:translate(0.5px,0.5px);}
  100%{text-shadow:none;transform:translate(0);}
}
.lede{font-size:var(--type-lede);line-height:1.68;color:var(--dim);font-weight:400;max-width:50ch;letter-spacing:-.005em}
.body{font-size:var(--type-body);line-height:1.82;color:var(--dim);font-weight:400;max-width:65ch;letter-spacing:-.003em}
.mono{font-family:var(--mono);font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:var(--faint)}

/* Key facts inside paragraphs — stand out without shouting */
.key,
.body strong,
.body b,
.lede strong,
.lede b,
p strong,
p b{
  color:var(--ink);
  font-weight:560;
  letter-spacing:-0.01em;
}
.dark-page .key,
.dark-page .body strong,
.dark-page .body b,
.dark-page .lede strong,
.dark-page .lede b,
.dark-page p strong,
.dark-page p b{
  color:#FFF8F0;
  font-weight:560;
}
.key-signal{
  color:var(--signal) !important;
  font-weight:560;
}

/* ---------------- BUTTONS (magnetic) ---------------- */
.btn{display:inline-flex;align-items:center;gap:13px;font-family:var(--mono);font-size:12px;letter-spacing:.16em;text-transform:uppercase;padding:18px 32px;transition:transform .5s var(--ease),background .45s var(--ease),color .45s var(--ease),box-shadow .5s var(--ease);position:relative;will-change:transform}
.btn .arw{transition:transform .45s var(--ease)}
.btn:hover .arw{transform:translateX(7px)}
.btn-fill{background:var(--ink);color:var(--paper)}
.btn-fill:hover{background:var(--signal);box-shadow:0 18px 50px -16px var(--signaldim)}
.btn-line{border:1px solid var(--hair2);color:var(--ink)}
.btn-line:hover{border-color:var(--ink)}

/* ---------------- CARDS ---------------- */
.panel{background:var(--paper);border:1px solid var(--hair);padding:clamp(26px,3vw,42px);transition:transform .55s var(--ease),box-shadow .55s var(--ease),border-color .45s}
.panel:hover{transform:translateY(-8px) perspective(1000px) rotateX(2deg) rotateY(1deg);box-shadow:0 20px 40px rgba(0,0,0,0.05);border-color:var(--hair2)}
.panel .pn{font-family:var(--mono);font-size:11px;letter-spacing:.2em;color:var(--signal)}
.panel .pt{margin-top:18px;font-weight:700;font-size:1.28rem;letter-spacing:-.018em}
.panel .pd{margin-top:13px;color:var(--dim);font-size:.97rem;line-height:1.64}

/* specs */
.specs{display:flex;flex-wrap:wrap;gap:clamp(40px,5vw,84px)}
.specs .n{font-weight:560;font-size:clamp(3.2rem,7vw,5.6rem);letter-spacing:-.05em;line-height:.86;font-variant-numeric:tabular-nums}
.specs .l{margin-top:16px;font-family:var(--mono);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--faint);max-width:22ch}

/* withheld BVI */
.bvi{display:flex;align-items:baseline;gap:clamp(16px,2vw,30px);flex-wrap:wrap}
.bvi .dash{font-weight:560;font-size:clamp(5.5rem,16vw,13rem);line-height:.78;color:var(--paper3);letter-spacing:-.05em;transition:transform .4s var(--ease),color .4s}
.bvi .wh{font-family:var(--mono);font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--signal)}

/* ---------------- TELEMETRY ---------------- */
.telemetry {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999 !important;
  pointer-events: auto !important;
  display: flex;
  flex-direction: column;
  height: 36px;
  background: rgba(246, 247, 248, 0.9);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0 var(--pad);
  transform: translateY(100%);
  transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s var(--ease);
  overflow: hidden;
}
.telemetry.show {
  transform: none;
}
.telemetry.expanded {
  height: 250px;
  padding-top: 12px;
  padding-bottom: 20px;
}
.tel-compact-row {
  display: flex;
  align-items: center;
  height: 36px;
  width: 100%;
  flex-shrink: 0;
}
.telemetry.expanded .tel-compact-row {
  border-bottom: 1px solid var(--hair2);
  margin-bottom: 20px;
}
.telemetry .seg {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 26px;
  margin-right: 26px;
  border-right: 1px solid var(--hair);
}
.telemetry .seg:last-of-type {
  border-right: none;
}
.telemetry b {
  color: var(--ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.telemetry b.live {
  color: var(--signal);
}
.telemetry .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  animation: halo 3s var(--ease) infinite;
}
.telemetry .spacer {
  flex: 1;
}
@media(max-width:720px){
  .telemetry .opt {
    display: none;
  }
}

/* Toggle button styling */
.tel-toggle-btn {
  background: none;
  border: 1px solid var(--hair2);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  padding: 4px 10px;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: all 0.3s;
}
.tel-toggle-btn:hover {
  border-color: var(--signal);
  color: var(--signal);
}

/* Expanded contents */
.tel-expanded-content {
  display: flex;
  gap: 40px;
  width: 100%;
  flex: 1;
}
.tel-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.tel-terminal-col {
  flex: 1.8;
}
.tel-title {
  font-size: 9px;
  color: var(--signal);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  font-weight: 700;
  border-left: 2px solid var(--signal);
  padding-left: 6px;
}
.tel-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--hair);
  font-size: 9px;
}
.tel-row span {
  color: var(--dim);
}
.tel-row b {
  color: var(--ink);
}
.tel-terminal {
  background: var(--paper3);
  border: 1px solid var(--hair2);
  padding: 12px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--dim);
  height: 120px;
  overflow-y: hidden;
  line-height: 1.5;
}
.tel-terminal div {
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tel-terminal div.alert {
  color: var(--signal);
}

/* ---------------- FIGURES ---------------- */
.figure{position:relative;width:100%;aspect-ratio:1/1;max-width:560px}
.figure canvas{width:100%;height:100%;display:block}
.figure.wide{aspect-ratio:16/7;max-width:none}

/* ambient */
#ambient{position:fixed;inset:0;z-index:0;pointer-events:none;transition:opacity 0.8s var(--ease)}
#ambient canvas{width:100%;height:100%;display:block}
.hide-ambient #ambient{opacity:0!important}
main,.footer{position:relative;z-index:1}

/* ---------------- REVEAL ---------------- */
@keyframes revealFade {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@supports (animation-timeline: view()) {
  .r {
    animation: revealFade linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 25%;
  }
}

@keyframes maskReveal {
  from { transform: translateY(36px); opacity: 0; clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
  to { transform: none; opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}
.mask { overflow: hidden; padding-bottom: .08em; }
@supports (animation-timeline: view()) {
  .mask > span {
    display: block;
    animation: maskReveal linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 25%;
  }
}

/* section index */
.index{position:fixed;left:var(--pad);top:50%;transform:translateY(-50%);z-index:60;display:flex;flex-direction:column;gap:17px}
.index a{font-family:var(--mono);font-size:10px;letter-spacing:.1em;color:var(--faint);display:flex;align-items:center;gap:11px;transition:color .35s var(--ease)}
.index a .ln{width:14px;height:1px;background:var(--hair2);transition:all .45s var(--ease)}
.index a:hover,.index a.on{color:var(--ink)}
.index a.on .ln{width:32px;background:var(--signal)}
@media(max-width:1560px){.index{display:none}}

/* footer */
.footer{border-top:1px solid var(--hair);padding:var(--rhythm) 0 240px;position:relative;overflow:hidden}
.footer .big{font-weight:560;letter-spacing:-.05em;line-height:.9;font-size:clamp(2.6rem,8vw,7rem)}
.footer .row{display:flex;justify-content:space-between;flex-wrap:wrap;gap:24px;margin-top:64px;font-family:var(--mono);font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--faint)}
.footer .row a{transition:color .3s}
.footer .row a:hover{color:var(--signal)}

/* ---------------- BOOT (instrument power-on) ---------------- */
#boot{position:fixed;inset:0;z-index:200;background:var(--paper);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:26px;transition:opacity 0.4s var(--ease)}
#boot.done{opacity:0;pointer-events:none}
#boot .bmark{width:11px;height:11px;border-radius:50%;background:var(--signal);box-shadow:0 0 20px var(--signal)}
#boot .bk{font-family:var(--mono);font-size:11px;letter-spacing:.34em;text-transform:uppercase;color:var(--faint);height:14px}
#boot .bl{width:220px;height:1px;background:var(--hair);position:relative;overflow:hidden}
#boot .bl i{position:absolute;left:0;top:0;height:100%;width:0;background:var(--signal);transition:width .5s var(--ease)}

/* cursor */
@media(hover:hover) and (pointer:fine){
  .custom-cursor-enabled body,
  .custom-cursor-enabled a,
  .custom-cursor-enabled button,
  .custom-cursor-enabled input,
  .custom-cursor-enabled .q-opt,
  .custom-cursor-enabled .bvi .dash,
  .custom-cursor-enabled .nav-toggle {
    cursor: none !important;
  }
  #cursor{position:fixed;top:0;left:0;z-index:9000;pointer-events:none;mix-blend-mode:difference;will-change:transform}
  #cursor .ring{position:absolute;width:28px;height:28px;border:1px solid #fff;border-radius:50%;transform:translate(-50%,-50%);transition:width .3s var(--ease),height .3s var(--ease),opacity .3s}
  #cursor .dot{position:absolute;width:3px;height:3px;background:#fff;border-radius:50%;transform:translate(-50%,-50%)}
  #cursor.hot .ring{width:52px;height:52px}
  #cursor.hot .dot{opacity:0}
}

/* page transition wipe */
#wipe{position:fixed;inset:0;z-index:8000;background:var(--signal);transform:scaleY(0);transform-origin:bottom;pointer-events:none}
#wipe.in{animation:wipeIn .55s var(--ease) forwards}
#wipe.out{transform:scaleY(1);transform-origin:top;animation:wipeOut .7s var(--ease) forwards}
@keyframes wipeIn{from{transform:scaleY(0);transform-origin:bottom}to{transform:scaleY(1);transform-origin:bottom}}
@keyframes wipeOut{from{transform:scaleY(1);transform-origin:top}to{transform:scaleY(0);transform-origin:top}}

/* scan divider */
.scan{position:relative;height:1px;background:var(--hair);overflow:visible}
.scan::after{content:"";position:absolute;top:-1px;left:0;height:3px;width:100px;background:linear-gradient(90deg,transparent,var(--signal),transparent);opacity:0}
.scan.run::after{animation:sweep 2.8s var(--ease) forwards}
@keyframes sweep{0%{opacity:0;left:0}12%{opacity:1}88%{opacity:1}100%{opacity:0;left:calc(100% - 100px)}}

:focus-visible{outline:2px solid var(--signal);outline-offset:4px;border-radius:2px}
:focus:not(:focus-visible){outline:none}
.btn:focus-visible,.req:focus-visible,.mode-tab:focus-visible,.doc-head:focus-visible,.read-row:focus-visible,.tier-row:focus-visible{
  outline:2px solid var(--signal);outline-offset:3px
}
a:focus-visible{outline:2px solid var(--signal);outline-offset:3px}

/* mobile */
@media(max-width:920px){
  .links{display:none}
  .links.open{display:flex;position:fixed;inset:0;background:var(--paper);flex-direction:column;align-items:center;justify-content:center;gap:34px;z-index:90}
  .links.open a{font-size:1.4rem}
  .links.open a::after{display:none}
  .nav-toggle{display:flex;flex-direction:column;gap:5px;cursor:pointer;z-index:95;width:44px;height:44px;justify-content:center;align-items:center;padding:10px;margin-right:-10px}
  .nav-toggle span{width:26px;height:1.5px;background:var(--ink);transition:.35s var(--ease);transform-origin:center;flex-shrink:0}
  .nav-toggle.x span:nth-child(1){transform:translateY(6.5px) rotate(45deg)}
  .nav-toggle.x span:nth-child(2){opacity:0}
  .nav-toggle.x span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}
}
@media(prefers-reduced-motion:reduce){.r,.mask>span{opacity:1;transform:none;transition:none}*{scroll-behavior:auto}}

/* no-JS fallback */
.no-js .r{opacity:1;transform:none}
.no-js .mask>span{transform:none}
.no-js #boot{display:none}
.no-js .telemetry{display:none}

/* BVI withheld jitter */
@keyframes resist{0%,100%{transform:translateX(0)}25%{transform:translateX(-3px)}50%{transform:translateX(3px)}75%{transform:translateX(-2px)}}

/* cursor amber state (engine page) */
@media(hover:hover) and (pointer:fine){
  #cursor.amber .ring{border-color:#FF5A1F;mix-blend-mode:normal}
  #cursor.amber .dot{background:#FF5A1F}
}

/* print */
@media print{
  .telemetry,.nav,#ambient,#boot,#cursor,#wipe,.scan,.scrollcue,.index,.figure,.nav-toggle{display:none!important}
  .r{opacity:1!important;transform:none!important}
  .mask>span{transform:none!important}
  body{background:#fff;color:#000;font-size:11pt}
  .footer{page-break-before:always}
  a[href]::after{content:" (" attr(href) ")";font-size:0.8em;color:#666}
  .btn{border:1px solid #000;padding:8px 16px}
  .btn::after{display:none}
}


/* Autogenerated Utility Classes */
.u-style-1 { align-items:center;width:100% }
.mt-30 { margin-top:30px }
.u-style-2 { grid-column:9/13 }
.mt-36-mw-420 { margin-top:36px;max-width:420px }
.u-style-3 { border:none }
.mt-48 { margin-top:48px }
.mt-42 { margin-top:42px }
.u-style-4 { font-family:var(--serif);font-style:italic;font-size:clamp(1rem,1.6vw,1.25rem);color:var(--dim);margin-top:24px }
.mb-38 { margin-bottom:38px }
.mt-40 { margin-top:40px }
.u-style-5 { display:flex;justify-content:center }
.mt-32 { margin-top:32px }
.u-style-6 { grid-column:8/13;margin-top:44px }
.mt-22 { margin-top:22px }
.mt-38 { margin-top:38px }
.mt-32-ai-center { margin-top:32px;align-items:center }
.mt-36 { margin-top:36px }
.u-style-7 { grid-column:8/13;display:flex;justify-content:center }
.mw-440 { max-width:440px }
.mt-96 { margin-top:96px }
.ai-center { align-items:center }
.u-style-8 { grid-column:8/13 }
.mt-28-mw-20ch-ml-auto-mr-auto { margin-top:28px;max-width:20ch;margin-left:auto;margin-right:auto }
.mt-44 { margin-top:44px }
.jc-center { justify-content:center }
.mt-30-ml-auto-mr-auto-ta-center { margin-top:30px;margin-left:auto;margin-right:auto;text-align:center }
.mt-26 { margin-top:26px }
.mt-28 { margin-top:28px }
.u-style-9 { position:fixed;inset:0;z-index:200;background:#0A0A0B;display:flex;align-items:center;justify-content:center;padding:48px }
.u-style-10 { font-family:monospace;font-size:12px;letter-spacing:.14em;color:rgba(242,240,234,.5);text-transform:uppercase;text-align:center;max-width:40ch }
.mt-34 { margin-top:34px }
.mt-36-c-dim { margin-top:36px;color:var(--dim) }
.mt-24-mw-20ch { margin-top:24px;max-width:20ch }
.mt-22-c-dim { margin-top:22px;color:var(--dim) }
.mw-760 { max-width:760px }
.mt-24-mw-22ch { margin-top:24px;max-width:22ch }
.u-style-11 { grid-template-columns:repeat(auto-fit,minmax(210px,1fr)) }
.mt-64 { margin-top:64px }
.mt-12-c-dim-mw-50ch { margin-top:12px;color:var(--dim);max-width:50ch }
.mt-46 { margin-top:46px }
.mt-34-c-dim { margin-top:34px;color:var(--dim) }
.u-style-12 { margin-top:42px;max-width:680px;aspect-ratio:16/4 }

.block { display: block; }
.seo-heading { margin: 0; padding: 0; font-weight: normal; font-size: inherit; }

/* Standard spacing helper classes */
.mb-8 { margin-bottom: 8px !important; }
.mb-12 { margin-bottom: 12px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mb-36 { margin-bottom: 36px !important; }
.mb-40 { margin-bottom: 40px !important; }
.mb-48 { margin-bottom: 48px !important; }
.mb-64 { margin-bottom: 64px !important; }
.mt-8 { margin-top: 8px !important; }
.mt-12 { margin-top: 12px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-24 { margin-top: 24px !important; }
.mt-28 { margin-top: 28px !important; }
.mt-32 { margin-top: 32px !important; }
.mt-36 { margin-top: 36px !important; }
.mt-40 { margin-top: 40px !important; }
.mt-48 { margin-top: 48px !important; }
.mt-64 { margin-top: 64px !important; }



/* Sig notice overlay */
.sig-notice {
  position: fixed;
  top: 24px;
  right: 24px;
  background: rgba(246, 247, 248, 0.95);
  border: 1px solid var(--signal);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  padding: 16px 24px;
  z-index: 9999;
  letter-spacing: 0.12em;
  box-shadow: 0 8px 32px rgba(10, 12, 15, 0.08);
  animation: sigSlideIn 0.5s var(--ease) forwards;
}
@keyframes sigSlideIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: none; opacity: 1; }
}


/* ============================================================
   BRAND LOGO INTEGRATION & VISIBILITY ELEVATION
   ============================================================ */

/* 1. Navbar logo — larger presence (mark + wordmark) */
.brand-logo-svg {
  width: 64px;
  height: 64px;
  fill: none;
  flex-shrink: 0;
  transition: width 0.4s var(--ease), height 0.4s var(--ease), stroke 0.4s var(--ease), transform 0.6s var(--ease);
  overflow: visible;
  transform-origin: 56px 56px;
  view-transition-name: px-brand-logo;
}

/* Shrink state on scroll to keep layout elegant */
.nav.shrink .brand-logo-svg {
  width: 46px;
  height: 46px;
}

/* Smooth expansion of center node and soft glow on hover */
.brand-logo-svg circle {
  transition: r 0.4s var(--ease), filter 0.4s var(--ease);
}

.brand:hover .brand-logo-svg circle {
  r: 7.5;
  filter: drop-shadow(0 0 5px var(--signal));
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-p {
  font-family: var(--sans);
  font-size: 26px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 580;
  color: var(--ink);
  transition: font-size 0.4s var(--ease), letter-spacing 0.4s var(--ease);
}

.brand:hover .brand-p {
  letter-spacing: 0.24em;
}

.nav.shrink .brand-p {
  font-size: 18px;
}

.brand-x {
  font-family: var(--sans);
  font-size: 56px;
  font-weight: 700;
  color: var(--signal);
  line-height: 0.82;
  transition: font-size 0.4s var(--ease), transform 0.4s var(--ease);
}

.brand:hover .brand-x {
  transform: scale(1.04);
}

.nav.shrink .brand-x {
  font-size: 36px;
}

.brand-sub {
  font-family: var(--mono);
  font-size: 11px;
  margin-left: 12px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
  transition: font-size 0.4s var(--ease);
}

.nav.shrink .brand-sub {
  font-size: 10px;
}

@media (max-width: 720px) {
  .brand-p { font-size: 18px; letter-spacing: 0.12em; }
  .brand-x { font-size: 40px; }
  .brand-sub { display: none; }
  .logo-mark, .brand-logo-svg { width: 44px; height: 44px; }
}

/* 2. Boot Loader Logo - 96px pulsing and glowing */
.boot-logo-svg {
  width: 96px;
  height: 96px;
  fill: none;
  overflow: visible;
  margin-bottom: 8px;
  animation: bootLogoPulse 2.5s var(--ease) infinite alternate;
}

@keyframes bootLogoPulse {
  0% {
    transform: scale(0.96);
    filter: drop-shadow(0 0 8px rgba(255, 90, 31, 0.15));
  }
  100% {
    transform: scale(1.04);
    filter: drop-shadow(0 0 28px rgba(255, 90, 31, 0.5));
  }
}

/* 3. Footer brand container and inline 32px logo */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-svg {
  width: 32px;
  height: 32px;
  fill: none;
  transition: stroke 0.4s var(--ease);
  overflow: visible;
}

/* 4. Logo X-extension interactions */
.brand-logo-svg .logo-spoke {
  transition: transform 0.6s var(--ease);
  transform-origin: 56px 56px;
}

.brand-logo-svg .logo-x {
  transition: transform 0.6s var(--ease);
  transform-origin: 56px 56px;
}

.brand:hover .brand-logo-svg .logo-spoke {
  transform: scale(1.25); /* Thin spokes extend 25% further outwards */
}

.brand:hover .brand-logo-svg .logo-x {
  transform: scale(1.15); /* Thick X diagonal lines extend 15% further */
}

/* ============================================================
   5. INTERACTIVE SYSTEMIC TRAPS
   ============================================================ */
.traps-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 3.5vw, 48px);
  margin-top: 54px;
}
.traps-col-tabs {
  grid-column: 1/6;
}
.traps-col-detail {
  grid-column: 6/13;
}
.traps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.trap-tab {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 18px 14px;
  border: 1px solid var(--hair2);
  background: transparent;
  cursor: pointer;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
  width: 100%;
}
.trap-tab:hover {
  border-color: var(--ink);
  background: rgba(10, 12, 15, 0.02);
}
.traps-grid:has(.trap-tab:hover) .trap-tab:not(:hover) {
  opacity: 0.4;
  filter: grayscale(1);
}
.trap-tab.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.trap-tab .num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--signal);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.trap-tab .title-lbl {
  font-size: 11px;
  font-weight: 550;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: inherit;
  line-height: 1.3;
}
.trap-detail {
  background: var(--paper2);
  border: 1px solid var(--hair2);
  padding: clamp(28px, 4vw, 44px);
  min-height: 410px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.trap-detail .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--signal);
  letter-spacing: 0.18em;
}
.trap-detail .title {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 550;
  color: var(--ink);
  margin: 10px 0 6px 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.trap-detail .subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--dim);
  margin-bottom: 20px;
}
.trap-detail .desc {
  font-size: 1.05rem;
  line-height: 1.68;
  color: var(--dim);
  font-weight: 380;
  max-width: 52ch;
  margin-bottom: 24px;
}
.trap-detail .markers-box {
  margin-top: auto;
  border-top: 1px dashed var(--hair2);
  padding-top: 24px;
}
.trap-detail .markers-title {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.trap-detail .marker-pill {
  display: inline-block;
  background: var(--paper);
  border: 1px solid var(--hair2);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  padding: 6px 12px;
  margin-right: 8px;
  margin-bottom: 8px;
  border-radius: 2px;
}
.trap-detail .marker-pill.alert {
  background: rgba(255, 90, 31, 0.05);
  border-color: rgba(255, 90, 31, 0.2);
  color: var(--signal);
}

@media(max-width: 920px) {
  .traps-col-tabs, .traps-col-detail {
    grid-column: 1 / 13;
  }
  .traps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .trap-detail {
    min-height: auto;
  }
}
@media(max-width: 480px) {
  .traps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   MERGED THESIS GRID & METHODOLOGY ACCORDION STYLES
   ============================================================ */

.thesis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  width: 100%;
}
.thesis-col {
  display: flex;
  flex-direction: column;
}
.thesis-sep {
  border: 0;
  border-top: 1px dashed var(--hair2);
  margin: 40px 0;
  width: 100%;
}
.thesis-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Accordion level structures */
.phase-acc {
  border-bottom: 1px solid var(--hair2);
}
.phase-acc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 32px 0;
  user-select: none;
  transition: opacity 0.2s var(--ease);
}
.phase-acc-header:hover {
  opacity: 0.85;
}
.phase-acc-header h3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: normal;
  color: var(--ink);
  margin: 0;
}
.acc-icon {
  font-family: var(--mono);
  color: var(--signal);
  font-size: 1.1rem;
  font-weight: bold;
}

/* Grid transition wrapper */
.phase-acc-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
  overflow: hidden;
}
.phase-acc-content.expanded {
  grid-template-rows: 1fr;
}
.phase-acc-inner {
  min-height: 0;
  padding-bottom: 32px;
}

/* Nested step accordion */
.step-acc {
  margin-top: 16px;
}
.step-acc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 20px 12px;
  background: rgba(246, 247, 248, 0.4);
  border: 1px solid var(--hair2);
  user-select: none;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.step-acc-header:hover {
  background: rgba(246, 247, 248, 0.85);
  border-color: var(--dim);
}
.step-acc-header .step-num {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.step-icon {
  font-family: var(--mono);
  color: var(--dim);
  font-size: 0.95rem;
}

.step-acc-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
  overflow: hidden;
}
.step-acc-content.expanded {
  grid-template-rows: 1fr;
}
.step-acc-inner {
  min-height: 0;
  padding: 24px 16px;
  border: 1px solid var(--hair2);
  border-top: 0;
  background: rgba(255, 255, 255, 0.3);
}

@media(max-width: 920px) {
  .thesis-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .thesis-sep {
    margin: 28px 0;
  }
}

/* ============================================================
   PERSONA X — INTERACTIVE REDESIGN GRID SYSTEM & LAYOUT TOKENS
   ============================================================ */

/* 1. Details Accordion Support */
.phase-disclosure {
  border-bottom: 1px solid var(--hair2);
  width: 100%;
}
.phase-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.phase-summary::-webkit-details-marker {
  display: none;
}
.phase-summary:hover {
  opacity: 0.85;
}
.phase-summary h3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: normal;
  color: var(--ink);
  margin: 0;
}
.acc-icon {
  font-family: var(--mono);
  color: var(--signal);
  font-size: 1.1rem;
  font-weight: bold;
}
.phase-disclosure[open] .acc-icon::after {
  content: "[-]";
}
.phase-disclosure:not([open]) .acc-icon::after {
  content: "[+]";
}
.phase-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
  overflow: hidden;
}
.phase-disclosure[open] .phase-content {
  grid-template-rows: 1fr;
}
.phase-content-inner {
  min-height: 0;
  padding-bottom: 24px;
}

/* Nested step accordion */
.step-disclosure {
  margin-top: 16px;
  width: 100%;
}
.step-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 20px 16px;
  background: rgba(246, 247, 248, 0.4);
  border: 1px solid var(--hair2);
  list-style: none;
  user-select: none;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.step-summary::-webkit-details-marker {
  display: none;
}
.step-summary:hover {
  background: rgba(246, 247, 248, 0.85);
  border-color: var(--dim);
}
.step-summary .step-num {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.step-icon {
  font-family: var(--mono);
  color: var(--dim);
  font-size: 0.95rem;
}
.step-disclosure[open] .step-icon::after {
  content: "[-]";
}
.step-disclosure:not([open]) .step-icon::after {
  content: "[+]";
}
.step-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
  overflow: hidden;
}
.step-disclosure[open] .step-content {
  grid-template-rows: 1fr;
}
.step-content-inner {
  min-height: 0;
  padding: 24px 16px;
  border: 1px solid var(--hair2);
  border-top: 0;
  background: rgba(255, 255, 255, 0.35);
}

/* 2. Sticky Split-Screen Layout (for subjects.html) */
.split-scroll-container {
  display: flex;
  position: relative;
  width: 100%;
}
.split-sticky-col {
  width: 40%;
  position: sticky;
  top: 140px;
  height: calc(100dvh - 200px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-right: 48px;
}
.split-scroll-col {
  width: 60%;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

@media(max-width: 920px) {
  .split-scroll-container {
    flex-direction: column;
  }
  .split-sticky-col {
    width: 100%;
    position: static;
    height: auto;
    padding-right: 0;
    margin-bottom: 48px;
  }
  .split-scroll-col {
    width: 100%;
    gap: 80px;
  }
}

/* 3. Stacked Cards Layout (for signal-room.html) */
.stacked-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
  position: relative;
  width: 100%;
  padding-bottom: 120px;
}
.stacked-slide {
  position: sticky;
  top: 100px;
  background: var(--paper);
  border: 1px solid var(--hair2);
  padding: 48px;
  border-radius: 4px;
  box-shadow: var(--glass-shadow);
  margin-bottom: 40px;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.stacked-slide:hover {
  box-shadow: 0 30px 70px -10px rgba(10, 12, 15, 0.08);
}
.stacked-slide::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--signal);
}

/* 4. 3D Hover & Spatial Proximity Effects (for method.html & grid items) */
.spatial-tilt-card {
  position: relative;
  background: var(--paper2);
  border: 1px solid var(--hair2);
  padding: 36px;
  border-radius: 2px;
  transition: box-shadow 0.4s var(--ease), transform 0.1s linear;
  transform-style: preserve-3d;
  perspective: 1000px;
}
.spatial-tilt-card:hover {
  box-shadow: var(--glass-shadow);
}
.spatial-tilt-card > * {
  transform: translateZ(20px);
}

/* 5. MathJax Layout Shift Prevention wrapper */
.math-wrapper {
  background: rgba(246, 247, 248, 0.5);
  border: 1px dashed var(--hair2);
  padding: 24px;
  margin: 24px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  content-visibility: auto;
  contain-intrinsic-size: 52px;
}

/* 6. Form Transitions (for request.html) */
.conversational-step {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  display: none;
}
.conversational-step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.bvi-slider-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

/* 7. Navigation Dropdown */
.links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #0A0A0B;
  border: 1px solid var(--hair2);
  min-width: 180px;
  z-index: 1000;
  padding: 8px 0;
  border-radius: 2px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #0A0A0B;
  border-left: 1px solid var(--hair2);
  border-top: 1px solid var(--hair2);
}
.dropdown-menu a {
  display: block !important;
  padding: 10px 20px !important;
  font-size: 10px !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  margin: 0 !important;
  border: none !important;
  color: var(--dim) !important;
  transition: color 0.3s, background 0.3s;
  text-align: center;
}
.dropdown-menu a:hover {
  color: var(--signal) !important;
  background: rgba(255,255,255,0.03);
}
.dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-trigger .arrow {
  font-size: 8px;
  vertical-align: middle;
  margin-left: 3px;
  opacity: 0.7;
}



/* ============================================================
   ELEVATION 2026-07 — Accordion, glass, journey board, intel
   ============================================================ */

/* Shared glass panel (dark instruments) */
.px-glass {
  background: rgba(10, 10, 11, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 2px solid var(--signal);
}
@supports (backdrop-filter: blur(1px)) {
  .px-glass {
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
  }
}

/* CSS accordion — grid-template-rows (no max-height hack) */
.px-acc { width: 100%; }
.px-acc-item {
  border-bottom: 1px solid var(--hair2);
  content-visibility: auto;
}
.px-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  padding: 22px 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: color 0.35s var(--ease);
  will-change: transform;
}
.px-acc-trigger:hover { color: var(--signal); }
.px-acc-trigger:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}
.px-acc-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}
.px-acc-mark {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--signal);
  transition: transform 0.35s var(--ease);
}
.px-acc-item.is-open .px-acc-mark { transform: rotate(45deg); }
.px-acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.px-acc-item.is-open .px-acc-body { grid-template-rows: 1fr; }
.px-acc-inner {
  overflow: hidden;
  min-height: 0;
}
.px-acc-inner > * {
  padding-bottom: 22px;
  max-width: 62ch;
  color: var(--dim);
}

/* Floating node labels — projected over Symphony focus bloom */
#nodeLabels {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  overflow: hidden;
}
.node-chip {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, calc(-100% - 14px));
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 90, 31, 0.92);
  border: 1px solid rgba(255, 90, 31, 0.4);
  background: rgba(10, 10, 11, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 11px 6px 10px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, left, top;
  pointer-events: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.node-chip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 1px;
  height: 5px;
  background: rgba(255, 90, 31, 0.45);
  transform: translateX(-50%);
}
.node-chip.on { opacity: 1; }
.node-chip.is-alert {
  color: #FF5A1F;
  border-color: rgba(255, 90, 31, 0.55);
}
.node-chip.is-alert::before { background: rgba(255, 90, 31, 0.5); }
.node-chip.is-related {
  color: rgba(242, 240, 234, 0.55);
  border-color: rgba(242, 240, 234, 0.18);
  background: rgba(10, 10, 11, 0.72);
  font-size: 8px;
  padding: 4px 8px;
  box-shadow: none;
}
.node-chip.is-related::before {
  background: rgba(242, 240, 234, 0.25);
  height: 4px;
  bottom: -4px;
}
.node-chip.is-hub {
  color: #FF5A1F;
  border-color: rgba(255, 90, 31, 0.65);
  font-size: 10px;
  letter-spacing: 0.18em;
  padding: 8px 14px;
  background: rgba(10, 10, 11, 0.92);
  box-shadow: 0 0 0 1px rgba(255, 90, 31, 0.12), 0 12px 40px rgba(0, 0, 0, 0.45);
}
.node-chip .nc-code {
  display: block;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: inherit;
  opacity: 0.7;
  margin-bottom: 2px;
}
.node-chip .nc-name {
  display: block;
  font-family: var(--sans), system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #F2F0EA;
  font-weight: 500;
}
.node-chip.is-related .nc-name {
  font-size: 10px;
  color: rgba(242, 240, 234, 0.65);
}
.node-chip.is-hub .nc-name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FF5A1F;
}

/* Journey board (Method) */
.journey-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 48px;
}
@media (max-width: 800px) {
  .journey-board { grid-template-columns: 1fr; }
}
.jb-card {
  border: 1px solid var(--hair2);
  background: var(--paper2);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.jb-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--signal);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.jb-card.is-open::before { transform: scaleY(1); }
.jb-card.is-open { border-color: rgba(255, 90, 31, 0.35); }
.jb-trigger {
  width: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  padding: 28px 28px 24px;
  color: inherit;
  min-height: 44px;
}
.jb-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--signal);
  margin-bottom: 12px;
}
.jb-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
}
.jb-one {
  font-size: 0.95rem;
  color: var(--dim);
  line-height: 1.55;
  max-width: 40ch;
}
.jb-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.jb-card.is-open .jb-body { grid-template-rows: 1fr; }
.jb-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 28px;
}
.jb-card.is-open .jb-inner { padding-bottom: 28px; }
.jb-inner p {
  color: var(--dim);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
.jb-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 16px 0 8px;
}

/* Intelligence Layer engine cards */
.il-engine {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(10,10,11,0.55);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s var(--ease);
}
.il-engine::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 2px; height: 0%;
  background: var(--signal);
  transition: height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.il-engine:hover::before,
.il-engine.is-open::before { height: 100%; }
.il-engine:hover { border-color: rgba(255,90,31,0.28); }
.il-engine-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 26px 28px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: inherit;
  text-align: left;
  min-height: 44px;
}
.il-mark {
  width: 44px; height: 44px;
  flex-shrink: 0;
}
.il-mark svg { width: 100%; height: 100%; }
.il-name {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--signal);
  margin-bottom: 6px;
}
.il-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: #F2F0EA;
}
.il-one {
  font-size: 0.9rem;
  color: rgba(242,240,234,0.45);
  margin-top: 6px;
  max-width: 48ch;
}
.il-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.il-engine.is-open .il-body { grid-template-rows: 1fr; }
.il-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 28px 0 92px;
}
.il-engine.is-open .il-inner { padding-bottom: 28px; }
.il-inner ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.il-inner li {
  position: relative;
  padding: 8px 0 8px 16px;
  color: rgba(242,240,234,0.55);
  font-size: 0.92rem;
  line-height: 1.55;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.il-inner li::before {
  content: "∎";
  position: absolute;
  left: 0;
  color: var(--signal);
  font-size: 8px;
  top: 12px;
}

/* 35-parameter grid */
.param-grid-35 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 36px;
}
@media (max-width: 900px) {
  .param-grid-35 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .param-grid-35 { grid-template-columns: repeat(2, 1fr); }
}
.param-cell {
  position: relative;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(20,20,22,0.6);
  padding: 14px 12px;
  cursor: default;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  min-height: 72px;
}
.param-cell:hover {
  border-color: rgba(255,90,31,0.45);
  background: rgba(30,24,20,0.75);
  z-index: 2;
}
.param-cell .pc-code {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--signal);
  margin-bottom: 6px;
}
.param-cell .pc-name {
  font-size: 0.78rem;
  color: rgba(242,240,234,0.75);
  line-height: 1.3;
}
.param-cell .pc-tip {
  display: none;
  position: absolute;
  left: 0; right: 0;
  bottom: calc(100% + 8px);
  padding: 12px 14px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(242,240,234,0.8);
  background: rgba(10,10,11,0.92);
  border: 1px solid rgba(255,90,31,0.35);
  border-left: 2px solid var(--signal);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  z-index: 20;
  pointer-events: none;
}
@supports (backdrop-filter: blur(1px)) {
  .param-cell .pc-tip {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
}
.param-cell:hover .pc-tip { display: block; }

@media (prefers-reduced-motion: reduce) {
  .px-acc-body,
  .jb-body,
  .il-body,
  .node-chip,
  .jb-card::before,
  .il-engine::before {
    transition: none !important;
  }
}

/* ============================================================
   EXPERIENCE LAYER — scroll, light-page instruments, polish
   ============================================================ */

/* Scroll progress hairline (light + dark) */
#px-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  z-index: 100;
  background: var(--signal);
  pointer-events: none;
  transform-origin: left;
  will-change: width;
}

/* Section entrance — subtle, not gimmicky */
.r, [data-stagger] > * {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .r, [data-stagger] > * { transition: none !important; }
}

/* Light-page expandable (Method / Intelligence / home) */
.light-expand {
  border-bottom: 1px solid var(--hair2);
}
.light-expand-trigger {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
  min-height: 56px;
}
.light-expand-trigger:hover .light-expand-title { color: var(--signal); }
.light-expand-k {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--signal);
  margin-bottom: 10px;
}
.light-expand-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  color: var(--ink);
  transition: color 0.3s var(--ease);
  line-height: 1.25;
}
.light-expand-one {
  font-size: var(--type-body);
  color: var(--dim);
  margin-top: 10px;
  max-width: 52ch;
  line-height: 1.6;
}
.light-expand-mark {
  font-family: var(--mono);
  color: var(--signal);
  font-size: 1.35rem;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}
.light-expand.is-open .light-expand-mark { transform: rotate(45deg); }
.light-expand-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.light-expand.is-open .light-expand-body { grid-template-rows: 1fr; }
.light-expand-inner {
  overflow: hidden;
  min-height: 0;
  padding-bottom: 0;
}
.light-expand.is-open .light-expand-inner { padding-bottom: 28px; }
.light-expand-inner p {
  font-size: var(--type-body);
  color: var(--dim);
  line-height: 1.8;
  max-width: 62ch;
}

/* Light viz panels */
.viz-light {
  margin-top: 48px;
  border: 1px solid var(--hair2);
  background: var(--paper2);
  padding: clamp(28px, 3.5vw, 48px);
}
.viz-light .viz-cap {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 20px;
}
.viz-light svg { width: 100%; height: auto; display: block; }

/* Magnetic buttons slightly larger hit area */
.btn {
  font-size: 13px !important;
  padding: 20px 36px !important;
}

/* Sticky section label (desktop) */
.sec-label-float {
  position: absolute;
  left: var(--pad);
  top: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: 0.7;
  pointer-events: none;
}
@media (max-width: 1200px) {
  .sec-label-float { display: none; }
}

/* Engine pages only: ensure body black when .dark-page */
html.dark-page body,
body.dark-page,
.dark-page {
  background: #0A0A0B;
}

/* Unified brand on dark instruments */
.dark-page .brand-logo-svg,
body.dark-page .brand-logo-svg { color: #F2F0EA; }
.dark-page .brand-p,
body.dark-page .brand-p { color: #F6F4EE; }
.dark-page .brand-sub,
body.dark-page .brand-sub { color: rgba(242,240,234,0.45); }

/* View transitions cross-document and SPA morphs */
@view-transition {
  navigation: auto;
}

/* ARCHETYPE ACCORDION */
.arch-accordion { border-top: 1px solid var(--hair2); }
.arch-item { 
  border-bottom: 1px solid var(--hair2); 
  transition: background-color 0.4s var(--ease), padding 0.4s var(--ease);
}
.arch-item:hover { background-color: rgba(0,0,0,0.015); }
.arch-item.active { background-color: var(--paper2); }
.arch-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 32px 16px; text-align: left; cursor: pointer;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.5vw, 1.85rem); font-weight: 300; letter-spacing: -0.02em; color: var(--ink);
  background: transparent; border: none; outline: none; transition: color 0.3s var(--ease), padding-left 0.4s var(--ease);
}
.arch-item:hover .arch-trigger { padding-left: 24px; color: var(--signal); }
.arch-num { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-right: 16px; }
.arch-icon { font-family: var(--mono); font-size: 20px; font-weight: 300; transition: transform 0.4s var(--ease); }
.arch-item.active .arch-icon { transform: rotate(45deg); color: var(--signal); }
.arch-content { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.6s var(--ease), opacity 0.5s var(--ease); }
.arch-item.active .arch-content { max-height: 2500px; opacity: 1; }
.arch-inner { padding-bottom: 48px; padding-left: 64px; max-width: 800px; }
.arch-meta { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--signal); text-transform: uppercase; margin-bottom: 16px; }
.arch-link { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink); text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; transition: color 0.3s; }
.arch-link:hover { color: var(--signal); }
.arch-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0; }
.arch-tag { font-family: var(--mono); font-size: 10px; padding: 4px 10px; border: 1px solid var(--hair2); color: var(--dim); letter-spacing: 0.08em; border-radius: 2px; }
.arch-inner p { line-height: 1.7; color: var(--dim); margin-bottom: 16px; font-size: 1.05rem; }

/* Tabbed Glassmorphic Interface */
.arch-tab-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media(min-width: 900px) {
  .arch-tab-container {
    grid-template-columns: 350px 1fr;
    gap: 60px;
    align-items: start;
  }
}
.arch-tab-nav {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid var(--hair2);
  padding-right: 20px;
  z-index: 10;
}
.arch-tab-btn {
  text-align: left;
  background: transparent;
  border: none;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--dim);
  padding: 16px 20px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s var(--ease);
  position: relative;
  letter-spacing: -0.01em;
}
.arch-tab-btn:hover {
  background: rgba(0,0,0,0.02);
  color: var(--ink);
}
.arch-tab-btn.active {
  background: var(--paper2);
  color: var(--signal);
  font-style: italic;
}
.arch-tab-btn.active::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 10%;
  height: 80%;
  width: 3px;
  background: var(--signal);
  border-radius: 2px;
}

.arch-tab-content-wrapper {
  position: relative;
}
.arch-tab-panel {
  display: none;
  background: rgba(246,247,248,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--hair2);
  border-radius: 8px;
  padding: 56px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.02);
}
.arch-tab-panel.active {
  display: block;
  animation: tabFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.arch-tab-panel .punch {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.35;
  color: var(--signal);
  max-width: 25ch;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.arch-tab-panel .body {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--dim);
  margin-bottom: 24px;
}

/* Global text highlight interaction (important terms) */
.highlight {
  font-weight: 500;
  color: var(--ink);
  position: relative;
  text-decoration: none;
  display: inline-block;
  cursor: default;
}
.highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.highlight:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ============================================================
   GLOBAL EDITORIAL TYPOGRAPHY SYSTEM
   For standardized, cinematic text layouts across all pages.
============================================================ */

.editorial-section {
  padding: 120px 20px;
  background: var(--paper);
}

.editorial-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: left; /* Better for reading */
}

.editorial-heading {
  font-family: var(--serif);
  font-size: var(--type-xl);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  line-height: 1.1;
  text-align: center;
}

.editorial-body {
  font-family: var(--sans);
  font-size: var(--type-lede);
  line-height: 1.85;
  color: var(--dim);
  max-width: 65ch; /* Optimum line length for reading */
  margin: 0 auto 32px auto;
}

.editorial-body p {
  margin-bottom: 24px;
}

/* Overriding the standard b/strong to ensure they trigger the global underline */
.editorial-body strong, .editorial-body b {
  font-weight: 600;
  color: var(--ink);
  /* Uses the standard bold hover interaction already defined on line 80 */
}

/* GLOBAL BOLD HOVER UNDERLINE ANIMATION */
strong, b {
  color: var(--ink);
  position: relative;
  font-weight: 600;
  cursor: pointer;
  display: inline;
}
strong::after, b::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1.5px;
  bottom: -1px;
  left: 50%;
  background-color: var(--signal);
  transition: width 0.35s cubic-bezier(0.76, 0, 0.24, 1), left 0.35s cubic-bezier(0.76, 0, 0.24, 1);
}
strong:hover::after, b:hover::after {
  width: 100%;
  left: 0;
}

/* PREMIUM VIEW TRANSITION ANIMATIONS */
@keyframes slide-to-left {
  to { transform: translateX(-30px); opacity: 0; }
}
@keyframes slide-from-right {
  from { transform: translateX(30px); opacity: 0; }
}
::view-transition-old(root) {
  animation: 0.38s cubic-bezier(0.76, 0, 0.24, 1) both slide-to-left;
}
::view-transition-new(root) {
  animation: 0.44s cubic-bezier(0.76, 0, 0.24, 1) both slide-from-right;
}

/* TOP PROGRESS BAR */
#px-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background-color: var(--signal);
  z-index: 100000;
  width: 0%;
  transition: width 0.1s;
}

/* REVEAL CLASS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   MOBILE-EXCLUSIVE OVERRIDES (Added to fix mobile rendering)
   ========================================================================== */
@media (max-width: 900px) {
  /* Override any hardcoded 2-column grids */
  #trapGrid,
  .sticky-split-layout,
  .alg-grid {
    grid-template-columns: 1fr !important;
  }

  /* Typography clamping adjustments for narrow screens */
  :root {
    --type-display: clamp(1.8rem, 5.2vw, 4.8rem) !important;
    --type-xl: clamp(1.4rem, 3.8vw, 3.15rem) !important;
    --pad-section: clamp(60px, 10vh, 120px) !important;
  }

  /* Adjust hero canvas overlay so it doesn't obstruct text */
  .m-hero-fixed-canvas {
    width: 100% !important;
    right: 0 !important;
    position: relative !important;
    height: 250px !important;
    margin-top: 24px;
    opacity: 0.6;
  }

  /* Ensure all columns stack on mobile to prevent overlapping */
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin-top: 16px;
  }
  
  .links.open {
    background: var(--paper) !important;
  }
  .dark-page .links.open {
    background: var(--ink) !important;
  }

  /* Brighten "black boxes" / .btn-fill on mobile to ensure readability */
  .btn-fill {
    background: var(--signal) !important;
    color: var(--paper) !important;
    box-shadow: 0 10px 30px rgba(255, 90, 31, 0.3) !important;
  }

  /* Make sure Find Your Chapter text and other elements don't get squished */
  .arch-inner {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* ============================================================
   MOBILE OPTIMIZATIONS (Max-width 768px)
   Applied across all pages for perfect responsive layout
============================================================ */
@media (max-width: 768px) {
  :root:not(.dark-page) {
    --type-display: clamp(2.2rem, 8vw, 3rem);
    --type-xl: clamp(1.8rem, 6vw, 2.2rem);
    --type-lg: clamp(1.4rem, 5vw, 1.8rem);
    --type-md: clamp(1.1rem, 4vw, 1.4rem);
  }
  :root.dark-page {
    --type-display: clamp(2.4rem, 9vw, 3.2rem);
    --type-xl: clamp(1.9rem, 7vw, 2.4rem);
    --type-lg: clamp(1.5rem, 6vw, 1.9rem);
    --type-md: clamp(1.2rem, 5vw, 1.5rem);
  }

  /* Relax horizontal padding on mobile */
  .wrap {
    padding: 0 16px;
  }
  
  /* Fix Bento Grids */
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .bento-card {
    padding: 24px;
    min-height: 200px;
  }

  /* Prevent any hero-copy overlapping or flowing off screen */
  #pulse-hero-copy, #sym-hero-copy {
    left: 16px;
    max-width: calc(100vw - 32px);
  }
  
  /* Ensure readout fits the screen */
  #sym-readout {
    left: 16px;
    bottom: 32px;
    max-width: calc(100vw - 32px);
  }
}
