/* Bandal Finance v2 skin. Loads after style.css and only restyles it: tokens,
   LabVium-style surfaces and motion. Decorative layers are aria-hidden, never
   hold content, and every animation is opt-in through
   prefers-reduced-motion: no-preference and :root:not(.motion-paused). */

:root {
  --fx-ink: #221a33;
  --fx-heading: #2c2142;
  --fx-copy: #574b6b;
  --fx-muted: #6c6082;
  --fx-faint: #a59bb8;
  --fx-line: #ebe5f3;
  --fx-line-strong: #ddd2ea;
  --fx-bg: #f7f5fb;
  --fx-surface-soft: #fbf9fe;
  --fx-violet-50: #f5f0fe;
  --fx-violet-100: #ece3fc;
  --fx-violet-200: #ddcdf9;
  --fx-violet-300: #c4abf1;
  --fx-violet-400: #a585ec;
  --fx-violet-500: #8b5cf6;
  --fx-violet-600: #7442d8;
  --fx-violet-700: #5d33b3;
  --fx-up: #0e7a5a;
  --fx-up-soft: #e4f6ef;
  --fx-down: #b8325c;
  --fx-down-soft: #fdedf3;
  --fx-mint: #34d399;
  --fx-gradient: linear-gradient(125deg, #8b5cf6 0%, #7c3aed 46%, #5b5bd6 100%);
  --fx-gradient-text: linear-gradient(100deg, #6d28d9 0%, #a855f7 26%, #6366f1 52%, #10b981 74%, #6d28d9 100%);
  --fx-gradient-ink: linear-gradient(120deg, #3b2370 0%, #6d28d9 55%, #4f46e5 100%);
  --fx-shadow-xs: 0 1px 2px rgb(34 26 51 / 0.05);
  --fx-shadow-sm: 0 1px 2px rgb(34 26 51 / 0.04), 0 10px 24px -14px rgb(76 29 149 / 0.3);
  --fx-shadow-md: 0 2px 8px rgb(34 26 51 / 0.05), 0 24px 44px -22px rgb(76 29 149 / 0.4);
  --fx-shadow-glow: 0 10px 26px -10px rgb(124 58 237 / 0.6);
  --fx-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --fx-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --fx-topbar: 68px;
  --fx-gutter: clamp(20px, 3.4vw, 48px);
}

/* ---------- Base ---------- */
body {
  background: var(--fx-bg);
  color: var(--fx-ink);
  font-family:
    "Pretendard Variable",
    Pretendard,
    FinanceSans,
    -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    "Segoe UI",
    sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(60rem 36rem at 92% -12%, rgb(167 139 250 / 0.2), transparent 62%),
    radial-gradient(48rem 32rem at -8% 108%, rgb(99 102 241 / 0.12), transparent 62%);
}
::selection {
  background: var(--fx-violet-200);
  color: var(--fx-ink);
}
:is(h1, h2, h3, h4, p, li) {
  word-break: keep-all;
  overflow-wrap: break-word;
}
input,
select,
textarea {
  border-color: var(--fx-line-strong);
  border-radius: 12px;
  color: var(--fx-ink);
  transition:
    border-color 0.2s,
    box-shadow 0.25s,
    background-color 0.2s;
}
input:hover,
select:hover,
textarea:hover {
  border-color: var(--fx-violet-300);
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--fx-violet-500);
  box-shadow: 0 0 0 4px rgb(139 92 246 / 0.16);
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--fx-violet-500);
  outline-offset: 3px;
}
select,
.explorer-controls select,
.field > select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 38px;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%237442d8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 12px center / 14px;
  cursor: pointer;
}
.skip {
  border-radius: 999px;
  background: var(--fx-gradient);
  color: #fff;
  font-weight: 650;
  padding: 10px 16px;
}

