/* ==========================================================================
   KRISH PATEL — AI/ML ENGINEER PORTFOLIO
   Strict High-Fidelity Reference Clone of marcobellingeri.dev/en/
   Pixel-Perfect Layout & Anti-Collision System
   ========================================================================== */

:root {
  --paper: #fafaf7;
  --paper-dark: #f0eee7;
  --ink: #181410;
  --orange: #ff5a1f;
  --orange-text: #b8420f;
  --violet: #6b4fff;
  --halftone: #a8a296;
  --rule: #181410;
  --seal: #1e8f5a;
  --ia: #a86400;
  --bar-h: 57px;
  --toc-h: 53px;
}

html[data-mode="night"] {
  --paper: #0d1117;
  --paper-dark: #161b22;
  --ink: #e6edf3;
  --orange: #f0883e;
  --orange-text: #f0883e;
  --violet: #a371f7;
  --halftone: #8b949e;
  --rule: #30363d;
  --seal: #3fb950;
  --ia: #e3b341;
}

/* Base Styles & Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  position: relative;
  overflow-x: hidden;
}

/* Paper Grain Noise Texture */
body::after {
  content: "";
  pointer-events: none;
  z-index: 50;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

html[data-mode="night"] body::after {
  mix-blend-mode: overlay;
  opacity: 0.025;
}

/* Night Mode Editorial Accents — Crisp & Clean (No Blurry Neon Shadows) */
html[data-mode="night"] h1.name {
  color: var(--orange);
  text-shadow: none;
}

html[data-mode="night"] .section-head h2.display {
  color: var(--ink);
  text-shadow: none;
}

html[data-mode="night"] .big-stat,
html[data-mode="night"] .mag-stat,
html[data-mode="night"] .mag-number,
html[data-mode="night"] .svc-basis .v {
  color: var(--orange-text);
  text-shadow: none;
}

html[data-mode="night"] .issue-tag,
html[data-mode="night"] .role-chip {
  box-shadow: none;
  background: #161b22;
  border-color: #30363d;
  color: var(--ink);
}

/* 1. High-Contrast Text on Solid Orange Elements */
html[data-mode="night"] .status.shipped,
html[data-mode="night"] .tl2-tag.hl,
html[data-mode="night"] .svc-card::before,
html[data-mode="night"] .stack-card::before,
html[data-mode="night"] .svc-chip[aria-pressed="true"],
html[data-mode="night"] .svc-brief-send,
html[data-mode="night"] .svc-brief-copy.copied,
html[data-mode="night"] .util-btn.copied,
html[data-mode="night"] .facade-cta:hover,
html[data-mode="night"] .svc-nav-btn:hover,
html[data-mode="night"] .skip-link:focus {
  background: var(--orange);
  color: #0d1117 !important;
  font-weight: 700;
}

/* 2. Brief Box (Dark Sleek Terminal - No White Flashbang) */
html[data-mode="night"] .svc-brief {
  background: #090d13;
  color: var(--ink);
  border-color: #30363d;
}

html[data-mode="night"] .svc-brief-head,
html[data-mode="night"] .svc-brief-actions,
html[data-mode="night"] .svc-brief-copy {
  border-color: #30363d;
}

html[data-mode="night"] .svc-brief-body {
  color: var(--ink);
}

html[data-mode="night"] .svc-brief-copy {
  color: var(--ink);
}

html[data-mode="night"] .svc-brief-copy:hover {
  background: rgba(240, 136, 62, 0.12);
  color: var(--orange);
}

/* 3. Security Status Flags & Safeguards */
html[data-mode="night"] .sec-flag {
  background: rgba(63, 185, 80, 0.16);
  color: var(--seal);
  border: 1px solid var(--seal);
  font-weight: 700;
}

/* 4. Booking & Call to Action Buttons */
html[data-mode="night"] .facade-cta {
  background: var(--orange);
  color: #0d1117 !important;
  font-weight: 700;
  border-color: var(--orange);
}

html[data-mode="night"] .facade-cta:hover {
  background: #ffa166;
  color: #0d1117 !important;
  border-color: #ffa166;
}

html[data-mode="night"] .ticker-label {
  background: #161b22;
  color: var(--orange);
  border-right: 1px solid #30363d;
}

/* 5. Modern Slate Borders (Reduced Glare) */
html[data-mode="night"] .svc-card,
html[data-mode="night"] .stack-card,
html[data-mode="night"] .booking-frame,
html[data-mode="night"] .corrections-desk,
html[data-mode="night"] .hero-dispatch-box,
html[data-mode="night"] .num-grid,
html[data-mode="night"] .svc-order {
  border-color: #30363d;
}

html[data-mode="night"] .num-cell,
html[data-mode="night"] .dispatch-header,
html[data-mode="night"] .corrections-header,
html[data-mode="night"] .stack-ticker {
  border-color: #30363d;
}

html[data-mode="night"] .paper {
  border-color: #30363d;
}

html[data-mode="night"] .paper-link:hover {
  box-shadow: 3px 3px 0 #30363d;
  border-color: var(--orange);
}

html[data-mode="night"] .sec-row {
  border-bottom-color: #21262d;
}

html[data-mode="night"] .utility-bar,
html[data-mode="night"] .hero,
html[data-mode="night"] .toc {
  border-color: #30363d;
}

html[data-mode="night"] .toc a {
  border-color: #30363d;
}

html[data-mode="night"] .util-btn {
  border-color: #30363d;
  color: var(--ink);
}

html[data-mode="night"] .util-btn:hover {
  background: var(--orange);
  color: #0d1117;
  border-color: var(--orange);
}

html[data-mode="night"] .hero-cta {
  background: var(--orange);
  color: #0d1117;
  border-color: var(--orange);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.6);
}

html[data-mode="night"] .grade-chip {
  border-color: #30363d;
  background: #161b22;
}

html[data-mode="night"] .grade-verify {
  border-left-color: #30363d;
}

/* Typography Classes */
.mono {
  font-family: "JetBrains Mono", monospace;
}

.display {
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-family: "Anton", Impact, sans-serif;
  font-weight: 400;
}

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

