/* Typography compliance tokens: Roboto Slab** ExtraBold Sla* */
:root {
  --midnight: #111A33;
  --green: #54F2B8;
  --violet: #8A5CFF;
  --rose: #FF7DBB;
  --amber: #FFC857;
  --vellum: #FFF2D6;
  --mahogany: #5B2E1F;
  --dust: #C8D7FF;
  --slab: "Roboto Slab", Georgia, serif;
  --zilla: "Zilla Slab", Georgia, serif;
  --brief: "Literata", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--vellum);
  background: var(--midnight);
  font-family: var(--brief);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  opacity: .2;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,.65) 0 1px, transparent 1.5px), radial-gradient(circle at 70% 60%, rgba(200,215,255,.55) 0 1px, transparent 1.4px), linear-gradient(90deg, rgba(255,255,255,.04), transparent 22%, rgba(255,255,255,.035) 48%, transparent 75%);
  background-size: 130px 130px, 190px 190px, 8px 100%;
  mix-blend-mode: screen;
}

a { color: inherit; text-decoration: none; }

.trial-stage { position: relative; min-height: 100vh; }

.scene {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(78px, 8vw, 120px) clamp(22px, 5vw, 76px);
}

.docket-strip {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 30;
  padding: 8px;
  border: 1px solid rgba(255, 242, 214, .26);
  border-radius: 999px;
  background: rgba(17, 26, 51, .62);
  box-shadow: 0 12px 40px rgba(17, 26, 51, .4), inset 0 0 20px rgba(255, 200, 87, .08);
  backdrop-filter: blur(14px);
}

.docket-strip a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--dust);
  font-family: var(--zilla);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .35s ease, background .35s ease;
}

.docket-strip a:hover { color: var(--midnight); background: var(--amber); }

.chamber {
  display: grid;
  align-items: center;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 200, 87, .36), transparent 42%),
    radial-gradient(ellipse at 18% 18%, rgba(138, 92, 255, .52), transparent 45%),
    radial-gradient(ellipse at 88% 14%, rgba(84, 242, 184, .36), transparent 42%),
    linear-gradient(180deg, #111A33 0%, #172143 48%, #5B2E1F 100%);
}

.aurora-window {
  position: absolute;
  width: 42vw;
  height: 120vh;
  top: -20vh;
  filter: blur(28px);
  opacity: .62;
  mix-blend-mode: screen;
  animation: auroraDrift 15s ease-in-out infinite alternate;
}