/* ---------- Sidebar ---------- */
.sidebar {
  border-right: 1px solid var(--fx-line);
  background: rgb(255 255 255 / 0.74);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  padding: 30px 18px 22px;
}
.brand {
  color: var(--fx-heading);
}
.brand-mark {
  background: var(--fx-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-mark span {
  color: var(--fx-violet-400);
  transition: rotate 0.8s var(--fx-ease-spring);
}
.brand:hover .brand-mark span {
  rotate: 180deg;
}
.brand-sub {
  color: var(--fx-muted);
}
.nav-label {
  margin: 48px 12px 14px;
  color: var(--fx-muted);
  font-weight: 650;
}
.tabs {
  position: relative;
  gap: 6px;
}
.tab {
  position: relative;
  z-index: 1;
  padding: 11px 12px;
  border-radius: 16px;
  color: var(--fx-muted);
  transition:
    color 0.25s,
    background-color 0.25s,
    box-shadow 0.25s;
}
.tab > span:first-child {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--fx-violet-50);
  color: var(--fx-violet-600);
  font-size: 19px;
  box-shadow: inset 0 0 0 1px rgb(124 58 237 / 0.12);
  transition:
    background 0.3s,
    color 0.3s,
    box-shadow 0.3s,
    transform 0.45s var(--fx-ease-spring);
}
.tab > span:nth-child(2) {
  min-width: 0;
  color: var(--fx-heading);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tab small,
.tab.active small {
  color: var(--fx-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}
.tab .tab-arrow {
  color: var(--fx-violet-500);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition:
    opacity 0.25s,
    transform 0.35s var(--fx-ease-out);
}
.tab:hover {
  background: rgb(124 58 237 / 0.05);
}
.tab:hover .tab-arrow,
.tab.active .tab-arrow {
  opacity: 1;
  transform: none;
}
.tab:hover > span:first-child {
  transform: rotate(-6deg) scale(1.05);
}
.tab.active {
  background: #fff;
  color: var(--fx-violet-700);
  box-shadow: var(--fx-shadow-sm);
}
.tab.active > span:first-child {
  background: var(--fx-gradient);
  color: #fff;
  box-shadow: var(--fx-shadow-glow);
}
.tab.active > span:nth-child(2) {
  color: var(--fx-violet-700);
}
.tabs.has-indicator > .tab.active,
.tabs.has-indicator > .tab:hover {
  background: transparent;
  box-shadow: none;
}
.fx-indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  transition:
    transform 0.55s var(--fx-ease-out),
    width 0.55s var(--fx-ease-out),
    height 0.55s var(--fx-ease-out),
    opacity 0.2s;
}
.tabs > .fx-indicator {
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--fx-shadow-sm);
}
.sidebar-note {
  position: relative;
  overflow: hidden;
  padding: 18px 16px;
  border: 1px solid rgb(124 58 237 / 0.12);
  border-radius: 18px;
  background:
    radial-gradient(14rem 8rem at 100% 0%, rgb(167 139 250 / 0.22), transparent 70%),
    linear-gradient(140deg, #fff, var(--fx-violet-50));
  color: var(--fx-copy);
  font-size: 12px;
}
.sidebar-note strong {
  color: var(--fx-heading);
  font-size: 13px;
}
.sidebar-note p {
  color: var(--fx-copy);
}
.secure-dot,
.status-dot {
  width: 7px;
  height: 7px;
  background: var(--fx-mint);
  box-shadow: 0 0 0 0 rgb(52 211 153 / 0.5);
}
.back-link {
  color: var(--fx-muted);
  font-weight: 600;
  transition: color 0.2s;
}
.back-link:hover {
  color: var(--fx-violet-700);
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  height: var(--fx-topbar);
  padding: 0 var(--fx-gutter);
  border-bottom: 1px solid transparent;
  background: rgb(247 245 251 / 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    background-color 0.3s;
}
.topbar.is-scrolled {
  border-bottom-color: var(--fx-line);
  background: rgb(255 255 255 / 0.84);
  box-shadow: 0 10px 28px -22px rgb(76 29 149 / 0.45);
}
.breadcrumb {
  color: var(--fx-muted);
  font-weight: 600;
}
.breadcrumb strong {
  color: var(--fx-heading);
  font-size: 14px;
  font-weight: 700;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--fx-line-strong);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.8);
  color: var(--fx-muted);
  font-size: 12.5px;
  font-weight: 650;
  transition:
    border-color 0.2s,
    color 0.2s,
    background-color 0.2s;
}
.motion-toggle:hover:not(:disabled) {
  border-color: var(--fx-violet-300);
  color: var(--fx-violet-700);
}
.motion-toggle[aria-pressed="true"] {
  border-color: var(--fx-violet-300);
  background: var(--fx-violet-50);
  color: var(--fx-violet-700);
}
.motion-toggle:disabled {
  cursor: default;
  opacity: 0.7;
}
.session {
  color: var(--fx-muted);
  font-size: 13px;
}
.session-user {
  color: var(--fx-heading);
  font-weight: 650;
}
.session a.signout {
  color: var(--fx-muted);
  font-size: 12.5px;
}
.session a.signout:hover {
  color: var(--fx-violet-700);
}

main {
  padding: 32px var(--fx-gutter) 56px;
}

/* ---------- Hero ---------- */
body[data-finance-tab] .page-intro {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "text art" "tape tape";
  align-items: center;
  gap: 0 clamp(16px, 3vw, 40px);
  min-height: 0;
  margin-bottom: 40px;
  padding: clamp(28px, 4vw, 52px) clamp(22px, 4vw, 52px);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.95);
  border-radius: 28px;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.96), rgb(250 247 255 / 0.78));
  box-shadow:
    0 1px 2px rgb(34 26 51 / 0.04),
    0 30px 60px -38px rgb(76 29 149 / 0.42);
}
.intro-text {
  grid-area: text;
  position: relative;
  z-index: 1;
  min-width: 0;
}
.page-intro .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 5px 13px 5px 10px;
  border: 1px solid rgb(124 58 237 / 0.18);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.82);
  color: var(--fx-violet-700);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.page-intro .eyebrow::before {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  content: "";
  background: var(--fx-gradient);
}
body[data-finance-tab] .page-intro h1 {
  color: var(--fx-heading);
  font-size: clamp(34px, 1.6rem + 2.4vw, 58px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.05em;
}
body[data-finance-tab="research"] .page-intro h1 {
  font-size: clamp(30px, 1.4rem + 2vw, 48px);
}
.page-intro h1 span {
  background: var(--fx-gradient-text);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
body[data-finance-tab] .intro-copy {
  max-width: 34rem;
  margin-top: 18px;
  color: var(--fx-copy);
  font-size: 15px;
  line-height: 1.85;
}
.intro-aura {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.intro-aura::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgb(124 58 237 / 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(124 58 237 / 0.07) 1px, transparent 1px);
  background-size: 2.5rem 2.5rem;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 28% 0%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 70% at 28% 0%, #000 10%, transparent 72%);
}
.intro-aura > span {
  position: absolute;
  border-radius: 50%;
}
.intro-aura > span:nth-child(1) {
  top: -15rem;
  right: -8rem;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle, rgb(167 139 250 / 0.5), transparent 66%);
}
.intro-aura > span:nth-child(2) {
  bottom: -17rem;
  left: 26%;
  width: 30rem;
  height: 30rem;
  background: radial-gradient(circle, rgb(129 140 248 / 0.34), transparent 66%);
}
.intro-aura > span:nth-child(3) {
  top: 12%;
  left: -13rem;
  width: 25rem;
  height: 25rem;
  background: radial-gradient(circle, rgb(52 211 153 / 0.2), transparent 66%);
}

/* Orbit illustration: the original drawing, with lights travelling the rings. */
body[data-finance-tab] .intro-art {
  grid-area: art;
  display: block;
  position: relative;
  right: auto;
  top: auto;
  width: 300px;
  height: 216px;
  opacity: 1;
  transform: none;
  animation: none;
  translate: calc(var(--px, 0) * 8px) calc(var(--py, 0) * 6px);
  transition: translate 0.8s var(--fx-ease-out);
}
body[data-finance-tab="research"] .intro-art {
  scale: 0.86;
  margin-block: -14px;
}
.orbit {
  border-color: rgb(139 92 246 / 0.26);
}
.orbit-one {
  translate: calc(var(--px, 0) * -6px) calc(var(--py, 0) * -4px);
}
.orbit-two {
  translate: calc(var(--px, 0) * 5px) calc(var(--py, 0) * 4px);
  border-style: dashed;
}
.orbit::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  content: "";
  background: #a78bfa;
  box-shadow:
    0 0 0 4px rgb(167 139 250 / 0.18),
    0 0 16px 3px rgb(139 92 246 / 0.55);
  offset-path: path("M 0 70 A 145 70 0 1 1 290 70 A 145 70 0 1 1 0 70");
  offset-rotate: 0deg;
}
.orbit-two::after {
  width: 7px;
  height: 7px;
  background: var(--fx-mint);
  box-shadow:
    0 0 0 4px rgb(52 211 153 / 0.16),
    0 0 14px 3px rgb(16 185 129 / 0.5);
  offset-path: path("M 0 92 A 120 92 0 1 1 240 92 A 120 92 0 1 1 0 92");
}
.art-core {
  translate: calc(var(--px, 0) * 10px) calc(var(--py, 0) * 8px);
  background: radial-gradient(circle at 35% 25%, #fff 0, #e4d7fb 46%, #a78bfa 100%);
  box-shadow:
    0 18px 40px -8px rgb(124 58 237 / 0.45),
    inset 0 0 18px rgb(255 255 255 / 0.7);
}
.art-chip {
  border-color: rgb(124 58 237 / 0.14);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 26px -14px rgb(76 29 149 / 0.45);
  color: var(--fx-violet-700);
  font-size: 12.5px;
}
.art-chip i {
  color: var(--fx-violet-400);
}

/* Company tape: snapshot tickers from the atlas, shown on the research tab. */
.atlas-tape {
  grid-area: tape;
  position: relative;
  z-index: 1;
  margin: 26px calc(-1 * clamp(22px, 4vw, 52px)) calc(-1 * clamp(28px, 4vw, 52px));
  padding: 12px 0 14px;
  border-top: 1px solid rgb(124 58 237 / 0.1);
  background: rgb(255 255 255 / 0.56);
}
body:not([data-finance-tab="research"]) .atlas-tape {
  display: none;
}
.atlas-tape-label {
  margin: 0 clamp(22px, 4vw, 52px) 9px;
  color: var(--fx-muted);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.atlas-tape-window {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.atlas-tape-track {
  display: flex;
  width: max-content;
}
.atlas-tape-list {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0 5px;
  list-style: none;
}
.atlas-tape-list > li {
  flex: none;
}
.atlas-tape-list button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 6px;
  border: 1px solid var(--fx-line);
  border-radius: 999px;
  background: #fff;
  color: var(--fx-heading);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  box-shadow: var(--fx-shadow-xs);
  transition:
    border-color 0.2s,
    box-shadow 0.25s,
    transform 0.3s var(--fx-ease-out);
}
.atlas-tape-list button:hover {
  border-color: var(--fx-violet-300);
  box-shadow: var(--fx-shadow-sm);
  transform: translateY(-2px);
}
.atlas-tape-list b {
  font-weight: 800;
  letter-spacing: -0.02em;
}
.atlas-tape-list .tape-value {
  color: var(--fx-muted);
}
.atlas-tape .company-logo.compact {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border-color: var(--fx-line);
}
.atlas-tape .company-logo.compact img {
  padding: 4px;
}

/* ---------- Section headings ---------- */
.section-heading {
  align-items: flex-end;
  margin-bottom: 24px;
}
.section-heading .eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--fx-violet-50);
  color: var(--fx-violet-700);
  font-size: 11.5px;
  letter-spacing: 0.12em;
}
body[data-finance-tab="research"] #view-research > .section-heading .eyebrow {
  display: none;
}
.section-heading h2,
body[data-finance-tab] #view-research > .section-heading h2 {
  color: var(--fx-heading);
  font-size: clamp(22px, 1.05rem + 1vw, 30px);
  font-weight: 780;
  letter-spacing: -0.04em;
}
.section-heading p:not(.eyebrow) {
  max-width: 44rem;
  color: var(--fx-copy);
  font-size: 14.5px;
}
.eyebrow,
.panel-heading .eyebrow,
.price-panel-heading .eyebrow,
.dcf-result .eyebrow {
  color: var(--fx-violet-600);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

/* ---------- Buttons ---------- */
.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 12px;
  background: var(--fx-gradient);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  padding: 11px 18px;
  box-shadow: var(--fx-shadow-glow);
  transition:
    transform 0.25s var(--fx-ease-out),
    box-shadow 0.25s,
    filter 0.25s,
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.button:hover {
  background: var(--fx-gradient);
  filter: brightness(1.07);
  box-shadow: 0 16px 32px -14px rgb(124 58 237 / 0.72);
}
.button:active:not(:disabled) {
  transform: scale(0.98);
}
.button::after {
  position: absolute;
  inset: 0 auto 0 -60%;
  z-index: -1;
  width: 45%;
  content: "";
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.38), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.button.secondary {
  border: 1px solid var(--fx-line-strong);
  background: rgb(255 255 255 / 0.92);
  color: var(--fx-violet-700);
  box-shadow: var(--fx-shadow-xs);
}
.button.secondary:hover {
  border-color: var(--fx-violet-300);
  background: #fff;
  box-shadow: var(--fx-shadow-sm);
  filter: none;
}
.button.secondary::after,
.button.danger-quiet::after {
  display: none;
}
.button.small {
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 12.5px;
}
/* style.css lets its later .button background override these two variants. */
.button.danger-quiet {
  background: transparent;
  color: var(--fx-down);
  box-shadow: none;
}
.button.danger-quiet:hover {
  background: var(--fx-down-soft);
  filter: none;
  box-shadow: none;
}
.button.live-button,
.button.live-button:hover {
  background: linear-gradient(125deg, #e0457b, #b8325c);
  box-shadow: 0 10px 26px -10px rgb(184 50 92 / 0.6);
}
.button:disabled {
  filter: grayscale(0.25);
  box-shadow: none;
}
.login-card .button,
.login-card .button:hover {
  background: #fff;
  color: var(--fx-violet-700);
  box-shadow: 0 14px 30px -14px rgb(0 0 0 / 0.55);
}
.privacy-badge,
.pill {
  border-color: rgb(124 58 237 / 0.16);
  background: rgb(255 255 255 / 0.85);
  color: var(--fx-violet-700);
  font-weight: 600;
}
.pill {
  font-size: 12px;
  padding: 4px 11px;
}

/* ---------- Research: search, chips, modes ---------- */
.search-form {
  gap: 14px;
  padding: 8px 8px 8px 20px;
  border: 1px solid var(--fx-line-strong);
  border-radius: 18px;
  background: rgb(255 255 255 / 0.94);
  box-shadow: var(--fx-shadow-sm);
  transition:
    border-color 0.25s,
    box-shadow 0.3s;
}
.search-form:focus-within {
  border-color: var(--fx-violet-400);
  box-shadow:
    0 0 0 4px rgb(139 92 246 / 0.14),
    var(--fx-shadow-md);
}
.search-form > span {
  color: var(--fx-violet-500);
  font-size: 24px;
}
.search-form input {
  padding: 10px 0;
  font-size: 15px;
}
.search-form input::placeholder {
  color: var(--fx-faint);
}
.search-form .button {
  padding: 12px 22px;
  border-radius: 13px;
}
.quick-search {
  gap: 8px;
  margin: 14px 2px 28px;
  color: var(--fx-muted);
  font-size: 13px;
}
.quick-search button {
  padding: 6px 13px;
  border: 1px solid var(--fx-line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--fx-violet-700);
  font-size: 13px;
  font-weight: 600;
  transition:
    background-color 0.25s,
    color 0.25s,
    border-color 0.25s,
    box-shadow 0.25s,
    transform 0.3s var(--fx-ease-out);
}
.quick-search button:hover {
  border-color: transparent;
  background: var(--fx-violet-600);
  color: #fff;
  box-shadow: var(--fx-shadow-glow);
}
.search-results {
  margin: -12px 0 24px;
  padding: 8px;
  border-color: var(--fx-line);
  border-radius: 18px;
  box-shadow: var(--fx-shadow-md);
}
.search-result {
  border-radius: 12px;
  color: var(--fx-copy);
  transition: background-color 0.2s;
}
.search-result:hover {
  background: var(--fx-violet-50);
}
.search-result strong {
  color: var(--fx-violet-700);
  font-size: 14px;
}
.search-result span {
  font-size: 13.5px;
}
.search-result i {
  color: var(--fx-violet-400);
  transition: transform 0.3s var(--fx-ease-out);
}
.search-result:hover i {
  transform: translate(3px, -3px);
}
.explorer-modes {
  position: relative;
  gap: 4px;
  margin: 26px 0 20px;
  padding: 5px;
  border: 1px solid rgb(124 58 237 / 0.08);
  border-radius: 16px;
  background: rgb(124 58 237 / 0.07);
}
.explorer-modes > button {
  position: relative;
  z-index: 1;
  padding: 10px 18px;
  border-radius: 12px;
  color: var(--fx-muted);
  font-size: 14px;
  font-weight: 650;
  transition: color 0.3s;
}
.explorer-modes > button small {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
}
.explorer-modes > button:hover {
  color: var(--fx-violet-700);
}
.explorer-modes > button.active {
  color: var(--fx-violet-700);
}
.explorer-modes.has-indicator > button.active {
  background: transparent;
  box-shadow: none;
}
.explorer-modes > .fx-indicator {
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--fx-shadow-sm);
}
.explorer-controls label {
  color: var(--fx-muted);
  font-weight: 600;
}
.explorer-controls select {
  min-width: 150px;
  font-size: 14px;
  padding-block: 10px;
}
.explorer-controls > p {
  color: var(--fx-muted);
  font-size: 13px;
}

/* ---------- Company atlas ---------- */
.company-atlas {
  gap: 18px;
}
.atlas-card {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--fx-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--fx-shadow-xs);
  transition:
    transform 0.45s var(--fx-ease-out),
    box-shadow 0.45s var(--fx-ease-out),
    border-color 0.3s;
}
.atlas-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: var(--fx-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--fx-ease-out);
}
:is(.atlas-card, .metric-card, .feature-strip > div, .glossary-card, .swot-card, .result-metrics > div)::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  border-radius: inherit;
  background: radial-gradient(18rem circle at var(--mx, 50%) var(--my, -20%), rgb(139 92 246 / 0.11), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
:is(.atlas-card, .metric-card, .feature-strip > div, .glossary-card, .swot-card, .result-metrics > div):hover::after {
  opacity: 1;
}
.atlas-card:hover,
.atlas-card:focus-within {
  border-color: rgb(124 58 237 / 0.28);
  box-shadow: var(--fx-shadow-md);
}
.atlas-card:hover::before,
.atlas-card:focus-within::before {
  transform: scaleX(1);
}
.atlas-card-top {
  padding: 16px 18px 0;
}
.atlas-rank {
  color: var(--fx-muted);
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.sector-tag {
  border-color: transparent;
  background: var(--fx-violet-50);
  color: var(--fx-violet-700);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
}
.compare-add {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-color: var(--fx-line-strong);
  color: var(--fx-violet-600);
  font-size: 16px;
  line-height: 1;
  transition:
    transform 0.45s var(--fx-ease-spring),
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.compare-add:hover {
  border-color: transparent;
  background: var(--fx-violet-600);
  color: #fff;
  transform: rotate(90deg);
}
.atlas-open {
  padding: 14px 18px 16px;
  color: var(--fx-heading);
}
.atlas-ticker {
  color: var(--fx-heading);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.045em;
}
.atlas-open > strong {
  min-height: 0;
  margin: 8px 0 18px;
  color: var(--fx-muted);
  font-size: 13.5px;
  font-weight: 500;
}
.atlas-value {
  background: var(--fx-gradient-ink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.atlas-value-label {
  color: var(--fx-muted);
  font-size: 12.5px;
}
.atlas-card-foot {
  margin-top: 16px;
  color: var(--fx-violet-700);
  font-size: 13px;
  font-weight: 650;
}
.atlas-card-foot > span {
  color: var(--fx-violet-600);
  transition: transform 0.3s var(--fx-ease-out);
}
.atlas-open:hover .atlas-card-foot > span {
  transform: translate(3px, -3px);
}
.atlas-sources {
  padding: 0 18px 16px;
  color: var(--fx-muted);
}
.atlas-sources > .value-source,
.atlas-sources > .value-source > span {
  font-size: 11.5px;
}
.company-logo {
  border-color: var(--fx-line);
  box-shadow: var(--fx-shadow-xs);
}
.compare-tray {
  border-color: rgb(124 58 237 / 0.2);
  border-radius: 18px;
  background: rgb(255 255 255 / 0.88);
  box-shadow: 0 18px 40px -18px rgb(76 29 149 / 0.5);
}
.compare-chip {
  background: var(--fx-violet-50);
  color: var(--fx-violet-700);
  font-size: 13px;
}

/* ---------- Company profile ---------- */
#company-content {
  scroll-margin-top: calc(var(--fx-topbar) + 16px);
}
.profile-breadcrumb > button {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border: 1px solid var(--fx-line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--fx-violet-700);
  font-size: 13px;
  font-weight: 650;
  transition:
    border-color 0.2s,
    box-shadow 0.25s;
}
.profile-breadcrumb > button:hover {
  border-color: var(--fx-violet-300);
  box-shadow: var(--fx-shadow-sm);
}
.profile-breadcrumb > span {
  color: var(--fx-muted);
  font-weight: 650;
}
.company-identity h3 {
  color: var(--fx-heading);
  font-size: clamp(24px, 1.1rem + 1.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.045em;
}
.company-identity p {
  color: var(--fx-muted);
}
.company-header .company-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  box-shadow: 0 14px 30px -16px rgb(76 29 149 / 0.45);
}
.company-quote > strong,
.price-current > strong {
  color: var(--fx-heading);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.company-quote > span:not(.value-source) {
  color: var(--fx-muted);
}
.value-source a {
  color: var(--fx-violet-700);
  text-decoration-color: var(--fx-violet-300);
}
.value-source > span {
  color: var(--fx-muted);
}
.profile-tabs {
  top: var(--fx-topbar);
  gap: 2px;
  border-bottom-color: var(--fx-line-strong);
  background: rgb(247 245 251 / 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  scrollbar-width: none;
}
.profile-tabs::-webkit-scrollbar {
  display: none;
}
.profile-tabs > button {
  position: relative;
  z-index: 1;
  color: var(--fx-muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.25s;
}
.profile-tabs > button:hover,
.profile-tabs > button[aria-selected="true"] {
  color: var(--fx-violet-700);
}
.profile-tabs.has-indicator > button[aria-selected="true"] {
  border-bottom-color: transparent;
}
.profile-tabs > .fx-indicator {
  top: auto;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--fx-gradient);
}
.panel {
  border-color: var(--fx-line);
  border-radius: 22px;
  box-shadow: var(--fx-shadow-xs);
}
.panel-heading h3 {
  color: var(--fx-heading);
  font-size: 19px;
  font-weight: 760;
}
.company-story {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(26rem 16rem at 100% 0%, rgb(167 139 250 / 0.16), transparent 70%),
    linear-gradient(135deg, #fff, var(--fx-surface-soft));
}
.company-story h3 {
  color: var(--fx-heading);
  font-size: 21px;
}
.company-story p:not(.eyebrow) {
  color: var(--fx-copy);
  font-size: 15px;
}
.company-story-facts {
  border-left-color: var(--fx-line-strong);
}
.company-story-facts small {
  color: var(--fx-muted);
}
.company-story-facts strong {
  color: var(--fx-heading);
  font-size: 14px;
}
.metrics-grid {
  gap: 14px;
}
.metric-card {
  isolation: isolate;
  border-color: var(--fx-line);
  border-radius: 18px;
  box-shadow: var(--fx-shadow-xs);
  transition:
    transform 0.4s var(--fx-ease-out),
    box-shadow 0.4s var(--fx-ease-out),
    border-color 0.3s;
}
.metric-card:hover {
  border-color: rgb(124 58 237 / 0.24);
  box-shadow: var(--fx-shadow-sm);
}
.metric-card:has(.metric-info[open]) {
  z-index: 3;
}
.metric-card .label,
.company-tab-panel .metric-card .label {
  color: var(--fx-muted);
  font-size: 13px;
  font-weight: 600;
}
.metric-card strong,
.company-tab-panel .metric-card strong {
  color: var(--fx-heading);
  font-weight: 800;
}
.metric-unavailable {
  color: var(--fx-faint) !important;
}
.metric-info > summary {
  border-color: var(--fx-violet-300);
  color: var(--fx-violet-600);
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.35s var(--fx-ease-spring);
}
.metric-info[open] > summary,
.metric-info:hover > summary,
.metric-info:focus-within > summary {
  border-color: var(--fx-violet-600);
  background: var(--fx-violet-600);
  transform: scale(1.12);
}
.metric-info > .info-content {
  border-color: var(--fx-line-strong);
  border-radius: 16px;
  box-shadow: 0 24px 48px -20px rgb(46 16 101 / 0.45);
}
.info-content > p {
  color: var(--fx-copy);
  font-size: 13px;
}
.spark-line,
.price-line {
  stroke: var(--fx-violet-500);
}
.spark-dot {
  stroke: var(--fx-violet-600);
}
.price-range {
  position: relative;
  border-color: var(--fx-line);
  border-radius: 12px;
  background: var(--fx-violet-50);
}
.price-range > button {
  position: relative;
  z-index: 1;
  border-radius: 8px;
  color: var(--fx-muted);
  font-weight: 650;
  transition: color 0.25s;
}
.price-range > button[aria-pressed="true"] {
  background: var(--fx-violet-600);
}
.price-range.has-indicator > button[aria-pressed="true"] {
  background: transparent;
  color: #fff;
}
.price-range > .fx-indicator {
  border-radius: 8px;
  background: var(--fx-gradient);
  box-shadow: var(--fx-shadow-glow);
}
.price-change {
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 700;
}
.price-change.positive {
  background: var(--fx-up-soft);
  color: var(--fx-up);
}
.price-change.negative {
  background: var(--fx-down-soft);
  color: var(--fx-down);
}
.price-change.positive::before {
  content: "▲ ";
  font-size: 0.75em;
}
.price-change.negative::before {
  content: "▼ ";
  font-size: 0.75em;
}
.flow-edge {
  stroke: #c9b3f2;
}
.flow-particle {
  fill: var(--fx-violet-500);
}
.flow-node rect {
  fill: #fbf8ff;
  stroke: var(--fx-violet-200);
}
.flow-node.revenue rect {
  fill: #7c3aed;
  stroke: #6d28d9;
}
.swot-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  border-color: var(--fx-line);
}
.swot-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  background: var(--fx-violet-400);
}
.swot-card:nth-child(1)::before {
  background: #10b981;
}
.swot-card:nth-child(2)::before {
  background: #f59e0b;
}
.swot-card:nth-child(4)::before {
  background: #e0457b;
}
.swot-card h4 {
  color: var(--fx-heading);
  font-size: 14px;
}
.swot-card ul {
  color: var(--fx-copy);
  font-size: 13px;
}
.glossary-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: var(--fx-line);
  border-radius: 18px;
  transition:
    border-color 0.3s,
    box-shadow 0.4s var(--fx-ease-out),
    transform 0.4s var(--fx-ease-out);
}
.glossary-card:hover,
.glossary-card[open] {
  border-color: rgb(124 58 237 / 0.24);
  box-shadow: var(--fx-shadow-sm);
}
.glossary-card summary > span {
  background: var(--fx-gradient-ink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}
.glossary-card summary > strong {
  color: var(--fx-copy);
  font-size: 14px;
}
.glossary-card summary > i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--fx-violet-50);
  color: var(--fx-violet-600);
  transition:
    transform 0.4s var(--fx-ease-spring),
    background 0.25s,
    color 0.25s;
}
.glossary-card[open] summary > i {
  background: var(--fx-violet-600);
  color: #fff;
  transform: rotate(45deg);
}
.glossary-card > p {
  color: var(--fx-copy);
  font-size: 14px;
}
.glossary-header h3 {
  color: var(--fx-heading);
  font-size: clamp(22px, 1rem + 1vw, 28px);
}
.financial-table tbody tr,
.comparison-table tbody tr {
  transition: background-color 0.2s;
}
.financial-table tbody tr:hover,
.comparison-table tbody tr:hover {
  background: var(--fx-surface-soft);
}
.financial-table td:nth-child(2) {
  color: var(--fx-heading);
}
.dcf-result {
  border-color: rgb(124 58 237 / 0.18);
  border-radius: 18px;
  background: radial-gradient(20rem 10rem at 100% 0%, rgb(167 139 250 / 0.2), transparent 70%), var(--fx-violet-50);
}
.dcf-value {
  background: var(--fx-gradient-ink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 40px;
  font-weight: 800;
}
.dcf-value small {
  -webkit-text-fill-color: var(--fx-muted);
  color: var(--fx-muted);
}

/* ---------- Quant ---------- */
.login-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(44px, 7vw, 76px) 24px;
  border: 0;
  border-radius: 28px;
  background:
    radial-gradient(38rem 22rem at 100% 0%, rgb(167 139 250 / 0.5), transparent 62%),
    radial-gradient(30rem 20rem at 0% 110%, rgb(99 102 241 / 0.45), transparent 62%),
    linear-gradient(135deg, #1b1236 0%, #2e1065 55%, #312e81 100%);
  box-shadow: 0 36px 70px -36px rgb(46 16 101 / 0.75);
}
.login-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background-image: radial-gradient(rgb(255 255 255 / 0.14) 1px, transparent 1px);
  background-size: 1.5rem 1.5rem;
  -webkit-mask-image: linear-gradient(120deg, transparent 15%, #000 55%, transparent 95%);
  mask-image: linear-gradient(120deg, transparent 15%, #000 55%, transparent 95%);
}
.lock-symbol {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 24px;
  background: rgb(255 255 255 / 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #e9d5ff;
  font-size: 34px;
}
.login-card h3 {
  color: #fff;
  font-size: clamp(22px, 1rem + 1.2vw, 30px);
  font-weight: 800;
}
.login-card p {
  color: rgb(255 255 255 / 0.8);
  font-size: 15px;
}
.result-metrics > div {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: var(--fx-line);
  border-radius: 14px;
  background: #fff;
}
.result-metrics strong,
.return-number {
  color: var(--fx-heading);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.equity-chart {
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, var(--fx-violet-50));
}
.chart-line {
  stroke: var(--fx-violet-500);
  stroke-width: 2.6;
}
.chart-fill {
  fill: rgb(139 92 246 / 0.14);
}
.defense-fields {
  border-color: var(--fx-line);
  border-radius: 16px;
}
.defense-grid label {
  font-weight: 700;
}
.defense-grid label:nth-child(1) input {
  border-top: 3px solid #c4b5fd;
}
.defense-grid label:nth-child(2) input {
  border-top: 3px solid #a78bfa;
}
.defense-grid label:nth-child(3) input {
  border-top: 3px solid #c084fc;
}
.defense-grid label:nth-child(4) input {
  border-top: 3px solid #e879a9;
}
.defense-grid label:nth-child(5) input {
  border-top: 3px solid #e0457b;
}
.run-row,
.connection-row,
.share-row {
  border-bottom-color: var(--fx-line);
}
.run-row strong,
.connection-row strong,
.share-row strong {
  color: var(--fx-heading);
  font-size: 14px;
}
.share-url {
  border-color: rgb(124 58 237 / 0.2);
  border-radius: 12px;
  background: var(--fx-violet-50);
  color: var(--fx-violet-700);
}

/* ---------- Ledger ---------- */
.feature-strip {
  gap: 16px;
}
.feature-strip > div {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: var(--fx-line);
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: var(--fx-shadow-xs);
  transition:
    transform 0.4s var(--fx-ease-out),
    box-shadow 0.4s var(--fx-ease-out),
    border-color 0.3s;
}
.feature-strip > div:hover {
  border-color: rgb(124 58 237 / 0.24);
  box-shadow: var(--fx-shadow-md);
}
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--fx-violet-50);
  color: var(--fx-violet-600);
  box-shadow: inset 0 0 0 1px rgb(124 58 237 / 0.12);
  transition:
    background 0.3s,
    color 0.3s,
    box-shadow 0.3s,
    transform 0.45s var(--fx-ease-spring);
}
.feature-strip > div:hover .feature-icon {
  background: var(--fx-gradient);
  color: #fff;
  box-shadow: var(--fx-shadow-glow);
  transform: rotate(-6deg) scale(1.06);
}
.feature-strip strong {
  color: var(--fx-heading);
  font-size: 14.5px;
  font-weight: 700;
}
.feature-strip small {
  color: var(--fx-copy);
  font-size: 12.5px;
}
.ledger-frame-wrap {
  border-color: var(--fx-line);
  border-radius: 22px;
  box-shadow: var(--fx-shadow-md);
}
.frame-label {
  padding: 13px 20px;
  border-bottom-color: var(--fx-line);
  background: linear-gradient(90deg, #fff, var(--fx-violet-50));
  color: var(--fx-copy);
  font-size: 13px;
}
.frame-label a {
  color: var(--fx-violet-700);
  font-size: 12.5px;
  font-weight: 650;
}

/* ---------- Feedback ---------- */
.notice {
  border-color: rgb(124 58 237 / 0.16);
  border-radius: 14px;
  background: linear-gradient(135deg, #f8f4ff, #f3f4ff);
  color: var(--fx-violet-700);
  font-size: 13.5px;
  padding: 12px 16px;
}
.notice.error {
  border-color: #f4c3d4;
  background: var(--fx-down-soft);
  color: #a2244d;
}
.notice.success {
  border-color: #bde7d6;
  background: var(--fx-up-soft);
  color: #0b6b50;
}
.empty-state,
.empty-inline {
  border-color: var(--fx-line-strong);
  border-radius: 20px;
  background: rgb(255 255 255 / 0.7);
}
.empty-state h3 {
  color: var(--fx-heading);
}
.loading-state {
  color: var(--fx-muted);
  font-size: 14px;
}
.busy-indicator {
  border-color: var(--fx-violet-100);
  border-top-color: var(--fx-violet-500);
}
#toast {
  bottom: 28px;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(125deg, #2e1065, #4c1d95);
  font-size: 14px;
  box-shadow: 0 18px 40px -18px rgb(46 16 101 / 0.75);
  transform: translate(-50%, 14px) scale(0.96);
  transition:
    opacity 0.25s,
    transform 0.5s var(--fx-ease-spring);
}
#toast.visible {
  transform: translate(-50%, 0) scale(1);
}

/* ---------- Footer ---------- */
.footer-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.12em;
  margin: 48px var(--fx-gutter) 0;
  overflow: hidden;
  font-size: clamp(40px, 8.4vw, 128px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.footer-mark > span {
  background: linear-gradient(180deg, var(--fx-violet-200), rgb(221 205 249 / 0.15));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-mark > i {
  color: var(--fx-violet-300);
  font-size: 0.6em;
  font-style: normal;
}
.footer {
  margin: 0 var(--fx-gutter);
  border-top-color: var(--fx-line);
  color: var(--fx-muted);
  font-size: 12.5px;
}
.footer a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition:
    background-size 0.35s var(--fx-ease-out),
    color 0.2s;
}
.footer a:hover {
  background-size: 100% 1px;
  color: var(--fx-violet-700);
}

/* Global motion pause also stops the particle streams and smooth scrolling. */
:root.motion-paused {
  scroll-behavior: auto;
}
:root.motion-paused .flow-particle {
  display: none;
}
/* Without motion the tape is a plain scrollable row and its loop copy goes away. */
:root.motion-paused .atlas-tape-window {
  overflow-x: auto;
}
:root.motion-paused .atlas-tape-list + .atlas-tape-list {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .atlas-tape-window {
    overflow-x: auto;
  }
  .atlas-tape-list + .atlas-tape-list {
    display: none;
  }
}

/* ---------- Motion ---------- */
@keyframes fx-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
}
@keyframes fx-fade {
  from {
    opacity: 0;
  }
}
@keyframes fx-pop {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
}
@keyframes fx-drift-a {
  to {
    transform: translate3d(-5rem, 3rem, 0) scale(1.12);
  }
}
@keyframes fx-drift-b {
  to {
    transform: translate3d(6rem, -3rem, 0) scale(0.92);
  }
}
@keyframes fx-drift-c {
  to {
    transform: translate3d(4rem, -2rem, 0) scale(1.18);
  }
}
@keyframes fx-gradient-pan {
  to {
    background-position: 100% 50%;
  }
}
@keyframes fx-pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(124 58 237 / 0.5);
  }
  70%,
  100% {
    box-shadow: 0 0 0 0.55rem rgb(124 58 237 / 0);
  }
}
@keyframes fx-pulse-mint {
  0% {
    box-shadow: 0 0 0 0 rgb(52 211 153 / 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 0.5rem rgb(52 211 153 / 0);
  }
}
@keyframes fx-orbit {
  to {
    offset-distance: 100%;
  }
}
@keyframes fx-precess-a {
  from {
    transform: rotate(-25deg);
  }
  to {
    transform: rotate(-13deg);
  }
}
@keyframes fx-precess-b {
  from {
    transform: rotate(40deg);
  }
  to {
    transform: rotate(52deg);
  }
}
@keyframes fx-breathe {
  50% {
    box-shadow:
      0 22px 54px -6px rgb(124 58 237 / 0.6),
      inset 0 0 22px rgb(255 255 255 / 0.85);
    transform: rotate(-25deg) scale(1.05);
  }
}
@keyframes fx-bob {
  50% {
    translate: 0 -9px;
  }
}
@keyframes fx-twinkle {
  50% {
    opacity: 0.35;
  }
}
@keyframes fx-marquee {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}
@keyframes fx-shine {
  from {
    transform: skewX(-20deg) translateX(0);
  }
  to {
    transform: skewX(-20deg) translateX(420%);
  }
}
@keyframes fx-wipe {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes fx-draw {
  from {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }
  to {
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
  }
}
@keyframes fx-tray-in {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.97);
  }
}
@keyframes fx-moon {
  0%,
  100% {
    rotate: 0deg;
  }
  50% {
    rotate: -24deg;
  }
}
@keyframes fx-sheen {
  from {
    background-position: 0% 0;
  }
  to {
    background-position: 200% 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Entrances: content is fully visible at rest and whenever motion is off. */
  :root:not(.motion-paused) .intro-text > * {
    animation: fx-rise 0.8s var(--fx-ease-out) backwards;
  }
  :root:not(.motion-paused) .intro-text > :nth-child(2) {
    animation-delay: 90ms;
  }
  :root:not(.motion-paused) .intro-text > :nth-child(3) {
    animation-delay: 180ms;
  }
  :root:not(.motion-paused) .intro-art {
    animation: fx-pop 1s var(--fx-ease-out) 0.15s backwards;
  }
  :root:not(.motion-paused) .view:not([hidden]) {
    animation: fx-rise 0.6s var(--fx-ease-out) backwards;
  }
  :root:not(.motion-paused)
    :is(
      .atlas-card,
      .search-result,
      .glossary-card,
      .metric-card,
      .swot-card,
      .company-insights li,
      .run-row,
      .debt-instrument,
      .arr-grid > div,
      .outlook-grid > section,
      .result-metrics > div
    ) {
    animation: fx-rise 0.6s var(--fx-ease-out) backwards;
    animation-delay: calc(min(var(--i, 0), 12) * 45ms);
  }
  :root:not(.motion-paused)
    :is(
      .company-header,
      .profile-breadcrumb,
      .company-tab-panel:not([hidden]),
      .dcf-result,
      .notice:not([hidden]),
      .empty-state,
      .glossary-header
    ) {
    animation: fx-rise 0.55s var(--fx-ease-out) backwards;
  }
  :root:not(.motion-paused)
    :is(.login-card, .ledger-frame-wrap, .quant-grid > .panel, .runs-panel, .connection-panel, #runner-panel) {
    animation: fx-rise 0.7s var(--fx-ease-out) backwards;
    animation-delay: calc(min(var(--i, 0), 6) * 80ms + 120ms);
  }
  :root:not(.motion-paused) .compare-tray:not([hidden]) {
    animation: fx-tray-in 0.55s var(--fx-ease-spring) backwards;
  }
  :root:not(.motion-paused) .atlas-tape:not([hidden]) {
    animation: fx-fade 0.8s ease-out backwards;
  }

  /* Charts draw themselves when they are rendered. */
  :root:not(.motion-paused) :is(.price-line, .price-history-chart > path, .chart-line, .chart-fill) {
    animation: fx-wipe 1.3s var(--fx-ease-out) backwards;
  }
  :root:not(.motion-paused) .spark-line {
    animation: fx-wipe 1s var(--fx-ease-out) 0.25s backwards;
  }
  :root:not(.motion-paused) .spark-dot {
    animation: fx-pop 0.5s var(--fx-ease-spring) 0.8s backwards;
  }
  :root:not(.motion-paused) .financial-flow.fx-ready .flow-edge {
    animation: fx-draw 1.2s var(--fx-ease-out) backwards;
    animation-delay: calc(min(var(--i, 0), 12) * 70ms);
  }
  :root:not(.motion-paused) .financial-flow .flow-node {
    animation: fx-fade 0.6s ease-out backwards;
    animation-delay: calc(min(var(--i, 0), 12) * 70ms);
  }

  /* Ambient motion. */
  :root:not(.motion-paused) .intro-aura > span {
    will-change: transform;
  }
  :root:not(.motion-paused) .intro-aura > span:nth-child(1) {
    animation: fx-drift-a 19s ease-in-out infinite alternate;
  }
  :root:not(.motion-paused) .intro-aura > span:nth-child(2) {
    animation: fx-drift-b 23s ease-in-out infinite alternate;
  }
  :root:not(.motion-paused) .intro-aura > span:nth-child(3) {
    animation: fx-drift-c 27s ease-in-out infinite alternate;
  }
  :root:not(.motion-paused) .page-intro h1 span {
    animation: fx-gradient-pan 7s ease-in-out infinite alternate;
  }
  :root:not(.motion-paused) .page-intro .eyebrow::before {
    animation: fx-pulse 2.4s ease-out infinite;
  }
  :root:not(.motion-paused) :is(.secure-dot, .status-dot) {
    animation: fx-pulse-mint 2.6s ease-out infinite;
  }
  :root:not(.motion-paused) .orbit-one {
    animation: fx-precess-a 14s ease-in-out infinite alternate;
  }
  :root:not(.motion-paused) .orbit-two {
    animation: fx-precess-b 17s ease-in-out infinite alternate;
  }
  :root:not(.motion-paused) .orbit-one::after {
    animation: fx-orbit 9s linear infinite;
  }
  :root:not(.motion-paused) .orbit-two::after {
    animation: fx-orbit 13s linear -4s infinite reverse;
  }
  :root:not(.motion-paused) .art-core {
    animation: fx-breathe 6s ease-in-out infinite;
  }
  :root:not(.motion-paused) .art-chip {
    animation: fx-bob 5.5s ease-in-out infinite;
  }
  :root:not(.motion-paused) .chip-two {
    animation-delay: -1.8s;
  }
  :root:not(.motion-paused) .chip-three {
    animation-delay: -3.6s;
  }
  :root:not(.motion-paused) .art-dot {
    animation: fx-twinkle 3.2s ease-in-out infinite;
  }
  :root:not(.motion-paused) .brand-mark span {
    animation: fx-moon 9s ease-in-out infinite;
  }
  :root:not(.motion-paused) .atlas-tape-track {
    animation: fx-marquee 90s linear infinite;
  }
  :root:not(.motion-paused) .atlas-tape:is(:hover, :focus-within) .atlas-tape-track {
    animation-play-state: paused;
  }
  :root:not(.motion-paused) .footer-mark.is-visible > span {
    background-image: linear-gradient(
      100deg,
      var(--fx-violet-200) 0%,
      var(--fx-violet-100) 35%,
      #c7d2fe 50%,
      var(--fx-violet-100) 65%,
      var(--fx-violet-200) 100%
    );
    background-size: 200% 100%;
    animation: fx-sheen 6s linear infinite;
  }

  /* Hover depth. */
  :root:not(.motion-paused) .button:not(.secondary, .danger-quiet):hover::after {
    animation: fx-shine 0.9s var(--fx-ease-out);
  }
  :root:not(.motion-paused) :is(.atlas-card, .feature-strip > div):hover {
    transform: translateY(-4px);
  }
  :root:not(.motion-paused) :is(.metric-card, .glossary-card):hover {
    transform: translateY(-2px);
  }
  :root:not(.motion-paused) .button:not(.secondary, .danger-quiet):hover:not(:disabled) {
    transform: translateY(-1px);
  }
  :root:not(.motion-paused) .quick-search button:hover {
    transform: translateY(-2px);
  }

  /* Scroll reveals, only once the script is running. */
  :root.fx-js:not(.motion-paused) .fx-reveal {
    transition:
      opacity 0.8s var(--fx-ease-out),
      transform 0.8s var(--fx-ease-out);
    transition-delay: calc(min(var(--i, 0), 6) * 70ms);
  }
  :root.fx-js:not(.motion-paused) .fx-reveal:not(.is-visible) {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
  }
}
@media print {
  .fx-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .intro-aura,
  .atlas-tape,
  .motion-toggle {
    display: none;
  }
}
@media (hover: none), (pointer: coarse) {
  :is(.atlas-card, .metric-card, .feature-strip > div, .glossary-card, .swot-card, .result-metrics > div)::after {
    display: none;
  }
}
@media (forced-colors: active) {
  .page-intro h1 span,
  .atlas-value,
  .dcf-value,
  .glossary-card summary > span,
  .brand-mark,
  .footer-mark > span {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
  }
  .intro-aura,
  .footer-mark {
    display: none;
  }
}

/* ---------- Responsive ---------- */
@media (min-width: 1600px) {
  .company-atlas {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1250px) {
  .layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .sidebar {
    padding: 26px 12px 20px;
  }
}
@media (max-width: 1000px) {
  .layout {
    grid-template-columns: 196px minmax(0, 1fr);
  }
  .tab {
    gap: 10px;
    padding: 10px 8px;
  }
  .tab > span:first-child {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 17px;
  }
  .tab > span:nth-child(2) {
    font-size: 13.5px;
  }
  body[data-finance-tab] .page-intro {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "text" "tape";
  }
  body[data-finance-tab] .intro-art {
    position: absolute;
    top: 50%;
    right: -40px;
    z-index: 0;
    margin: -108px 0 0;
    scale: 0.7;
    opacity: 0.55;
  }
  .feature-icon {
    display: grid;
  }
}
@media (max-width: 720px) {
  :root {
    --fx-topbar: 56px;
    --fx-gutter: 18px;
  }
  .sidebar {
    padding: 16px 18px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--fx-line);
    box-shadow: none;
  }
  .brand-sub {
    font-size: 11.5px;
  }
  .tabs {
    display: flex;
    gap: 6px;
    margin: 14px -18px 0;
    padding: 2px 18px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar {
    display: none;
  }
  .tab {
    flex: none;
    gap: 8px;
    padding: 7px 14px 7px 7px;
    border-radius: 999px;
    justify-content: flex-start;
  }
  .tab > span:first-child {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 15px;
  }
  .tab > span:nth-child(2) {
    font-size: 14px;
    white-space: nowrap;
  }
  .tab.active {
    background: #fff;
  }
  .tabs > .fx-indicator {
    border-radius: 999px;
  }
  .topbar {
    position: static;
    height: auto;
    min-height: var(--fx-topbar);
    padding: 8px var(--fx-gutter);
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .breadcrumb {
    font-size: 12px;
  }
  .breadcrumb strong {
    font-size: 13px;
  }
  .motion-toggle {
    width: 34px;
    padding: 0;
    justify-content: center;
  }
  .motion-toggle > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .session {
    font-size: 12px;
  }
  .session > span:first-child:not(.status-dot) {
    display: none;
  }
  .session .button {
    font-size: 12.5px;
    padding: 7px 12px;
  }
  main {
    padding: 4px var(--fx-gutter) 40px;
  }
  body[data-finance-tab] .page-intro {
    margin-bottom: 28px;
    padding: 26px 20px;
    border-radius: 22px;
  }
  body[data-finance-tab] .page-intro h1,
  body[data-finance-tab="research"] .page-intro h1 {
    font-size: clamp(28px, 8.4vw, 36px);
    line-height: 1.2;
  }
  body[data-finance-tab="research"] .page-intro h1 br {
    display: inline;
  }
  body[data-finance-tab] .intro-copy {
    font-size: 14px;
    max-width: none;
  }
  .page-intro .eyebrow {
    font-size: 11px;
    letter-spacing: 0.1em;
  }
  body[data-finance-tab] .intro-art {
    top: 0;
    right: -96px;
    margin: 0;
    scale: 0.56;
    opacity: 0.42;
  }
  .atlas-tape {
    margin: 20px -20px -26px;
  }
  .atlas-tape-label {
    margin-inline: 20px;
  }
  .section-heading h2,
  body[data-finance-tab] #view-research > .section-heading h2 {
    font-size: 22px;
  }
  .section-heading p:not(.eyebrow) {
    font-size: 14px;
  }
  .search-form {
    padding: 6px 6px 6px 14px;
    gap: 8px;
  }
  .search-form input {
    font-size: 15px;
  }
  .search-form .button {
    padding: 11px 14px;
    font-size: 13.5px;
  }
  .quick-search {
    gap: 6px;
  }
  .quick-search > span {
    width: 100%;
  }
  .quick-search button {
    font-size: 12.5px;
    padding: 5px 11px;
  }
  .explorer-modes > button {
    padding: 9px 4px;
    font-size: 13px;
  }
  .explorer-modes > button small {
    font-size: 11px;
  }
  .explorer-controls select {
    min-width: 0;
    padding: 9px 30px 9px 10px;
    background-position: right 8px center;
    font-size: 13px;
  }
  .company-atlas {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .atlas-card {
    border-radius: 18px;
  }
  .atlas-card-top {
    padding: 12px 14px 0;
  }
  .sector-tag {
    max-width: 60%;
    font-size: 11px;
  }
  .atlas-open {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "line value" "name label";
    align-items: center;
    column-gap: 12px;
    padding: 10px 14px 12px;
  }
  .atlas-company-line {
    grid-area: line;
    min-width: 0;
  }
  .atlas-ticker {
    font-size: 22px;
  }
  .atlas-open > strong {
    grid-area: name;
    margin: 2px 0 0;
    overflow: hidden;
    font-size: 12.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .atlas-value {
    grid-area: value;
    font-size: 22px;
    text-align: right;
  }
  .atlas-value-label {
    grid-area: label;
    margin: 0;
    font-size: 11.5px;
    text-align: right;
  }
  /* The whole card opens the company; the footer line repeats that on phones. */
  .atlas-card-foot {
    display: none;
  }
  .atlas-sources {
    padding: 0 14px 12px;
  }
  .atlas-sources > .value-source,
  .atlas-sources > .value-source > span {
    font-size: 11px;
  }
  .company-header .company-logo {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }
  .profile-tabs {
    top: 0;
  }
  .profile-tabs > button {
    font-size: 13px;
  }
  .panel {
    padding: 18px;
    border-radius: 18px;
  }
  .metric-card .label,
  .company-tab-panel .metric-card .label {
    font-size: 12px;
  }
  .price-axis {
    font-size: 16px;
  }
  .chart-label {
    font-size: 15px;
  }
  .flow-node text {
    font-size: 12px;
  }
  .feature-strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .feature-strip > div {
    align-items: center;
    padding: 14px;
  }
  .feature-strip strong {
    font-size: 14px;
  }
  .feature-strip small {
    font-size: 12.5px;
  }
  .frame-label {
    padding: 11px 14px;
    font-size: 12px;
  }
  .login-card {
    border-radius: 22px;
  }
  .footer-mark {
    margin-top: 36px;
  }
  .footer {
    font-size: 12.5px;
  }
  .footer > div {
    flex-wrap: wrap;
    gap: 8px 16px;
  }
}
@media (max-width: 380px) {
  .tab > span:nth-child(2) {
    font-size: 13px;
  }
  .search-form > span {
    display: none;
  }
}