/* Custom Cursors */
@media (hover: hover) and (pointer: fine) {

  a,
  button,
  .review-toggle,
  .mag-summary,
  .util-btn,
  .cmdk-item,
  .toc a,
  .stack-card,
  .neon-close,
  .svc-chip {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M14 2 L22 14 L14 26 L6 14 Z' fill='none' stroke='%23181410' stroke-width='2'/%3E%3Cline x1='14' y1='10' x2='14' y2='22' stroke='%23181410' stroke-width='1.5'/%3E%3Ccircle cx='14' cy='16' r='1.5' fill='%23FF5A1F'/%3E%3C/svg%3E") 14 14, pointer;
  }

  html[data-mode="night"] a,
  html[data-mode="night"] button,
  html[data-mode="night"] .review-toggle,
  html[data-mode="night"] .mag-summary,
  html[data-mode="night"] .util-btn,
  html[data-mode="night"] .toc a,
  html[data-mode="night"] .stack-card,
  html[data-mode="night"] .neon-close,
  html[data-mode="night"] .svc-chip {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M14 2 L22 14 L14 26 L6 14 Z' fill='none' stroke='%238B949E' stroke-width='2'/%3E%3Cline x1='14' y1='10' x2='14' y2='22' stroke='%238B949E' stroke-width='1.5'/%3E%3Ccircle cx='14' cy='16' r='1.5' fill='%23F0883E'/%3E%3C/svg%3E") 14 14, pointer;
  }

  .crt-screen,
  .crt-screen * {
    cursor: auto;
  }
}

/* Accessibility Focus States & Skip Link */
.skip-link {
  z-index: 1000;
  background: var(--orange);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 10px 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  position: fixed;
  top: -60px;
  left: 12px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--orange-text);
  outline-offset: 2px;
}

/* Scroll Animations (Reveal) */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal-stagger>* {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s, transform 0.4s;
}

html.js-ready .reveal:not(.visible) {
  opacity: 0;
  transform: translateY(22px);
}

