/* Clarus the Dogcow — $MOOF
   V1 Classic Mac OS 8.6 / V2 comic world */

:root {
  --mac-pt: #dedede;
  --mac-pt-hi: #f6f6f6;
  --mac-pt-lo: #8e8e8e;
  --mac-ink: #111;
  --mac-sel: #3226d4;
  --mac-teal: #2f7d7a;
  --mac-beige: #e4d3b4;
  --mac-beige-2: #cbb892;
  --mac-plastic: #dcc6a0;
  --cream: #fbf3e4;
  --paper: #fffaf1;
  --ink: #1c1917;
  --blush: #f3b4ac;
  --horn: #efd08c;
  --grass: #8fcb7a;
  --sky: #7ec8e3;
  --char: #1c1917;
  --pixel: "Press Start 2P", monospace;
  --chicago: "Geneva", "Charcoal", "Tahoma", "Segoe UI", sans-serif;
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { scroll-behavior: smooth; }
body {
  color: var(--mac-ink);
  font-family: var(--chicago);
  background: #161412;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
button, a { font: inherit; }
button { border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* ========== TOAST / FX / BOOT ========== */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  z-index: 80; padding: 10px 16px; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.mode-v1 .toast {
  background: #000; color: #fff; font: 10px var(--pixel); letter-spacing: .04em;
  box-shadow: 4px 4px 0 #fff;
}
.mode-v2 .toast {
  background: var(--ink); color: var(--cream); border-radius: 999px;
  font: 700 14px var(--display); box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.boot {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: #000; color: #fff;
}
.boot.out { animation: bootOut .35s ease forwards; pointer-events: none; }
.boot-card { text-align: center; width: min(360px, 86vw); }
.boot-apple { margin: 0 auto 16px; image-rendering: pixelated; }
.boot-clarus {
  margin: 0 auto 18px; width: 96px; image-rendering: pixelated;
  animation: pixelIdle 1s steps(2,end) infinite;
}
.boot-kicker { font: 10px var(--pixel); opacity: .7; }
.boot-title { font: 18px var(--pixel); margin: 8px 0; line-height: 1.4; }
.boot-sub { font: 8px var(--pixel); opacity: .8; }
.boot-bar {
  margin: 18px auto 0; width: 180px; height: 12px; border: 2px solid #fff; padding: 2px;
}
.boot-bar span {
  display: block; height: 100%; width: 0; background: #fff;
  animation: bootBar 2.45s steps(24,end) forwards;
}
@keyframes bootBar { to { width: 100%; } }
@keyframes bootOut { to { opacity: 0; visibility: hidden; } }
@keyframes pixelIdle { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.fx {
  position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: 0;
}
.fx.go { opacity: 1; }
.fx-canvas, .fx-scan, .fx-flash, .fx-runner, .fx-moof { pointer-events: none; }
.fx-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  image-rendering: pixelated; image-rendering: crisp-edges;
}
.fx-scan, .fx-flash { position: absolute; inset: 0; }
.fx-scan {
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.45) 0 2px, transparent 2px 4px);
  opacity: 0;
}
.fx-flash { background: #fff; opacity: 0; }
.fx-runner {
  position: absolute; bottom: 16%; width: 160px; left: -220px; opacity: 0;
  image-rendering: pixelated;
  filter: drop-shadow(6px 10px 0 rgba(0,0,0,.35));
  z-index: 2;
}
.fx-moof {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.4);
  margin: 0; opacity: 0; z-index: 3;
  font: 700 42px var(--pixel); color: #fff;
  text-shadow: 4px 4px 0 #111, -2px 0 0 #ff4d6d, 2px 0 0 #4df;
  pointer-events: none; letter-spacing: .08em;
}
.fx.go.phase-distort .fx-scan { animation: fxScan .7s linear forwards; opacity: .55; }
.fx.go.phase-run .fx-runner { animation: fxRun 1.05s cubic-bezier(.2,.7,.2,1) forwards; opacity: 1; }
.fx.go.phase-run .fx-moof { animation: fxMoof .9s cubic-bezier(.2,.8,.2,1) forwards; }
.fx.go.phase-flash .fx-flash { animation: fxFlash .45s ease forwards; }
.fx.go.phase-out { animation: fxFade .4s ease forwards; }
@keyframes fxScan {
  0% { opacity: .15; transform: scaleY(1); }
  50% { opacity: .7; }
  100% { opacity: .35; transform: scaleY(1); }
}
@keyframes fxFlash { 0% { opacity: 0; } 35% { opacity: .55; } 100% { opacity: 0; } }
@keyframes fxRun { from { left: -220px; } to { left: 110%; } }
@keyframes fxMoof {
  0% { opacity: 0; transform: translate(-50%, -40%) scale(.4); }
  35% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -62%) scale(1.15); }
}
@keyframes fxFade { to { opacity: 0; } }

body.is-pixelating { overflow: hidden; }
body.is-pixelating img { image-rendering: pixelated; }
body.is-pixelating .era { filter: contrast(1.18) saturate(1.12); }

/* ========== V1 WORLD ========== */
.era-v1 { position: relative; min-height: 100vh; background: #1b1916; color: #111; padding-bottom: 48px; }
.crt-global { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
.crt-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,.18) 0px,
    rgba(0,0,0,.18) 1px,
    transparent 1px,
    transparent 3px
  );
  animation: scanMove 7s linear infinite;
  opacity: .42;
  mix-blend-mode: multiply;
}
.crt-band {
  position: absolute; left: 0; right: 0; height: 90px;
  background: linear-gradient(to bottom, transparent, rgba(180,220,255,.08), transparent);
  animation: band 5.5s linear infinite;
}
.crt-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 58%, rgba(0,0,0,.42) 100%);
}
.crt-flicker {
  position: absolute; inset: 0; background: rgba(255,255,255,.035);
  animation: flicker 3.2s steps(2,end) infinite;
}
.crt-rgb {
  position: absolute; inset: 0;
  box-shadow: inset 2px 0 0 rgba(255,0,0,.12), inset -2px 0 0 rgba(0,180,255,.12);
  mix-blend-mode: screen;
  opacity: .5;
  animation: rgbShift 6s ease-in-out infinite;
}
@keyframes scanMove { to { background-position: 0 12px; } }
@keyframes band { from { top: -90px; } to { top: 110%; } }
@keyframes flicker { 0%,100% { opacity: .15; } 50% { opacity: .45; } 60% { opacity: .1; } }
@keyframes rgbShift { 0%,100% { transform: translateX(0); } 50% { transform: translateX(1.5px); } }

