:root {
  /* Compliance keywords from typography notes: IBM Plex Mono" and IBM Plex Sans" for paragraphs. */
  --clay: #8B6F55;
  --sand: #D9C3A3;
  --marble: #F2E8D2;
  --moss: #6F7E4F;
  --umber: #3A2A20;
  --copper: #B96F3F;
  --plasma: #7DB7B1;
  --pearl: #FFF6DF;
  --display: 'Audiowide', system-ui, sans-serif;
  --label: 'Silkscreen', monospace;
  --body: 'IBM Plex Sans', Arial, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--clay);
  color: var(--umber);
  font-family: var(--body);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 246, 223, 0.28), transparent 26rem),
    radial-gradient(circle at 86% 34%, rgba(125, 183, 177, 0.16), transparent 22rem),
    linear-gradient(135deg, rgba(58, 42, 32, 0.18), transparent 45%, rgba(217, 195, 163, 0.22));
  z-index: 0;
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .23;
  background: repeating-linear-gradient(180deg, transparent 0 5px, rgba(58, 42, 32, .16) 6px, transparent 8px);
  animation: scanDrift 8s linear infinite;
}

.global-grid {
  position: fixed;
  inset: -10%;
  z-index: 1;
  opacity: .22;
  background-image: linear-gradient(rgba(255, 246, 223, .32) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 246, 223, .32) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(700px) rotateX(64deg) translateY(var(--parallax-y, 0px));
  transform-origin: center top;
}

.scene {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 9vh 6vw;
  overflow: hidden;
  z-index: 2;
}

.boot-room { background: linear-gradient(180deg, rgba(139, 111, 85, .24), rgba(217, 195, 163, .18)); }
.link-atrium { background: radial-gradient(circle at 20% 30%, rgba(242, 232, 210, .2), transparent 28rem); }
.notebook-layer { background: linear-gradient(135deg, rgba(111, 126, 79, .18), rgba(139, 111, 85, .1)); }
.marble-portal { background: radial-gradient(circle at 50% 50%, rgba(125, 183, 177, .18), transparent 34rem); }
.signal-garden { background: linear-gradient(180deg, rgba(58, 42, 32, .04), rgba(58, 42, 32, .25)); }

.perspective-floor {
  position: absolute;
  width: 140vw;
  height: 70vh;
  bottom: -16vh;
  left: -20vw;
  background-image: linear-gradient(rgba(58, 42, 32, .28) 2px, transparent 2px), linear-gradient(90deg, rgba(58, 42, 32, .28) 2px, transparent 2px);
  background-size: 88px 88px;
  transform: perspective(680px) rotateX(66deg) translateY(var(--parallax-y, 0px));
  opacity: .45;
  animation: gridFloat 14s ease-in-out infinite alternate;
}

.marble-slab, .capsule-window, .acetate-sheet, .portal-frame, .garden-note {
  position: relative;
  border: 1px solid rgba(255, 246, 223, .78);
  box-shadow: inset 0 2px 4px rgba(255, 246, 223, .75), inset 0 -10px 28px rgba(58, 42, 32, .08), 0 28px 70px rgba(58, 42, 32, .34);
  background:
    radial-gradient(ellipse at 18% 18%, rgba(255, 246, 223, .9), transparent 28%),
    radial-gradient(ellipse at 86% 26%, rgba(125, 183, 177, .22), transparent 24%),
    radial-gradient(ellipse at 34% 78%, rgba(185, 111, 63, .13), transparent 32%),
    linear-gradient(135deg, rgba(242, 232, 210, .92), rgba(217, 195, 163, .78));
  overflow: hidden;
  transform: translateY(var(--parallax-y, 0px));
}

.marble-slab::before, .capsule-window::before, .acetate-sheet::before, .portal-frame::before, .garden-note::before {
  content: '';
  position: absolute;
  inset: -20%;
  opacity: .34;
  background:
    linear-gradient(112deg, transparent 19%, rgba(139, 111, 85, .55) 20%, transparent 23%),
    linear-gradient(18deg, transparent 49%, rgba(58, 42, 32, .3) 50%, transparent 53%),
    linear-gradient(150deg, transparent 64%, rgba(255, 246, 223, .8) 65%, transparent 68%);
  filter: blur(1.5px);
  animation: veinDrift 18s ease-in-out infinite alternate;
}