html.js-ready .reveal-stagger:not(.visible)>* {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.visible,
.reveal-stagger.visible>* {
  opacity: 1 !important;
  transform: none !important;
}

/* Press Loader Overlay */
.press-loader {
  z-index: 500;
  background: var(--paper);
  justify-content: center;
  align-items: center;
  animation: 0.2s 0.78s forwards press-out;
  display: flex;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: auto;
}

@keyframes press-out {
  0% {
    opacity: 1;
    visibility: visible;
  }

  99% {
    opacity: 0;
    visibility: visible;
  }

  100% {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none;
  }
}

html[data-loader="seen"] .press-loader {
  display: none !important;
}

.press-loader-inner {
  text-align: center;
}

.press-line {
  letter-spacing: 0.25em;
  color: var(--ink);
  margin-top: 16px;
  font-size: 13px;
  display: block;
}

.page-flip {
  perspective: 600px;
  width: 120px;
  height: 82px;
  margin: 0 auto;
}

.book {
  width: 100%;
  height: 100%;
  display: flex;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.leaf {
  box-sizing: border-box;
  background: var(--paper-dark);
  border: 1px solid var(--ink);
  width: 60px;
  height: 82px;
  padding: 10px 7px;
}

.leaf span {
  background: var(--ink);
  opacity: 0.3;
  border-radius: 1px;
  height: 2px;
  margin-bottom: 7px;
  display: block;
}

.leaf span:nth-child(2) {
  width: 78%;
}

.leaf span:nth-child(3) {
  width: 55%;
}

.leaf-left {
  border-right: none;
}

.right-stack {
  width: 60px;
  height: 82px;
  position: relative;
}

.right-stack .leaf {
  position: absolute;
  top: 0;
  left: 0;
}

.leaf-back {
  z-index: 1;
}

.leaf-front {
  z-index: 2;
  transform-origin: 0;
  backface-visibility: hidden;
  background: var(--paper-dark);
  animation: 0.85s ease-in-out forwards pageTurn;
}

@keyframes pageTurn {
  0% {
    transform: rotateY(0);
    box-shadow: -6px 0 10px rgba(0, 0, 0, 0.12);
  }

  45% {
    background: var(--orange);
  }

  100% {
    box-shadow: none;
    transform: rotateY(-178deg);
  }
}

/* Sticky Utility Bar */
.utility-bar {
  padding: 10px 24px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  border-bottom: 3px solid var(--ink);
  letter-spacing: 0.12em;
  background: var(--paper);
  z-index: 50;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  display: flex;
  position: sticky;
  top: 0;
}

.utility-meta {
  display: contents;
}

.utility-actions {
  align-items: center;
  gap: 8px;
  display: flex;
  flex-wrap: nowrap;
}

.util-btn {
  letter-spacing: 0.08em;
  color: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
  background: transparent;
  min-height: 36px;
  padding: 8px 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  transition: background 0.15s, color 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.util-btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.util-btn.copied {
  background: var(--orange);
  border-color: var(--ink);
  color: var(--ink);
}

.lang-opt.is-current {
  background: var(--ink);
  color: var(--paper);
}

/* Hero Section */
.hero {
  border-bottom: 3px solid var(--ink);
  padding: 64px 24px 48px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  background: var(--orange);
  transform-origin: 0;
  z-index: 0;
  width: 120%;
  height: 120px;
  animation: 0.9s cubic-bezier(0.16, 0.9, 0.2, 1) 0.1s forwards sweepIn;
  position: absolute;
  top: -40px;
  left: -10%;
  transform: rotate(-4deg) scaleX(0);
}

@keyframes sweepIn {
  to {
    transform: rotate(-4deg) scaleX(1);
  }
}

.masthead-wrap {
  z-index: 1;
  position: relative;
  max-width: calc(100% - 105px);
}

@media (min-width: 860px) {
  .masthead-wrap {
    max-width: calc(100% - 210px);
  }
}

.issue-tag {
  background: var(--ink);
  color: var(--paper);
  letter-spacing: 0.1em;
  opacity: 0;
  margin-bottom: 18px;
  padding: 4px 10px;
  font-size: 12px;
  animation: 0.6s 0.55s forwards riseIn;
  display: inline-block;
}

/* Masthead Headline — Medium Balanced Nameplate */
h1.name {
  opacity: 0;
  margin: 0 0 16px;
  font-size: clamp(34px, 5.2vw, 68px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  animation: 0.7s cubic-bezier(0.16, 0.9, 0.2, 1) 0.7s forwards riseIn;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.24em;
  align-items: baseline;
}

h1.name .given,
h1.name .surname {
  font-size: 1em;
  line-height: 1;
  letter-spacing: inherit;
  display: inline-block;
}

@keyframes riseIn {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 22px;
}

.chips-row .role-chip {
  align-items: center;
  margin-bottom: 0;
  display: inline-flex;
}

.role-chip {
  border: 2px solid var(--ink);
  letter-spacing: 0.08em;
  background: var(--paper);
  opacity: 0;
  padding: 6px 14px;
  font-size: 13px;
  animation: 0.6s 0.95s forwards riseIn;
  display: inline-block;
}

.grade-chip {
  border: 2px solid var(--ink);
  background: var(--paper);
  letter-spacing: 0.09em;
  opacity: 0;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  padding: 6px 12px;
  font-size: 11px;
  display: inline-flex;
  animation: 0.6s 1.02s forwards riseIn;
  transition: background 0.15s, transform 0.15s;
}

.grade-chip:hover {
  background: var(--paper-dark);
  transform: translateY(-1px);
}

.grade-label {
  opacity: 0.75;
}

.grade-value {
  letter-spacing: 0.02em;
  color: var(--seal);
  font-family: "Anton", sans-serif;
  font-size: 18px;
  line-height: 1;
}

.grade-verify {
  opacity: 0.6;
  border-left: 1px solid var(--ink);
  padding-left: 10px;
  font-size: 10px;
}

.pitch {
  font-size: 19px;
  line-height: 1.5;
  max-width: 640px;
  margin: 0 0 20px;
  opacity: 0;
  animation: 0.6s 1.1s forwards riseIn;
}

.hero-cta {
  letter-spacing: 0.1em;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--orange);
  opacity: 0;
  margin-bottom: 28px;
  padding: 14px 20px;
  font-size: 12px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  animation: 0.6s 1.25s forwards riseIn;
  display: inline-block;
}

.hero-cta:hover {
  box-shadow: 3px 3px 0 var(--orange);
  transform: translate(2px, 2px);
}

.kicker {
  border-left: 4px solid var(--violet);
  opacity: 0;
  max-width: 580px;
  margin: 0;
  padding-left: 16px;
  font-size: 20px;
  font-style: italic;
  line-height: 1.4;
  animation: 0.6s 1.4s forwards riseIn;
}

.kicker blockquote {
  margin: 0 0 6px;
}

.kicker figcaption {
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.kicker cite {
  font-style: normal;
}

.halftone-frame {
  border: 3px solid var(--ink);
  background-image: radial-gradient(var(--ink) 22%, transparent 23%);
  background-size: 10px 10px;
  background-color: var(--halftone);
  opacity: 0;
  border-radius: 50%;
  width: 180px;
  height: 180px;
  animation: 60s linear infinite spinIn, 0.8s 0.5s forwards fadeIn;
  display: block;
  position: absolute;
  top: 64px;
  right: 24px;
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 860px) {
  .halftone-frame {
    width: 90px;
    height: 90px;
    top: 24px;
    right: 14px;
    border-width: 2px;
    background-size: 6px 6px;
  }
}

@keyframes spinIn {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  to {
    opacity: 0.9;
  }
}

/* Sticky Table of Contents (TOC) */
.toc {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 3px solid var(--ink);
  top: var(--bar-h, 54px);
  background: var(--paper);
  z-index: 45;
  flex-wrap: nowrap;
  gap: 0;
  display: flex;
  position: sticky;
  overflow-x: auto;
}

.toc::-webkit-scrollbar {
  display: none;
}

.toc a {
  border-right: 1px solid var(--ink);
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex: 1 0 auto;
  align-items: baseline;
  gap: 8px;
  padding: 16px 18px;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  display: flex;
  position: relative;
}

.toc a::after {
  content: "";
  background: var(--orange);
  transform-origin: 0;
  height: 2px;
  transition: transform 0.25s;
  position: absolute;
  bottom: 8px;
  left: 18px;
  right: 18px;
  transform: scaleX(0);
}

.toc a:hover::after {
  transform: scaleX(1);
}

.toc a:hover {
  background: var(--paper-dark);
}

.toc a.active {
  background: var(--ink);
  color: var(--paper);
}

.toc a.active .num {
  color: var(--orange-text);
}

.toc a.active::after {
  background: var(--paper);
  transform: scaleX(1);
}

.toc .num {
  color: var(--orange-text);
  font-weight: 700;
}

/* Section Shared Rules */
section {
  border-bottom: 3px solid var(--ink);
  padding: 56px 24px;
  scroll-margin-top: calc(var(--bar-h, 54px) + var(--toc-h, 50px));
}

section:last-of-type {
  border-bottom: none;
}

.section-head {
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  display: flex;
}

.section-head .num {
  color: var(--paper);
  background: var(--ink);
  padding: 5px 10px;
  font-size: 13px;
}

.section-head h2 {
  margin: 0;
  font-size: max(28px, min(4vw, 44px));
}

.case-archive-note {
  opacity: 0.72;
  max-width: 1100px;
  margin: 0 auto 32px;
  font-size: 14px;
}

/* Section 01: Dossier */
.dossier {
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
}

@media (min-width: 820px) {
  .dossier {
    grid-template-columns: 1.5fr 1fr;
  }

  .dossier .fact-box {
    grid-column: 1 / -1;
  }
}

.dossier p {
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 18px;
}

.fact-box {
  background: var(--violet);
  color: var(--paper);
  border: 3px solid var(--ink);
  padding: 24px;
}

.fact-box dl {
  margin: 0;
}

.fact-box dt {
  letter-spacing: 0.1em;
  margin-top: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.fact-box dt:first-child {
  margin-top: 0;
}

.fact-box dd {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 600;
}

/* Section 02: Services Carousel & Brief Builder */
.section-head-wrap {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  display: flex;
}

.section-head-wrap .section-head {
  margin-bottom: 0;
}

.svc-controls {
  align-items: center;
  gap: 8px;
  display: flex;
}

.svc-nav-btn {
  letter-spacing: 0.08em;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  padding: 7px 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s, transform 0.15s;
  display: inline-flex;
  align-items: center;
}

.svc-nav-btn:hover {
  background: var(--orange);
  color: var(--ink);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.svc-carousel {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  padding: 0;
  overflow: hidden;
}

.svc-track {
  scrollbar-width: none;
  gap: 20px;
  padding: 16px 2px 20px;
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.svc-track::-webkit-scrollbar {
  display: none;
}

.svc-track .svc-card {
  flex: 0 0 310px;
}

@media (max-width: 760px) {
  .svc-carousel {
    overflow: hidden;
  }

  .svc-track {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding: 22px 6px 18px;
  }

  .svc-track .svc-card {
    flex: 0 0 min(310px, 82vw);
    scroll-snap-align: center;
  }
}

.svc-card {
  border: 3px solid var(--ink);
  background: var(--paper-dark);
  padding: 26px 20px 20px;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.25s;
  position: relative;
}

.svc-card:hover {
  box-shadow: 6px 8px 0 var(--ink);
  transform: translateY(-6px);
}

.svc-card::before {
  content: attr(data-tag);
  background: var(--orange);
  color: var(--ink);
  letter-spacing: 0.08em;
  border: 2px solid var(--ink);
  padding: 3px 9px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  position: absolute;
  top: -13px;
  left: 14px;
  z-index: 2;
}

.svc-card h3 {
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 4px 0 12px;
  font-family: "Anton", sans-serif;
  font-size: 24px;
}

.svc-card p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.6;
}

.svc-deliv {
  border-top: 2px dashed var(--ink);
  padding-top: 14px;
}

.svc-deliv div {
  align-items: baseline;
  gap: 9px;
  margin-bottom: 7px;
  font-size: 14px;
  line-height: 1.4;
  display: flex;
}

.svc-deliv .ar {
  color: var(--orange-text);
  flex: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.svc-basis {
  border-top: 2px solid var(--ink);
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  display: flex;
}

.svc-basis .l {
  letter-spacing: 0.08em;
  opacity: 0.65;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}

.svc-basis .v {
  color: var(--orange-text);
  text-align: right;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 700;
}

/* Service Order / Brief Builder */
.svc-order {
  border: 3px dashed var(--ink);
  background: var(--paper);
  max-width: 1100px;
  margin: 36px auto 0;
  padding: 32px 24px 26px;
  position: relative;
}

.svc-order-tag {
  background: var(--violet);
  color: var(--paper);
  letter-spacing: 0.08em;
  border: 2px solid var(--ink);
  padding: 3px 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  position: absolute;
  top: -13px;
  left: 22px;
  z-index: 2;
}

.svc-order-note {
  opacity: 0.8;
  max-width: 620px;
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.6;
}

.svc-order-grid {
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  gap: 30px;
  display: grid;
}

@media (max-width: 820px) {
  .svc-order-grid {
    grid-template-columns: 1fr;
  }
}

.svc-step {
  letter-spacing: 0.08em;
  color: var(--orange-text);
  margin-bottom: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.svc-chips {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  display: flex;
}

.svc-chip {
  letter-spacing: 0.04em;
  border: 2px solid var(--ink);
  color: var(--ink);
  cursor: pointer;
  background: transparent;
  min-height: 38px;
  padding: 8px 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  transition: background 0.15s, color 0.15s;
}

.svc-chip:hover {
  background: var(--paper-dark);
}

.svc-chip[aria-pressed="true"] {
  background: var(--orange);
  color: var(--ink);
  font-weight: 600;
}

.svc-note-input {
  background: var(--paper-dark);
  width: 100%;
  color: var(--ink);
  border: 2px solid var(--ink);
  resize: vertical;
  padding: 12px;
  font-family: "Source Serif 4", serif;
  font-size: 15px;
  line-height: 1.5;
}

.svc-brief {
  border: 3px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  flex-direction: column;
  min-height: 100%;
  display: flex;
}

.svc-brief-head {
  border-bottom: 1px solid var(--halftone);
  letter-spacing: 0.1em;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  display: flex;
}

.svc-brief-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  flex: 1;
  padding: 18px 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  line-height: 1.85;
  color: var(--paper);
}

.svc-brief-actions {
  border-top: 1px solid var(--halftone);
  display: flex;
}

.svc-brief-copy {
  letter-spacing: 0.08em;
  color: var(--paper);
  border: none;
  border-right: 1px solid var(--halftone);
  cursor: pointer;
  background: transparent;
  flex: 1;
  min-height: 44px;
  padding: 14px 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  transition: background 0.15s;
}

.svc-brief-copy:hover {
  background: rgba(255, 255, 255, 0.1);
}

.svc-brief-copy.copied {
  background: var(--orange);
  color: var(--ink);
}

.svc-brief-send {
  letter-spacing: 0.08em;
  background: var(--orange);
  color: var(--ink);
  text-align: center;
  flex: 1;
  justify-content: center;
  align-items: center;
  padding: 14px 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  display: flex;
  font-weight: 600;
}

.svc-cta {
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1100px;
  margin: 24px auto 0;
  display: flex;
}

/* Toast */
.svc-toast {
  border: 2px solid var(--ink);
  background: var(--paper);
  max-width: 90vw;
  color: var(--ink);
  letter-spacing: 0.03em;
  text-align: center;
  z-index: 600;
  opacity: 0;
  pointer-events: none;
  padding: 12px 20px;
  font-size: 13px;
  transition: opacity 0.22s, transform 0.22s;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%) translateY(16px);
}

.svc-toast.show {
  opacity: 1;
  transform: translate(-50%) translateY(0);
}

.svc-toast.ok {
  border-color: var(--violet);
}

.svc-toast.err {
  border-color: var(--orange);
  color: var(--orange);
}

/* Section 03: Field Notes */
.case-archive {
  flex-direction: column;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
}

.case-card {
  border-top: 3px double var(--ink);
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 36px 0;
  display: grid;
}

.case-card:first-child {
  border-top: none;
  padding-top: 0;
}

@media (min-width: 820px) {
  .case-card {
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
  }
}

.case-stat-col {
  flex-direction: column;
  gap: 8px;
  display: flex;
}

.big-stat {
  color: var(--orange-text);
  -webkit-text-stroke: 2px var(--ink);
  font-size: clamp(52px, 6.5vw, 96px);
  line-height: 0.9;
  margin-bottom: 4px;
  white-space: nowrap;
}

.case-card .cred {
  letter-spacing: 0.06em;
  color: var(--ink);
  opacity: 0.7;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.case-title {
  margin: 2px 0 16px;
  font-size: 24px;
  line-height: 1.3;
}

.case-block {
  margin-bottom: 14px;
}

.case-block:last-child {
  margin-bottom: 0;
}

.case-block .label {
  letter-spacing: 0.08em;
  color: var(--orange-text);
  margin-bottom: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  display: block;
}

.case-block p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

/* Section 04: Magazine */
.mag-list {
  flex-direction: column;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
}

.mag-item {
  border-top: 3px double var(--ink);
}

.mag-item:first-child {
  border-top: none;
}

.mag-summary {
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 36px 0 22px;
  list-style: none;
  display: grid;
  cursor: pointer;
}

.mag-item:first-child .mag-summary {
  padding-top: 0;
}

.mag-summary::-webkit-details-marker {
  display: none;
}

@media (min-width: 820px) {
  .mag-summary {
    grid-template-columns: 200px 1fr;
    align-items: center;
  }
}

.mag-number {
  color: var(--ink);
  -webkit-text-stroke: 2px var(--ink);
  font-size: max(48px, min(8vw, 88px));
  line-height: 0.85;
}

.mag-cred {
  letter-spacing: 0.06em;
  color: var(--ink);
  opacity: 0.7;
  text-transform: uppercase;
  font-size: 11px;
}

.mag-summary-main {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.mag-title {
  margin: 2px 0 0;
  font-size: 22px;
  line-height: 1.35;
}

.mag-toggle {
  letter-spacing: 0.08em;
  border: 2px solid var(--ink);
  background: var(--paper-dark);
  color: var(--ink);
  padding: 4px 10px;
  font-size: 11px;
  transition: background 0.15s, color 0.15s;
}

.mag-toggle::after {
  content: " +";
}

.mag-item[open] .mag-toggle::after {
  content: " −";
}

.mag-summary:hover .mag-toggle,
.mag-item[open] .mag-toggle {
  background: var(--ink);
  color: var(--paper);
}

.mag-body {
  max-width: 760px;
  padding: 0 0 36px;
}

@media (min-width: 820px) {
  .mag-body {
    padding-left: 220px;
  }
}

.mag-item[open] .mag-body {
  animation: 0.3s mag-reveal;
}

@keyframes mag-reveal {
  0% {
    opacity: 0;
    transform: translateY(-6px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section 05: Projects (Non-Colliding Layout) */
.reviews {
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
}

.review {
  border-top: 2px dashed var(--ink);
  padding-top: 20px;
  position: relative;
  overflow: visible;
}

.review:first-child {
  border-top: none;
  padding-top: 0;
}

@media (min-width: 760px) {
  .review {
    padding-right: 130px;
    /* Dedicated gutter for halftone hover preview dot */
  }
}

.review-toggle {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  display: flex;
}

.review-toggle h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.review-chevron {
  letter-spacing: 0.05em;
  white-space: nowrap;
  opacity: 0.72;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  transition: opacity 0.15s, color 0.15s;
  flex-shrink: 0;
  padding-top: 4px;
}

.review-toggle:hover .review-chevron {
  opacity: 1;
  color: var(--orange-text);
}

.review-chips {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  display: flex;
}

.status {
  letter-spacing: 0.08em;
  border: 2px solid var(--ink);
  padding: 3px 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  display: inline-block;
}

.status.shipped {
  background: var(--orange);
}

.status.active {
  background: var(--violet);
  color: var(--paper);
}

.status.rnd {
  background: var(--paper-dark);
}

.review>p {
  max-width: 100%;
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.6;
}

.review-detail {
  opacity: 0;
  max-height: 0;
  transition: max-height 0.4s, opacity 0.3s, margin-top 0.4s;
  overflow: hidden;
}

.review-detail.open {
  opacity: 1;
  max-height: 900px;
  margin-top: 20px;
}

.review-detail .case-block {
  max-width: 760px;
}

/* Halftone dot hover preview */
.review-preview {
  border: 2px solid var(--ink);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  background-image: radial-gradient(var(--ink) 20%, transparent 21%);
  background-size: 8px 8px;
  width: 108px;
  height: 108px;
  transition: opacity 0.25s, transform 0.25s;
  position: absolute;
  top: 16px;
  right: 0;
  transform: translateY(-8px) scale(0.95);
}

@media (min-width: 760px) {
  .review:hover .review-preview {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 759px) {
  .review {
    padding-right: 0;
  }

  .review-preview {
    display: none;
  }

  .review.open .review-preview {
    display: block !important;
    opacity: 1;
    position: relative;
    top: 0;
    margin: 14px 0 10px;
    width: 80px;
    height: 80px;
    transform: none;
  }
}

.review-preview .swatch-label {
  letter-spacing: 0.05em;
  background: var(--ink);
  color: var(--paper);
  white-space: nowrap;
  padding: 2px 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  position: absolute;
  bottom: -11px;
  left: 0;
}

.review-preview.p-orange {
  background-color: var(--orange);
}

.review-preview.p-violet {
  background-color: var(--violet);
}

.review-preview.p-dark {
  background-color: var(--paper-dark);
}

/* Section 06: Career Timeline */
.tl2 {
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 0;
  position: relative;
}

.tl2::before {
  content: "";
  background: var(--halftone);
  width: 2px;
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 7px;
}

.tl2-fill {
  background: var(--ink);
  z-index: 0;
  width: 2px;
  height: 0;
  position: absolute;
  top: 10px;
  left: 7px;
  transition: height 0.1s linear;
}

.tl2-item {
  grid-template-columns: 140px 1fr;
  gap: 22px;
  padding: 0 0 28px 40px;
  display: grid;
  position: relative;
}

.tl2-item:last-child {
  padding-bottom: 0;
}

.tl2-item::before {
  content: "";
  background: var(--paper);
  border: 3px solid var(--ink);
  z-index: 1;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  transition: background 0.3s, box-shadow 0.3s;
  position: absolute;
  top: 3px;
  left: 0;
}

.tl2-item.reached::before {
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--paper);
}

.tl2-when {
  letter-spacing: 0.04em;
  padding-top: 1px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.tl2-when .co {
  opacity: 0.6;
  letter-spacing: 0.07em;
  margin-top: 4px;
  font-size: 9.5px;
  line-height: 1.45;
  display: block;
}

.tl2-role {
  margin: 0 0 4px;
  font-size: 19px;
}

.tl2-desc {
  max-width: 600px;
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.55;
}

.tl2-tags {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.tl2-tag {
  letter-spacing: 0.05em;
  border: 2px solid var(--ink);
  background: var(--paper-dark);
  padding: 2px 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}

.tl2-tag.hl {
  background: var(--orange);
}

@media (max-width: 640px) {
  .tl2-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-left: 28px;
  }
}


.tl2-subproject {
  margin-top: 10px;
  margin-bottom: 10px;
}

.tl2-subproject h4 {
  font-family: "JetBrains Mono", monospace;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin: 0 0 4px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tl2-subproject h4::before {
  content: "▸";
  color: var(--orange);
}

.tl2-bullets {
  margin: 4px 0 8px 18px;
  padding: 0;
  list-style-type: square;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
}

.tl2-bullets li {
  margin-bottom: 4px;
}

html[data-mode="night"] .tl2-subproject h4 {
  color: var(--paper);
}

html[data-mode="night"] .tl2-bullets {
  color: var(--paper);
}

.paper-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  background: var(--orange);
  color: var(--ink);
  align-self: flex-start;
  padding: 1px 6px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.paper-skills {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}

.paper-action {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--orange);
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}


/* Section 07: Education Card */
.edu-card {
  max-width: 1000px;
  margin: 0 auto;
  border: 2px solid var(--ink);
  background: var(--paper-dark);
  padding: 24px 28px;
  position: relative;
  box-shadow: 4px 4px 0 var(--ink);
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.edu-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.edu-period {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--orange);
}

.edu-loc {
  font-size: 11px;
  opacity: 0.65;
}

.edu-score-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 6px 14px;
}

.score-label {
  font-size: 9px;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.score-value {
  font-size: 26px;
  line-height: 1;
  color: var(--ink);
  margin: 2px 0;
}

.score-value small {
  font-size: 13px;
  font-family: "JetBrains Mono", monospace;
  opacity: 0.6;
}

.score-status {
  font-size: 9.5px;
  color: var(--orange);
  font-weight: 700;
}

.edu-degree {
  font-size: 24px;
  margin: 0 0 4px;
  line-height: 1.25;
}

.edu-school {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--orange);
  margin: 0 0 14px;
}

.edu-summary {
  font-size: 15px;
  line-height: 1.6;
  max-width: 820px;
  margin: 0 0 20px;
}

.edu-curriculum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 22px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
}

.edu-col-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  opacity: 0.85;
}

@media (max-width: 640px) {
  .edu-card {
    padding: 18px 14px;
  }
  .edu-header {
    flex-direction: column;
    gap: 12px;
  }
  .edu-score-badge {
    align-items: flex-start;
  }
  .edu-curriculum-grid {
    grid-template-columns: 1fr;
    padding: 12px;
  }
}

html[data-mode="night"] .edu-card {
  border-color: #30363d;
  box-shadow: 4px 4px 0 #30363d;
}

html[data-mode="night"] .edu-header {
  border-bottom-color: #30363d;
}

html[data-mode="night"] .edu-score-badge {
  border-color: #30363d;
  background: #161b22;
}

html[data-mode="night"] .score-value {
  color: #f0f6fc;
}

html[data-mode="night"] .edu-curriculum-grid {
  background: #0d1117;
  border-color: #30363d;
}

html[data-mode="night"] .edu-col-head {
  color: #f0f6fc;
}

/* Educational Theoretical ML & Exam Papers Banner */
.edu-papers-banner {
  margin-top: 22px;
  margin-bottom: 22px;
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 20px 22px;
  position: relative;
}

.papers-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  margin-bottom: 8px;
}

.papers-title {
  font-size: 19px;
  margin: 0 0 6px;
  line-height: 1.3;
}

.papers-desc {
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 16px;
  color: var(--ink);
  opacity: 0.9;
}

.papers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.paper-item {
  border-left: 2px solid var(--orange);
  padding-left: 10px;
}

.paper-name {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--orange);
  display: block;
  margin-bottom: 4px;
}

.paper-item p {
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  color: var(--ink);
  opacity: 0.85;
}

html[data-mode="night"] .edu-papers-banner {
  background: #111620;
  border-color: #30363d;
}

html[data-mode="night"] .paper-item p {
  color: #c9d1d9;
}

@media (max-width: 640px) {
  .edu-papers-banner {
    padding: 16px 14px;
  }
  .papers-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Section 08: Stack */
.stack-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 34px 16px;
  /* 34px row gap guarantees no collision between badge and card above */
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  padding-top: 18px;
}

@media (min-width: 1000px) {
  .stack-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 34px 14px;
  }
}

.stack-card {
  border: 3px solid var(--ink);
  background: var(--paper-dark);
  padding: 22px 16px 16px;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.25s;
  position: relative;
}

.stack-card:hover {
  box-shadow: 6px 8px 0 var(--ink);
  transform: translateY(-6px) rotate(-0.5deg);
}

.stack-card::before {
  content: attr(data-tag);
  background: var(--orange);
  color: var(--ink);
  letter-spacing: 0.08em;
  border: 2px solid var(--ink);
  padding: 2px 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  position: absolute;
  top: -13px;
  left: 12px;
  z-index: 2;
}

.stack-card h3 {
  margin: 10px 0 6px;
  font-size: 19px;
}

.stack-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

/* Newsstand Papers */
.newsstand {
  margin-top: 36px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.certs-head {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0 0 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.newsstand-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.paper {
  border: 2px solid var(--ink);
  background: var(--paper-dark);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: inherit;
}

.paper-link {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}

.paper-link:hover {
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 var(--ink);
  border-color: var(--accent);
}

.paper-source {
  font-size: 10px;
  opacity: 0.7;
}

.paper-title {
  font-size: 14px;
  font-weight: 600;
}

/* Section 08: Security Headers */
.live-stack {
  max-width: 1100px;
  margin: 0 auto;
}

.live-stack-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 16px;
  display: flex;
}

.live-stack-head h3 {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}

.live-stack-head .src {
  opacity: 0.7;
  font-size: 11px;
}

#sec-headers {
  min-height: 120px;
}

.sec-row {
  border-bottom: 1px solid var(--halftone);
  grid-template-columns: minmax(180px, 260px) 48px 1fr;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  display: grid;
}

.sec-name {
  font-weight: 700;
}

.sec-flag {
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  letter-spacing: 0.08em;
  padding: 2px 4px;
}

.sec-row.is-missing .sec-flag {
  color: var(--halftone);
  border: 1px solid var(--halftone);
  background: transparent;
}

.sec-val {
  opacity: 0.75;
  overflow-wrap: anywhere;
}

@media (max-width: 680px) {
  .sec-row {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .sec-val {
    grid-column: 1 / -1;
    opacity: 0.85;
    margin-top: 2px;
  }
}

.sec-note {
  opacity: 0.6;
  margin-top: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

/* Section 09: Booking */
.booking-frame {
  border: 3px solid var(--ink);
  background: var(--paper-dark);
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
}

.booking-frame::before {
  content: attr(data-label);
  background: var(--violet);
  color: var(--paper);
  letter-spacing: 0.08em;
  border: 2px solid var(--ink);
  padding: 3px 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  position: absolute;
  top: -13px;
  left: 20px;
  z-index: 2;
}

.booking-note {
  opacity: 0.78;
  max-width: 900px;
  margin: 0 auto 18px;
  font-size: 14px;
}

.booking-placeholder {
  text-align: center;
  border: 2px dashed var(--ink);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  max-width: 480px;
  min-height: 240px;
  margin: 0 auto;
  padding: 24px;
  font-size: 14px;
  display: flex;
}

.facade-label {
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--orange-text);
  font-weight: 700;
  margin: 0;
}

.facade-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.facade-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-weight: 600;
  margin-top: 6px;
}

.facade-cta:hover {
  background: var(--orange);
  color: var(--ink);
}

/* Section 10: Footer & Colophon */
footer {
  border-top: 3px solid var(--ink);
  padding: 40px 24px 60px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.colophon {
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
}

@media (min-width: 760px) {
  .colophon {
    grid-template-columns: repeat(3, 1fr);
  }
}

.colophon h3 {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 10px;
  font-family: "Anton", sans-serif;
  font-size: 15px;
}

.colophon a {
  text-decoration: underline;
}

.colophon-seal-wrap {
  margin-top: 18px;
  display: flex;
  align-items: center;
}

.colophon-seal {
  width: 104px;
  height: 104px;
  animation: 35s linear infinite spinIn;
  overflow: visible;
}

.seal-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  fill: var(--ink);
  text-transform: uppercase;
}

html[data-mode="night"] .seal-text {
  fill: var(--paper);
}

.seal-star {
  font-size: 28px;
  fill: var(--seal);
  font-weight: 700;
}

.fine-print {
  border-top: 1px solid var(--ink);
  opacity: 0.7;
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 16px;
  font-size: 11px;
}

/* Interactive Engineering CRT Terminal Overlay */
.neon-terminal-overlay {
  z-index: 300;
  background: rgba(6, 9, 15, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  padding: 16px;
  display: none;
  position: fixed;
  top: 0; bottom: 0; left: 0; right: 0;
}

.neon-terminal-overlay.open {
  display: flex;
}

.crt-screen {
  background: #080c14;
  border: 2px solid var(--orange);
  border-radius: 10px;
  flex-direction: column;
  width: min(860px, 95vw);
  height: min(580px, 86vh);
  font-family: "JetBrains Mono", monospace;
  animation: 0.35s cubic-bezier(0.16, 1, 0.3, 1) crtPowerOn;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 25px rgba(240, 136, 62, 0.22);
}

@keyframes crtPowerOn {
  0% { opacity: 0; transform: scale(0.96) translateY(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.scanlines {
  pointer-events: none;
  mix-blend-mode: overlay;
  background: repeating-linear-gradient(rgba(255, 255, 255, 0.03) 0 1px, transparent 2px 4px);
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
  z-index: 3;
}

.crt-flicker {
  pointer-events: none;
  background: rgba(240, 136, 62, 0.012);
  animation: 8s infinite flicker;
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
  z-index: 3;
}

@keyframes flicker {
  0%, 19%, 21%, 50%, 53%, 80%, 100% { opacity: 1; }
  20%, 52% { opacity: 0.65; }
}

.term-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #0d1422;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 4;
}

.term-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.t-dot.red { background: #ff5f56; }
.t-dot.yellow { background: #ffbd2e; }
.t-dot.green { background: #27c93f; }

.term-title {
  margin-left: 10px;
  font-size: 11px;
  color: #8b949e;
  letter-spacing: 0.08em;
}

.neon-close {
  color: var(--orange);
  cursor: pointer;
  background: transparent;
  border: 1px solid rgba(240, 136, 62, 0.5);
  border-radius: 4px;
  padding: 3px 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  transition: all 0.15s;
}

.neon-close:hover {
  color: #080c14;
  background: var(--orange);
  border-color: var(--orange);
}

.crt-output {
  color: #dce6ff !important;
  flex: 1;
  padding: 14px 18px 10px;
  font-size: 13px;
  line-height: 1.65;
  overflow-y: auto;
  position: relative;
  z-index: 2;
}

.crt-output .line {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0 0 3px;
}

.crt-output .t-ok { color: #4ee3b0; }
.crt-output .t-err { color: #ff7654; }
.crt-output .t-acc { color: var(--orange); }
.crt-output .t-hd { color: #7ca8ff; font-weight: 600; }
.crt-output .t-dim { color: #8b949e; }
.crt-output .magenta { color: var(--orange); font-weight: 600; }
.crt-output .yellow { color: #ffd23f; }
.crt-output .cyan { color: #58a6ff; }
.crt-output .green { color: #4ee3b0; }

.crt-output .cmdlink {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: #7ca8ff;
  background: rgba(124, 168, 255, 0.12);
  border: 1px solid rgba(124, 168, 255, 0.35);
  border-radius: 4px;
  padding: 1px 7px;
  margin: 1px 3px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  transition: all 0.15s;
}

.crt-output .cmdlink:hover {
  background: var(--orange);
  color: #080c14;
  border-color: var(--orange);
}

.crt-inputline {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #0b111e;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  display: flex;
  z-index: 4;
}

.crt-prompt {
  color: #4ee3b0;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.crt-input {
  color: #ffffff !important;
  caret-color: var(--orange);
  background: transparent;
  border: none;
  flex: 1;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  outline: none !important;
  padding: 2px 0;
}

.crt-input::placeholder {
  color: rgba(220, 230, 255, 0.35);
}

.crt-input:focus, .crt-input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.crt-suggestions {
  list-style: none;
  margin: 0;
  padding: 6px 12px;
  max-height: 150px;
  overflow-y: auto;
  background: #0d1424;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  z-index: 4;
}

.crt-suggestions li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
  color: #dce6ff;
  font-size: 12px;
  transition: background 0.12s;
}

.crt-suggestions li:hover,
.crt-suggestions li.active {
  background: rgba(240, 136, 62, 0.22);
  color: var(--orange);
}

.crt-suggestions .sug-kind {
  color: #8b949e;
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.term-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 18px;
  background: #080c14;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10px;
  color: #8b949e;
  z-index: 4;
  flex-wrap: wrap;
  gap: 8px;
}

.term-footer b {
  color: var(--orange);
}

/* ==========================================================================
   PORTFOLIO EDITION INTEGRATIONS (Editorial Broadsheet Enhancements)
   ========================================================================== */

/* 1. STACK MARKET TICKER */
.stack-ticker {
  background: var(--paper-dark);
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  height: 38px;
  user-select: none;
  z-index: 40;
}

.ticker-label {
  background: var(--ink);
  color: var(--paper);
  padding: 0 16px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--seal);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(30, 143, 90, 0.7);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  70% {
    box-shadow: 0 0 0 6px rgba(30, 143, 90, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(30, 143, 90, 0);
  }
}

.ticker-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: ticker-slide 42s linear infinite;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.stack-ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-track span {
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ticker-track span b.up {
  color: var(--seal);
}

.ticker-track span b.flat {
  color: var(--halftone);
}

html[data-mode="night"] .ticker-track span b.up {
  color: var(--seal);
  text-shadow: none;
}

@keyframes ticker-slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* 2. TODAY'S CONDITIONS / WEATHER & DISPATCH BOX */
.hero-dispatch-box {
  margin: 24px 0;
  border: 1px solid var(--ink);
  background: var(--paper-dark);
  padding: 16px 20px;
  font-size: 12px;
  max-width: 820px;
}

.dispatch-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--orange-text);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

html[data-mode="night"] .dispatch-header {
  color: var(--orange);
}

.dispatch-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.dispatch-grid {
  margin: 0;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 6px 16px;
  line-height: 1.5;
  flex: 1 1 340px;
}

.dispatch-grid dt {
  color: var(--halftone);
  letter-spacing: 0.08em;
  font-weight: 600;
}

.dispatch-grid dd {
  margin: 0;
  color: var(--ink);
}

.dispatch-grid dd.status-live {
  color: var(--seal);
  font-weight: 700;
}

html[data-mode="night"] .dispatch-grid dd.status-live {
  color: var(--seal);
}

/* Compact 3:4:2 Neural Architecture Widget matching Screenshot */
.mini-nn-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 6px 8px 5px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  user-select: none;
  flex: 0 0 auto;
}

.mini-nn-card:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 109, 79, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 14px rgba(240, 109, 79, 0.25);
}

.mini-nn-svg {
  display: block;
}

.mini-syn-lines line {
  stroke: rgba(220, 235, 255, 0.65);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 0.1, 4;
  animation: miniSynFlow 1.6s linear infinite;
}

@keyframes miniSynFlow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -16; }
}

.mini-core-node {
  transform-origin: center;
  filter: drop-shadow(0 0 3px rgba(248, 106, 71, 0.8));
  animation: miniPulseNode 2.6s ease-in-out infinite alternate;
}

@keyframes miniPulseNode {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(248, 106, 71, 0.6)); }
  100% { transform: scale(1.06); filter: drop-shadow(0 0 6px rgba(255, 118, 84, 0.95)); }
}

.mini-nn-label {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: #8b949e;
  letter-spacing: 0.1em;
  margin-top: 5px;
  padding: 0 2px;
}

.mini-nn-pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3fb950;
  box-shadow: 0 0 5px #3fb950;
  animation: dotBlink 1.4s ease-in-out infinite;
}

@keyframes dotBlink {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* 3. BY THE NUMBERS STAT BAND */
.num-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--ink);
  border-top: 2px solid var(--ink);
  background: var(--paper-dark);
  margin-bottom: 34px;
}

.num-cell {
  padding: 20px 20px 22px;
  border-right: 1px solid var(--ink);
  transition: background 0.2s;
}

.num-cell:last-child {
  border-right: none;
}

.num-cell:hover {
  background: var(--paper);
}

.num-figure {
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}

.num-figure small {
  font-size: 0.55em;
  color: var(--orange-text);
  margin-left: 2px;
}

html[data-mode="night"] .num-figure small {
  color: var(--orange);
}

.num-label {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--halftone);
  line-height: 1.35;
  text-transform: uppercase;
}

/* 4. EDITORIAL DROP-CAP */
.dossier>p:first-of-type::first-letter {
  float: left;
  font-family: "Anton", Impact, sans-serif;
  font-size: 4.6em;
  line-height: 0.76;
  padding: 4px 14px 0 0;
  color: var(--orange-text);
  text-transform: uppercase;
}

html[data-mode="night"] .dossier>p:first-of-type::first-letter {
  color: var(--orange);
  text-shadow: none;
}

/* 5. CORRECTIONS & POST-MORTEMS DESK */
.corrections-desk {
  margin-top: 50px;
  border: 2px solid var(--ink);
  background: var(--paper-dark);
  padding: 28px 24px;
}

.corrections-header {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.stamp-wrap {
  margin-bottom: 8px;
}

.stamp-badge {
  display: inline-block;
  border: 2px solid var(--orange-text);
  color: var(--orange-text);
  padding: 3px 12px;
  font-size: 14px;
  letter-spacing: 0.14em;
  transform: rotate(-1.5deg);
  background: var(--paper);
}

html[data-mode="night"] .stamp-badge {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: none;
  background: #161b22;
}

.corrections-intro {
  font-size: 12px;
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
}

.corrections-list {
  display: grid;
  gap: 24px;
}

.correction-entry {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  border-bottom: 1px dashed var(--ink);
  padding-bottom: 22px;
}

.correction-entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.correction-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--orange-text);
  padding-top: 3px;
}

html[data-mode="night"] .correction-tag {
  color: var(--orange);
}

.correction-body {
  font-size: 15px;
  line-height: 1.6;
}

.corr-was {
  text-decoration: line-through;
  text-decoration-color: var(--orange-text);
  text-decoration-thickness: 1.5px;
  color: var(--ink);
  opacity: 0.72;
  margin: 3px 0 10px;
}

html[data-mode="night"] .corr-was {
  text-decoration-color: var(--orange);
}

.corr-now {
  color: var(--ink);
  margin: 3px 0 14px;
}

.corr-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 2px;
  color: var(--orange-text);
  text-decoration: none !important;
}

.corr-kicker.now-kicker {
  color: var(--seal);
}

html[data-mode="night"] .corr-kicker {
  color: var(--orange);
}

html[data-mode="night"] .corr-kicker.now-kicker {
  color: var(--seal);
  text-shadow: none;
}

.corr-rule {
  font-size: 12px;
  background: var(--paper);
  border-left: 3px solid var(--ink);
  padding: 8px 12px;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.corr-rule .ar {
  color: var(--orange-text);
  font-weight: 700;
  margin-right: 4px;
}

html[data-mode="night"] .corr-rule .ar {
  color: var(--orange);
}

/* Responsive Overrides & Mobile Anti-Overlap System */
@media (max-width: 820px) {
  .utility-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    flex-wrap: wrap;
    padding: 8px 14px 6px;
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
    font-size: 10px;
    gap: 6px;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
  }

  .utility-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 9.5px;
    letter-spacing: 0.08em;
  }

  #testata-sigla {
    font-weight: 700;
  }

  .utility-actions {
    gap: 4px;
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .utility-actions::-webkit-scrollbar {
    display: none;
  }

  .util-btn {
    min-height: 28px;
    padding: 4px 6px;
    font-size: 8.5px;
    letter-spacing: 0.04em;
    flex: 1 1 auto;
    white-space: nowrap;
    text-align: center;
  }

  .toc {
    top: var(--bar-h, 54px);
    z-index: 45;
  }

  section,
  footer {
    scroll-margin-top: calc(var(--bar-h, 54px) + var(--toc-h, 48px) + 8px);
    padding: 44px 16px;
  }

  .crt-screen {
    padding: 16px 14px 12px;
  }

  .num-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .num-cell:nth-child(2) {
    border-right: none;
  }

  .num-cell:nth-child(-n+2) {
    border-bottom: 1px solid var(--ink);
  }

  .dispatch-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .dispatch-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .correction-entry {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stack-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 26px 10px;
    padding-top: 14px;
  }

  .stack-card {
    padding: 18px 12px 14px;
  }

  .stack-card h3 {
    font-size: 13.5px;
    line-height: 1.25;
    margin: 0 0 6px;
  }

  .stack-card p {
    font-size: 11.5px;
    line-height: 1.45;
  }

  .stack-card::before {
    font-size: 9px;
    padding: 2px 6px;
    top: -11px;
    left: 8px;
  }

  .case-stat-col {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
  }

  .big-stat {
    font-size: clamp(40px, 11vw, 64px);
    margin-bottom: 0;
  }

  .mag-stat-col {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
  }

  .mag-number {
    font-size: clamp(36px, 9vw, 54px);
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }

  .reveal,
  .reveal-stagger>* {
    opacity: 1 !important;
    transform: none !important;
  }

  .press-loader {
    display: none !important;
  }

  .ticker-track {
    animation: none !important;
  }
}