:root {
  --night: #050b13;
  --night-2: #081321;
  --night-3: #0d1c2b;
  --ink: #111b24;
  --parchment: #eee2c7;
  --parchment-2: #f6edd9;
  --paper-line: rgba(60, 43, 21, 0.16);
  --moon: #f6f0df;
  --mist: #91a0ae;
  --mist-dark: #647482;
  --gold: #d9a441;
  --gold-light: #ffd77a;
  --gold-dark: #8d5d1b;
  --jade: #5dcbbb;
  --jade-dark: #236f69;
  --violet: #9564c2;
  --wine: #6c2847;
  --line: rgba(238, 226, 199, 0.13);
  --display: "Cinzel Decorative", Georgia, serif;
  --literary: "IM Fell English", Georgia, serif;
  --data: "Manrope", system-ui, sans-serif;
  --shadow: 0 32px 100px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-color: #8d6c32 #07101b;
}
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--moon);
  background:
    radial-gradient(circle at 83% 4%, rgba(43, 105, 102, 0.17), transparent 31rem),
    radial-gradient(circle at 12% 42%, rgba(91, 53, 123, 0.12), transparent 38rem),
    linear-gradient(180deg, #07111d 0%, #030810 56%, #09121c 100%);
  font-family: var(--data);
  font-size: 15px;
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -4;
  background-image:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.24'/%3E%3C/svg%3E");
  background-size: 80px 80px, 80px 80px, 220px 220px;
  content: "";
  opacity: 0.2;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
.shell { width: min(1280px, calc(100% - 56px)); margin-inline: auto; }
.section { position: relative; padding-block: 118px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#magic-canvas {
  position: fixed;
  inset: 0;
  z-index: 30;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.cursor-aura {
  position: fixed;
  z-index: 29;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 215, 122, 0.075), rgba(93, 203, 187, 0.025) 34%, transparent 69%);
  transform: translate(-50%, -50%);
  transition: opacity 300ms ease;
  pointer-events: none;
}
body.has-pointer .cursor-aura { opacity: 1; }
.scroll-spell {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: rgba(255,255,255,0.03);
}
.scroll-spell i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold), var(--jade), var(--gold-light));
  box-shadow: 0 0 14px var(--gold);
}