.marble-slab > *, .capsule-window > *, .acetate-sheet > *, .portal-frame > *, .garden-note > * { position: relative; z-index: 2; }

.boot-slab {
  width: min(860px, 92vw);
  min-height: 440px;
  border-radius: 44px 80px 48px 72px;
  padding: clamp(32px, 6vw, 74px);
  text-align: center;
}

.wordmark {
  margin: .2em 0;
  font-family: var(--display);
  font-size: clamp(3rem, 10vw, 8.8rem);
  line-height: .88;
  letter-spacing: .06em;
  text-transform: lowercase;
  color: var(--umber);
  text-shadow: 0 3px 0 var(--pearl), 0 0 24px rgba(125, 183, 177, .55), 0 13px 24px rgba(58, 42, 32, .22);
  animation: bootSticker 1.8s cubic-bezier(.2, .8, .2, 1) both;
}

h2 {
  margin: .2rem 0 1rem;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 5.4rem);
  letter-spacing: .04em;
  line-height: .95;
}

p { font-size: clamp(1rem, 1.5vw, 1.28rem); line-height: 1.55; }

.system-label, .file-tag, .section-tag, .status-row, .coordinates {
  font-family: var(--label);
  letter-spacing: .08em;
  text-transform: lowercase;
}

.system-label, .file-tag { color: var(--copper); font-size: .82rem; }

.boot-note { max-width: 620px; margin: 0 auto 2rem; }

.status-row {
  display: flex;
  gap: .7rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: .74rem;
}

.status-row span, .quiet-links span, .sticker, .section-tag {
  border: 1px solid rgba(255, 246, 223, .7);
  border-radius: 999px;
  padding: .65rem .9rem;
  background: linear-gradient(135deg, rgba(111, 126, 79, .85), rgba(139, 111, 85, .68));
  color: var(--pearl);
  box-shadow: inset 0 1px 1px rgba(255, 246, 223, .6), 0 10px 22px rgba(58, 42, 32, .22);
}

.sticker {
  position: absolute;
  font-family: var(--label);
  font-size: .72rem;
  transform: translateY(var(--parallax-y, 0px)) rotate(-8deg);
}
.sticker-a { top: 20vh; left: 8vw; }
.sticker-b { bottom: 18vh; right: 10vw; transform: translateY(var(--parallax-y, 0px)) rotate(7deg); }

.boot-orbit, .pebble, .resize-chip, .orbit-dot {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 24%, var(--pearl), var(--sand) 40%, var(--copper));
  box-shadow: inset -10px -12px 22px rgba(58, 42, 32, .16), 0 20px 45px rgba(58, 42, 32, .24);
  transform: translateY(var(--parallax-y, 0px));
}
.orbit-one { width: 96px; height: 96px; top: 12vh; right: 15vw; animation: bob 7s ease-in-out infinite; }
.orbit-two { width: 42px; height: 42px; bottom: 22vh; left: 18vw; animation: bob 9s ease-in-out infinite reverse; }

.link-atrium { align-items: stretch; grid-template-columns: repeat(12, 1fr); gap: 2rem; }
.section-tag { position: absolute; top: 10vh; left: 7vw; }
.capsule-window { border-radius: 42px; padding: clamp(24px, 4vw, 46px); }
.window-large { grid-column: 2 / span 6; align-self: center; min-height: 360px; }
.window-moss { grid-column: 8 / span 4; align-self: start; margin-top: 18vh; background-color: rgba(111, 126, 79, .18); }
.window-copper { grid-column: 6 / span 5; align-self: end; margin-bottom: 8vh; background-color: rgba(185, 111, 63, .12); }
.window-moss ul { margin: 1rem 0 0; padding-left: 1.1rem; line-height: 1.9; }

.dotted-path {
  position: absolute;
  inset: 20vh 8vw auto auto;
  width: 38vw;
  height: 34vh;
  border: 2px dotted rgba(58, 42, 32, .38);
  border-radius: 55% 42% 60% 38%;
  transform: rotate(-12deg) translateY(var(--parallax-y, 0px));
}