.v1-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 14px;
  background: linear-gradient(#f3f3f3, #d0d0d0);
  border-bottom: 1px solid #000;
  box-shadow: 0 1px 0 #fff inset;
  font: 11px var(--chicago);
}
.v1-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--pixel); font-size: 9px; letter-spacing: .02em; white-space: nowrap;
}
.v1-brand-clarus { width: 28px; height: auto; image-rendering: pixelated; }
.v1-nav { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

.mac-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 11px; min-height: 22px;
  background: #ddd;
  border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #777;
  cursor: pointer; color: #111;
  transition: transform .12s, filter .12s;
}
.mac-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.mac-btn:active { transform: translateY(0); box-shadow: inset 1px 1px 0 #666, inset -1px -1px 0 #fff; }
.mac-btn-default { box-shadow: 0 0 0 3px #000, inset 1px 1px 0 #fff, inset -1px -1px 0 #777; }

.mac-window {
  background: var(--mac-pt);
  border: 1px solid #000;
  box-shadow: 1px 1px 0 #000, 6px 8px 0 rgba(0,0,0,.35);
}
.titlebar {
  height: 20px; display: flex; align-items: center; gap: 6px; padding: 0 6px;
  background: repeating-linear-gradient(to bottom, #cfcfcf 0 1px, #eaeaea 1px 2px);
  border-bottom: 1px solid #000; cursor: grab; user-select: none;
}
.titlebar .title {
  flex: 1; text-align: center; font: 12px var(--chicago); font-weight: 700;
  background: var(--mac-pt); padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wbtn {
  width: 12px; height: 12px; border: 1px solid #000; background: #ddd;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #888; cursor: pointer; padding: 0;
}
.wbtn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.wbtn.close { background: #eee; }
.window-body { padding: 14px 16px; background: #eee; }
.mac-window.collapsed .window-body { display: none; }
.mac-window.collapsed { width: min(280px, 100%); }

.pixel-tick {
  font-family: var(--pixel); font-size: 14px; text-align: center; margin: 0 0 10px;
}

/* Idle bob — quantized */
.bob-a { animation: bobA 5.2s steps(6,end) infinite; }
.bob-b { animation: bobB 4.6s steps(5,end) infinite .4s; }
.bob-c { animation: bobC 6s steps(7,end) infinite .9s; }
@keyframes bobA { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@keyframes bobB { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes bobC { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

.v1-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 16px 16px 10px;
  width: min(1180px, 100%);
  margin: 0 auto;
  scroll-margin-top: 52px;
}
.hero-copy { text-align: center; max-width: 860px; color: #f4efe4; }
.hero-lead {
  margin: 0 auto; max-width: 720px; font-size: 13px; line-height: 1.55; font-weight: 700;
  text-align: center; color: #ddd4c4;
}
.pixel-hero {
  font-family: var(--pixel); font-size: clamp(16px, 2.3vw, 28px);
  line-height: 1.35; margin: 0 0 8px; text-align: center;
  color: #fff; text-shadow: 3px 3px 0 #000;
}
.computer-stage { width: 100%; display: grid; place-items: center; }
.mac-classic {
  width: min(860px, 100%);
  animation: macBreathe 6.4s ease-in-out infinite;
  filter: drop-shadow(0 28px 28px rgba(0,0,0,.45));
}
.hero-controls { width: min(920px, 96%); }
.hero-controls-body { text-align: center; }
.legend { margin: 0 0 14px; font-size: 13px; line-height: 1.6; font-weight: 700; }
.identity-body { text-align: center; }
.identity-apple { width: 42px; margin: 4px auto 8px; image-rendering: pixelated; }
.identity-sub { margin: 0 0 14px; font-size: 13px; }
.identity-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
@keyframes macBreathe { 0%,100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
.mac-housing {
  background: linear-gradient(180deg, #efe0c6 0%, #e2cfb0 40%, #d7c09a 100%);
  border-radius: 22px 22px 16px 16px;
  padding: 16px 16px 0;
  border: 1px solid #b49a72;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.55),
    inset 0 -8px 16px rgba(90,70,40,.12),
    0 2px 0 #9a835c;
}
.mac-top-vent {
  height: 8px; margin: -6px 40px 10px;
  background: repeating-linear-gradient(90deg, #c4ad88 0 6px, #ead9ba 6px 10px);
  border-radius: 4px; opacity: .7;
}
.mac-bezel {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 10px;
  box-shadow: inset 0 0 0 2px #111, 0 0 0 1px #cbb792;
}
.mac-glass {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: #2f7d7a; border-radius: 2px;
}
.screen-crt {
  position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(0,0,0,.28) 0 1px, transparent 1px 2px),
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.5) 100%);
  box-shadow: inset 8px 0 12px rgba(255,0,0,.08), inset -8px 0 12px rgba(0,255,255,.08);
  mix-blend-mode: multiply; opacity: .7;
  animation: flicker 2.4s steps(2,end) infinite;
}
.mac-chin {
  height: 72px; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; padding: 0 18px 8px;
}
.floppy {
  width: 92px; height: 8px; background: #2a241c; border-radius: 2px;
  box-shadow: inset 0 1px 0 #000, 0 1px 0 rgba(255,255,255,.3);
  justify-self: start;
}
.mac-badge { width: 22px; image-rendering: pixelated; opacity: .75; justify-self: center; }
.chin-right { justify-self: end; display: flex; align-items: center; gap: 10px; }
.speaker {
  width: 54px; height: 18px;
  background: repeating-linear-gradient(90deg, #2a241c 0 2px, transparent 2px 4px);
  opacity: .55;
}
.led {
  width: 8px; height: 8px; border-radius: 50%; background: #3dff7a;
  box-shadow: 0 0 8px #3dff7a; animation: led 2.2s ease-in-out infinite;
}
@keyframes led { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* Classic OS */
.os-classic {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  background: var(--mac-teal) url("assets/desktop-tile.png") repeat;
  background-size: 8px 8px;
  font: 12px var(--chicago);
  cursor: default;
}
.os-menubar {
  position: relative; z-index: 6;
  display: flex; align-items: center; gap: 2px; height: 20px; padding: 0 6px;
  background: #ddd; border-bottom: 1px solid #000; font-size: 12px;
}
.os-menubar > button {
  padding: 0 8px; height: 18px; cursor: pointer;
}
.os-menubar > button:hover, .os-menubar > button.open {
  background: var(--mac-sel); color: #fff;
}
.os-apple { display: grid; place-items: center; padding: 0 6px !important; }
.os-apple img { width: 12px; height: 14px; image-rendering: pixelated; }
.os-appname { font-weight: 700; }
.os-clock { margin-left: auto; padding: 0 6px; font-variant-numeric: tabular-nums; }
.os-menu {
  position: absolute; top: 20px; min-width: 180px; z-index: 8;
  background: #ddd; border: 1px solid #000;
  box-shadow: 2px 2px 0 #000; padding: 2px 0;
}
.os-menu button {
  display: block; width: 100%; text-align: left; padding: 3px 14px; cursor: pointer;
}
.os-menu button:hover { background: var(--mac-sel); color: #fff; }
.os-menu hr { border: 0; border-top: 1px solid #999; margin: 3px 0; }
#menu-apple { left: 4px; }
#menu-file { left: 34px; }
#menu-edit { left: 78px; }
#menu-view { left: 118px; }
#menu-special { left: 158px; }

.os-desktop { position: relative; flex: 1; overflow: hidden; }
.desk-icons {
  position: absolute; top: 12px; right: 10px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.dicon {
  width: 76px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  cursor: pointer; padding: 2px; animation: iconBob 4.8s steps(4,end) infinite;
}
.dicon:nth-child(2) { animation-delay: .3s; }
.dicon:nth-child(3) { animation-delay: .7s; }
.dicon:nth-child(4) { animation-delay: 1.1s; }
.dicon:nth-child(5) { animation-delay: 1.5s; }
.dicon:nth-child(6) { animation-delay: 1.9s; }
@keyframes iconBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.dicon:hover { transform: translateY(-4px); }
.dicon.selected .dicon-label { background: var(--mac-sel); color: #fff; }
.dicon-label {
  font-size: 10px; text-align: center; padding: 1px 4px; line-height: 1.2;
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
}
.dicon-art { width: 32px; height: 32px; image-rendering: pixelated; }

.icon-hd {
  background:
    linear-gradient(#cfcfcf, #9a9a9a);
  border: 1px solid #222; border-radius: 3px;
  box-shadow: inset 0 8px 0 #eee, 0 2px 0 #333;
  position: relative;
}
.icon-hd::after {
  content: ""; position: absolute; left: 6px; right: 6px; bottom: 4px; height: 3px;
  background: #444; border-radius: 1px;
}
.icon-chart {
  background: #fff; border: 1px solid #222;
  background-image: linear-gradient(#222, #222), linear-gradient(#222, #222),
    linear-gradient(135deg, transparent 50%, #3a3 50%);
  background-size: 2px 70%, 70% 2px, 70% 50%;
  background-position: 6px 6px, 6px 22px, 8px 10px;
  background-repeat: no-repeat;
}
.icon-vault {
  background: linear-gradient(#c9a24a, #8a6a22); border: 1px solid #222; border-radius: 4px;
  box-shadow: inset 0 0 0 4px #b8862a;
  position: relative;
}
.icon-vault::after {
  content: ""; position: absolute; inset: 11px; border: 2px solid #222; border-radius: 50%;
}
.icon-doc {
  background: #fff; border: 1px solid #222;
  clip-path: polygon(0 0, 70% 0, 100% 30%, 100% 100%, 0 100%);
}
.icon-clip {
  background: #eee; border: 1px solid #222;
  box-shadow: inset 0 6px 0 #ccc;
}
.icon-x {
  background: #111; color: #fff; border: 1px solid #000;
  display: grid; place-items: center;
}
.icon-x::after { content: "X"; color: #fff; font: 700 16px var(--chicago); }

.secret-q {
  position: absolute; left: 16px; bottom: 14px; z-index: 5;
  width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #e9b4ff 42%, #7a3cff 78%);
  color: #1b0828; font: 700 22px var(--chicago);
  box-shadow: 0 0 0 3px rgba(255,255,255,.55), 0 0 22px 8px rgba(150,80,255,.75);
  animation: qPulse 2.2s ease-in-out infinite;
  cursor: pointer;
}
.secret-q:hover { transform: scale(1.12) translateY(-3px); box-shadow: 0 0 0 4px #fff, 0 0 28px 12px rgba(180,90,255,.95); }
@keyframes qPulse {
  0%,100% { transform: translateY(0); filter: brightness(1); }
  50% { transform: translateY(-7px); filter: brightness(1.2); }
  80% { filter: brightness(1.45); }
}

.os-window {
  position: absolute; top: 28px; left: 16px; width: min(260px, 70%);
  z-index: 4; background: var(--mac-pt); border: 1px solid #000;
  box-shadow: 1px 1px 0 #000;
}
.os-window[hidden] { display: none !important; }
.os-window.collapsed .window-body { display: none; }
#win-hd { top: 24px; left: 18px; width: 250px; }
#win-chart { top: 40px; left: 70px; width: 240px; }
#win-vault { top: 32px; left: 40px; width: 230px; }
#win-thesis { top: 36px; left: 50px; width: 240px; }
#win-about { top: 44px; left: 80px; width: 220px; }
.finder-path { font-size: 10px; margin-bottom: 8px; color: #333; }
.finder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.thesis-mini, .about-body { text-align: center; font-size: 11px; }
.clarus-pixel {
  width: 120px; margin: 0 auto 8px; image-rendering: pixelated;
  animation: pixelIdle 3.4s steps(4,end) infinite;
}
.clarus-stage {
  background: #111; border: 1px solid #000; padding: 12px;
  display: grid; place-items: center; margin-bottom: 10px;
}
.clarus-stage .clarus-pixel { margin: 0; filter: none; }
.hover-clarus { transition: transform .15s; }
.hover-clarus:hover { transform: translateY(-6px) scale(1.06); animation-play-state: paused; filter: drop-shadow(4px 8px 0 rgba(0,0,0,.25)) drop-shadow(1px 0 0 #000) drop-shadow(-1px 0 0 #000); }
.about-moof { font-family: var(--pixel); font-size: 10px; margin-top: 8px; }

.mini-chart, .chart-frame {
  min-height: 120px; background: #111; color: #cfe; border: 1px solid #000;
  display: grid; place-items: center; text-align: center; padding: 16px;
  font-family: var(--pixel); font-size: 8px; line-height: 1.6;
}
.chart-toolbar { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.chart-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px;
}
.chart-stats div {
  background: #ddd; border: 1px solid #000; padding: 8px; text-align: center;
}
.chart-stats dt { font-size: 10px; opacity: .7; }
.chart-stats dd { margin: 4px 0 0; font-weight: 700; }
.chart-frame iframe { width: 100%; height: 360px; border: 0; background: #111; }

.v1-section, .v1-footer { padding: 18px 16px; display: flex; justify-content: center; }
.v1-section .mac-window, .v1-footer .mac-window { width: min(860px, 96vw); }
.overview-lead { margin: 0 0 14px; }
.spec-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0; }
.spec-list div { background: #ddd; border: 1px solid #000; padding: 10px; }
.spec-list dt { font-size: 11px; opacity: .7; }
.spec-list dd { margin: 4px 0 0; font-weight: 700; }

.vault-panel {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 12px 0;
}
.vault-card { background: #ddd; border: 1px solid #000; padding: 10px; }
.vault-card span { display: block; font-size: 10px; opacity: .7; }
.vault-card strong { display: block; margin-top: 4px; font-size: 16px; }
.progress {
  grid-column: 1 / -1; height: 14px; border: 1px solid #000; background: #fff; padding: 2px;
}
.progress > i { display: block; height: 100%; background: #222; width: 0%; }
.vault-note { font-size: 12px; margin: 0 0 8px; }
.vault-mini { font-size: 11px; }
.vault-mini .vault-panel { grid-template-columns: 1fr 1fr; }

.thesis-page { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: start; }
.thesis-clarus { width: 150px; }
.thesis-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.thesis-cols h3 { margin: 0 0 4px; font-size: 13px; }
.thesis-cols p { margin: 0; font-size: 12px; line-height: 1.45; }
.footer-body { text-align: center; }
.disclaimer { font-size: 11px; opacity: .7; margin: 16px 0 0; }

/* ========== V2 COMIC WORLD ========== */
.era-v2 {
  position: relative; min-height: 100vh; color: var(--ink);
  font-family: var(--sans);
  background: #bfe9ff;
  overflow-x: hidden;
}
.v2-sky {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    url("assets/bg-sky-clear.jpg") center top / cover no-repeat,
    linear-gradient(#7ec8e3, #bfe9ff 55%, #9ad36a);
}
.v2-clouds {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.cloud-band {
  position: absolute; left: 0; display: flex; width: max-content;
  will-change: transform;
  animation: cloudDrift linear infinite;
}
.cloud-set {
  display: flex; align-items: flex-start; gap: 9vw; padding-right: 9vw;
}
.cloud { display: block; height: auto; flex: 0 0 auto; }
.cloud.big { width: min(380px, 42vw); }
.cloud.wide { width: min(560px, 62vw); }
.cloud.pair { width: min(440px, 50vw); }
.cloud.sm { width: min(240px, 28vw); }
.cloud.dim { opacity: .82; }
.band-slow { top: 5%; animation-duration: 96s; }
.band-fast { top: 18%; animation-duration: 58s; opacity: .92; }
@keyframes cloudDrift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.v2-hills {
  position: fixed; left: 0; right: 0; bottom: 0; height: 42vh; z-index: 0; pointer-events: none;
  background: url("assets/bg-landscape.jpg") center bottom / cover no-repeat;
  opacity: .88; mix-blend-mode: multiply;
  mask-image: linear-gradient(to top, #000 40%, transparent);
}
.rain { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.rain img {
  position: absolute; animation: rainFall linear infinite;
  filter: drop-shadow(0 8px 0 rgba(28,25,23,.16));
}
@keyframes rainFall {
  from { transform: translate3d(var(--dx, 0), -12vh, 0) rotate(var(--rot, 0deg)); }
  to { transform: translate3d(calc(var(--dx, 0) + 40px), 110vh, 0) rotate(calc(var(--rot, 0deg) + 18deg)); }
}

.era-v2 > header, .era-v2 > main, .era-v2 > footer { position: relative; z-index: 2; }

.v2-header {
  position: sticky; top: 12px; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 12px auto; width: min(1120px, calc(100% - 24px));
  padding: 8px 10px 8px 14px;
  background: rgba(255,250,241,.78);
  border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: 5px 5px 0 var(--ink);
  backdrop-filter: blur(12px);
}
.v2-logo { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 18px; }
.v2-logo img { width: 40px; height: 40px; object-fit: contain; }
.v2-logo em { font-style: normal; color: #c45d55; margin-left: 6px; }
.v2-nav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.v2-nav a {
  padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), background .18s;
}
.v2-nav a:hover { background: rgba(28,25,23,.06); transform: translateY(-2px); }

.v2-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px;
  border: 2px solid var(--ink); cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, background .18s;
}
.v2-btn:hover { transform: translateY(-3px) scale(1.03); }
.v2-btn:active { transform: scale(.96); }
.v2-btn.solid { background: var(--ink); color: var(--cream); box-shadow: 4px 4px 0 #c45d55; }
.v2-btn.solid:hover { box-shadow: 6px 6px 0 #c45d55; }
.v2-btn.ghost { background: #fff; box-shadow: 3px 3px 0 var(--ink); }
.v2-btn.classic { background: var(--horn); font-size: 12px; }
.v2-btn.xl { padding: 12px 18px; font-size: 16px; }

.v2-hero {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 8px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; align-items: center;
}
.v2-hero h1 {
  font-family: var(--display); font-size: clamp(42px, 7vw, 84px);
  line-height: .92; letter-spacing: -.03em; margin: 10px 0 12px;
}
.v2-sub { font-size: 18px; margin: 0 0 18px; }
.hero-panel {
  position: relative;
  background: rgba(255,250,241,.92);
  border: 3px solid var(--ink);
  border-radius: 28px;
  padding: 22px 24px 26px;
  box-shadow: 7px 7px 0 var(--ink);
  overflow: hidden;
}
.hero-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .68;
  background:
    radial-gradient(circle at 16% 18%, rgba(255,255,255,.85), transparent 22%),
    radial-gradient(circle at 84% 24%, rgba(255,255,255,.34), transparent 20%),
    repeating-linear-gradient(0deg, rgba(28,25,23,.03) 0 2px, transparent 2px 18px);
}
.hero-panel > * { position: relative; z-index: 1; }
.v2-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sticker-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sticker {
  display: inline-block; padding: 6px 10px; border: 2px solid var(--ink); border-radius: 999px;
  background: #fff; font: 700 12px var(--display);
  box-shadow: 2px 2px 0 var(--ink);
  animation: stickerFloat 4.8s ease-in-out infinite;
}
.sticker:nth-child(2) { animation-delay: .4s; }
.sticker:nth-child(3) { animation-delay: .8s; }
.sticker:nth-child(4) { animation-delay: 1.2s; }
.sticker:nth-child(5) { animation-delay: 1.6s; }
.sticker.pink { background: var(--blush); }
.sticker.green { background: var(--grass); }
.sticker.yellow { background: var(--horn); }
.sticker.sky { background: var(--sky); }
@keyframes stickerFloat {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}

.v2-hero-mascot { position: relative; display: grid; place-items: center; }
.mascot.sit {
  width: min(420px, 100%); animation: breathe 3.6s ease-in-out infinite;
  filter: drop-shadow(8px 16px 0 rgba(28,25,23,.12));
  cursor: pointer; transform-origin: 50% 90%;
}
.mascot.sit:hover { animation: bounce .5s cubic-bezier(.2,1.4,.3,1); }
.mascot.stand {
  width: min(240px, 100%);
  position: relative;
  left: auto; bottom: auto; z-index: 1;
  filter: drop-shadow(6px 12px 0 rgba(28,25,23,.12));
  transform-origin: 50% 100%;
  justify-self: center;
}
.mascot.stand:hover { transform: rotate(-6deg) scale(1.04); }
.mascot.lie {
  width: 190px; position: absolute; top: -82px; right: 16px;
  transform: rotate(-8deg); z-index: 3;
  filter: drop-shadow(6px 10px 0 rgba(28,25,23,.12));
  pointer-events: auto;
}
.mascot.lie:hover { transform: rotate(-4deg) translateX(6px); }
.mascot.run {
  width: min(360px, 80%); position: absolute; left: -8%; bottom: -8%;
  animation: runNudge 2.8s ease-in-out infinite;
  filter: drop-shadow(8px 14px 0 rgba(28,25,23,.12));
}
.mascot.run:hover { transform: translateX(14px) scale(1.04); }
@keyframes breathe { 0%,100% { transform: translateY(0) scale(1,1); } 50% { transform: translateY(-8px) scale(1.02,.98); } }
@keyframes bounce { 50% { transform: scale(1.08,.9) translateY(-8px); } }
@keyframes runNudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(10px); } }

.moof-bubble {
  position: absolute; top: 8%; right: 6%;
  background: #fff; border: 3px solid var(--ink); border-radius: 18px 18px 18px 4px;
  padding: 8px 12px; font: 700 16px var(--display);
  box-shadow: 3px 3px 0 var(--ink); opacity: 0; transform: scale(.6);
  transition: opacity .2s, transform .2s;
}
.moof-bubble.show { opacity: 1; transform: scale(1); }

.v2-computer-wrap {
  width: min(1040px, calc(100% - 24px)); margin: 10px auto 40px;
  position: relative;
  background: url("assets/bg-interior.jpg") center / cover no-repeat;
  border: 3px solid var(--ink); border-radius: 28px;
  padding: 42px 24px 38px;
  box-shadow: 8px 8px 0 var(--ink);
}
.v2-computer-wrap::before {
  content: ""; position: absolute; inset: 12px; pointer-events: none; border-radius: 20px;
  background: radial-gradient(circle at 50% 8%, rgba(255,255,255,.34), transparent 28%), radial-gradient(circle at 50% 100%, rgba(0,0,0,.08), transparent 34%);
}
.imac {
  width: min(820px, 100%); margin: 0 auto; position: relative;
  filter: drop-shadow(0 24px 20px rgba(0,0,0,.28));
}
.imac-chrome {
  position: relative; z-index: 3;
  background: linear-gradient(#f7f5f1, #d7d2ca);
  border-radius: 28px 28px 18px 18px;
  padding: 16px 16px 0;
  border: 3px solid var(--ink);
  box-shadow: inset 0 1px 0 #fff, inset 0 -8px 14px rgba(28,25,23,.06), 0 10px 24px rgba(0,0,0,.18);
}
.imac-chrome::before {
  content: ""; position: absolute; left: 50%; top: 10px; transform: translateX(-50%);
  width: 170px; height: 10px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(215,210,202,.35));
  opacity: .75;
}
.imac-screen {
  position: relative;
  aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #1a1a1a, #090909);
  box-shadow: inset 0 0 0 3px #141414, inset 0 0 0 7px #2b2b2b, inset 0 18px 26px rgba(255,255,255,.05);
}
.imac-screen::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: linear-gradient(180deg, rgba(255,255,255,.1), transparent 15%, transparent 80%, rgba(0,0,0,.16));
}
.imac-chin {
  position: relative; z-index: 2;
  width: min(360px, 46%); height: 72px; margin: -1px auto 0;
  background: linear-gradient(180deg, #f3f0ea 0%, #ddd8d0 48%, #c8c1b8 100%);
  border: 3px solid var(--ink); border-top: 0; border-radius: 0 0 34px 34px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 10px 16px rgba(0,0,0,.08);
}
.imac-chin::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 10px; height: 1px;
  background: rgba(255,255,255,.72);
}
.imac-apple { width: 18px; opacity: .76; filter: grayscale(1) contrast(1.15); }
.imac-led {
  position: absolute; right: 24px; bottom: 16px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #94d96b; box-shadow: 0 0 0 2px rgba(28,25,23,.06), 0 0 12px rgba(148,217,107,.72);
}
.imac-neck {
  position: relative; z-index: 1;
  width: 88px; height: 44px; margin: -4px auto 0;
  background: linear-gradient(180deg, #e9e5df, #c7c2bb);
  border: 3px solid var(--ink); border-top: 0; border-radius: 0 0 18px 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.66);
}
.imac-foot {
  position: relative; z-index: 0;
  width: 226px; height: 22px; margin: -4px auto 0;
  background: linear-gradient(180deg, #eeeae3, #cbc6be);
  border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: 0 8px 0 rgba(28,25,23,.08);
  display: grid; place-items: center;
}
.imac-foot span {
  display: block; width: 76px; height: 4px; border-radius: 999px;
  background: rgba(28,25,23,.18);
}

.os-modern {
  height: 100%; display: flex; flex-direction: column;
  background:
    linear-gradient(180deg, #7ec8e3 0%, #c8eefc 46%, #d7f2a6 58%, #8ec86a 100%);
}
.mos-bar {
  position: relative; z-index: 3;
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: linear-gradient(180deg, rgba(247,247,245,.95), rgba(228,228,224,.86));
  backdrop-filter: blur(10px);
  font-size: 12px; font-weight: 700;
  border-bottom: 1px solid rgba(28,25,23,.16);
}
.mos-apple-icon { width: 14px; height: 14px; object-fit: contain; flex: 0 0 auto; }
.mos-tab {
  display: inline-flex; align-items: center; justify-content: center; min-height: 24px;
  padding: 2px 10px; border-radius: 999px; border: 1.5px solid transparent;
  background: transparent; box-shadow: 0 0 0 transparent; cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.9,.2,1), background .18s, border-color .18s, box-shadow .18s;
}
.mos-tab.active { background: rgba(255,255,255,.82); border-color: rgba(28,25,23,.18); box-shadow: 0 1px 0 rgba(255,255,255,.8) inset; }
.mos-tab:hover { transform: translateY(-3px); background: rgba(255,255,255,.92); border-color: rgba(28,25,23,.22); box-shadow: 0 4px 0 rgba(28,25,23,.14); }
.mos-clock { margin-left: auto; padding-left: 10px; }
.mos-desktop { flex: 1; position: relative; min-height: 0; overflow: hidden; }
.mos-scroll { position: absolute; inset: 0; overflow: hidden; }
.mos-desktop::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,.52), transparent 18%),
    radial-gradient(circle at 78% 18%, rgba(255,255,255,.34), transparent 14%),
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 30%);
}
.mos-desktop::after {
  content: ""; position: absolute; left: -6%; right: -6%; bottom: -20%; height: 58%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.18), rgba(255,255,255,0) 54%), linear-gradient(180deg, rgba(134,188,100,.0), rgba(121,178,86,.42));
}
.mos-pet {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  width: min(170px, 30%); z-index: 1; pointer-events: none;
  filter: drop-shadow(4px 6px 0 rgba(28,25,23,.14));
}
.mos-widgets {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px; padding: 10px 12px;
  align-content: start;
}
.glass-card {
  background: #fffaf1;
  border-radius: 12px; padding: 8px 10px;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .18s cubic-bezier(.2,.9,.2,1), box-shadow .18s, background .18s;
}
.glass-card:hover { transform: translateY(-4px); box-shadow: 5px 5px 0 var(--ink); background: #fffdf7; }
.glass-card p { margin: 0; font-size: 11px; opacity: .7; }
.glass-card h3 { margin: 2px 0 0; font-family: var(--display); font-size: 16px; line-height: 1.2; }
.glass-card small { font-size: 11px; }
.v2-btn.tiny { padding: 6px 10px; font-size: 12px; margin-top: 6px; }
.mos-dock {
  position: relative; z-index: 2;
  width: fit-content; margin: 0 auto 10px;
  display: flex; justify-content: center; gap: 8px; padding: 8px 12px;
  background: rgba(255,250,241,.72); border: 1.5px solid rgba(28,25,23,.18); border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 6px 14px rgba(0,0,0,.08);
}
.mos-dock span {
  width: 18px; height: 18px; border-radius: 6px;
  background: linear-gradient(180deg, #f7f7f6, #d1d1cd); box-shadow: 0 2px 4px rgba(0,0,0,.08);
  border: 1px solid rgba(28,25,23,.26);
  transition: transform .18s cubic-bezier(.2,.9,.2,1), background .18s;
}
.mos-dock span:hover { transform: translateY(-3px); background: linear-gradient(180deg, #ffffff, #d7d7d3); }
.mos-dock span:nth-child(1) { opacity: .86; }
.mos-dock span:nth-child(2) { opacity: .74; }
.mos-dock span:nth-child(3) { opacity: .68; }
.mos-dock span:nth-child(4) { opacity: .8; }
.mos-dock span:nth-child(5) { opacity: .92; background: linear-gradient(180deg, #d7d7d3, #b5b5b1); }

.v2-section {
  width: min(980px, calc(100% - 32px)); margin: 28px auto; position: relative;
}
.v2-overview {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  align-items: end;
  gap: 8px 18px;
}
.comic-panel {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: 7px 7px 0 var(--ink);
  animation: cardFloat 5.5s ease-in-out infinite;
}
.comic-panel.sm { animation-duration: 4.6s; }
.comic-panel:nth-child(2) { animation-delay: .4s; }
.comic-panel:nth-child(3) { animation-delay: .8s; }
@keyframes cardFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.era-v2 h2, .era-v2 h3 { font-family: var(--display); margin: 0 0 8px; }
.era-v2 h2 { font-size: 32px; }
.comic-facts { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.comic-facts li {
  display: flex; justify-content: space-between; gap: 12px;
  border-bottom: 2px dashed rgba(28,25,23,.15); padding: 8px 0; font-weight: 700;
}
.comic-facts span { font-weight: 600; opacity: .6; }
.panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.chart-stats.modern div {
  background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 10px;
  box-shadow: 3px 3px 0 var(--ink);
}
.vault-v2 { padding-top: 50px; }
.peek-panel { position: relative; overflow: visible; }
.fine { font-size: 13px; opacity: .7; }
.comic-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.v2-cta {
  width: min(980px, calc(100% - 32px));
  margin: 40px auto 20px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
  gap: 8px;
  align-items: end;
}
.mascot.run {
  width: min(320px, 100%); position: relative; left: auto; bottom: auto;
  animation: runNudge 2.8s ease-in-out infinite;
  filter: drop-shadow(8px 14px 0 rgba(28,25,23,.12));
  justify-self: center;
}
.cta-panel { text-align: center; padding: 36px 20px; }
.cta-panel h2 { font-size: clamp(32px, 6vw, 56px); }
.v2-footer { text-align: center; padding: 8px 16px 28px; }

.mode-v2 .chart-frame {
  background: #fff; border: 2px solid var(--ink); border-radius: 16px; color: var(--ink);
  font-family: var(--display);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .v1-hero { gap: 16px; padding-top: 18px; }
  .v1-header, .v2-header { flex-direction: column; align-items: stretch; border-radius: 24px; }
  .v1-nav, .v2-nav { justify-content: flex-start; }
  .v2-hero { grid-template-columns: 1fr; text-align: center; }
  .v2-hero-actions, .sticker-row { justify-content: center; }
  .v2-overview { grid-template-columns: 1fr; justify-items: center; }
  .mascot.stand { width: 180px; margin: 0 auto -8px; }
  .mascot.lie { width: 220px; top: -50px; right: 8px; }
  .comic-strip { grid-template-columns: 1fr 1fr; }
  .thesis-page { grid-template-columns: 1fr; }
  .chart-stats { grid-template-columns: 1fr 1fr; }
  .mos-widgets { grid-template-columns: 1fr 1fr; }
  .desk-icons { transform: scale(.86); transform-origin: top right; }
  .v2-cta { grid-template-columns: 1fr; }
  .mascot.run { width: 220px; margin: 0 auto; }
  .secret-q { width: 40px; height: 40px; }
  .band-fast { top: 14%; }
}
@media (max-width: 640px) {
  .v1-brand span { font-size: 7px; }
  .mac-classic { width: 100%; }
  .mac-chin { height: 56px; }
  .pixel-hero { font-size: 14px; }
  .comic-strip { grid-template-columns: 1fr; }
  .mos-pet { width: 28%; }
  .cloud.big, .cloud.wide, .cloud.pair { width: min(280px, 70vw); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .crt-scan, .crt-band, .crt-flicker, .crt-rgb, .screen-crt { animation: none !important; opacity: .35; }
  .rain, .v2-clouds { display: none; }
}



/* ============================================================
   MERGE OVERRIDES — V1 replacement + refined V2 scenery
   ============================================================ */
.era-v1-replacement{
  width:100%;min-height:100vh;background:#c6c6c6;line-height:0;
}
.classic-frame{
  display:block;width:100%;height:100vh;min-height:100vh;border:0;
  background:#c6c6c6;color-scheme:light;
}

/* V2 backgrounds: richer comic depth, same content/layout. */
.v2-sky{
  background:
    radial-gradient(circle at 78% 11%,rgba(255,246,184,.75) 0 5%,rgba(255,246,184,.24) 12%,transparent 27%),
    linear-gradient(180deg,rgba(255,255,255,.12),transparent 44%),
    url("assets/bg-sky-clear.jpg") center top / cover no-repeat,
    linear-gradient(#62bee4,#c7efff 58%,#a8db7b);
  filter:saturate(.96) contrast(1.025);
}
.v2-sky::after{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.17;
  background-image:radial-gradient(rgba(28,25,23,.18) .7px,transparent .8px);
  background-size:7px 7px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.42),transparent 68%);
}
.v2-clouds{
  opacity:.96;
  filter:drop-shadow(0 8px 0 rgba(55,104,130,.055));
}
.band-slow{top:4%;opacity:.94}
.band-fast{top:20%;opacity:.75}
.cloud.dim{opacity:.66}
.v2-hills{
  height:52vh;
  background:
    linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,250,225,.08)),
    url("assets/bg-landscape.jpg") center 64% / cover no-repeat;
  opacity:1;mix-blend-mode:normal;
  filter:saturate(.92) contrast(.98) brightness(1.035);
  mask-image:linear-gradient(to top,#000 0 68%,rgba(0,0,0,.9) 76%,rgba(0,0,0,.35) 90%,transparent 100%);
}
.v2-computer-wrap{
  background:
    linear-gradient(112deg,rgba(255,244,209,.22),rgba(255,255,255,0) 43%,rgba(133,211,244,.10)),
    url("assets/bg-interior.jpg") center / cover no-repeat;
  box-shadow:8px 8px 0 var(--ink),inset 0 0 0 1px rgba(255,255,255,.28),inset 0 -70px 90px rgba(25,12,3,.08);
}
@media(max-width:700px){
  .v2-hills{height:46vh;background-position:44% 68%}
  .band-fast{top:16%}
}

/* ============================================================
   MOBILE RESPONSIVENESS PASS — V2
   ============================================================ */
@media (max-width: 700px) {
  body.mode-v2 { overflow-x: hidden; }

  .v2-header {
    top: 6px;
    width: calc(100% - 12px);
    margin: 6px auto 10px;
    padding: 7px 8px;
    gap: 6px;
    border-width: 2px;
    border-radius: 18px;
    box-shadow: 3px 3px 0 var(--ink);
  }
  .v2-logo {
    width: 100%;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
  }
  .v2-logo img { width: 32px; height: 32px; }
  .v2-nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 2px 5px;
  }
  .v2-nav::-webkit-scrollbar { display: none; }
  .v2-nav > * { flex: 0 0 auto; }
  .v2-nav a,
  .v2-nav .v2-btn {
    min-height: 38px;
    padding: 7px 11px;
    font-size: 12px;
  }
  .v2-btn.classic { font-size: 11px; }

  .v2-hero {
    width: calc(100% - 18px);
    margin: 18px auto 8px;
    gap: 14px;
  }
  .hero-panel {
    padding: 17px 14px 19px;
    border-width: 2px;
    border-radius: 20px;
    box-shadow: 4px 4px 0 var(--ink);
  }
  .v2-hero h1 {
    font-size: clamp(40px, 14vw, 60px);
    line-height: .92;
    margin: 9px 0 10px;
  }
  .v2-sub { font-size: 15px; line-height: 1.4; margin-bottom: 14px; }
  .sticker-row { gap: 6px; }
  .sticker { padding: 5px 8px; font-size: 10px; border-width: 1.5px; box-shadow: 2px 2px 0 var(--ink); }
  .v2-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .v2-hero-actions .v2-btn,
  .v2-hero-actions a.v2-btn {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 9px 10px;
    font-size: 13px;
  }
  .v2-hero-mascot { min-height: 210px; }
  .mascot.sit { width: min(255px, 76vw); }
  .moof-bubble { right: 8%; top: 2%; font-size: 13px; }

  .v2-computer-wrap {
    width: calc(100% - 10px);
    margin: 12px auto 30px;
    padding: 18px 7px 22px;
    border-width: 2px;
    border-radius: 20px;
    box-shadow: 4px 4px 0 var(--ink);
  }
  .v2-computer-wrap::before { inset: 7px; border-radius: 15px; }
  .imac { width: 100%; filter: drop-shadow(0 14px 12px rgba(0,0,0,.22)); }
  .imac-chrome {
    padding: 8px 8px 0;
    border-width: 2px;
    border-radius: 18px 18px 12px 12px;
  }
  .imac-chrome::before { width: 92px; height: 6px; top: 5px; }
  .imac-screen {
    aspect-ratio: auto;
    height: 390px;
    min-height: 390px;
    border-radius: 9px;
    box-shadow: inset 0 0 0 2px #141414, inset 0 0 0 4px #2b2b2b;
  }
  .os-modern {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }
  .mos-bar {
    gap: 4px;
    padding: 5px 7px;
    font-size: 10px;
    min-height: 30px;
  }
  .mos-apple-icon { width: 12px; height: 12px; }
  .mos-tab { min-height: 20px; padding: 1px 6px; font-size: 10px; }
  .mos-clock { padding-left: 4px; font-size: 9px; }

  /* Mobile: ONLY the content inside the iMac display scrolls. */
  .mos-desktop {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    position: relative;
    display: block;
    padding: 0;
  }
  .mos-scroll {
    position: absolute;
    inset: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    display: flex;
    flex-direction: column;
    padding: 0 0 28px;
    min-height: 0;
  }
  .mos-widgets {
    order: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 8px 9px 12px;
  }
  .glass-card {
    min-width: 0;
    min-height: 92px;
    padding: 8px 9px;
    border-width: 1.5px;
    border-radius: 9px;
    box-shadow: 2px 2px 0 var(--ink);
  }
  .glass-card p, .glass-card small { font-size: 9px; }
  .glass-card h3 { font-size: 13px; }
  .glass-card:hover { transform: none; box-shadow: 2px 2px 0 var(--ink); }
  .v2-btn.tiny { padding: 4px 7px; font-size: 9px; margin-top: 4px; }
  .mos-pet {
    order: 2;
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: min(118px, 34%);
    margin: 10px auto 16px;
    flex: 0 0 auto;
  }
  .mos-dock {
    position: relative;
    z-index: 6;
    flex: 0 0 auto;
    gap: 5px;
    padding: 4px 7px;
    margin: 0 auto 6px;
  }
  .mos-dock span { width: 13px; height: 13px; border-radius: 4px; }
  .mos-scroll::-webkit-scrollbar { width: 5px; }
  .mos-scroll::-webkit-scrollbar-thumb {
    background: rgba(28,25,23,.28);
    border-radius: 999px;
  }
  .mos-scroll::-webkit-scrollbar-track { background: transparent; }

  .imac-chin { width: 46%; min-width: 142px; height: 45px; border-width: 2px; border-radius: 0 0 22px 22px; }
  .imac-apple { width: 14px; }
  .imac-led { width: 6px; height: 6px; right: 15px; bottom: 11px; }
  .imac-neck { width: 58px; height: 29px; border-width: 2px; }
  .imac-foot { width: 150px; height: 16px; border-width: 2px; }
  .imac-foot span { width: 50px; height: 3px; }

  .v2-section,
  .v2-cta {
    width: calc(100% - 16px);
    margin-left: auto;
    margin-right: auto;
  }
  .v2-section { margin-top: 22px; margin-bottom: 22px; }
  .comic-panel {
    padding: 16px 14px;
    border-width: 2px;
    border-radius: 17px;
    box-shadow: 4px 4px 0 var(--ink);
  }
  .era-v2 h2 { font-size: 27px; }
  .era-v2 h3 { line-height: 1.2; }
  .comic-facts li { gap: 8px; font-size: 13px; }
  .chart-stats { gap: 8px; }
  .chart-stats.modern div { border-width: 1.5px; border-radius: 11px; box-shadow: 2px 2px 0 var(--ink); }
  .mode-v2 .chart-frame iframe { height: 300px; }
  .panel-head { align-items: stretch; }
  .panel-head > div { display: flex; gap: 6px; flex-wrap: wrap; }
  .panel-head .v2-btn { min-height: 40px; }
  .vault-v2 { padding-top: 36px; }
  .mascot.lie {
    width: 150px;
    top: -54px;
    right: 4px;
  }
  .comic-strip { gap: 10px; }
  .v2-cta { margin-top: 30px; }
  .cta-panel { padding: 24px 14px; }
  .cta-panel h2 { font-size: 36px; }
  .v2-footer { padding-bottom: 22px; font-size: 13px; }

  /* Reduce background animation load on small screens without removing the look. */
  .v2-clouds { opacity: .78; }
  .cloud-band { animation-duration: 58s; }
}

@media (max-width: 430px) {
  .v2-header { width: calc(100% - 8px); }
  .v2-logo { justify-content: flex-start; }
  .v2-hero { width: calc(100% - 12px); }
  .hero-panel { padding-left: 12px; padding-right: 12px; }
  .v2-hero h1 { font-size: clamp(38px, 15vw, 52px); }
  .sticker { font-size: 9px; }
  .mos-tab:nth-of-type(n+2) { display: none; }
  .glass-card { flex-basis: 124px; min-width: 124px; }
  .glass-card h3 { font-size: 12px; }
  .mos-pet { width: 82px; }
  .comic-facts li { flex-direction: column; align-items: flex-start; gap: 2px; }
  .chart-stats { grid-template-columns: 1fr; }
  .mode-v2 .chart-frame iframe { height: 260px; }
}

/* Extra-narrow V2 screen: keep touch scrolling readable. */
@media (max-width: 390px) {
  body.mode-v2 .imac-screen { height: 400px; min-height: 400px; }
  body.mode-v2 .mos-widgets { grid-template-columns: 1fr; }
  body.mode-v2 .glass-card { min-height: 82px; }
}