.sky { position: absolute; inset: 0 0 auto; z-index: -2; height: 1800px; overflow: hidden; pointer-events: none; }
.moon-haze {
  position: absolute;
  top: 105px;
  right: -180px;
  width: 680px;
  height: 680px;
  border: 1px solid rgba(217, 164, 65, 0.075);
  border-radius: 50%;
  box-shadow: inset 0 0 140px rgba(217, 164, 65, 0.025), 0 0 120px rgba(93, 203, 187, 0.03);
}
.moon-haze::before, .moon-haze::after {
  position: absolute;
  border: 1px solid rgba(93, 203, 187, 0.06);
  border-radius: 50%;
  content: "";
}
.moon-haze::before { inset: 80px; }
.moon-haze::after { inset: 170px; }
.constellation { position: absolute; width: 250px; height: 180px; opacity: 0.3; }
.constellation-one { top: 590px; left: 3vw; transform: rotate(-14deg); }
.constellation-two { top: 1060px; right: 5vw; transform: rotate(19deg) scale(0.8); }
.constellation i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 9px var(--gold); }
.constellation i:nth-child(1) { top: 20%; left: 7%; }
.constellation i:nth-child(2) { top: 56%; left: 30%; }
.constellation i:nth-child(3) { top: 30%; left: 57%; }
.constellation i:nth-child(4) { top: 76%; left: 80%; }
.constellation i:nth-child(5) { top: 4%; left: 92%; }
.constellation span { position: absolute; top: 53%; left: 7%; width: 220px; height: 1px; background: linear-gradient(90deg, var(--gold), var(--jade)); transform: rotate(12deg); transform-origin: left; opacity: 0.35; }
.rune-orbit { position: absolute; width: 420px; height: 420px; border: 1px solid rgba(238, 226, 199, 0.04); border-radius: 50%; animation: orbit-turn 80s linear infinite; }
.rune-orbit-one { top: 1180px; left: -290px; }
.rune-orbit-two { top: 340px; right: -300px; animation-direction: reverse; }
.rune-orbit span { position: absolute; color: rgba(217,164,65,0.22); font-family: var(--literary); font-size: 18px; }
.rune-orbit span:nth-child(1) { top: -11px; left: 50%; }
.rune-orbit span:nth-child(2) { top: 48%; right: -7px; }
.rune-orbit span:nth-child(3) { bottom: -10px; left: 48%; }
@keyframes orbit-turn { to { transform: rotate(360deg); } }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(238, 226, 199, 0.09);
  background: rgba(5, 11, 19, 0.75);
  backdrop-filter: blur(18px) saturate(140%);
}
.topbar.scrolled { border-bottom-color: rgba(217,164,65,0.2); background: rgba(4,10,17,0.91); box-shadow: 0 14px 40px rgba(0,0,0,0.16); }
.topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1400px, calc(100% - 48px));
  min-height: 82px;
  margin-inline: auto;
}
.brand { display: inline-flex; gap: 14px; align-items: center; width: fit-content; }
.brand-sigil {
  position: relative;
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  border: 1px solid rgba(217,164,65,0.72);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(217,164,65,0.08);
}
.brand-sigil::before, .brand-sigil::after { position: absolute; border-radius: 50%; content: ""; }
.brand-sigil::before { inset: 5px; border: 1px dashed rgba(93,203,187,0.38); animation: orbit-turn 18s linear infinite; }
.brand-sigil::after { top: -3px; left: 21px; width: 5px; height: 5px; background: var(--gold-light); box-shadow: 0 0 12px var(--gold); }
.brand-sigil i { position: absolute; width: 1px; height: 58px; background: linear-gradient(transparent, rgba(217,164,65,0.5), transparent); transform: rotate(41deg); }
.brand-sigil b { color: var(--moon); font-family: var(--display); font-size: 13px; font-weight: 400; }
.brand-copy strong { display: block; color: var(--moon); font-family: var(--display); font-size: 14px; letter-spacing: 0.12em; line-height: 1.2; }
.brand-copy strong em { color: var(--gold-light); font-style: normal; }
.brand-copy small { display: block; margin-top: 5px; color: var(--mist-dark); font-size: 8px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.topbar nav { display: flex; gap: 38px; }
.topbar nav a { position: relative; color: #9ba8b4; font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; transition: color 200ms ease; }
.topbar nav a::after { position: absolute; right: 50%; bottom: -10px; left: 50%; height: 1px; background: var(--gold); content: ""; transition: inset 200ms ease; }
.topbar nav a:hover { color: var(--gold-light); }
.topbar nav a:hover::after { right: 0; left: 0; }
.top-action { justify-self: end; padding: 10px 0 10px 20px; color: var(--moon); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.top-action span { margin-left: 10px; color: var(--gold); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(340px, 0.6fr);
  gap: 110px;
  align-items: center;
  min-height: 690px;
  padding-block: 78px 92px;
}
.eyebrow { display: flex; gap: 11px; align-items: center; margin: 0 0 22px; color: var(--gold-light); font-size: 9px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.eyebrow > span { display: inline-grid; width: 26px; height: 26px; place-items: center; border: 1px solid rgba(217,164,65,0.3); border-radius: 50%; color: var(--gold); font-size: 8px; }
.hero h1, .section-heading h2, .diary-heading h2, .method-heading h2, .run-grid h2 {
  margin: 0;
  color: var(--moon);
  font-family: var(--literary);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.94;
}
.hero h1 { max-width: 840px; font-size: clamp(62px, 7.4vw, 106px); }
.hero h1::first-letter { color: var(--gold-light); font-family: var(--display); }
.hero h1 em, .section-heading h2 em, .diary-heading h2 em, .method-heading h2 em, .run-grid h2 em { color: var(--gold-light); font-weight: 400; }
.hero h1 em { display: block; }
.hero-lede { max-width: 680px; margin: 31px 0 0; color: #94a3b0; font-family: var(--literary); font-size: 19px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.button { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 23px; overflow: hidden; border: 1px solid transparent; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; transition: transform 200ms ease, background 200ms ease, border-color 200ms ease; }
.button::before { position: absolute; top: -100%; bottom: -100%; left: -35%; width: 25%; background: rgba(255,255,255,0.22); content: ""; transform: rotate(20deg); transition: left 500ms ease; }
.button:hover { transform: translateY(-2px); }
.button:hover::before { left: 125%; }
.button-gold { color: #1d160b; background: linear-gradient(135deg, #c98a27, var(--gold-light)); box-shadow: 0 12px 40px rgba(217,164,65,0.14); }
.button-quiet { border-color: rgba(238,226,199,0.18); color: var(--moon); background: rgba(255,255,255,0.015); }
.button-quiet:hover { border-color: var(--jade); }
.button-quiet span { margin-left: 12px; color: var(--jade); }

.hero-instrument { position: relative; width: min(100%, 430px); aspect-ratio: 1; justify-self: end; }
.instrument-rings { position: absolute; inset: 0; display: grid; place-items: center; }
.instrument-rings i { position: absolute; border: 1px solid rgba(217,164,65,0.22); border-radius: 50%; }
.instrument-rings i:nth-child(1) { inset: 0; border-style: dashed; animation: orbit-turn 50s linear infinite; }
.instrument-rings i:nth-child(2) { inset: 35px; border-color: rgba(93,203,187,0.24); animation: orbit-turn 35s linear infinite reverse; }
.instrument-rings i:nth-child(3) { inset: 82px; border-color: rgba(238,226,199,0.14); }
.instrument-rings::before, .instrument-rings::after { position: absolute; inset: 17px; border-block: 1px solid rgba(238,226,199,0.12); border-radius: 50%; content: ""; transform: rotate(38deg); }
.instrument-rings::after { transform: rotate(-38deg); }
.instrument-rings b { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 18px var(--gold); animation: instrument-orbit 10s linear infinite; }
@keyframes instrument-orbit { from { transform: rotate(0) translateX(196px); } to { transform: rotate(360deg) translateX(196px); } }
.instrument-center { position: absolute; inset: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: radial-gradient(circle, rgba(22,43,53,0.92), rgba(7,16,27,0.7)); box-shadow: inset 0 0 45px rgba(93,203,187,0.05), 0 0 60px rgba(0,0,0,0.3); }
.instrument-label { color: var(--mist-dark); font-size: 8px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.instrument-center strong { margin-top: 5px; color: var(--moon); font-family: var(--literary); font-size: 62px; font-weight: 400; line-height: 1; }
.instrument-center small { color: var(--gold); font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; }
.instrument-model { position: absolute; right: 65px; bottom: 53px; left: 65px; overflow: hidden; color: #9eabb6; font-size: 10px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.instrument-exams { position: absolute; top: 74px; right: 30px; left: 30px; display: flex; justify-content: space-between; }
.instrument-exams div { min-width: 72px; text-align: center; }
.instrument-exams span { display: block; color: var(--mist-dark); font-size: 7px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.instrument-exams strong { color: var(--gold-light); font-family: var(--literary); font-size: 22px; font-weight: 400; }
.instrument-exams div:last-child strong { color: var(--jade); }

.facts-strip { border-block: 1px solid var(--line); background: rgba(2,7,12,0.45); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-grid > div { position: relative; display: grid; grid-template-columns: 34px auto; grid-template-rows: auto auto; padding: 26px 30px; border-left: 1px solid var(--line); }
.facts-grid > div:last-child { border-right: 1px solid var(--line); }
.fact-rune { grid-row: 1 / 3; align-self: center; color: rgba(217,164,65,0.35); font-family: var(--literary); font-size: 13px; }
.facts-grid strong { color: var(--gold-light); font-family: var(--literary); font-size: 27px; font-weight: 400; line-height: 1; }
.facts-grid small { color: var(--mist-dark); font-size: 8px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

.rankings { padding-top: 0; overflow: hidden; scroll-margin-top: 82px; background: linear-gradient(180deg, rgba(9,20,31,0.72), rgba(3,9,16,0.45)); }
.rankings::before { position: absolute; top: 0; right: 6%; left: 6%; height: 1px; background: linear-gradient(90deg, transparent, rgba(217,164,65,0.3), transparent); content: ""; }
.rankings-overview { display: grid; min-height: calc(100svh - 82px); padding-block: 14px; align-content: center; }
.section-heading { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 80px; align-items: end; margin-bottom: 52px; }
.section-heading h2 { font-size: clamp(49px, 6vw, 76px); }
.rankings-overview .section-heading { margin-bottom: 18px; }
.rankings-overview .section-heading h2 { font-size: clamp(40px, 4.25vw, 56px); line-height: 1; }
.rankings-overview .eyebrow { margin-bottom: 8px; }
.heading-note { justify-self: end; max-width: 280px; padding-left: 24px; border-left: 1px solid rgba(217,164,65,0.23); }
.heading-note p { margin: 8px 0 0; color: var(--mist-dark); font-size: 10px; }
.live-indicator { display: flex; gap: 8px; align-items: center; color: var(--jade); font-size: 8px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.live-indicator i { width: 5px; height: 5px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 13px var(--jade); animation: pulse-star 2.5s ease infinite; }
@keyframes pulse-star { 50% { opacity: 0.4; box-shadow: 0 0 3px var(--jade); } }

.chart-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid #c5b58e;
  border-radius: 3px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(116,80,34,0.035) 1px, transparent 1px),
    linear-gradient(rgba(116,80,34,0.035) 1px, transparent 1px),
    radial-gradient(circle at 82% -10%, rgba(255,255,255,0.7), transparent 25rem),
    var(--parchment-2);
  background-size: 28px 28px, 28px 28px, auto, auto;
  box-shadow: var(--shadow), inset 0 0 70px rgba(105,76,34,0.06);
}
.chart-panel::before, .chart-panel::after { position: absolute; width: 28px; height: 28px; border-color: var(--gold-dark); opacity: 0.45; content: ""; pointer-events: none; }
.chart-panel::before { top: 10px; left: 10px; border-top: 1px solid; border-left: 1px solid; }
.chart-panel::after { right: 10px; bottom: 10px; border-right: 1px solid; border-bottom: 1px solid; }
.chart-header { display: flex; gap: 40px; align-items: flex-start; justify-content: space-between; padding: 12px 30px; border-bottom: 1px solid var(--paper-line); }
.panel-kicker { margin: 0 0 2px; color: #8c6428; font-size: 8px; font-weight: 800; letter-spacing: 0.17em; text-transform: uppercase; }
.chart-header h3, .table-heading h3 { margin: 0; color: #19232b; font-family: var(--literary); font-size: 25px; font-weight: 400; line-height: 1.05; }
.chart-subtitle { margin: 3px 0 0; color: #6f736f; font-size: 9px; }
.chart-controls { display: flex; padding: 3px; border: 1px solid rgba(67,51,31,0.18); border-radius: 99px; background: rgba(255,255,255,0.35); }
.metric-button { padding: 8px 13px; border: 0; border-radius: 99px; color: #6d6c66; background: transparent; font-size: 8px; font-weight: 700; letter-spacing: 0.05em; white-space: nowrap; text-transform: uppercase; transition: color 180ms ease, background 180ms ease; }
.metric-button.active { color: var(--moon); background: #1a2630; box-shadow: 0 4px 15px rgba(17,27,36,0.18); }
.chart-toolbar { display: flex; gap: 30px; align-items: center; justify-content: space-between; padding: 7px 30px; border-bottom: 1px solid var(--paper-line); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 22px; color: #6b6f6c; font-size: 9px; }
.chart-legend span { display: flex; gap: 7px; align-items: center; }
.chart-legend i { width: 9px; height: 9px; border-radius: 2px; }
.legend-owl { background: linear-gradient(180deg, var(--gold-light), #b97920); }
.legend-newt { background: linear-gradient(180deg, #65d4c1, #22766d); }
.legend-overall { background: #7b4b9f; }
.chart-filter { display: flex; gap: 16px; align-items: center; }
.chart-filter select { height: 34px; padding: 0 32px 0 12px; border: 1px solid rgba(67,51,31,0.17); border-radius: 2px; outline: none; color: #364149; background: rgba(255,255,255,0.4); font-size: 9px; }
.chart-filter > span { color: #85837b; font-size: 8px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.column-chart-wrap { display: grid; grid-template-columns: 42px minmax(0,1fr); min-height: 0; padding: 12px 30px 8px 20px; }
.y-axis { position: relative; height: 250px; color: #979288; font-size: 8px; }
.y-axis span { position: absolute; top: calc(var(--y) * 1%); right: 10px; transform: translateY(-50%); }
.plot-area { position: relative; min-width: 0; height: 305px; overflow: hidden; }
.grid-lines { position: absolute; top: 0; right: 0; left: 0; height: 250px; pointer-events: none; }
.grid-lines i { position: absolute; right: 0; left: 0; height: 1px; border-top: 1px dashed rgba(66,56,43,0.15); }
.grid-lines i:nth-child(1) { top: 0; }
.grid-lines i:nth-child(2) { top: 25%; }
.grid-lines i:nth-child(3) { top: 50%; }
.grid-lines i:nth-child(4) { top: 75%; }
.grid-lines i:nth-child(5) { bottom: 0; border-top-style: solid; border-color: rgba(66,56,43,0.28); }
.column-chart { position: relative; z-index: 1; display: flex; gap: clamp(1px, 0.28vw, 4px); align-items: flex-start; min-width: 0; width: 100%; height: 305px; padding: 0 4px; }
.model-column { display: grid; flex: 1 1 0; grid-template-rows: 250px 55px; min-width: 0; transition: opacity 220ms ease, filter 220ms ease, transform 220ms ease; }
.bar-stage { position: relative; display: flex; gap: 3px; align-items: flex-end; justify-content: center; min-width: 0; height: 250px; }
.chart-bar { position: relative; flex: 0 1 30px; width: 30px; min-width: 1px; min-height: 2px; border-radius: 3px 3px 0 0; box-shadow: inset 0 1px rgba(255,255,255,0.45); transform: scaleY(0); transform-origin: bottom; transition: transform 900ms cubic-bezier(.2,.75,.2,1), opacity 240ms ease, width 260ms ease; }
.chart-panel.chart-ready .chart-bar { transform: scaleY(1); transition-delay: var(--delay, 0ms); }
.chart-bar.owl { height: calc(var(--score) * 1%); background: linear-gradient(180deg, #f2c967, #c48428); }
.chart-bar.newt { height: calc(var(--score) * 1%); background: linear-gradient(180deg, #72d9c7, #27746e); }
.chart-bar.overall { height: calc(var(--score) * 1%); background: linear-gradient(180deg, #aa7bcf, #69418c); }
.bar-value { position: absolute; top: -21px; right: -8px; left: -8px; color: #27323a; font-size: 8px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.bar-symbol { position: absolute; right: 0; bottom: 8px; left: 0; color: rgba(255,255,255,0.9); font-family: var(--literary); font-size: 12px; text-align: center; }
.model-label { padding: 8px 4px 0; text-align: center; }
.model-label strong { display: -webkit-box; overflow: hidden; color: #252f37; font-size: 8px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.model-label small { display: block; margin-top: 3px; color: #8a857d; font-size: 7px; letter-spacing: 0.1em; text-transform: uppercase; }
.model-label em { display: none; }
.story-origin { position: relative; cursor: pointer; outline: none; }
.story-origin::before { position: absolute; inset: 2px; z-index: 3; border: 1px solid rgba(108,40,71,0.28); border-radius: 3px; content: ""; opacity: 0; pointer-events: none; transition: opacity 180ms ease, box-shadow 180ms ease; }
.story-origin .bar-stage::after { position: absolute; bottom: 7px; left: 50%; display: grid; width: 20px; height: 20px; place-items: center; border: 1px solid rgba(108,40,71,0.38); border-radius: 50%; color: var(--wine); background: rgba(246,237,217,0.78); content: "✦"; font-size: 9px; transform: translateX(-50%); animation: origin-call 1.8s ease-in-out infinite; }
.story-origin:hover::before, .story-origin:focus-visible::before { opacity: 1; box-shadow: 0 0 22px rgba(108,40,71,0.24), inset 0 0 20px rgba(149,100,194,0.08); }
.story-origin:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
@keyframes origin-call { 50% { color: var(--gold-dark); border-color: rgba(141,93,27,0.58); box-shadow: 0 0 16px rgba(149,100,194,0.34); transform: translateX(-50%) scale(1.13); } }
.model-column.is-being-passed .chart-bar, .model-column.is-being-passed .model-label { opacity: 0.12; }
.model-column.is-overtaken { opacity: 0.3; filter: grayscale(0.75) sepia(0.15); transform: scale(0.96); }
.model-column.is-story-hidden { opacity: 0; }
.model-column.story-crowned { z-index: 4; animation: story-crown 950ms ease both; }
@keyframes story-crown { 35% { filter: brightness(1.3) drop-shadow(0 0 13px rgba(149,100,194,0.7)); transform: translateY(-6px) scale(1.06); } }

.lora-story-runner { position: absolute; top: 0; z-index: 8; display: grid; grid-template-rows: 250px 55px; height: 305px; pointer-events: none; transition: left 250ms cubic-bezier(.2,.75,.2,1), opacity 500ms ease, filter 500ms ease; }
.story-bar-stage { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 250px; }
.story-bar { position: relative; width: min(52px, calc(100% - 6px)); min-height: 2px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #ffd77a 0, #a76dca 21%, #6c2847 100%); box-shadow: 0 0 18px rgba(149,100,194,0.42), inset 0 1px rgba(255,255,255,0.55); transition: height 250ms cubic-bezier(.2,.75,.2,1); }
.story-bar::before { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.56) 49%, transparent 68%); content: ""; transform: translateX(-130%); animation: story-shimmer 900ms linear infinite; }
.story-bar > b { position: absolute; right: 0; bottom: 9px; left: 0; color: rgba(255,255,255,0.92); font-family: var(--literary); font-size: 13px; font-weight: 400; text-align: center; }
.story-score { position: absolute; top: -22px; right: -12px; left: -12px; color: #512b50; font-size: 8px; font-weight: 800; text-align: center; }
@keyframes story-shimmer { to { transform: translateX(130%); } }
.story-label { padding: 8px 1px 0; overflow: hidden; text-align: center; }
.story-label strong { display: -webkit-box; overflow: hidden; color: #512b50; font-size: 8px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.story-label small { display: block; margin-top: 3px; overflow: hidden; color: #7d5a72; font-size: 6px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.lora-story-runner.story-arrived .story-bar { box-shadow: 0 0 34px rgba(149,100,194,0.75), 0 0 12px rgba(255,215,122,0.55), inset 0 1px rgba(255,255,255,0.7); }
.lora-story-runner.is-vanishing { opacity: 0; filter: blur(6px); }
.column-chart[data-metric="overall"] .chart-bar:not(.overall), .column-chart[data-metric="newts"] .chart-bar:not(.newt) { display: none; }
.column-chart[data-metric="overall"] .chart-bar.overall, .column-chart[data-metric="newts"] .chart-bar.newt { flex-basis: 52px; width: 52px; }
.column-chart[data-metric="profile"] .chart-bar.overall { position: absolute; width: 0; opacity: 0; }
.chart-foot { display: flex; flex-wrap: wrap; gap: 7px 18px; align-items: center; justify-content: space-between; padding: 6px 30px; border-top: 1px solid var(--paper-line); color: #858178; font-size: 8px; letter-spacing: 0.06em; text-transform: uppercase; }
.chart-foot b { color: #67468a; }
.chart-story-trigger { min-height: 24px; padding: 3px 11px; border: 1px solid rgba(108,40,71,0.25); border-radius: 99px; color: #66435b; background: rgba(255,255,255,0.32); font-size: 7px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; transition: color 180ms ease, border-color 180ms ease, background 180ms ease; }
.chart-story-trigger:hover, .chart-story-trigger:focus-visible { border-color: rgba(108,40,71,0.62); outline: none; color: var(--wine); background: rgba(255,255,255,0.62); }
.chart-story-trigger:disabled { cursor: wait; opacity: 0.68; }

.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.insight-card { position: relative; min-height: 150px; padding: 27px 28px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(17,34,49,0.88), rgba(7,17,27,0.78)); }
.insight-card::after { position: absolute; right: -38px; bottom: -62px; width: 130px; height: 130px; border: 1px solid rgba(217,164,65,0.08); border-radius: 50%; content: ""; }
.insight-icon { position: absolute; top: 23px; right: 24px; color: rgba(217,164,65,0.35); font-family: var(--literary); font-size: 22px; }
.insight-card p { margin: 0 0 14px; color: var(--mist-dark); font-size: 8px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.insight-card strong { display: block; max-width: 85%; overflow: hidden; color: var(--moon); font-family: var(--literary); font-size: 24px; font-weight: 400; line-height: 1.12; text-overflow: ellipsis; white-space: nowrap; }
.insight-card small { display: block; margin-top: 8px; color: var(--jade); font-size: 9px; }

.table-panel { margin-top: 60px; overflow: hidden; border: 1px solid var(--line); background: rgba(10,24,37,0.86); box-shadow: var(--shadow); }
.table-heading { display: flex; gap: 30px; align-items: center; justify-content: space-between; padding: 28px 30px; border-bottom: 1px solid var(--line); }
.table-heading h3 { color: var(--moon); font-size: 30px; }
.table-heading .panel-kicker { color: var(--gold); }
.search-box { display: flex; align-items: center; width: min(330px, 100%); height: 42px; border: 1px solid rgba(238,226,199,0.14); background: rgba(2,8,14,0.35); }
.search-box > span:not(.sr-only) { margin-left: 13px; color: var(--gold); font-size: 20px; }
.search-box input { width: 100%; height: 100%; padding: 0 13px; border: 0; outline: 0; color: var(--moon); background: transparent; font-size: 10px; }
.search-box input::placeholder { color: #536574; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 13px 18px; color: #627382; background: rgba(0,0,0,0.12); font-size: 7px; font-weight: 800; letter-spacing: 0.15em; text-align: left; text-transform: uppercase; }
th:not(:nth-child(2)), td:not(:nth-child(2)) { text-align: center; }
td { padding: 19px 18px; border-top: 1px solid rgba(238,226,199,0.075); color: #a8b4be; font-size: 10px; }
tbody tr { transition: background 160ms ease; }
tbody tr:hover { background: rgba(217,164,65,0.045); }
.rank { color: #61717e; font-family: var(--literary); font-size: 18px; }
.rank.top { color: var(--gold-light); text-shadow: 0 0 15px rgba(217,164,65,0.25); }
.model-cell { min-width: 260px; text-align: left !important; }
.model-name { display: block; max-width: 360px; overflow: hidden; color: var(--moon); font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.provider-name { display: block; margin-top: 3px; color: #536574; font-size: 7px; letter-spacing: 0.12em; text-transform: uppercase; }
.score-chip { display: inline-flex; justify-content: center; min-width: 58px; padding: 5px 8px; border: 1px solid transparent; border-radius: 99px; font-variant-numeric: tabular-nums; }
.score-chip.owl { color: var(--gold-light); border-color: rgba(217,164,65,0.14); background: rgba(217,164,65,0.075); }
.score-chip.newt { color: var(--jade); border-color: rgba(93,203,187,0.14); background: rgba(93,203,187,0.07); }
.overall-score { color: var(--moon); font-family: var(--literary); font-size: 19px; font-weight: 400; }
.detail-button { width: 31px; height: 31px; border: 1px solid rgba(238,226,199,0.13); border-radius: 50%; color: var(--gold); background: transparent; transition: border-color 180ms ease, transform 180ms ease; }
.detail-button:hover { border-color: var(--gold); transform: rotate(12deg); }
.empty-state { padding: 75px 20px; text-align: center; }
.empty-state > span { color: var(--gold); font-size: 26px; }
.empty-state h3 { margin: 8px 0 4px; color: var(--moon); font-family: var(--literary); font-size: 28px; font-weight: 400; }
.empty-state p { margin: 0; color: var(--mist-dark); font-size: 10px; }

.diary-section {
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 74% 50%, rgba(217,164,65,0.12), transparent 26rem),
    radial-gradient(circle at 12% 110%, rgba(93,203,187,0.08), transparent 34rem),
    linear-gradient(180deg, rgba(2,7,12,0.18), rgba(2,7,12,0.7));
}
.diary-section::before {
  position: absolute;
  top: 50%;
  right: -20rem;
  width: 48rem;
  height: 48rem;
  border: 1px solid rgba(217,164,65,0.07);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
  box-shadow: inset 0 0 0 5rem rgba(217,164,65,0.012), inset 0 0 0 10rem rgba(93,203,187,0.01);
}
.diary-layout { display: grid; grid-template-columns: minmax(280px, 0.72fr) minmax(500px, 1.28fr); gap: clamp(60px, 8vw, 125px); align-items: center; }
.diary-heading h2 { font-size: clamp(52px, 5.3vw, 76px); }
.diary-heading > p:not(.eyebrow) { max-width: 430px; margin: 28px 0 0; color: var(--mist); font-family: var(--literary); font-size: 17px; line-height: 1.75; }
.diary-legend { display: flex; flex-wrap: wrap; gap: 21px; margin-top: 34px; color: #71818d; font-size: 8px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.diary-legend span { display: flex; gap: 8px; align-items: center; }
.diary-legend i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px rgba(217,164,65,0.65); }
.diary-legend .newt-ink { background: var(--jade); box-shadow: 0 0 12px rgba(93,203,187,0.65); }

.diary-object { position: relative; perspective: 1300px; }
.diary-shadow { position: absolute; right: 5%; bottom: -32px; left: 9%; height: 70px; border-radius: 50%; background: rgba(0,0,0,0.7); filter: blur(24px); transform: rotate(-2deg); }
.diary-book {
  position: relative;
  min-height: 568px;
  padding: 20px 18px 20px 50px;
  border: 1px solid #523018;
  border-radius: 9px 19px 19px 9px;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.48), transparent 9%, rgba(255,203,110,0.035) 40%, transparent 72%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.45' numOctaves='5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E"),
    linear-gradient(145deg, #351b12, #17100e 60%, #2c170f);
  box-shadow: -10px 3px 0 #100b09, 0 38px 90px rgba(0,0,0,0.52), inset 0 0 0 2px rgba(202,137,56,0.12);
  transform: rotateY(-4deg) rotateZ(-0.5deg);
  transform-origin: left center;
  transition: transform 900ms cubic-bezier(.18,.7,.15,1), filter 700ms ease;
}
.diary-object:hover .diary-book { transform: rotateY(-1deg) rotateZ(0); }
.diary-spine { position: absolute; top: -1px; bottom: -1px; left: 13px; width: 24px; border-inline: 1px solid rgba(217,164,65,0.18); background: linear-gradient(90deg, #130c09, #482516 48%, #130c09); box-shadow: 4px 0 10px rgba(0,0,0,0.35); }
.diary-spine i { position: absolute; right: -4px; left: -4px; height: 12px; border-block: 1px solid rgba(217,164,65,0.24); background: #1c100c; }
.diary-spine i:nth-child(1) { top: 11%; }
.diary-spine i:nth-child(2) { top: 49%; }
.diary-spine i:nth-child(3) { bottom: 11%; }
.diary-page {
  position: relative;
  min-height: 526px;
  padding: 33px 43px 69px;
  overflow: hidden;
  color: #31261c;
  border: 1px solid #ad9567;
  border-radius: 2px 11px 11px 2px;
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 29px, rgba(93,65,37,0.08) 30px),
    radial-gradient(circle at 12% 14%, rgba(94,57,25,0.12), transparent 4rem),
    radial-gradient(circle at 88% 84%, rgba(94,57,25,0.1), transparent 7rem),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='.1'/%3E%3C/svg%3E"),
    linear-gradient(100deg, #d5c195, #f0e3c5 12%, #ead9b4 84%, #c6ac78);
  box-shadow: inset 15px 0 30px rgba(70,44,19,0.16), inset -8px 0 18px rgba(70,44,19,0.11), 3px 0 0 #a88e5c, 7px 0 0 #6c5635;
}
.diary-page::before, .diary-page::after { position: absolute; content: ""; pointer-events: none; }
.diary-page::before { inset: 12px; border: 1px solid rgba(79,52,27,0.15); }
.diary-page::after { top: -17px; right: -17px; width: 55px; height: 55px; border: 1px solid rgba(85,55,24,0.2); transform: rotate(45deg); }
.diary-meta { display: flex; justify-content: space-between; color: #79552a; font-family: var(--data); font-size: 8px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.diary-book[data-exam="newts"] .diary-meta { color: #1e6b63; }
.diary-rule { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin: 16px 0 26px; color: rgba(108,40,71,0.55); }
.diary-rule i { height: 1px; background: currentColor; }
.diary-rule b { font-size: 9px; font-weight: 400; }
.diary-book[data-exam="newts"] .diary-rule { color: rgba(35,111,105,0.58); }
.diary-copy { position: relative; z-index: 2; min-height: 365px; }
.diary-label { display: block; color: rgba(68,49,30,0.54); font-family: var(--data); font-size: 7px; font-weight: 800; letter-spacing: 0.17em; text-transform: uppercase; }
.diary-question { min-height: 115px; margin: 7px 0 20px; color: #33251d; font-family: var(--literary); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.25; }
.answer-well { padding-top: 18px; border-top: 1px solid rgba(79,52,27,0.13); opacity: 0; transform: translateY(10px); transition: opacity 500ms ease, transform 500ms ease; }
.answer-well.is-visible { opacity: 1; transform: translateY(0); }
.diary-answer { min-height: 74px; margin: 8px 0 0; color: var(--wine); font-family: var(--literary); font-size: clamp(25px, 2.5vw, 35px); font-style: italic; line-height: 1.2; text-shadow: 0 0 12px rgba(108,40,71,0.08); }
.diary-book[data-exam="newts"] .diary-answer { color: #185f59; text-shadow: 0 0 12px rgba(35,111,105,0.1); }
.diary-question[data-writing="true"]::after, .diary-answer[data-writing="true"]::after { display: inline-block; width: 5px; height: 0.9em; margin-left: 4px; background: currentColor; content: ""; opacity: 0.55; transform: rotate(8deg); animation: ink-cursor 650ms steps(1) infinite; }
@keyframes ink-cursor { 50% { opacity: 0; } }
.diary-blot { position: absolute; z-index: 1; border-radius: 50%; background: currentColor; opacity: 0.09; filter: blur(0.4px); }
.diary-blot::before, .diary-blot::after { position: absolute; border-radius: 50%; background: currentColor; content: ""; }
.blot-one { top: 27%; right: 7%; width: 8px; height: 8px; color: var(--wine); transform: rotate(24deg); }
.blot-one::before { top: 9px; left: 7px; width: 3px; height: 3px; }
.blot-one::after { top: -7px; left: -5px; width: 2px; height: 2px; }
.blot-two { right: 14%; bottom: 18%; width: 12px; height: 5px; color: var(--jade-dark); transform: rotate(-18deg); }
.diary-footer { position: absolute; z-index: 3; right: 43px; bottom: 27px; left: 43px; display: flex; align-items: center; justify-content: space-between; padding-top: 13px; border-top: 1px solid rgba(79,52,27,0.15); color: rgba(68,49,30,0.58); background: transparent; font-family: var(--data); font-size: 7px; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
.diary-footer > span { display: flex; gap: 7px; align-items: center; }
.diary-footer > span i { width: 5px; height: 5px; border-radius: 50%; background: var(--wine); box-shadow: 0 0 0 0 rgba(108,40,71,0.35); animation: diary-pulse 2.3s ease-out infinite; }
.diary-book[data-exam="newts"] .diary-footer > span i { background: var(--jade-dark); box-shadow: 0 0 0 0 rgba(35,111,105,0.35); }
@keyframes diary-pulse { 60% { box-shadow: 0 0 0 7px transparent; } }
.diary-next { padding: 7px 0 7px 14px; border: 0; color: #6c4825; background: transparent; font-size: 7px; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
.diary-next b { display: inline-block; margin-left: 7px; color: var(--wine); font-size: 12px; transition: transform 350ms ease; }
.diary-next:hover b { transform: rotate(180deg); }
.diary-book[data-exam="newts"] .diary-next b { color: var(--jade-dark); }
.diary-book.is-turning { animation: page-settle 520ms cubic-bezier(.18,.7,.15,1); }
@keyframes page-settle { 0% { transform: rotateY(-4deg) rotateZ(-0.5deg); } 48% { transform: rotateY(-11deg) rotateZ(-1deg); filter: brightness(0.78); } 100% { transform: rotateY(-4deg) rotateZ(-0.5deg); } }
.diary-book.is-fading .diary-copy { opacity: 0; filter: blur(4px); transition: opacity 700ms ease, filter 700ms ease; }

.exams { border-top: 1px solid var(--line); }
.section-intro { max-width: 390px; margin: 0; color: var(--mist); font-family: var(--literary); font-size: 17px; }
.exam-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.exam-card { position: relative; min-height: 520px; padding: 38px 42px; overflow: hidden; border: 1px solid rgba(238,226,199,0.14); transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease; }
.exam-card:hover { transform: translateY(-6px); border-color: rgba(217,164,65,0.45); box-shadow: 0 30px 90px rgba(0,0,0,0.25); }
.exam-card::before { position: absolute; inset: 12px; border: 1px solid rgba(238,226,199,0.055); content: ""; pointer-events: none; }
.owl-card { background: radial-gradient(circle at 70% 22%, rgba(217,164,65,0.12), transparent 18rem), linear-gradient(145deg, #231c16, #111b25); }
.newt-card { background: radial-gradient(circle at 70% 22%, rgba(93,203,187,0.11), transparent 18rem), linear-gradient(145deg, #102b2d, #0b1926); }
.exam-topline { display: flex; justify-content: space-between; color: #7f8b93; font-size: 7px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }
.exam-seal { position: relative; display: grid; width: 110px; height: 110px; margin: 52px 0 38px; place-items: center; border: 1px solid rgba(217,164,65,0.48); border-radius: 50%; color: var(--gold-light); }
.newt-card .exam-seal { border-color: rgba(93,203,187,0.48); color: var(--jade); }
.exam-seal::before, .exam-seal::after { position: absolute; border: 1px dashed currentColor; border-radius: 50%; content: ""; opacity: 0.38; }
.exam-seal::before { inset: 8px; animation: orbit-turn 18s linear infinite; }
.exam-seal::after { inset: -12px; animation: orbit-turn 28s linear infinite reverse; }
.exam-seal i { position: absolute; width: 144px; height: 1px; background: linear-gradient(90deg, transparent, currentColor, transparent); }
.exam-seal b { font-family: var(--display); font-size: 34px; font-weight: 400; }
.exam-seal em { position: absolute; right: -4px; bottom: 6px; display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; color: #111923; background: var(--gold); font-size: 8px; font-style: normal; font-weight: 800; }
.newt-card .exam-seal em { background: var(--jade); }
.exam-expansion { margin: 0; color: var(--gold); font-size: 8px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.newt-card .exam-expansion { color: var(--jade); }
.exam-card h3 { margin: 3px 0 12px; color: var(--moon); font-family: var(--display); font-size: 46px; font-weight: 400; letter-spacing: 0.02em; }
.exam-card > p:not(.exam-expansion) { max-width: 500px; margin: 0; color: #95a2ad; font-family: var(--literary); font-size: 16px; line-height: 1.65; }
.exam-card footer { position: absolute; right: 42px; bottom: 32px; left: 42px; display: flex; justify-content: space-between; padding-top: 18px; border-top: 1px solid rgba(238,226,199,0.1); color: #74838f; font-size: 8px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

.method { overflow: hidden; border-block: 1px solid var(--line); background: rgba(2,7,12,0.46); }
.method-shell { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 100px; align-items: start; }
.method-heading { position: sticky; top: 130px; }
.method-heading h2 { font-size: clamp(47px, 5vw, 68px); }
.method-heading > p:last-child { max-width: 400px; margin-top: 27px; color: var(--mist); font-family: var(--literary); font-size: 16px; }
.method-list { margin: 0; padding: 0; list-style: none; }
.method-list li { display: grid; grid-template-columns: 48px 1fr auto; gap: 23px; align-items: center; min-height: 135px; padding: 25px 16px; border-top: 1px solid var(--line); }
.method-list li:last-child { border-bottom: 1px solid var(--line); }
.method-list li > span { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(217,164,65,0.28); border-radius: 50%; color: var(--gold); font-family: var(--literary); font-size: 12px; }
.method-list strong { color: var(--moon); font-family: var(--literary); font-size: 25px; font-weight: 400; }
.method-list p { margin: 3px 0 0; color: var(--mist-dark); font-size: 10px; }
.method-list li > i { color: rgba(93,203,187,0.4); font-style: normal; }

.run-section { position: relative; padding-block: 112px; overflow: hidden; color: #161a1b; background: radial-gradient(circle at 80% 0, #ffe29a, transparent 30rem), linear-gradient(135deg, #c98c2e, #eab64f); }
.run-section::before { position: absolute; inset: 10px; border: 1px solid rgba(43,27,6,0.14); content: ""; }
.run-stars { position: absolute; top: 20px; right: 4%; color: rgba(46,29,8,0.25); font-family: var(--literary); font-size: 14px; letter-spacing: 0.5em; }
.run-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.run-grid .eyebrow { color: #60400d; }
.run-grid .eyebrow > span { border-color: rgba(61,38,5,0.25); }
.run-grid h2 { color: #15191a; font-size: clamp(56px, 6vw, 78px); }
.run-grid h2 em { color: #5f2e4a; }
.run-grid > div:first-child > p:last-child { max-width: 500px; color: #61491e; font-family: var(--literary); font-size: 16px; }
.spellbook-terminal { position: relative; padding: 50px 34px 30px; border: 1px solid rgba(255,255,255,0.09); background: #09121c; box-shadow: 0 28px 70px rgba(69,40,3,0.28); }
.spellbook-terminal::before, .spellbook-terminal::after { position: absolute; top: 8px; bottom: 8px; width: 8px; border-block: 1px solid rgba(217,164,65,0.35); content: ""; }
.spellbook-terminal::before { left: 8px; border-left: 1px solid rgba(217,164,65,0.35); }
.spellbook-terminal::after { right: 8px; border-right: 1px solid rgba(217,164,65,0.35); }
.terminal-ribbon { position: absolute; top: 15px; left: 34px; color: var(--gold); font-size: 7px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.spellbook-terminal pre { margin: 0; overflow-x: auto; color: #b8c4cd; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; line-height: 2; }
.spellbook-terminal code b { color: var(--jade); }
.spellbook-terminal button { position: absolute; right: 20px; bottom: 18px; padding: 7px 10px; border: 1px solid #30404d; color: #92a0aa; background: #111e29; font-size: 7px; letter-spacing: 0.09em; text-transform: uppercase; }

body > footer { padding-block: 38px; background: #02060b; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 50px; align-items: center; }
.footer-grid > p { color: #536270; font-size: 8px; line-height: 1.7; }
.footer-grid > a { color: var(--gold); font-size: 8px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

dialog { width: min(680px, calc(100% - 32px)); padding: 0; border: 1px solid rgba(217,164,65,0.42); color: var(--moon); background: #0c1925; box-shadow: 0 35px 120px rgba(0,0,0,0.72); }
dialog::backdrop { background: rgba(1,5,9,0.84); backdrop-filter: blur(9px); }
.dialog-close { position: absolute; z-index: 2; top: 17px; right: 17px; width: 33px; height: 33px; border: 1px solid rgba(238,226,199,0.16); border-radius: 50%; color: var(--moon); background: transparent; font-size: 20px; }
.dialog-inner { position: relative; padding: 47px; overflow: hidden; }
.dialog-inner::before { position: absolute; top: -170px; right: -130px; width: 350px; height: 350px; border: 1px solid rgba(93,203,187,0.08); border-radius: 50%; content: ""; }
.dialog-provider { color: var(--gold); font-size: 8px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.dialog-inner h2 { max-width: 520px; margin: 8px 0; color: var(--moon); font-family: var(--literary); font-size: 42px; font-weight: 400; line-height: 1.02; }
.dialog-scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-block: 30px; background: rgba(238,226,199,0.1); }
.dialog-scores div { padding: 20px; text-align: center; background: #0c1925; }
.dialog-scores span { display: block; color: var(--mist-dark); font-size: 7px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.dialog-scores strong { color: var(--moon); font-family: var(--literary); font-size: 30px; font-weight: 400; }
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.category-item { display: flex; justify-content: space-between; padding: 10px 12px; border: 1px solid rgba(238,226,199,0.08); color: var(--mist-dark); font-size: 9px; text-transform: capitalize; }
.category-item strong { color: var(--jade); font-weight: 600; }
.dialog-meta { margin-top: 22px; color: #5c6c79; font-size: 8px; }

.reveal { opacity: 0; filter: blur(7px); transform: translateY(36px); transition: opacity 900ms ease, filter 900ms ease, transform 900ms cubic-bezier(.18,.7,.15,1); }
.reveal[data-delay="1"] { transition-delay: 120ms; }
.reveal[data-delay="2"] { transition-delay: 240ms; }
.reveal[data-delay="3"] { transition-delay: 360ms; }
.reveal.is-visible { opacity: 1; filter: blur(0); transform: translateY(0); }

@media (max-width: 1050px) {
  .topbar-inner { grid-template-columns: 1fr auto; }
  .topbar nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 50px; }
  .hero-instrument { justify-self: center; width: min(430px, 86vw); }
  .section-heading { grid-template-columns: 1fr; gap: 28px; }
  .heading-note { justify-self: start; }
  .diary-layout { grid-template-columns: 1fr; gap: 65px; }
  .diary-heading > p:not(.eyebrow) { max-width: 600px; }
  .method-shell { grid-template-columns: 1fr; gap: 55px; }
  .method-heading { position: static; }
  .run-grid { gap: 55px; }
}

@media (max-width: 800px) {
  .shell { width: min(100% - 32px, 1280px); }
  .section { padding-block: 88px; }
  .hero { min-height: auto; padding-block: 80px; }
  .hero h1 { font-size: clamp(56px, 14vw, 83px); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid > div:nth-child(2) { border-right: 1px solid var(--line); }
  .facts-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .chart-header { flex-direction: column; }
  .chart-toolbar { align-items: flex-start; flex-direction: column; }
  .chart-filter { width: 100%; justify-content: space-between; }
  .rankings-overview { min-height: auto; padding-block: 88px 0; }
  .rankings-overview .section-heading { margin-bottom: 32px; }
  .rankings-overview .section-heading h2 { font-size: clamp(44px, 11vw, 58px); }
  .column-chart-wrap { min-height: 430px; padding: 25px 16px 15px; }
  .y-axis, .grid-lines { height: 350px; }
  .plot-area { height: 400px; }
  .column-chart { height: 400px; }
  .model-column { grid-template-rows: 350px 50px; }
  .bar-stage { height: 350px; }
  .lora-story-runner { grid-template-rows: 350px 50px; height: 400px; }
  .story-bar-stage { height: 350px; }
  .model-label small { display: none; }
  .insight-grid { grid-template-columns: 1fr; }
  .diary-object { width: min(100%, 720px); margin-inline: auto; }
  .exam-grid { grid-template-columns: 1fr; }
  .run-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 560px) {
  .topbar-inner { width: calc(100% - 28px); min-height: 74px; }
  .brand-sigil { width: 40px; height: 40px; }
  .brand-copy strong { font-size: 11px; }
  .top-action { display: none; }
  .hero h1 { font-size: 51px; line-height: 0.98; }
  .hero-lede { font-size: 17px; }
  .hero-instrument { width: 340px; max-width: 94vw; }
  .instrument-center { inset: 90px; }
  .instrument-center strong { font-size: 50px; }
  @keyframes instrument-orbit { from { transform: rotate(0) translateX(155px); } to { transform: rotate(360deg) translateX(155px); } }
  .facts-grid > div { padding: 20px 14px; }
  .facts-grid strong { font-size: 23px; }
  .section-heading h2 { font-size: 46px; }
  .chart-header, .chart-toolbar { padding-inline: 22px; }
  .chart-controls { width: 100%; }
  .metric-button { flex: 1; padding-inline: 6px; }
  .chart-legend { gap: 12px; }
  .column-chart-wrap { grid-template-columns: 35px minmax(0,1fr); }
  .column-chart { padding-inline: 1px; }
  .model-column { flex-basis: 0; width: auto; overflow: hidden; }
  .bar-stage { gap: 1px; }
  .chart-bar { min-width: 1px; border-radius: 2px 2px 0 0; }
  .bar-value { display: none; }
  .model-label { padding-inline: 0; }
  .model-label strong, .model-label small { display: none; }
  .model-label em { display: block; overflow: hidden; color: #625d55; font-size: 6px; font-style: normal; font-weight: 800; text-overflow: clip; white-space: nowrap; }
  .story-origin .bar-stage::after { bottom: 5px; width: 14px; height: 14px; font-size: 7px; }
  .story-label strong, .story-label small { display: none; }
  .chart-foot { padding-inline: 22px; }
  .chart-story-trigger { order: -1; width: 100%; min-height: 30px; }
  .table-heading { align-items: flex-start; flex-direction: column; }
  .search-box { width: 100%; }
  th:nth-child(6), td:nth-child(6) { display: none; }
  th, td { padding-inline: 12px; }
  .model-cell { min-width: 190px; }
  .diary-heading h2 { font-size: 48px; }
  .diary-book { min-height: 540px; padding: 12px 10px 12px 36px; transform: none; }
  .diary-object:hover .diary-book { transform: none; }
  .diary-spine { left: 9px; width: 18px; }
  .diary-page { min-height: 514px; padding: 27px 25px 74px; }
  .diary-question { min-height: 130px; font-size: 23px; }
  .diary-answer { font-size: 27px; }
  .diary-footer { right: 25px; bottom: 24px; left: 25px; gap: 12px; }
  .diary-footer > span { max-width: 160px; line-height: 1.4; }
  @keyframes page-settle { 0% { transform: translateX(0); } 48% { transform: translateX(-4px); filter: brightness(0.78); } 100% { transform: translateX(0); } }
  .exam-card { min-height: 520px; padding: 30px; }
  .exam-card footer { right: 30px; left: 30px; }
  .method-list li { grid-template-columns: 42px 1fr; }
  .method-list li > i { display: none; }
  .spellbook-terminal { padding-inline: 24px; }
  .dialog-inner { padding: 42px 23px 25px; }
  .category-grid { grid-template-columns: 1fr; }
}

@media (pointer: coarse) { .cursor-aura { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  #magic-canvas, .cursor-aura { display: none; }
  .reveal { opacity: 1; filter: none; transform: none; }
  .chart-bar { transform: scaleY(1); }
}