.aurora-one { left: 6vw; background: linear-gradient(100deg, transparent, #54F2B8, #8A5CFF, transparent); transform: rotate(13deg); }
.aurora-two { right: 4vw; background: linear-gradient(100deg, transparent, #FF7DBB, #FFC857, #54F2B8, transparent); transform: rotate(-11deg); animation-delay: -6s; }

.hero-copy { position: relative; z-index: 4; max-width: 980px; }
.scene-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--amber);
  font-family: var(--zilla);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1, h2 { font-family: var(--slab); font-weight: 800; margin: 0; line-height: .88; letter-spacing: -.06em; }
h1 {
  font-size: clamp(82px, 18vw, 250px);
  color: var(--vellum);
  text-shadow: 0 0 22px rgba(255, 200, 87, .26), 0 18px 60px rgba(17, 26, 51, .72);
}
h2 { font-size: clamp(48px, 8vw, 120px); max-width: 980px; }

.hero-line {
  max-width: 620px;
  margin: 24px 0 0 clamp(4px, 10vw, 160px);
  color: var(--dust);
  font-size: clamp(19px, 2.4vw, 32px);
  font-style: italic;
  line-height: 1.32;
}

.bench-silhouette {
  position: absolute;
  left: 8vw;
  right: 8vw;
  bottom: 12vh;
  height: 34vh;
  border-radius: 34px 34px 0 0;
  background: linear-gradient(180deg, rgba(17, 26, 51, .1), rgba(17, 26, 51, .88) 55%, #0b1020), linear-gradient(90deg, transparent, rgba(255, 200, 87, .16), transparent);
  box-shadow: 0 -18px 80px rgba(255, 200, 87, .16), inset 0 16px 0 rgba(255, 242, 214, .06);
  z-index: 2;
}
.rail { position: absolute; bottom: 26%; width: 38%; height: 24px; background: rgba(91, 46, 31, .94); box-shadow: 0 0 24px rgba(255, 200, 87, .16); }
.rail-left { left: 5%; transform: skewY(8deg); }
.rail-right { right: 5%; transform: skewY(-8deg); }
.judge-chair { position: absolute; left: 50%; bottom: 34%; width: 16vw; height: 23vh; transform: translateX(-50%); border-radius: 90px 90px 8px 8px; background: #0c1226; box-shadow: 0 0 70px rgba(138, 92, 255, .2); }

.perspective-lines { position: absolute; inset: auto 0 0; height: 42vh; pointer-events: none; z-index: 1; }
.perspective-lines i { position: absolute; bottom: 0; left: 50%; width: 1px; height: 100%; background: linear-gradient(transparent, rgba(255, 200, 87, .35)); transform-origin: bottom; }
.perspective-lines i:nth-child(1) { transform: rotate(65deg); }
.perspective-lines i:nth-child(2) { transform: rotate(35deg); }
.perspective-lines i:nth-child(3) { transform: rotate(-35deg); }
.perspective-lines i:nth-child(4) { transform: rotate(-65deg); }

.candle-row { position: absolute; left: 0; right: 0; bottom: 28px; display: flex; justify-content: space-around; z-index: 5; }
.candle-row span, .final-candle span {
  width: 16px; height: 52px; border-radius: 10px 10px 4px 4px;
  background: linear-gradient(90deg, #FFF2D6, #FFC857 62%, #8c5c2d);
  box-shadow: 0 0 34px 12px rgba(255, 200, 87, .3);
  position: relative;
}
.candle-row span::before, .tiny-flame, .final-candle span::before {
  content: "";
  width: 13px; height: 22px;
  border-radius: 80% 20% 70% 30%;
  background: radial-gradient(circle at 50% 70%, #FFF2D6 0 16%, #FFC857 40%, #FF7DBB 72%, transparent 74%);
  box-shadow: 0 0 24px 8px rgba(255, 200, 87, .62), 0 0 46px rgba(84, 242, 184, .22);
  animation: flicker 1.9s infinite alternate ease-in-out;
}
.candle-row span::before, .final-candle span::before { position: absolute; top: -22px; left: 2px; }
.tiny-flame { display: inline-block; width: 10px; height: 17px; }

.film-leader { position: absolute; right: 7vw; bottom: 15vh; color: rgba(255, 242, 214, .12); font: 800 24vw/1 var(--slab); }

.evidence-wall {
  background: linear-gradient(180deg, #111A33 0%, #201b35 38%, #5B2E1F 100%);
}
.section-heading { position: relative; z-index: 2; margin-bottom: 54px; }
.section-heading h2 { color: var(--vellum); text-shadow: 0 0 34px rgba(138, 92, 255, .25); }

.case-grid {
  display: grid;
  grid-template-columns: 1.1fr .75fr .95fr 1.15fr;
  grid-auto-rows: minmax(150px, 19vw);
  gap: clamp(16px, 2vw, 30px);
  perspective: 1000px;
}

.case-frame {
  position: relative;
  padding: 16px;
  border: 1px solid rgba(255, 242, 214, .42);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,242,214,.92), rgba(200,215,255,.72));
  color: var(--midnight);
  box-shadow: 0 22px 80px rgba(0,0,0,.36), inset 0 0 0 7px rgba(91,46,31,.08);
  transition: transform .55s ease, box-shadow .55s ease, filter .55s ease;
}
.case-frame::before {
  content: attr(data-note);
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  color: var(--rose);
  font: 600 12px var(--zilla);
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity .35s ease, transform .35s ease;
}
.case-frame:hover::before, .case-frame.is-lit::before { opacity: 1; transform: translateY(0); }
.case-frame:hover, .case-frame.is-lit { transform: translateY(-10px) rotate(var(--lift-rotate, 0deg)) scale(1.025); box-shadow: 0 28px 95px rgba(84,242,184,.18), 0 0 38px rgba(255,200,87,.22); }
.tilt-left { transform: rotate(-2.4deg); --lift-rotate: -1deg; }
.tilt-right { transform: rotate(2.8deg); --lift-rotate: 1.2deg; }
.frame-large { grid-column: span 2; grid-row: span 2; }
.frame-tall { grid-row: span 2; }
.frame-square { grid-column: span 1; grid-row: span 1; }
.frame-wide { grid-column: span 2; }
.frame-narrow { grid-row: span 2; }
.frame-medium { grid-column: span 2; }

.photo {
  min-height: 68%;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  filter: sepia(.42) saturate(.86) contrast(1.05);
  background-blend-mode: screen, multiply, normal;
}
.photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.4), transparent 28%), linear-gradient(120deg, rgba(84,242,184,.2), rgba(138,92,255,.18), rgba(255,125,187,.16)); mix-blend-mode: screen; opacity: .78; }
.photo-bench { background: radial-gradient(ellipse at 50% 40%, transparent 0 18%, rgba(17,26,51,.86) 19% 23%, transparent 24%), linear-gradient(160deg, rgba(255,200,87,.45), transparent 38%), repeating-linear-gradient(90deg, #36261e 0 16px, #231717 17px 35px); }
.photo-hand { background: radial-gradient(ellipse at 62% 64%, #FFF2D6 0 12%, #7c5b50 13% 22%, transparent 23%), linear-gradient(140deg, #111A33, #5B2E1F 55%, #FFC857); }
.photo-brief { background: linear-gradient(110deg, transparent 0 12%, rgba(17,26,51,.7) 13% 15%, transparent 16% 36%, rgba(138,92,255,.45) 37% 44%, transparent 45%), repeating-linear-gradient(0deg, #FFF2D6 0 18px, #eadfc8 19px 21px); }
.photo-gallery { background: radial-gradient(circle at 24% 48%, #C8D7FF 0 8%, transparent 9%), radial-gradient(circle at 50% 42%, #FFC857 0 7%, transparent 8%), radial-gradient(circle at 74% 50%, #FF7DBB 0 8%, transparent 9%), linear-gradient(180deg, #111A33, #5B2E1F); }
.sprockets { position: absolute; inset: 8px auto 8px 8px; width: 14px; background: repeating-linear-gradient(0deg, rgba(255,242,214,.8) 0 8px, transparent 9px 20px); z-index: 3; }
.case-frame p { margin: 14px 0 0; font: 600 clamp(20px, 2vw, 34px)/1 var(--zilla); letter-spacing: .03em; }
.case-frame em { display: block; margin-top: 8px; color: rgba(17,26,51,.72); font-size: 15px; }
.transcript, .docket-card { background: linear-gradient(180deg, rgba(255,242,214,.94), rgba(255,200,87,.22)); }
.transcript h3, .docket-card h3 { margin: 28px 0 18px; font: 600 30px/1 var(--zilla); color: var(--mahogany); }
.wax-seal { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: var(--vellum); background: radial-gradient(circle, #FF7DBB, #8A5CFF 72%); font: 800 56px/1 var(--slab); box-shadow: 0 0 28px rgba(255,125,187,.48); animation: pulseSeal 3s infinite; }

.crosslight {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 7vw;
  background: radial-gradient(circle at 30% 45%, rgba(255,200,87,.25), transparent 24%), radial-gradient(circle at 68% 36%, rgba(84,242,184,.22), transparent 30%), #111A33;
}
.loupe { width: min(42vw, 460px); aspect-ratio: 1; border: 20px solid rgba(255,242,214,.68); border-radius: 50%; display: grid; place-items: center; color: var(--amber); font: 800 34vw/1 var(--slab); background: radial-gradient(circle, rgba(200,215,255,.18), rgba(138,92,255,.16) 52%, rgba(17,26,51,.72)); box-shadow: 0 0 80px rgba(84,242,184,.24), inset 0 0 44px rgba(255,200,87,.18); transition: transform .2s ease-out; }
.cross-copy p:last-child, .final-copy p:last-child { color: var(--dust); font-size: clamp(18px, 2vw, 25px); line-height: 1.55; max-width: 700px; }
.transcript-ribbons { position: absolute; inset: 0; pointer-events: none; }
.transcript-ribbons span { position: absolute; left: -10vw; width: 120vw; padding: 14px 0; color: rgba(17,26,51,.86); background: rgba(255,242,214,.78); font: 600 17px var(--zilla); letter-spacing: .18em; text-transform: uppercase; transform: rotate(-8deg); animation: ribbonSlide 18s linear infinite; }
.transcript-ribbons span:nth-child(1) { top: 18%; }
.transcript-ribbons span:nth-child(2) { top: 52%; transform: rotate(6deg); animation-duration: 22s; }
.transcript-ribbons span:nth-child(3) { top: 78%; transform: rotate(-3deg); animation-duration: 26s; }

.after-table {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 6vw;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,242,214,.72), transparent 44%), linear-gradient(180deg, #111A33 0%, #293552 42%, #FFF2D6 100%);
  color: var(--midnight);
}
.table-surface { position: relative; min-height: 56vh; border-radius: 34px; background: linear-gradient(135deg, #5B2E1F, #8b5330 58%, #FFC857); box-shadow: 0 30px 100px rgba(17,26,51,.36), inset 0 0 60px rgba(255,242,214,.15); }
.print-stack { position: absolute; width: 45%; min-height: 28%; padding: 24px; border-radius: 18px; background: #FFF2D6; color: #5B2E1F; box-shadow: 0 20px 50px rgba(17,26,51,.28); font: 600 clamp(22px, 3vw, 46px)/1 var(--zilla); }
.stack-one { left: 8%; top: 12%; transform: rotate(-8deg); }
.stack-two { right: 9%; top: 25%; transform: rotate(5deg); background: #C8D7FF; }
.stack-three { left: 28%; bottom: 12%; transform: rotate(2deg); background: linear-gradient(135deg, #FFF2D6, #FF7DBB); }
.final-candle { position: absolute; right: 16%; bottom: 18%; }
.final-copy h2 { color: var(--midnight); }
.final-copy .scene-kicker { color: var(--mahogany); }
.final-copy p:last-child { color: rgba(17,26,51,.8); }

.cursor-aura {
  position: fixed;
  left: 0;
  top: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 25;
  opacity: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,200,87,.7) 0 8%, rgba(255,200,87,.28) 19%, rgba(84,242,184,.2) 42%, rgba(138,92,255,.18) 62%, transparent 72%);
  filter: blur(8px);
  mix-blend-mode: screen;
  transition: opacity .35s ease;
}
.cursor-aura.is-visible { opacity: 1; }
.dust-field { position: fixed; inset: 0; pointer-events: none; z-index: 24; }
.mote { position: fixed; width: 4px; height: 4px; border-radius: 50%; background: #C8D7FF; box-shadow: 0 0 12px #FFC857; opacity: .78; animation: moteFade 1.2s ease-out forwards; }

@keyframes auroraDrift { from { translate: -3vw 0; filter: blur(34px) hue-rotate(0deg); } to { translate: 4vw 5vh; filter: blur(22px) hue-rotate(28deg); } }
@keyframes flicker { 0% { transform: translateX(-1px) scaleY(.92) rotate(-4deg); opacity: .8; } 50% { transform: translateX(1px) scaleY(1.08) rotate(3deg); opacity: 1; } 100% { transform: translateX(0) scaleY(.98) rotate(-1deg); opacity: .9; } }
@keyframes pulseSeal { 0%, 86%, 100% { transform: scale(1); } 90% { transform: scale(1.08); } }
@keyframes ribbonSlide { from { background-position: 0 0; translate: -10vw 0; } to { background-position: 400px 0; translate: 10vw 0; } }
@keyframes moteFade { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }

@media (max-width: 900px) {
  .docket-strip { max-width: calc(100vw - 22px); overflow: auto; }
  .case-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .case-frame, .frame-large, .frame-tall, .frame-wide, .frame-narrow, .frame-medium { grid-column: auto; grid-row: auto; min-height: 270px; }
  .crosslight, .after-table { grid-template-columns: 1fr; }
  .loupe { width: 76vw; }
  .after-table { color: var(--vellum); background: linear-gradient(180deg, #111A33, #5B2E1F); }
  .final-copy h2, .final-copy .scene-kicker { color: var(--vellum); }
  .final-copy p:last-child { color: var(--dust); }
}