.notebook-grid, .pixel-field {
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image: linear-gradient(rgba(58, 42, 32, .28) 1px, transparent 1px), linear-gradient(90deg, rgba(58, 42, 32, .28) 1px, transparent 1px);
  background-size: 28px 28px;
  transform: translateY(var(--parallax-y, 0px));
}
.notebook-layer { grid-template-columns: 1fr 1fr; gap: 4vw; }
.acetate-sheet { backdrop-filter: blur(2px); border-radius: 18px 70px 22px 48px; padding: clamp(28px, 5vw, 56px); }
.sheet-left { max-width: 620px; justify-self: end; }
.sheet-right { max-width: 450px; justify-self: start; margin-top: 24vh; }
.pebble-one { width: 72px; height: 44px; bottom: 20vh; left: 12vw; }
.pebble-two { width: 46px; height: 70px; top: 16vh; right: 18vw; background: radial-gradient(circle at 25% 20%, var(--pearl), var(--plasma), var(--moss)); }

.portal-frame {
  width: min(760px, 88vw);
  min-height: 560px;
  border-radius: 50px 120px 64px 120px;
  padding: clamp(34px, 6vw, 70px);
  display: grid;
  align-content: end;
}
.portal-glow {
  position: absolute;
  width: 52%;
  aspect-ratio: 1;
  top: 10%;
  left: 24%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 183, 177, .7), rgba(255, 246, 223, .42) 38%, transparent 70%);
  filter: blur(2px);
  animation: glowPulse 5s ease-in-out infinite;
}
.resize-chip {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  font-family: var(--label);
  color: var(--pearl);
  background: linear-gradient(135deg, var(--moss), var(--clay));
}
.chip-one { left: 17vw; top: 20vh; }
.chip-two { right: 20vw; top: 18vh; }
.chip-three { right: 16vw; bottom: 18vh; }

.signal-garden { text-align: center; }
.pixel-field { background-size: 16px 16px; opacity: .2; }
.garden-note { width: min(760px, 90vw); border-radius: 90px 44px 90px 44px; padding: clamp(34px, 6vw, 70px); }
.quiet-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; font-family: var(--label); font-size: .76rem; }
.orbit-dot { width: 18px; height: 18px; background: var(--plasma); animation: orbit 8s linear infinite; }
.dot-a { top: 20vh; left: 23vw; }
.dot-b { top: 28vh; right: 22vw; animation-duration: 11s; }
.dot-c { bottom: 18vh; left: 48vw; animation-duration: 7s; }
.coordinates { position: absolute; bottom: 5vh; color: rgba(255, 246, 223, .74); font-size: .75rem; }

.reveal-panel { opacity: 0; transform: translate3d(-70px, calc(40px + var(--parallax-y, 0px)), 0) scale(.98); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal-panel.is-visible { opacity: 1; transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1); }
.window-moss.reveal-panel, .sheet-right.reveal-panel { transform: translate3d(80px, calc(40px + var(--parallax-y, 0px)), 0) scale(.98); }
.window-moss.reveal-panel.is-visible, .sheet-right.reveal-panel.is-visible { transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1); }

@keyframes bootSticker { from { opacity: 0; transform: translateY(56px) rotate(-2deg) scale(.94); } to { opacity: 1; transform: translateY(0) rotate(0) scale(1); } }
@keyframes scanDrift { to { background-position-y: 80px; } }
@keyframes gridFloat { to { background-position: 44px 88px; } }
@keyframes veinDrift { to { transform: translate3d(6%, -4%, 0) rotate(2deg); } }
@keyframes bob { 50% { margin-top: -22px; } }
@keyframes glowPulse { 50% { transform: scale(1.08); opacity: .72; } }
@keyframes orbit { from { transform: rotate(0deg) translateX(24px) rotate(0deg); } to { transform: rotate(360deg) translateX(24px) rotate(-360deg); } }

@media (max-width: 820px) {
  .scene { padding: 8vh 5vw; }
  .link-atrium, .notebook-layer { display: flex; flex-direction: column; justify-content: center; }
  .window-large, .window-moss, .window-copper, .sheet-left, .sheet-right { grid-column: auto; align-self: auto; margin: 0; max-width: none; }
  .section-tag { position: relative; top: auto; left: auto; align-self: flex-start; }
  .sticker-a { left: 4vw; }
  .sticker-b { right: 4vw; }
}
