:root {
  --void: #000000;
  --white: #ffffff;
  --ash: #9a9a9a;
  --mist: #bdbdbd;
  --iris: #8052ff;
  --amber: #ffb829;
  --verdant: #15846e;
  --line: rgba(255,255,255,.14);
  --line-soft: rgba(255,255,255,.08);
  --radius: 24px;
  --max: 1280px;
  font-family: var(--medallo-font, Inter), ui-sans-serif, system-ui, sans-serif;
  color: var(--white);
  background: var(--void);
  font-synthesis: none;
}


* { box-sizing: border-box; }
html { min-width: 320px; background: var(--void); }
body { min-height: 100vh; margin: 0; background: var(--void); overflow-x: hidden; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--mist); }
.small-text { font-size: 12px; line-height: 1.5; }

.ambient { position: fixed; width: 1px; height: 1px; pointer-events: none; opacity: .7; box-shadow: 0 0 0 1px var(--iris), 120px 180px 0 0 var(--amber), 280px -100px 0 0 var(--verdant), 460px 360px 0 0 #c44dff, 800px 120px 0 0 #4367ff, 1100px 500px 0 0 var(--iris); }
.ambient-one { top: 12%; left: 8%; }
.ambient-two { top: 72%; right: 10%; transform: scale(.7); opacity: .35; }

.auth-layout, .app-layout { position: relative; z-index: 1; width: min(var(--max), calc(100% - 72px)); margin: 0 auto; }
.auth-layout { min-height: max(760px, 100svh); display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .52fr); gap: clamp(40px, 7vw, 110px); align-items: center; padding: 120px 0 68px; isolation: isolate; }
.auth-world { position: absolute; z-index: -1; top: 65px; bottom: 40px; left: -9vw; width: calc(100% - 270px); pointer-events: none; }
.auth-world #constellation-canvas { inset: 0; }
.auth-copy { max-width: 660px; align-self: end; position: relative; padding-top: 360px; }
.auth-layout > .brand-large { position: absolute; top: 42px; left: 0; margin-bottom: 0; }
.auth-copy h1 { font-size: clamp(52px, 5.2vw, 76px); line-height: 1.02; margin-bottom: 18px; }
.auth-copy > .eyebrow, .auth-copy > h1, .auth-copy > .lede { position: relative; z-index: 1; }
.auth-copy::before { content: ''; position: absolute; z-index: 0; inset: 300px -20px -40px -50px; background: radial-gradient(ellipse at 38% 80%, #000 10%, #000c 55%, transparent 76%); pointer-events: none; }
.auth-copy .lede { max-width: 410px; font-size: 16px; color: var(--mist); margin-bottom: 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; letter-spacing: .04em; }
.brand strong { display: block; font-size: 14px; font-weight: 600; letter-spacing: .12em; }
.brand small { display: block; color: var(--ash); font-size: 10px; letter-spacing: .28em; margin-top: 2px; }
.brand-large { margin-bottom: 100px; }
.brand-mark { position: relative; display: inline-block; width: 30px; height: 30px; transform: rotate(30deg); }
.brand-mark i { position: absolute; display: block; width: 15px; height: 15px; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--iris); }
.brand-mark i:nth-child(1) { top: 0; left: 8px; }
.brand-mark i:nth-child(2) { top: 10px; left: 0; background: var(--verdant); transform: rotate(180deg) scale(.7); }
.brand-mark i:nth-child(3) { top: 14px; left: 14px; background: var(--amber); transform: scale(.45); }
.eyebrow { margin: 0 0 18px; color: var(--iris); font-size: 12px; font-weight: 700; letter-spacing: .18em; line-height: 1.5; }
.eyebrow.amber { color: var(--amber); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 400; letter-spacing: -.045em; }
h1 { font-size: clamp(52px, 7.6vw, 104px); line-height: .96; margin-bottom: 30px; }
h2 { font-size: clamp(36px, 4.7vw, 64px); line-height: 1; margin-bottom: 18px; }
h3 { font-size: 24px; line-height: 1.1; }
.lede { max-width: 530px; color: var(--white); font-size: 18px; font-weight: 300; line-height: 1.5; }
.quiet-note { max-width: 420px; margin-top: 48px; color: var(--ash); font-size: 13px; line-height: 1.6; }
.auth-panel { position: relative; width: 100%; max-width: 440px; border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; background: #08080dde; backdrop-filter: blur(14px); }
.auth-panel h2 { font-size: 42px; margin-bottom: 24px; }
.stack-form { display: grid; gap: 10px; }
.stack-form label { color: var(--mist); font-size: 13px; }
.mfa-qr { justify-self: center; width: 200px; height: 200px; padding: 10px; border-radius: 12px; background: #fff; image-rendering: pixelated; }
.mfa-secret { display: inline-block; margin-top: 4px; padding: 2px 6px; border-radius: 6px; background: #ffffff14; font-size: 12px; letter-spacing: 0.08em; word-break: break-all; user-select: all; }
input, select { min-width: 0; width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; background: rgba(255,255,255,.04); color: var(--white); outline: none; }
input[type="checkbox"] { width: 18px; height: 18px; padding: 0; accent-color: var(--iris); }
input:focus, select:focus { border-color: var(--iris); box-shadow: 0 0 0 3px rgba(128,82,255,.2); }
select option { color: #111; }
.primary-button, .ghost-button { border-radius: 24px; padding: 13px 17px; border: 0; transition: transform .2s ease, opacity .2s ease, background .2s ease; }
.primary-button { margin-top: 14px; background: var(--iris); color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.primary-button:hover { transform: translateY(-2px); background: #916dff; }
.ghost-button { background: transparent; color: var(--mist); font-size: 13px; }
.ghost-button:hover { color: var(--white); }
.ghost-button.compact { padding: 8px 12px; }
.form-message { min-height: 20px; color: var(--amber); font-size: 13px; line-height: 1.5; }
.security-note { display: flex; gap: 8px; align-items: center; margin: 28px 0 0; color: var(--ash); font-size: 12px; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--verdant); box-shadow: 0 0 14px var(--verdant); }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line-soft); }
.topnav { display: flex; gap: 8px; }
.nav-link { border: 0; background: transparent; color: var(--ash); padding: 10px 12px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nav-link:hover, .nav-link.active { color: var(--white); }
.account-area { display: flex; align-items: center; gap: 16px; }
.account-name { max-width: 190px; overflow: hidden; color: var(--mist); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.main-content { padding: 72px 0 120px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr); gap: 40px; min-height: 520px; align-items: center; }
.hero-grid h1 { max-width: 720px; }
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
.hero-actions .primary-button { margin-top: 0; }
.constellation { position: relative; min-height: 500px; overflow: hidden; background: radial-gradient(circle at 50% 50%, rgba(128,82,255,.18), transparent 53%); }
.constellation::before { content: ""; position: absolute; inset: 13% 12%; border-radius: 50%; background: radial-gradient(circle, rgba(128,82,255,.12), transparent 68%); filter: blur(22px); pointer-events: none; }
#constellation-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 60px; margin: 80px 0 30px; }
.section-summary { max-width: 420px; margin-bottom: 10px; font-size: 15px; line-height: 1.5; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.module-card { min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; border-top: 1px solid var(--line); padding: 26px 4px 20px; }
.module-card h3 { margin-bottom: 12px; font-size: 32px; }
.module-card p { max-width: 500px; color: var(--mist); font-size: 15px; line-height: 1.55; }
.module-meta { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 24px; }
.module-status { color: var(--amber); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.module-status.ready { color: var(--verdant); }
.module-card .ghost-button { padding: 8px 0; text-align: left; }
.module-card .ghost-button:disabled { cursor: not-allowed; opacity: .45; }

.admin-heading { margin-top: 0; }
.admin-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 64px; }
.admin-section { min-width: 0; border-top: 1px solid var(--line); padding-top: 28px; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-title-row h2 { font-size: 38px; margin-bottom: 0; }
.inline-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: center; margin-bottom: 24px; }
.inline-form .primary-button { margin-top: 0; height: 48px; }
.module-form { grid-template-columns: .8fr 1fr 1.6fr auto; }
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { color: var(--ash); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-align: left; text-transform: uppercase; }
.data-table th, .data-table td { border-bottom: 1px solid var(--line-soft); padding: 14px 10px 14px 0; vertical-align: top; }
.data-table td { color: var(--mist); }
.data-table strong { color: var(--white); font-weight: 500; }
.pill { display: inline-block; border-radius: 999px; padding: 4px 8px; background: rgba(128,82,255,.16); color: #bcaeff; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pill.pending { background: rgba(255,184,41,.12); color: var(--amber); }
.pill.ready { background: rgba(21,132,110,.18); color: #6be0c2; }
.pill.disabled { background: rgba(255,255,255,.08); color: var(--ash); }
.toast { position: fixed; z-index: 5; right: 24px; bottom: 24px; max-width: 360px; transform: translateY(20px); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; background: #111; color: var(--white); font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { border-color: rgba(255,184,41,.55); color: var(--amber); }

@media (max-width: 900px) {
  .auth-layout, .app-layout { width: min(var(--max), calc(100% - 40px)); }
  .auth-layout { grid-template-columns: 1fr; gap: 32px; padding: 32px 0 60px; }
  .auth-world { top: 80px; left: -20px; right: -20px; width: auto; bottom: auto; height: 510px; }
  .auth-copy { padding-top: 490px; }
  .auth-layout > .brand-large { top: 32px; }
  .auth-copy::before { inset: 410px -20px -40px; }
  .auth-copy h1 { font-size: clamp(42px, 7vw, 64px); }
  .brand-large { margin-bottom: 54px; }
  .auth-panel { max-width: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .constellation { min-height: 330px; }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; }
}
@media (max-width: 640px) {
  .auth-world { height: 370px; top: 92px; }
  .auth-copy { padding-top: 360px; }
  .auth-copy::before { inset: 300px -20px -40px; }
  .auth-copy h1 { font-size: 44px; }
  .auth-copy .lede { font-size: 14px; }
  .topbar { align-items: flex-start; flex-wrap: wrap; }
  .topnav { order: 3; width: 100%; }
  .account-name { max-width: 110px; }
  .main-content { padding-top: 48px; }
  h1 { font-size: 54px; }
  .module-grid { grid-template-columns: 1fr; }
  .inline-form, .module-form { grid-template-columns: 1fr; }
  .auth-panel { padding: 26px; }
}

/* Transformable, data-free module previews */
.module-card[data-preview-slug] { cursor: zoom-in; outline: none; transition: opacity .22s ease; }
.module-card[data-preview-slug]:focus-visible { outline: 1px solid rgba(255,184,41,.72); outline-offset: 8px; }
.module-card.is-preview-origin { opacity: 0; }
.module-origin-letter { display: inline-block; transform-origin: 0 0; }
body.preview-active { overflow: hidden; }

.module-immersive-stage { position: fixed; z-index: 30; inset: 0; isolation: isolate; pointer-events: none; }
.module-immersive-stage[hidden] { display: none !important; }
.immersive-surface {
  position: fixed;
  z-index: 31;
  inset: 7vh 6vw;
  width: auto;
  height: auto;
  overflow: hidden;
  transform-origin: 0 0;
  border-radius: clamp(20px, 2.4vw, 34px);
  background: #000;
  color: var(--white);
  pointer-events: none;
  will-change: transform;
  isolation: isolate;
}
.immersive-vignette {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 84% 14%, rgba(128,82,255,.13), transparent 38%),
    radial-gradient(ellipse at 18% 86%, rgba(21,132,110,.08), transparent 34%);
}
.immersive-constellation {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .76;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 67% 53%, #000 36%, transparent 82%);
}
.immersive-content {
  position: relative;
  z-index: 1;
  --parallax-x: 0px;
  --parallax-y: 0px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(14px, 2.5vh, 28px);
  width: 100%;
  height: 100%;
  padding: clamp(26px, 4vw, 58px) clamp(25px, 5vw, 72px) clamp(20px, 3vh, 34px);
  transform: translate3d(var(--parallax-x, 0px), var(--parallax-y, 0px), 0);
  transition: transform .28s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.immersive-heading { position: relative; z-index: 1; max-width: 100%; padding-right: clamp(86px, 11vw, 150px); }
.immersive-labels { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: clamp(10px, 2vh, 22px); }
.immersive-labels .eyebrow { margin-bottom: 0; color: var(--amber); font-size: 11px; letter-spacing: .16em; }
.immersive-labels .eyebrow span { color: var(--verdant); }
.immersive-current-status { margin: 0; color: var(--amber); font-size: 10px; letter-spacing: .12em; text-align: right; text-transform: uppercase; }
.immersive-title {
  max-width: 100%;
  margin: 0;
  color: var(--white);
  font-size: clamp(48px, 7.7vw, 112px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}
.immersive-letter-run { display: inline; white-space: normal; }
.immersive-letter {
  display: inline-block;
  opacity: 1;
  filter: none;
  transform: none;
  transform-origin: 50% 100%;
  animation: none;
  will-change: transform, opacity, filter;
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.immersive-description { max-width: 640px; margin: 12px 0 0; color: var(--mist); font-size: clamp(12px, 1.1vw, 15px); line-height: 1.5; font-weight: 300; }
.immersive-scene { position: relative; min-height: 0; overflow: hidden; }
.immersive-footer { display: flex; justify-content: space-between; gap: 16px; color: var(--ash); font-size: 9px; letter-spacing: .16em; line-height: 1.4; }
.immersive-close {
  position: absolute;
  z-index: 4;
  top: clamp(18px, 3vw, 42px);
  right: clamp(18px, 3.5vw, 50px);
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0 10px 12px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--mist);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  pointer-events: auto;
}
.immersive-close:hover { color: var(--white); }
.immersive-close kbd { border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 4px 7px; color: var(--ash); font: inherit; }
.immersive-close i { margin-left: 2px; color: var(--amber); font-size: 21px; font-style: normal; font-weight: 300; line-height: 1; }
.immersive-close:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.module-immersive-stage[data-state="keyboard-focus"] .immersive-surface { outline: 1px solid rgba(255,184,41,.38); outline-offset: 2px; }
.preview-neural-bridge { position: fixed; z-index: 32; inset: 0; width: 100vw; height: 100vh; overflow: visible; pointer-events: none; }
.immersive-brain-echo { position: absolute; z-index: 0; top: 7%; right: 10%; width: clamp(92px, 15vw, 210px); height: auto; opacity: .3; overflow: visible; pointer-events: none; }
.brain-echo-outline { fill: none; stroke: rgba(128,82,255,.7); stroke-width: 1.1; stroke-dasharray: 2 5; }
.brain-echo-fissure { fill: none; stroke: rgba(255,184,41,.65); stroke-width: 1; stroke-dasharray: 2 4; }
.brain-echo-links { fill: none; stroke: rgba(21,132,110,.72); stroke-width: 1; }
.immersive-brain-echo polygon { fill: #000; stroke: var(--iris); stroke-width: 1.4; }
.immersive-brain-echo polygon:nth-of-type(3n) { stroke: var(--amber); }
.immersive-brain-echo polygon:nth-of-type(4n) { stroke: var(--verdant); }
.preview-bridge-line { fill: none; stroke: url(#preview-bridge-gradient); stroke-width: 1.25; stroke-dasharray: 2 9; opacity: .32; animation: bridge-draw 900ms ease-out both; }
.preview-bridge-origin { fill: var(--iris); stroke: rgba(128,82,255,.28); stroke-width: 9; transform-box: fill-box; transform-origin: center; animation: bridge-pulse 1.2s ease-out both; }
.preview-bridge-target { fill: var(--amber); opacity: .8; }
.module-immersive-stage[data-parallax-x="left"] .immersive-content { --parallax-x: -8px; }
.module-immersive-stage[data-parallax-x="right"] .immersive-content { --parallax-x: 8px; }
.module-immersive-stage[data-parallax-y="up"] .immersive-content { --parallax-y: -6px; }
.module-immersive-stage[data-parallax-y="down"] .immersive-content { --parallax-y: 6px; }

.finance-scene { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(250px, .92fr); align-items: center; gap: clamp(24px, 5vw, 82px); width: 100%; height: 100%; }
.finance-ledger { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.18); }
.finance-ledger-head, .finance-row { display: grid; grid-template-columns: .66fr .82fr 1.15fr .9fr; align-items: center; gap: clamp(8px, 1.4vw, 18px); }
.finance-ledger-head { min-height: 38px; border-bottom: 1px solid rgba(255,255,255,.11); color: var(--ash); font-size: 9px; font-weight: 600; letter-spacing: .11em; }
.finance-row { min-height: clamp(35px, 5.7vh, 52px); border-bottom: 1px solid rgba(255,255,255,.09); opacity: 0; transform: translate3d(-18px, 0, 0); animation: ledger-row-arrive 470ms cubic-bezier(.2,.7,.2,1) both; }
.finance-row.row-0 { animation-delay: 110ms; }
.finance-row.row-1 { animation-delay: 180ms; }
.finance-row.row-2 { animation-delay: 250ms; }
.finance-row.row-3 { animation-delay: 320ms; }
.finance-row.row-4 { animation-delay: 390ms; }
.finance-row.row-5 { animation-delay: 460ms; }
.finance-period, .finance-figure { color: var(--mist); font-size: 11px; letter-spacing: .08em; white-space: nowrap; }
.finance-activity { display: flex; gap: 5px; align-items: center; }
.finance-activity i { display: block; width: 5px; height: 5px; border: 1px solid var(--iris); border-radius: 50%; opacity: .82; }
.finance-activity i:nth-child(2) { border-color: var(--amber); transform: scale(.72); }
.finance-activity i:nth-child(3) { border-color: var(--verdant); transform: scale(.55); }
.finance-meter { display: block; height: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
.finance-meter i { display: block; width: var(--meter-width); height: 100%; background: var(--iris); transform: scaleX(0); transform-origin: left; animation: meter-grow 420ms cubic-bezier(.2,.7,.2,1) both; }
.finance-meter .meter-0 { --meter-width: 46%; animation-delay: 200ms; }
.finance-meter .meter-1 { --meter-width: 73%; animation-delay: 270ms; }
.finance-meter .meter-2 { --meter-width: 58%; animation-delay: 340ms; }
.finance-meter .meter-3 { --meter-width: 84%; animation-delay: 410ms; }
.finance-meter .meter-4 { --meter-width: 64%; animation-delay: 480ms; }
.finance-meter .meter-5 { --meter-width: 91%; animation-delay: 550ms; }
.finance-row:nth-child(3n) .finance-meter i { background: var(--amber); }
.finance-row:nth-child(4n) .finance-meter i { background: var(--verdant); }
.finance-figure { color: var(--ash); font-variant-numeric: tabular-nums; }
.finance-chart-wrap { position: relative; z-index: 1; min-width: 0; padding-top: 24px; }
.finance-chart-label, .finance-chart-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--ash); font-size: 9px; letter-spacing: .14em; }
.finance-chart-label { margin-bottom: 16px; }
.finance-chart-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 14px rgba(255,184,41,.58); }
.finance-chart { display: block; width: 100%; height: clamp(155px, 24vh, 255px); overflow: visible; }
.finance-chart-grid { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 1; stroke-dasharray: 2 7; }
.finance-chart-area { fill: rgba(128,82,255,.09); opacity: 0; animation: chart-area-arrive 520ms ease-out 360ms both; }
.finance-chart-line { fill: none; stroke: var(--iris); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1100; stroke-dashoffset: 1100; animation: trend-draw 820ms cubic-bezier(.2,.7,.2,1) 120ms forwards; }
.finance-chart-point { fill: var(--amber); stroke: #000; stroke-width: 3; transform-box: fill-box; transform-origin: center; transform: scale(0); animation: chart-point-arrive 280ms cubic-bezier(.2,.7,.2,1) 520ms both; }
.point-two { animation-delay: 630ms; fill: var(--verdant); }
.point-three { animation-delay: 740ms; }
.finance-chart-caption { margin-top: 6px; }
.finance-particles { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.finance-particle { position: absolute; width: 9px; height: 9px; background: var(--iris); clip-path: polygon(50% 0, 100% 100%, 0 100%); opacity: 0; transform: translate3d(24vw, -20vh, 0) scale(.25) rotate(-40deg); animation: finance-particle-arrive 500ms cubic-bezier(.15,.75,.18,1) both; }
.finance-particle.particle-0 { left: 14%; top: 25%; animation-delay: 120ms; }
.finance-particle.particle-1 { left: 28%; top: 70%; transform: translate3d(18vw, 14vh, 0) scale(.25) rotate(-40deg); animation-delay: 220ms; }
.finance-particle.particle-2 { left: 52%; top: 18%; transform: translate3d(8vw, -25vh, 0) scale(.25) rotate(-40deg); animation-delay: 320ms; }
.finance-particle.particle-3 { left: 74%; top: 74%; transform: translate3d(-16vw, 16vh, 0) scale(.25) rotate(-40deg); animation-delay: 420ms; }
.finance-particle.particle-4 { left: 88%; top: 38%; transform: translate3d(-24vw, -10vh, 0) scale(.25) rotate(-40deg); animation-delay: 500ms; }
.finance-particle:nth-child(2n) { background: var(--amber); }
.finance-particle:nth-child(3n) { background: var(--verdant); }

.people-scene { position: relative; width: 100%; height: 100%; min-height: 250px; perspective: 900px; overflow: hidden; }
.people-connections { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.people-connections path { fill: none; stroke: rgba(128,82,255,.52); stroke-width: 1.15; stroke-dasharray: 4 8; stroke-dashoffset: 420; animation: people-lines-arrive 640ms ease-out both; }
.people-connections path:nth-child(2) { stroke: rgba(255,184,41,.4); animation-delay: 170ms; }
.people-connections path:nth-child(3) { stroke: rgba(21,132,110,.48); animation-delay: 280ms; }
.people-connections circle { fill: var(--amber); opacity: 0; animation: chart-point-arrive 280ms ease-out 550ms both; }
.people-connections circle:nth-of-type(2n) { fill: var(--iris); animation-delay: 660ms; }
.people-orbit { position: absolute; border: 1px solid rgba(128,82,255,.15); border-radius: 50%; transform: rotate(-22deg); pointer-events: none; }
.orbit-a { width: 45%; height: 75%; left: 27%; top: 10%; }
.orbit-b { width: 72%; height: 43%; left: 13%; top: 31%; border-color: rgba(255,184,41,.12); transform: rotate(16deg); }
.people-node { position: absolute; z-index: 1; opacity: 0; transform: translate3d(-50%, -50%, -80px) scale(.7); animation: person-arrive 620ms cubic-bezier(.18,.74,.18,1) both; }
.people-node.node-0 { left: 16%; top: 54%; animation-delay: 70ms; }
.people-node.node-1 { left: 34%; top: 28%; animation-delay: 140ms; }
.people-node.node-2 { left: 50%; top: 69%; animation-delay: 210ms; }
.people-node.node-3 { left: 67%; top: 34%; animation-delay: 280ms; }
.people-node.node-4 { left: 84%; top: 61%; animation-delay: 350ms; }
.people-avatar { position: relative; width: 74px; height: 88px; transform: translateZ(0); }
.people-avatar .avatar-head { position: absolute; top: 4px; left: 25px; width: 26px; height: 30px; border-radius: 48% 52% 45% 45%; background: var(--avatar-color, #8052ff); opacity: .9; }
.people-avatar .avatar-body { position: absolute; left: 7px; bottom: 0; width: 62px; height: 52px; border-radius: 28px 28px 8px 8px; background: var(--avatar-color, #8052ff); opacity: .72; clip-path: polygon(27% 0, 73% 0, 100% 100%, 0 100%); }
.avatar-0 { --avatar-color: #8052ff; }
.avatar-1 { --avatar-color: #15846e; }
.avatar-2 { --avatar-color: #ffb829; }
.avatar-3 { --avatar-color: #9d75ff; }
.avatar-4 { --avatar-color: #32c8a4; }
.depth-back .people-avatar { transform: scale(.72); opacity: .65; }
.depth-mid .people-avatar { transform: scale(.88); opacity: .84; }
.depth-front .people-avatar { transform: scale(1.08); }
.people-bubble { position: absolute; top: -31px; left: 38px; display: flex; align-items: center; gap: 4px; width: 72px; height: 39px; padding: 0 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 18px; background: rgba(0,0,0,.88); opacity: 0; transform: translate3d(0, 8px, 0) scale(.78); animation: bubble-arrive 420ms cubic-bezier(.2,.7,.2,1) both; }
.node-0 .people-bubble { animation-delay: 220ms; }
.node-1 .people-bubble { animation-delay: 290ms; }
.node-2 .people-bubble { animation-delay: 360ms; }
.node-3 .people-bubble { animation-delay: 430ms; }
.node-4 .people-bubble { animation-delay: 500ms; }
.people-bubble::after { content: ""; position: absolute; left: 14px; bottom: -5px; width: 8px; height: 8px; border-right: 1px solid rgba(255,255,255,.22); border-bottom: 1px solid rgba(255,255,255,.22); background: #000; transform: rotate(45deg); }
.bubble-right { left: auto; right: 38px; }
.bubble-right::after { left: auto; right: 14px; }
.people-bubble i { width: 5px; height: 5px; border-radius: 50%; background: var(--iris); }
.people-bubble i:nth-child(2) { background: var(--amber); opacity: .75; }
.people-bubble i:nth-child(3) { background: var(--verdant); opacity: .75; }
.people-scene-caption { position: absolute; right: 0; bottom: 4px; left: 0; display: flex; justify-content: space-between; gap: 10px; color: var(--ash); font-size: 8px; letter-spacing: .12em; }

.network-scene { display: grid; place-items: center; width: 100%; height: 100%; }
.network-scene svg { width: min(78%, 760px); height: min(88%, 440px); overflow: visible; }
.network-scene path { fill: none; stroke: rgba(128,82,255,.42); stroke-width: 1.4; stroke-dasharray: 4 8; animation: people-lines-arrive 1100ms ease-out both; }
.network-scene circle { fill: #000; stroke: var(--iris); stroke-width: 1.6; transform-box: fill-box; transform-origin: center; animation: chart-point-arrive 560ms cubic-bezier(.2,.7,.2,1) both; }
.network-scene circle:nth-of-type(2n) { stroke: var(--amber); animation-delay: 150ms; }
.network-scene circle:nth-of-type(3n) { stroke: var(--verdant); animation-delay: 280ms; }
.network-scene p { position: absolute; bottom: 8px; margin: 0; color: var(--ash); font-size: 11px; }

@keyframes immersive-letter-arrive {
  0% { opacity: 0; filter: blur(8px); transform: translate3d(0, 22px, 0) scale(.76) rotateX(-18deg); }
  65% { opacity: 1; filter: blur(0); transform: translate3d(0, -3px, 0) scale(1.035) rotateX(2deg); }
  100% { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) scale(1) rotateX(0); }
}
@keyframes ledger-row-arrive { to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes meter-grow { to { transform: scaleX(1); } }
@keyframes trend-draw { to { stroke-dashoffset: 0; } }
@keyframes chart-area-arrive { to { opacity: 1; } }
@keyframes chart-point-arrive { 0% { opacity: 0; transform: scale(0); } 72% { opacity: 1; transform: scale(1.3); } 100% { opacity: 1; transform: scale(1); } }
@keyframes finance-particle-arrive { to { opacity: .9; transform: translate3d(0, 0, 0) scale(1) rotate(0); } }
@keyframes people-lines-arrive { to { stroke-dashoffset: 0; } }
@keyframes person-arrive { to { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1); } }
@keyframes bubble-arrive { to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } }
@keyframes bridge-draw { from { stroke-dashoffset: 240; opacity: 0; } to { stroke-dashoffset: 0; opacity: .32; } }
@keyframes bridge-pulse { 0% { opacity: 0; transform: scale(.3); } 70% { opacity: 1; transform: scale(1.45); } 100% { opacity: .8; transform: scale(1); } }

@media (max-width: 900px) {
  .finance-scene { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1.1fr) minmax(0, .9fr); gap: 12px; }
  .finance-chart-wrap { padding-top: 4px; }
  .finance-chart { height: clamp(130px, 19vh, 200px); }
}
@media (max-width: 640px) {
  .immersive-surface { inset: 6vh 3vw; border-radius: 20px; }
  .immersive-content { gap: 12px; padding: 22px 18px 16px; }
  .immersive-heading { padding-right: 0; padding-top: 34px; }
  .immersive-labels { align-items: flex-start; flex-direction: column; gap: 6px; margin-bottom: 10px; }
  .immersive-labels .eyebrow { font-size: 9px; }
  .immersive-current-status { text-align: left; font-size: 9px; }
  .immersive-title { max-width: 100%; font-size: clamp(34px, 8.5vw, 54px); line-height: .95; }
  .immersive-description { margin-top: 8px; font-size: 11px; }
  .immersive-close { top: 14px; right: 15px; gap: 7px; font-size: 9px; }
  .immersive-close kbd { padding: 3px 5px; }
  .immersive-close i { font-size: 18px; }
  .immersive-footer { gap: 8px; font-size: 7px; letter-spacing: .08em; }
  .finance-scene { grid-template-rows: minmax(0, 1.05fr) minmax(0, .95fr); gap: 6px; }
  .finance-ledger-head, .finance-row { grid-template-columns: .5fr .7fr 1fr; gap: 7px; }
  .finance-ledger-head { min-height: 25px; font-size: 7px; }
  .finance-ledger-head span:nth-child(4), .finance-figure { display: none; }
  .finance-row { min-height: 26px; }
  .finance-period { font-size: 9px; }
  .finance-chart-label, .finance-chart-caption { font-size: 7px; }
  .finance-chart-label { margin-bottom: 4px; }
  .finance-chart { height: clamp(95px, 15vh, 135px); }
  .people-scene { min-height: 200px; }
  .people-avatar { transform: scale(.72); }
  .depth-back .people-avatar { transform: scale(.54); }
  .depth-mid .people-avatar { transform: scale(.65); }
  .depth-front .people-avatar { transform: scale(.8); }
  .people-bubble { width: 55px; height: 31px; gap: 3px; padding: 0 9px; }
  .people-bubble i { width: 4px; height: 4px; }
  .people-scene-caption { font-size: 6px; letter-spacing: .06em; }
  .preview-bridge-line { opacity: .2; }
}
@media (prefers-reduced-motion: reduce) {
  .module-card[data-preview-slug] { transition: none; }
  .finance-row, .finance-meter i, .finance-chart-area, .finance-chart-line,
  .finance-chart-point, .finance-particle, .people-connections path, .people-connections circle,
  .people-node, .people-bubble, .network-scene path, .network-scene circle,
  .preview-bridge-line, .preview-bridge-origin {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* Full-bleed shared-canvas module transformations */
html { scrollbar-gutter: stable; }
body.preview-active { overflow: hidden; }
body.preview-active #app-view {
  opacity: .14;
  transition: opacity 180ms ease;
}
#app-view { transition: opacity 180ms ease; }
.module-immersive-stage {
  position: fixed;
  z-index: 30;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
}
.module-immersive-stage[hidden] { display: none !important; }
.immersive-surface {
  position: fixed;
  z-index: 31;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #000;
  color: var(--white);
  isolation: isolate;
  pointer-events: none;
  will-change: transform;
}
#constellation-canvas {
  position: absolute;
  z-index: 0;
  inset: 0;
  transform-origin: 0 0;
  display: block;
  width: 100%;
  height: 100%;
  will-change: transform;
  overflow: hidden;
  touch-action: none;
}
#constellation-canvas canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.particle-field-fallback-canvas { z-index: 1; }
.visual-fallback-note {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  left: 12px;
  max-width: 420px;
  margin: 0 auto;
  color: var(--amber);
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
  text-shadow: 0 1px 5px #000;
}
.immersive-content {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, .42fr) minmax(0, .58fr);
  align-items: center;
  width: 100%;
  height: 100%;
  padding: clamp(30px, 5vw, 76px);
  pointer-events: none;
  transform: translate3d(var(--parallax-x, 0px), var(--parallax-y, 0px), 0);
  transition: transform 280ms cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.immersive-heading {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: min(43vw, 610px);
  padding: 0;
}
.immersive-labels { margin-bottom: 18px; }
.immersive-labels .eyebrow { margin: 0; color: var(--amber); font-size: 10px; letter-spacing: .16em; }
.immersive-labels .eyebrow span { color: var(--verdant); }
.immersive-title {
  max-width: 100%;
  margin: 0;
  color: #fff;
  font-size: clamp(48px, 7.4vw, 108px);
  font-weight: 300;
  line-height: .96;
  letter-spacing: -.06em;
  overflow-wrap: normal;
  text-wrap: balance;
}
.immersive-letter-run { white-space: normal; }
.immersive-word, .module-origin-word { display: inline-block; white-space: nowrap; }
.immersive-letter { display: inline-block; transform-origin: 50% 70%; will-change: transform, opacity, filter; }
.immersive-renderer-note {
  margin: 12px 0 0;
  color: var(--amber);
  font-size: 10px;
  line-height: 1.5;
}
.immersive-description {
  max-width: 430px;
  margin: 20px 0 14px;
  color: rgba(255,255,255,.67);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 300;
  line-height: 1.55;
}
.immersive-current-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--amber);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-align: left;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(5px);
  animation: status-reveal 240ms ease-out 900ms both;
}
.immersive-current-status i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px rgba(255,184,41,.7);
}
.immersive-footer {
  position: absolute;
  right: clamp(30px, 5vw, 76px);
  bottom: clamp(22px, 3vh, 38px);
  left: clamp(30px, 5vw, 76px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255,255,255,.46);
  font-size: 9px;
  letter-spacing: .15em;
  line-height: 1.5;
}
.immersive-close {
  position: absolute;
  z-index: 5;
  top: clamp(20px, 3.2vw, 42px);
  right: clamp(22px, 4vw, 58px);
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0 10px 12px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.76);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  pointer-events: auto;
}
.immersive-close:hover { color: #fff; }
.immersive-close kbd {
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  padding: 4px 7px;
  color: rgba(255,255,255,.58);
  font: inherit;
}
.immersive-close i { margin-left: 2px; color: var(--amber); font-size: 21px; font-style: normal; font-weight: 300; line-height: 1; }
.immersive-close:focus-visible { outline: 2px solid var(--amber); outline-offset: 5px; }
.module-immersive-stage[data-state="keyboard-focus"] .immersive-close { color: #fff; }
.module-card[data-preview-slug] { cursor: zoom-in; outline: none; }
.module-card.is-preview-origin { opacity: 0; }
.module-origin-letter { display: inline-block; transform-origin: 0 0; }
.module-card[data-preview-slug]:focus-visible { outline: 1px solid rgba(255,184,41,.72); outline-offset: 8px; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.module-immersive-stage[data-parallax-x="left"] .immersive-content { --parallax-x: -5px; }
.module-immersive-stage[data-parallax-x="right"] .immersive-content { --parallax-x: 5px; }
.module-immersive-stage[data-parallax-y="up"] .immersive-content { --parallax-y: -4px; }
.module-immersive-stage[data-parallax-y="down"] .immersive-content { --parallax-y: 4px; }
@keyframes status-reveal { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .immersive-content {
    display: block;
    padding: clamp(24px, 7vw, 40px) clamp(22px, 6vw, 34px);
  }
  .immersive-heading {
    position: absolute;
    top: clamp(78px, 14vh, 132px);
    left: clamp(22px, 6vw, 34px);
    max-width: min(90vw, 620px);
  }
  .immersive-labels { margin-bottom: 12px; }
  .immersive-title { font-size: clamp(42px, 10vw, 68px); line-height: .98; }
  .immersive-description { max-width: 350px; margin: 12px 0 10px; font-size: 12px; }
  .immersive-current-status { font-size: 9px; }
  .immersive-footer { right: 22px; bottom: 18px; left: 22px; font-size: 7px; letter-spacing: .08em; }
  .immersive-close { top: 19px; right: 20px; gap: 7px; font-size: 9px; }
  .immersive-close kbd { padding: 3px 5px; }
  .immersive-close i { font-size: 18px; }
}
@media (max-width: 420px) {
  .immersive-heading { top: 90px; }
  .immersive-title { font-size: clamp(38px, 10.2vw, 48px); }
  .immersive-description { max-width: 300px; font-size: 11px; }
  .immersive-footer { max-width: calc(100% - 44px); }
}
@media (prefers-reduced-motion: reduce) {
  body.preview-active #app-view, #app-view, .immersive-content { transition-duration: 1ms; }
  .immersive-current-status { animation-duration: 1ms; animation-delay: 0ms; }
}

/* Keep the authenticated overview and its pending modules above the fold. */
#app-view .topbar { padding: 12px 0; }
#app-view .main-content:has(#overview-view:not(.hidden)) { padding: 8px 0 8px; }
#overview-view .hero-grid {
  grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr);
  gap: clamp(20px, 3vw, 36px);
  min-height: 0;
  align-items: center;
}
#overview-view .hero-grid h1 {
  max-width: 560px;
  margin-bottom: 13px;
  font-size: clamp(40px, 3.9vw, 52px);
  line-height: .98;
}
#overview-view .hero-grid .eyebrow { margin-bottom: 8px; font-size: 10px; }
#overview-view .lede { max-width: 510px; margin-bottom: 0; font-size: 14px; line-height: 1.42; }
#overview-view .hero-actions { gap: 13px; margin-top: 13px; }
#overview-view .hero-actions .primary-button,
#overview-view .hero-actions .ghost-button { padding: 10px 14px; }
#overview-view #mfa-status { margin: 3px 0 0; font-size: 10px; }
#overview-view .constellation {
  height: clamp(290px, 52vh, 350px);
  min-height: 0;
}
#overview-view .section-heading { align-items: end; gap: 24px; margin: 6px 0 2px; }
#overview-view .section-heading .eyebrow { margin-bottom: 5px; font-size: 10px; }
#overview-view .section-heading h2 { margin-bottom: 0; font-size: clamp(24px, 2.35vw, 32px); line-height: 1.05; }
#overview-view .section-summary { max-width: 380px; margin: 0 0 2px; font-size: 12px; line-height: 1.4; }
#overview-view .module-grid { gap: clamp(14px, 2vw, 22px); }
#overview-view .module-card { min-height: 120px; padding: 10px 4px 6px; }
#overview-view .module-card h3 { margin-bottom: 7px; font-size: 25px; }
#overview-view .module-card p { margin-bottom: 0; font-size: 12px; line-height: 1.4; }
#overview-view .module-meta { gap: 10px; margin-top: 9px; }
#overview-view .module-status { font-size: 9px; letter-spacing: .1em; }
#overview-view .module-card .ghost-button { padding: 6px 0; font-size: 11px; }

@media (max-width: 900px) {
  #overview-view .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 20px; }
  #overview-view .constellation { height: clamp(220px, 34vh, 270px); min-height: 0; }
  #overview-view .section-heading { flex-direction: row; align-items: end; }
}
@media (max-width: 640px) {
  #app-view .main-content:has(#overview-view:not(.hidden)) { padding: 24px 0 36px; }
  #overview-view .hero-grid { grid-template-columns: 1fr; gap: 12px; }
  #overview-view .hero-grid h1 { max-width: 540px; font-size: clamp(40px, 11vw, 50px); }
  #overview-view .constellation { height: clamp(210px, 62vw, 270px); }
  #overview-view .section-heading { align-items: start; flex-direction: column; gap: 8px; margin-top: 18px; }
  #overview-view .section-summary { max-width: 100%; }
  #overview-view .module-grid { grid-template-columns: 1fr; }
  #overview-view .module-card { min-height: 124px; }
}

/* Surface-sampled Medallo sculpture and its shared immersive stage. */
#app-view .main-content:has(#overview-view:not(.hidden)) { padding: 24px 0 44px; }
#overview-view .hero-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 24px; min-height: 0; }
#overview-view .hero-grid h1 { font-size: clamp(40px, 4.8vw, 68px); max-width: 620px; line-height: 1.01; margin-bottom: 20px; }
#overview-view .hero-grid .lede { font-size: 15px; max-width: 470px; line-height: 1.5; }
#overview-view .constellation { height: clamp(290px, 47vh, 440px); min-height: 0; background: none; }
#overview-view .constellation::before { display: none; }
#overview-view .section-heading { margin: 28px 0 16px; }
#overview-view .module-card { min-height: 140px; padding-top: 18px; }
#overview-view .module-card h3 { font-size: clamp(26px, 2.6vw, 36px); }
.module-origin-word, .immersive-word { display: inline-block; white-space: nowrap; }
.module-origin-letter, .immersive-letter { display: inline-block; transform-origin: 0 0; }
.module-immersive-stage { position: fixed; z-index: 40; inset: 0; background: #000; pointer-events: auto; }
.module-immersive-stage .immersive-surface { position: absolute; inset: 0; border-radius: 0; background: #000; width: 100%; height: 100%; pointer-events: auto; }
.module-immersive-stage #constellation-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 1; mask-image: none; transform-origin: 50% 50%; pointer-events: none; }
.module-immersive-stage .immersive-content { position: absolute; inset: 0; display: block; padding: clamp(28px, 4.2vw, 64px); pointer-events: none; transform: none; }
.module-immersive-stage .immersive-heading { width: 36%; max-width: 560px; padding-right: 0; padding-top: 18px; }
.module-immersive-stage .immersive-title { margin: 26px 0 24px; font-size: clamp(52px, 6.5vw, 98px); line-height: .99; letter-spacing: -.05em; overflow-wrap: normal; text-transform: none; }
.module-immersive-stage .immersive-description { font-size: 14px; line-height: 1.5; max-width: 300px; color: var(--mist); }
.module-immersive-stage .immersive-current-status { text-align: left; font-size: 10px; margin-top: 16px; display: flex; gap: 8px; align-items: center; }
.module-immersive-stage .immersive-current-status i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.module-immersive-stage .immersive-footer { position: absolute; left: clamp(28px,4.2vw,64px); bottom: 30px; font-size: 10px; letter-spacing: .11em; text-transform: uppercase; color: var(--ash); }
.module-immersive-stage .immersive-close { position: absolute; top: 22px; right: 26px; z-index: 3; pointer-events: auto; }
.module-immersive-stage .immersive-module-nav { position: absolute; bottom: 26px; right: 30px; z-index: 3; display: flex; gap: 10px; flex-wrap: wrap; }
.immersive-module-nav button { border: 1px solid var(--line); padding: 11px 16px; border-radius: 24px; color: var(--mist); background: #000; font-size: 12px; }
.immersive-module-nav button[aria-pressed="true"] { color: var(--white); border-color: var(--iris); }
.immersive-module-nav button:focus-visible, .immersive-close:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.archibox-request { max-width: 340px; margin-top: 24px; pointer-events: auto; }
.archibox-request label { display: block; color: var(--mist); font-size: 12px; margin-bottom: 10px; }
.archibox-request textarea { display: block; width: 100%; min-height: 82px; resize: vertical; padding: 12px 14px; font: inherit; font-size: 12px; line-height: 1.5; color: #fff; background: #ffffff06; border: 1px solid #ffffff24; border-radius: 12px; }
.archibox-request textarea::placeholder { color: #a1a1a9; }
.archibox-request textarea:focus-visible, .archibox-contact-actions a:focus-visible { outline: 2px solid var(--iris); outline-offset: 4px; }
.archibox-contact-actions { display: flex; align-items: flex-start; flex-direction: column; gap: 15px; margin-top: 18px; }
.archibox-contact-actions a { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; font-size: 12px; }
.archibox-contact-actions .primary-button { background: #3158ff; border-color: #3158ff; border-radius: 26px; padding: 13px 18px; }
.contact-conversation { color: var(--mist); }
.contact-conversation:hover { color: #fff; }
.contact-number { color: var(--ash); font-size: 10px; letter-spacing: .06em; margin-top: 17px; }
.module-immersive-stage[data-module="solicitar-sistema"] .immersive-title { font-size: clamp(50px,5.8vw,86px); }
.module-immersive-stage[data-module="solicitar-sistema"] .immersive-developer { display: none; }
#overview-view .solutions-grid { margin-top: 10px; }
#overview-view .request-system-card { border-color: #496cff55; background: linear-gradient(110deg,#2448ff14,#8052ff07); }
#overview-view .request-system-card .eyebrow { color: #91a5ff; }
@media(max-width: 760px) {
  #overview-view .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  #overview-view .constellation { height: 340px; }
  .module-immersive-stage .immersive-content { padding: 30px 22px; }
  .module-immersive-stage .immersive-heading { left: 22px; width: calc(100% - 44px); max-width: calc(100% - 44px); padding-top: 30px; }
  .module-immersive-stage .immersive-title { font-size: clamp(40px, 9vw, 66px); max-width: 90%; margin: 15px 0; }
  .module-immersive-stage .immersive-description { margin-bottom: 8px; }
  .module-immersive-stage .immersive-current-status { margin-top: 8px; }
  .module-immersive-stage .immersive-module-nav { left: 22px; right: 22px; bottom: 22px; justify-content: center; }
  .module-immersive-stage .immersive-footer { display: none; }
  .module-immersive-stage[data-module="solicitar-sistema"] .immersive-title { font-size: 39px; margin-bottom: 12px; }
  .module-immersive-stage[data-module="solicitar-sistema"] .immersive-description { max-width: 340px; font-size: 12px; }
  .archibox-request { margin-top: 16px; max-width: 100%; }
  .archibox-request textarea { min-height: 64px; max-height: 100px; }
  .archibox-contact-actions { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
  .archibox-contact-actions .primary-button { padding: 11px 14px; }
  .archibox-contact-actions a { font-size: 11px; }
  .contact-number { margin-top: 12px; }
}

/* Native scroll story: a full-viewport sculpture, then a click-only registry. */
html { scrollbar-gutter: stable; }
body.overview-active #app-view { width: 100%; max-width: none; }
body.overview-active #app-view .topbar {
  position: fixed; inset: 0 0 auto; z-index: 12; height: 76px;
  padding: 14px clamp(22px, 4vw, 64px); border-bottom-color: rgba(255,255,255,.08);
  background: linear-gradient(#000e, #0009); backdrop-filter: blur(8px);
}
body.overview-active #app-view .main-content:has(#overview-view:not(.hidden)) { padding: 0; }
#overview-view { position: relative; height: 210svh; --story-progress: 0; --panel-reveal: 0; --intro-opacity: 1; }
#overview-view .overview-viewport { position: sticky; top: 0; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; background: #000; }
#overview-view #constellation-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; transform: none; opacity: 1; pointer-events: none; }
.overview-intro {
  position: absolute; z-index: 2; left: clamp(24px,4vw,64px); top: 26%; width: min(29%,430px);
  opacity: var(--intro-opacity); transform: translateY(calc(var(--story-progress) * -50px));
  background: radial-gradient(ellipse at 0 40%, #000c, #0006 50%, transparent 75%);
  pointer-events: auto;
}
.overview-intro[aria-hidden="true"] { pointer-events: none; visibility: hidden; }
.overview-intro h1 { font-size: clamp(38px,4vw,64px); line-height: 1.02; margin: 16px 0 20px; }
.overview-intro .eyebrow { font-size: 10px; }
.overview-intro .lede { max-width: 260px; font-size: 14px; line-height: 1.5; color: var(--mist); }
.story-explore { display: inline-flex; align-items: center; gap: 24px; border: 1px solid var(--line); border-radius: 28px; padding: 13px 17px; margin-top: 12px; background: #000b; color: #fff; font-size: 12px; }
.story-explore span { color: var(--amber); font-size: 20px; }
.story-explore:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
#overview-view .modules-panel {
  position: absolute; z-index: 3; left: clamp(24px,4vw,64px); top: 50%; width: min(37%,540px);
  max-height: calc(100svh - 154px); overflow-y: auto; scrollbar-width: thin;
  padding: 26px; border: 1px solid var(--line); border-radius: 22px;
  background: linear-gradient(140deg,#101017ed,#060609f2); backdrop-filter: blur(14px);
  opacity: var(--panel-reveal); transform: translateY(calc(-50% + (1 - var(--panel-reveal)) * 64px));
  box-shadow: 0 24px 70px #0008;
}
#overview-view .modules-panel[inert] { pointer-events: none; }
#overview-view .modules-panel .section-heading { display: block; margin: 0 0 18px; }
#overview-view .modules-panel .section-heading h2 { font-size: clamp(28px,3vw,42px); line-height: 1.05; margin-bottom: 12px; }
#overview-view .modules-panel .section-summary { max-width: 450px; font-size: 12px; color: var(--ash); }
#overview-view .modules-panel .module-grid { grid-template-columns: 1fr; gap: 10px; }
#overview-view .modules-panel .module-card { position: relative; min-height: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #ffffff03; cursor: pointer; }
#overview-view .modules-panel .module-card:hover { border-color: #8052ff80; background: #8052ff0d; }
#overview-view .modules-panel .module-card .eyebrow { margin-bottom: 6px; font-size: 9px; }
#overview-view .modules-panel .module-card h3 { font-size: clamp(23px,2.3vw,32px); margin: 0 0 10px; }
#overview-view .modules-panel .module-card p:not(.eyebrow) { display: none; }
#overview-view .modules-panel .module-meta { margin-top: 0; }
#overview-view .modules-panel .module-meta .ghost-button:disabled { display: none; }
.module-preview-action { display: flex; justify-content: space-between; align-items: center; color: var(--mist); font-size: 11px; margin-top: 15px; }
.module-preview-action span { color: var(--amber); font-size: 18px; }
.panel-tools { display: flex; flex-wrap: wrap; gap: 2px 8px; margin-top: 16px; }
.panel-tools .ghost-button { padding: 8px 0; font-size: 11px; }
.panel-tools #mfa-status { flex-basis: 100%; font-size: 10px; margin: 5px 0 0; color: var(--ash); }
.story-cue { position: absolute; z-index: 2; bottom: 35px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 15px; white-space: nowrap; text-transform: uppercase; letter-spacing: .18em; font-size: 9px; color: var(--mist); opacity: calc(1 - var(--story-progress)); pointer-events: none; }
.story-cue-line { display: block; height: 1px; width: 36px; background: var(--amber); }
.story-pagination { position: absolute; z-index: 2; bottom: 36px; right: clamp(24px,4vw,64px); display: grid; gap: 8px; width: 150px; color: var(--ash); font-size: 8px; letter-spacing: .13em; pointer-events: none; }
.story-pagination i { height: 2px; background: linear-gradient(to right, var(--iris) calc(var(--story-progress) * 100%), #ffffff26 0); }
#overview-view[data-step="brain"] .story-pagination span:first-child,
#overview-view[data-step="modules"] .story-pagination span:nth-child(2) { color: var(--white); }
@media(max-width: 760px) {
  body.overview-active #app-view .topbar { height: 96px; gap: 4px; padding: 10px 20px; flex-wrap: wrap; align-items: center; }
  body.overview-active .topbar .topnav { width: auto; order: 3; flex-basis: 100%; gap: 2px; }
  body.overview-active .topbar .nav-link { padding: 5px 10px 5px 0; font-size: 10px; }
  body.overview-active .topbar .account-name { max-width: 100px; font-size: 11px; }
  #overview-view .overview-viewport { min-height: 640px; }
  .overview-intro { top: auto; bottom: 100px; width: 85%; background: linear-gradient(90deg,#000c,transparent); }
  .overview-intro h1 { font-size: 38px; margin: 10px 0; }
  .overview-intro .lede { max-width: 280px; font-size: 12px; margin-bottom: 8px; }
  .story-explore { padding: 9px 14px; margin-top: 0; }
  #overview-view .modules-panel { top: auto; bottom: 30px; left: 20px; right: 20px; width: auto; max-height: 53svh; padding: 18px; transform: translateY(calc((1 - var(--panel-reveal)) * 40px)); }
  #overview-view .modules-panel .section-heading { margin-bottom: 12px; }
  #overview-view .modules-panel .section-heading h2 { font-size: 27px; margin-bottom: 8px; }
  #overview-view .modules-panel .section-summary { font-size: 10px; margin-bottom: 0; }
  #overview-view .modules-panel .module-card { padding: 12px 14px; }
  #overview-view .modules-panel .module-card h3 { font-size: 23px; margin-bottom: 7px; }
  .module-preview-action { margin-top: 7px; }
  .panel-tools { margin-top: 8px; }
  .story-pagination { display: none; }
  .story-cue { bottom: 24px; font-size: 8px; gap: 10px; }
}
@media(prefers-reduced-motion: reduce) {
  .overview-intro, #overview-view .modules-panel { transform: none; }
  #overview-view .modules-panel { top: 50%; transform: translateY(-50%); }
}
@media(max-width: 760px) and (prefers-reduced-motion: reduce) {
  #overview-view .modules-panel { top: auto; bottom: 30px; transform: none; }
}

/* Official ARCHI-BOX artwork: CSS only clips the transparent source padding. */
.brand-medallo { gap: 17px; letter-spacing: 0; }
.brand-medallo .platform-identity { border-right: 1px solid var(--line); padding-right: 17px; }
.brand-medallo .platform-identity strong { font-size: 22px; letter-spacing: .035em; font-weight: 600; }
.brand-medallo .platform-identity small { font-size: 8px; letter-spacing: .19em; color: var(--mist); }
.developer-identity { display: inline-flex; flex-direction: column; gap: 4px; }
.developer-identity > small, .brand .developer-identity > small { font-size: 7px; color: var(--ash); letter-spacing: .15em; margin: 0; font-weight: 500; line-height: 1.1; }
.archibox-lockup { display: inline-flex; align-items: center; gap: 7px; padding: 6px 8px; background: #f1f4ff; border-radius: 5px; width: max-content; }
.archibox-symbol { position: relative; width: 25px; aspect-ratio: 814 / 764; display: block; overflow: hidden; flex-shrink: 0; }
.archibox-symbol img { position: absolute; max-width: none; width: 132.678%; height: auto; left: -16.339%; top: -18.979%; }
.archibox-wordmark { position: relative; width: 108px; aspect-ratio: 985 / 166; display: block; overflow: hidden; }
.archibox-wordmark img { position: absolute; max-width: none; width: 109.645%; height: auto; left: -5.076%; top: -283.735%; }
.brand-large.brand-medallo { align-items: center; margin-bottom: 70px; }
.brand-large.brand-medallo .platform-identity strong { font-size: 36px; }
.brand-large.brand-medallo .platform-identity small { font-size: 10px; }
.immersive-developer { position: absolute; z-index: 2; left: clamp(28px,4.2vw,64px); bottom: 67px; pointer-events: none; }
.immersive-developer .archibox-lockup { padding: 5px 7px; }
@media(max-width: 760px) {
  .brand-medallo { gap: 10px; }
  .brand-medallo .platform-identity { padding-right: 10px; }
  .brand-medallo .platform-identity strong { font-size: 19px; }
  .brand-medallo .platform-identity small { font-size: 6px; }
  .archibox-symbol { width: 21px; }
  .archibox-wordmark { width: 88px; }
  .archibox-lockup { padding: 5px 6px; gap: 5px; }
  .developer-identity > small, .brand .developer-identity > small { font-size: 6px; }
  body.overview-active .topbar .account-name { display: none; }
  .immersive-developer { left: 22px; bottom: 112px; }
  .immersive-developer .archibox-symbol { width: 18px; }
  .immersive-developer .archibox-wordmark { width: 80px; }
}
