@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; }

/* The pinned stage occupies three viewports: its camera progression is driven by scroll. */
.story { position: relative; height: 330vh; }
.stage { position: sticky; top: 0; width: 100%; height: 100vh; height: 100dvh; min-height: 550px; 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(-35%); }
.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 { position: absolute; z-index: 6; left: clamp(22px, 8.5vw, 144px); bottom: clamp(25px, 5vh, 60px); display: flex; align-items: center; gap: 18px; color: #a5a9a8; font-size: 9px; font-weight: 600; letter-spacing: .15em; }
.scroll-cue i { display: block; width: 50px; height: 1px; background: rgba(255,255,255,.45); }
.reveal-copy { position: absolute; z-index: 5; left: 50%; top: 50%; width: min(790px, 84vw); opacity: 0; text-align: center; transform: translate(-50%, -42%); pointer-events: none; }
.reveal-copy h2 { font-size: clamp(44px, 7vw, 108px); }
.stage-progress { position: absolute; z-index: 8; right: clamp(22px, 3vw, 46px); top: 50%; width: 1px; height: 110px; background: rgba(255,255,255,.2); transform: translateY(-50%); }
.stage-progress span { display: block; width: 1px; height: 100%; background: #d5d8d6; transform: scaleY(0); transform-origin: top; }

/* 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; }
.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: 14px; }
.bento-card { position: relative; display: flex; min-height: 340px; flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(23px,2.6vw,38px); border: 1px solid rgba(220,226,226,.11); border-radius: 17px; background: #17191b; transform: perspective(900px) translate3d(0, var(--rise, 0px), 0) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); box-shadow: 0 24px 45px rgba(0,0,0,.16); transition: border-color .4s, box-shadow .4s; will-change: transform; }
.bento-card:hover { border-color: rgba(209,221,220,.3); box-shadow: 0 32px 58px rgba(0,0,0,.32); }
.bento-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx,50%) var(--my,50%),rgba(142,163,174,.1),transparent 48%); pointer-events: none; }
.bento-card--wide { grid-column: span 2; }
.bento-card--quiet { background: #1a1b1c; }
.card-index { position: relative; z-index: 1; color: #a5b0b3; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.card-glyph { position: absolute; top: 20%; right: 12%; color: rgba(195,210,213,.2); font: 400 clamp(100px, 13vw, 210px)/1 var(--display); }
.card-bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; width: 100%; }
.card-bottom span:first-child { display: grid; gap: 9px; }
.card-bottom strong { font: 700 clamp(22px,2.2vw,33px)/1.15 var(--display); letter-spacing: -.055em; }
.card-bottom small { max-width: 270px; color: #afb3b4; font-size: 12px; line-height: 1.55; }
.card-arrow { display: grid; flex: none; place-items: center; width: 43px; height: 43px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; font-size: 20px; transition: background .3s, color .3s, transform .3s; }
.bento-card:hover .card-arrow { background: #e5e8e5; color: #131516; transform: rotate(45deg); }
.bento-card--artifact { background: radial-gradient(circle at 50% 48%,#31373a,#181b1d 58%,#111315); cursor: grab; }
.mini-scene { position: relative; display: grid; flex: 1; place-items: center; min-height: 180px; perspective: 700px; }
.mini-book { position: relative; width: 105px; height: 150px; transform: rotateX(var(--book-x, 10deg)) rotateY(var(--book-y, -24deg)) rotateZ(-6deg); transform-style: preserve-3d; filter: drop-shadow(15px 20px 12px #0009); transition: transform .2s ease-out; }
.mini-book__cover { display: flex; flex-direction: column; justify-content: space-between; width: 100%; height: 100%; padding: 13px; border: 1px solid #535d61; border-radius: 2px 5px 5px 2px; background: linear-gradient(110deg, #181d20, #343b3f 62%, #181d20); }
.mini-book__cover small, .mini-book__cover i { font-size: 6px; font-style: normal; font-weight: 700; letter-spacing: .11em; }
.mini-book__cover b { font: 700 17px/1.13 var(--display); letter-spacing: -.04em; }
.mini-book__edge { position: absolute; inset: 4px -10px -5px 6px; background: #a6a7a1; transform: translateZ(-8px); border-radius: 3px; }
.artifact-hint { z-index: 1; color: #b4b9b9; font-size: 10px; }
.artifact-hint span { margin-left: 8px; }
.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: 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; }
  .story { height: 245vh; }
  .stage { min-height: 500px; }
  .intro-copy { top: auto; bottom: 12%; left: 20px; width: calc(100% - 40px); transform: none; }
  .intro-copy h1 { font-size: clamp(39px, 10vw, 56px); }
  .intro-copy p { max-width: 400px; font-size: 13px; }
  .journal-fallback { top: 34%; left: 54%; width: clamp(155px, 36vw, 220px); }
  .scroll-cue { bottom: 18px; left: 20px; }
  .stage-progress { right: 14px; height: 80px; }
  .reveal-copy h2 { font-size: clamp(44px, 11vw, 72px); }
  .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-color: #edece8;
  background: #f0eee8;
}
.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%,#273553,#111724 60%,#0e121d); }
.mini-book__cover { border-color: #afb6c8; background: #f1efea url('assets/journal-cover.webp') center / cover; color: #101318; }
.mini-book__cover small,.mini-book__cover b,.mini-book__cover i { opacity: 0; }
.artifact-hint { color: #cfdaed; }
.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; }
}
