@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  --canvas: #090a0c;
  --panel: #151719;
  --ink: #f2f0ea;
  --muted: #a5a7a9;
  --subtle: #777b7d;
  --line: rgba(235, 239, 237, .14);
  --blue: #8fa8bb;
  --display: "Manrope", "Inter", system-ui, sans-serif;
  --ui: "Inter", "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #d3e5ed; outline-offset: 5px; }
::selection { color: #0b1014; background: #b9cad4; }
.skip-link { position: fixed; z-index: 120; left: 12px; top: -60px; padding: 12px 18px; background: #fff; color: #111; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.site-head { position: absolute; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 25px; width: 100%; padding: 26px clamp(20px, 5vw, 76px); }
.wordmark { display: flex; align-items: center; gap: 12px; flex: none; }
.wordmark-symbol { display: grid; place-items: center; width: 41px; height: 41px; border: 1px solid rgba(255,255,255,.38); border-radius: 12px; font-family: var(--display); font-size: 22px; font-weight: 800; }
.wordmark-text { display: grid; gap: 1px; }
.wordmark-text strong { font: 800 18px/1 var(--display); letter-spacing: -.045em; }
.wordmark-text small { color: #bec1c1; font-size: 8px; font-weight: 600; letter-spacing: .1em; }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.site-nav a { color: #c4c6c6; font-size: 12px; font-weight: 600; transition: color .25s; }
.site-nav a:hover { color: #fff; }
.head-action { display: inline-flex; align-items: center; gap: 24px; padding: 12px 16px 12px 21px; border: 1px solid rgba(255,255,255,.32); border-radius: 100px; font-size: 12px; font-weight: 600; white-space: nowrap; transition: background .3s, color .3s; }
.head-action:hover { background: #f5f3ed; color: #141617; }
.head-action span { font-size: 16px; font-weight: 400; }
.menu-button, .mobile-menu { display: none; }

/* UserMenu Component (Matching Arc / ui-lab UserMenu tokens) */
.user-menu-root { position: relative; display: inline-flex; vertical-align: middle; z-index: 70; }
.user-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 6px;
  border-radius: 100px;
  background: rgba(23, 26, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f2f0ea;
  font-family: inherit;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
  user-select: none;
}
.user-menu-trigger:hover {
  background: rgba(35, 40, 44, 0.95);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.user-menu-trigger[aria-expanded="true"] {
  border-color: #60a5fa;
  background: rgba(30, 36, 42, 0.98);
}
.user-menu-trigger[aria-expanded="true"] .user-menu-chevron {
  transform: rotate(180deg);
}
.user-menu-face {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}
.user-menu-face--lg {
  width: 40px;
  height: 40px;
}
.user-menu-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}
.user-menu-face--lg .user-menu-initials {
  font-size: 13px;
}
.user-menu-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.15;
}
.user-menu-name {
  font-size: 12px;
  font-weight: 600;
  color: #f3f4f6;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-menu-plan {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #94a3b8;
}
.user-menu-chevron {
  color: #9ca3af;
  transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-left: 2px;
}
.user-menu-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 285px;
  background: rgba(18, 21, 24, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,.05);
  overflow: hidden;
  animation: popoverFadeIn .2s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top right;
  z-index: 150;
}
@keyframes popoverFadeIn {
  from { opacity: 0; transform: scale(.96) translateY(-6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.user-menu-popover[hidden] {
  display: none !important;
}
.user-menu-popover__header {
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.user-menu-popover__user {
  display: flex;
  align-items: center;
  gap: 11px;
}
.user-menu-popover__user strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #f9fafb;
}
.user-menu-popover__user small {
  display: block;
  font-size: 10px;
  color: #94a3b8;
  margin-top: 1px;
}
.user-menu-popover__body {
  padding: 8px 6px;
}
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: #d1d5db;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.user-menu-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.user-menu-item svg {
  color: #9ca3af;
  flex-shrink: 0;
  transition: color .15s;
}
.user-menu-item:hover svg {
  color: #60a5fa;
}
.user-menu-item span {
  flex: 1;
}
.user-menu-popover__footer {
  padding: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.user-menu-item--logout {
  color: #f87171;
}
.user-menu-item--logout svg {
  color: #f87171;
}
.user-menu-item--logout:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}
.user-menu-item--logout:hover svg {
  color: #fca5a5;
}

/* The Hero stage occupies one standard viewport: native scroll, zero scroll-trapping. */
.story { position: relative; height: 100vh; height: 100dvh; min-height: 600px; }
.stage { position: relative; width: 100%; height: 100%; min-height: 600px; overflow: hidden; isolation: isolate; background: #090a0c; }
.studio-backdrop { position: absolute; inset: -12%; background: radial-gradient(ellipse 36% 47% at 67% 49%, rgba(89,105,116,.22), transparent 87%), radial-gradient(ellipse 29% 26% at 74% 89%, rgba(127,100,81,.13), transparent 86%), linear-gradient(155deg, #111315, #08090b 58%, #0a0a0b); transition: opacity .4s; }
.studio-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,8,9,.11), transparent 45%, rgba(7,8,9,.22)); }
.journal-canvas { position: absolute; z-index: 1; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .8s; }
.stage.has-webgl .journal-canvas { opacity: 1; }
.stage-grain { position: absolute; z-index: 3; inset: 0; opacity: .15; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E"); }
.intro-copy { position: absolute; z-index: 5; top: 50%; left: clamp(22px, 8.5vw, 144px); width: min(540px, 43vw); transform: translateY(-50%); }
.eyebrow { display: inline-flex; align-items: center; gap: 13px; color: #aeb9bd; font-size: 10px; font-weight: 700; letter-spacing: .19em; line-height: 1.6; }
.eyebrow-line { width: 27px; height: 1px; background: #bac6c9; }
.intro-copy h1, .section-heading h2, .entry-section h2, .reveal-copy h2 { margin: 24px 0; font-family: var(--display); font-size: clamp(38px, 5.2vw, 78px); font-weight: 700; letter-spacing: -.075em; line-height: 1.08; }
h1 em, h2 em { color: #a6b5bb; font-style: normal; }
.intro-copy p, .section-heading p, .entry-section p { max-width: 465px; color: #c2c3c1; font-size: clamp(13px, 1.1vw, 15px); line-height: 1.8; }
.primary-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 36px; min-width: 215px; margin-top: 22px; padding: 15px 19px 15px 23px; border: 1px solid rgba(255,255,255,.64); border-radius: 50px; background: #eeeae1; color: #111414; font-size: 12px; font-weight: 700; transition: transform .35s, background .35s, box-shadow .35s; }
.primary-button:hover { transform: translateY(-3px); background: #fff; box-shadow: 0 16px 35px rgba(0,0,0,.3); }
.primary-button span { font-size: 18px; font-weight: 400; }
.scroll-cue, .reveal-copy, .stage-progress { display: none !important; }

/* The DOM cover is intentionally good enough to be the no-WebGL fallback. */
.journal-fallback { position: absolute; z-index: 2; left: 68%; top: 52%; width: min(29vw, 390px); aspect-ratio: .72; transform: translate(-50%, -50%) perspective(900px) rotateY(-16deg) rotateX(6deg) rotateZ(-7deg); transform-style: preserve-3d; filter: drop-shadow(26px 42px 30px rgba(0,0,0,.6)); }
.stage.has-webgl .journal-fallback { visibility: hidden; }
.journal-fallback__pages { position: absolute; inset: 1.8% -3% -2.5% 3%; border-radius: 4px 10px 10px 4px; background: repeating-linear-gradient(to bottom, #c4c2bb 0 2px, #aaa9a3 3px 4px); transform: translateZ(-14px); }
.journal-fallback__spine { position: absolute; inset: 0 auto 0 -3%; width: 8%; background: #282d32; transform: rotateY(-27deg); }
.journal-fallback__cover { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 11% 10%; border: 1px solid #3b4145; border-radius: 4px 9px 9px 4px; background: linear-gradient(115deg, #181c20, #24282d 48%, #111417); box-shadow: inset 12px 0 16px rgba(0,0,0,.45), 10px 15px 35px rgba(0,0,0,.24); }
.journal-fallback__cover::before { content: ""; position: absolute; inset: 7%; border: 1px solid rgba(190,203,206,.18); pointer-events: none; }
.journal-fallback__cover span, .journal-fallback__cover i { color: #bec7c7; font-size: clamp(8px,.8vw,11px); font-style: normal; font-weight: 700; letter-spacing: .16em; line-height: 1.6; }
.journal-fallback__cover b { font: 700 clamp(22px,3.2vw,44px)/1.06 var(--display); letter-spacing: -.07em; }
.stage:not(.has-webgl) .journal-fallback { transform: translate(-50%, -50%) perspective(900px) rotateY(-16deg) rotateX(6deg) rotateZ(-7deg) scale(var(--cover-scale, 1)); opacity: var(--cover-opacity, 1); }

.explore-section { position: relative; z-index: 10; padding: clamp(95px, 13vw, 180px) max(20px, calc((100vw - 1280px)/2)); background: #0b0d0f; box-shadow: 0 -35px 70px rgba(0, 0, 0, .8); }
.section-heading { display: flex; flex-direction: column; align-items: flex-start; max-width: 780px; padding-bottom: 70px; }
.section-heading h2 { font-size: clamp(43px, 5.5vw, 78px); }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bento-card {
  position: relative;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: #111624;
  backdrop-filter: blur(16px);
  transform: perspective(900px) translate3d(0, var(--rise, 0px), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  transition: border-color .35s ease, box-shadow .35s ease, transform .3s ease;
  will-change: transform;
  text-decoration: none;
  color: inherit;
}
.bento-card:hover {
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.55), 0 0 28px rgba(37, 99, 235, 0.18);
}
.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 280px at var(--mx, 50%) var(--my, 50%), rgba(59, 130, 246, 0.18), transparent 70%);
  pointer-events: none;
  transition: opacity .3s;
}
.bento-card--wide { grid-column: span 2; }
.bento-card--quiet { background: #0f1320; }

.card-head-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.card-index {
  color: #79a9ff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
}
.card-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.28);
}
.card-status-badge--emerald {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.28);
}
.card-status-badge--red {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.28);
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseDot 2s infinite ease-in-out;
}
.badge-dot--blue { background: #60a5fa; box-shadow: 0 0 8px #60a5fa; }
.badge-dot--red { background: #ef4444; box-shadow: 0 0 8px #ef4444; }

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.85); }
}

/* Card Visuals (Micro-UIs) */
.card-visual {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 12px 0 16px;
  transition: transform .3s ease;
}

/* 01. Schedule Card */
.schedule-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(10, 14, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}
.schedule-preview__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.schedule-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.16);
}
.schedule-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}
.badge-subst {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.32);
}
.schedule-preview__title {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
}
.schedule-preview__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #94a3b8;
}
.meta-sep { color: rgba(255, 255, 255, 0.2); }
.schedule-timeline {
  width: 100%;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.timeline-fill {
  display: block;
  width: 64%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  box-shadow: 0 0 10px #3b82f6;
}

/* 02. Grades Card */
.grades-meter {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(10, 14, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}
.grades-circle {
  position: relative;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}
.grades-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 3.2;
}
.ring-val {
  fill: none;
  stroke: #22c55e;
  stroke-width: 3.2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(34, 197, 94, 0.7));
}
.grades-circle__text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.grades-circle__text strong {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc;
}
.grades-circle__text small {
  font-size: 8px;
  color: #94a3b8;
  margin-top: 2px;
  letter-spacing: .04em;
}
.grades-pills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.grade-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}
.grade-pill--5 {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}
.grade-pill--4 {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

/* 03. Materials File Stack */
.file-stack {
  position: relative;
  height: 82px;
  width: 100%;
}
.file-item {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  gap: 12px;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s;
}
.file-item--3 {
  top: 14px; left: 14px; right: 14px; bottom: -14px;
  background: rgba(30, 41, 59, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.file-item--2 {
  top: 7px; left: 7px; right: 7px; bottom: -7px;
  background: rgba(20, 28, 44, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 11px;
}
.file-item--1 {
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 14, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}
.bento-card:hover .file-item--2 { transform: translateY(10px) rotate(2deg); }
.bento-card:hover .file-item--1 { transform: translateY(-4px) rotate(-1.5deg); }
.file-icon {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 4px 7px;
  border-radius: 6px;
  color: #fff;
  flex-shrink: 0;
}
.file-icon--pdf { background: #ef4444; }
.file-icon--doc { background: #2563eb; }
.file-name {
  font-size: 12px;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 145px;
}
.file-size {
  display: block;
  font-size: 10px;
  color: #94a3b8;
  margin-top: 1px;
}

/* 04. Announcements News Banner */
.news-banner {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(10, 14, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}
.news-banner__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.news-tag {
  color: #f87171;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  background: rgba(239, 68, 68, 0.14);
  padding: 2px 7px;
  border-radius: 5px;
}
.news-time {
  color: #64748b;
  font-size: 11px;
}
.news-banner__title {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 4px;
}
.news-banner__desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0;
}

/* Card Bottom & Arrows */
.card-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  width: 100%;
}
.card-bottom span:first-child { display: grid; gap: 6px; }
.card-bottom strong {
  font: 700 clamp(20px, 2vw, 26px)/1.2 var(--display);
  letter-spacing: -.04em;
  color: #f8fafc;
}
.card-bottom small {
  max-width: 270px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.5;
}
.card-arrow {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 18px;
  color: #93c5fd;
  transition: background .3s, color .3s, transform .3s;
}
.bento-card:hover .card-arrow {
  background: #0a5dec;
  color: #fff;
  transform: rotate(45deg);
}

/* =========================================
   CENTRAL 3D ARTIFACT CARD
   ========================================= */
.bento-card--artifact {
  position: relative;
  overflow: visible;
  background: radial-gradient(circle at 50% 48%, #192642 0%, #0d1424 55%, #080c16 100%) !important;
  border-color: rgba(96, 165, 250, 0.35) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
  cursor: grab;
}
.bento-card--artifact:active { cursor: grabbing; }
.artifact-ambient {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 260px at var(--mx, 50%) var(--my, 50%), rgba(59, 130, 246, 0.28), transparent 70%);
  pointer-events: none;
}
.artifact-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}
.mini-scene {
  position: relative;
  display: grid;
  flex: 1;
  place-items: center;
  min-height: 200px;
  perspective: 900px;
  -webkit-perspective: 900px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.mini-book {
  position: relative;
  width: 124px;
  height: 172px;
  transform: rotateX(var(--book-x, 10deg)) rotateY(var(--book-y, -22deg)) rotateZ(-5deg);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform .2s cubic-bezier(.22,1,.36,1);
  filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.65));
}
.mini-book__shadow {
  position: absolute;
  width: 130px;
  height: 26px;
  left: -5px;
  bottom: -24px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.75) 0%, transparent 70%);
  transform: rotateX(90deg) translateZ(-10px);
  pointer-events: none;
  filter: blur(5px);
}
.mini-book__edge {
  position: absolute;
  inset: 4px -14px -6px 8px;
  background: repeating-linear-gradient(to bottom, #f1f5f9 0px, #e2e8f0 2px, #cbd5e1 3px, #f8fafc 4px);
  transform: translateZ(-14px);
  border-radius: 2px 4px 4px 2px;
  box-shadow: inset -2px 0 6px rgba(0, 0, 0, 0.25), 0 0 1px rgba(0, 0, 0, 0.4);
}
.mini-book__ribbon {
  position: absolute;
  bottom: -16px;
  left: 36px;
  width: 12px;
  height: 30px;
  background: linear-gradient(135deg, #b91c1c 0%, #ef4444 50%, #7f1d1d 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
  transform: translateZ(-6px) rotateZ(-3deg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  z-index: 2;
}
.mini-book__inside {
  position: absolute;
  inset: 3px -10px -2px 7px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px 5px 5px 2px;
  transform: translateZ(-2px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 10px;
  color: #fff;
}
.inside-seal {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 16px;
  height: 16px;
  opacity: 0.25;
  background: url('assets/pgups-logo.webp') center / contain no-repeat;
  filter: grayscale(1) invert(1);
  pointer-events: none;
}
.inside-header small {
  display: block;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #94a3b8;
}
.inside-header b {
  display: block;
  font-size: 9px;
  font-weight: 800;
  color: #60a5fa;
  margin-top: 2px;
}
.inside-stat {
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.inside-stat strong {
  display: block;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  color: #4ade80;
}
.inside-stat span {
  font-size: 7px;
  color: #94a3b8;
}
.inside-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.inside-lines span {
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 1px;
}
.inside-lines span:nth-child(1) { width: 85%; }
.inside-lines span:nth-child(2) { width: 65%; }
.inside-lines span:nth-child(3) { width: 45%; }

.mini-book__cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 12px;
  border-radius: 3px 6px 6px 3px;
  background: linear-gradient(135deg, #090e1a 0%, #15223c 45%, #0b1120 100%);
  border: 1px solid rgba(147, 197, 253, 0.45);
  transform-origin: left center;
  transform: translateZ(4px);
  transform-style: preserve-3d;
  box-shadow: inset 3px 0 8px rgba(0, 0, 0, 0.7), 0 10px 24px rgba(0, 0, 0, 0.4);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  overflow: hidden;
}
.bento-card--artifact:hover .mini-book__cover,
.bento-card--artifact:active .mini-book__cover,
.bento-card--artifact.is-active .mini-book__cover {
  transform: translateZ(4px) rotateY(-34deg);
}
.cover-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.22) 45%, transparent 60%);
  transform: translateX(calc(var(--mx, 50%) * 2 - 100%));
  pointer-events: none;
}
.cover-spine-crease {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8px;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 1px 0 2px rgba(0, 0, 0, 0.6);
}
.cover-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  padding: 2px;
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.6);
  margin-bottom: 4px;
}
.cover-seal img { width: 22px; height: 22px; object-fit: contain; }
.cover-text small {
  display: block;
  font-size: 5.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #93c5fd;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.cover-text b {
  display: block;
  font-family: var(--display);
  font-size: 13.5px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, #ffffff 0%, #bfdbfe 50%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  margin-bottom: 4px;
}
.cover-text i {
  display: block;
  font-style: normal;
  font-size: 6px;
  font-weight: 600;
  letter-spacing: .08em;
  color: #cbd5e1;
}
.cover-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 6.5px;
  color: #94a3b8;
}
.cover-foot strong {
  color: #60a5fa;
  font-weight: 700;
  font-size: 7.5px;
}
.artifact-hint {
  z-index: 1;
  text-align: center;
  color: #93c5fd;
  font-size: 11px;
  font-weight: 600;
  transition: color .2s;
}
.bento-card--artifact:hover .artifact-hint,
.bento-card--artifact.is-active .artifact-hint {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(96, 165, 250, 0.6);
}
.hint-mobile { display: none; }
@media (hover: none) and (pointer: coarse) {
  .hint-desktop { display: none; }
  .hint-mobile { display: inline; }
}
.entry-section { position: relative; display: flex; min-height: 95vh; flex-direction: column; align-items: center; justify-content: center; padding: 100px 20px 150px; border-top: 1px solid var(--line); background: radial-gradient(ellipse 45% 45% at 50% 48%,#252b2e,#0b0d0e 85%); text-align: center; }
.entry-section h2 { font-size: clamp(42px, 5.3vw, 82px); }
.entry-section .primary-button { margin-top: 28px; }
.entry-foot { position: absolute; bottom: 35px; left: 5%; right: 5%; display: flex; justify-content: space-between; color: #8b9295; font-size: 9px; font-weight: 700; letter-spacing: .13em; }

@media (max-width: 850px) {
  .site-head { padding: 21px 24px; }
  .site-nav { display: none; }
  .head-action { margin-left: auto; }
  .menu-button { display: grid; gap: 5px; place-content: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: #171a1c; }
  .menu-button span { display: block; width: 15px; height: 1px; background: #f5f4ef; }
  .mobile-menu:not([hidden]) { position: fixed; z-index: 100; inset: 79px 18px auto; display: grid; padding: 13px; border: 1px solid #41494b; border-radius: 15px; background: #16191b; box-shadow: 0 25px 45px #0009; }
  .mobile-menu a { padding: 15px; border-radius: 8px; font-size: 14px; }
  .mobile-menu a:hover { background: #2a2f32; }
  .intro-copy { left: 6vw; width: min(470px, 55vw); }
  .journal-fallback { left: 72%; width: min(34vw, 330px); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card--artifact { grid-column: 1 / -1; min-height: 320px; }
  .explore-section { padding-inline: 24px; }
}
@media (max-width: 768px) {
  .journal-canvas, .journal-fallback, .reveal-copy, .stage-progress, .scroll-cue { display: none !important; }
  .story { height: auto !important; min-height: 100vh; min-height: 100dvh; }
  .stage {
    position: relative !important;
    height: auto !important;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 110px 24px 60px !important;
    box-sizing: border-box !important;
  }
  .intro-copy {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 520px;
    margin: 0 !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .intro-copy h1 {
    font-size: clamp(34px, 8.8vw, 48px) !important;
    margin: 20px 0 16px !important;
    line-height: 1.12 !important;
    letter-spacing: -.04em !important;
  }
  .intro-copy p {
    max-width: 100% !important;
    font-size: 14.5px !important;
    line-height: 1.65 !important;
    margin-bottom: 28px !important;
    color: #c4cddc !important;
  }
  .intro-copy .primary-button {
    display: inline-flex !important;
    width: 100% !important;
    max-width: 320px;
    justify-content: center !important;
    padding: 16px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
  }
}
@media (max-width: 620px) {
  .site-head { padding: 17px 18px; gap: 10px; }
  .wordmark-symbol { width: 37px; height: 37px; }
  .wordmark-text strong { font-size: 15px; }
  .wordmark-text small { font-size: 6.5px; }
  .head-action { gap: 8px; padding: 10px 13px; }
  .section-heading { padding-bottom: 36px; }
  .bento { grid-template-columns: 1fr; }
  .bento-card, .bento-card--wide, .bento-card--artifact { grid-column: 1; min-height: 245px; }
  .bento-card--artifact { min-height: 320px; }
  .entry-foot { gap: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
  .story { height: 100vh; height: 100dvh; }
  .journal-canvas { display: none !important; }
  .journal-fallback { visibility: visible !important; }
}

/* PGUPS identity: paper white, rail black, vivid blue and disciplined red.
   The user-supplied symbol is the source of these colors. */
:root {
  --canvas: #090b10;
  --panel: #141820;
  --ink: #f7f8f8;
  --muted: #abb6c7;
  --subtle: #7f8da1;
  --line: rgba(255,255,255,.18);
  --blue: #0a5dec;
  --red: #ed1b35;
}
body { background: #080a10; }
::selection { color: #fff; background: #075dea; }
:focus-visible { outline-color: #76a9ff; }
.site-head { background: linear-gradient(180deg,rgba(5,7,12,.82),transparent); }
.wordmark-symbol {
  overflow: hidden;
  border-color: rgba(255,255,255,.72);
  background: #fff;
  border-radius: 50%;
}
.wordmark-symbol img { display: block; width: 30px; height: 30px; object-fit: contain; }
.wordmark-text small { color: #cad2df; }
.site-nav a { color: #d2dae8; }
.site-nav a:hover { color: #fff; text-shadow: 0 0 12px rgba(58,119,246,.45); }
.head-action { border-color: rgba(193,212,242,.43); }
.head-action:hover { color: #fff; border-color: #0b64f5; background: #0b57df; }
.studio-backdrop {
  background:
    radial-gradient(ellipse 38% 40% at 70% 47%,rgba(17,72,173,.22),transparent 83%),
    radial-gradient(ellipse 30% 25% at 80% 84%,rgba(183,24,51,.13),transparent 86%),
    linear-gradient(153deg,#151b2c 0%,#080b14 50%,#06080f 100%);
}
.studio-backdrop::after {
  background: linear-gradient(90deg,rgba(2,4,10,.1),transparent 45%,rgba(3,5,12,.18));
}
.eyebrow { color: #8caeff; }
.eyebrow-line { background: #1168ec; }
h1 em, h2 em { color: #6e9bfa; }
.intro-copy p, .section-heading p, .entry-section p { color: #d3d9e2; }
.primary-button {
  border-color: #236bf3;
  background: #0d5ce9;
  color: #fff;
  box-shadow: 0 15px 42px rgba(5,40,102,.25);
}
.primary-button:hover {
  background: #064fcf;
  box-shadow: 0 18px 48px rgba(8,78,218,.35);
}
.scroll-cue { color: #a3b2cf; }
.scroll-cue i { background: #ed1b35; }
.stage-progress { background: rgba(255,255,255,.24); }
.stage-progress span { background: #ed1b35; }
.journal-fallback__pages { background: repeating-linear-gradient(to bottom,#e7e6e2 0 2px,#bab9b4 3px 4px); }
.journal-fallback__spine { background: #0e151e; box-shadow: inset 3px 0 10px #0007; }
.journal-fallback__cover {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #fbfbfb;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}
.journal-fallback__cover::before { display: none; }
.journal-fallback__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.explore-section { background: #0b0e18; }
.bento-card {
  border-color: rgba(156,181,222,.22);
  background: #141a28;
}
.bento-card:hover { border-color: rgba(61,120,250,.68); }
.bento-card::before {
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%),rgba(26,93,220,.18),transparent 54%);
}
.bento-card--quiet { background: #161a26; }
.card-index { color: #79a9ff; }
.card-glyph { color: rgba(41,99,212,.34); }
.card-bottom small { color: #b8c4d6; }
.card-arrow { border-color: rgba(101,152,245,.55); }
.bento-card:hover .card-arrow { background: #0a5dec; color: #fff; }
.bento-card--artifact { background: radial-gradient(circle at 50% 48%, #192642 0%, #0d1424 55%, #080c16 100%); }
.entry-section { border-color: rgba(147,174,216,.18); background: radial-gradient(ellipse 52% 52% at 50% 48%,#142342,#090c18 84%); }
.entry-foot { color: #9aa9c4; }
.entry-foot a { color: #e5ecfc; text-decoration: underline; text-decoration-color: #ed1b35; text-underline-offset: 5px; }
.entry-foot a:hover { color: #fff; text-decoration-color: #347bff; }
@media (max-width: 620px) {
  .wordmark-symbol img { width: 28px; height: 28px; }
  .entry-foot { flex-wrap: wrap; justify-content: center; }
}
