:root {
  --paper: #e7f1fb;
  --paper-strong: #f5f8fb;
  --ink: #11151a;
  --muted: #56616d;
  --line: rgba(17, 21, 26, 0.16);
  --line-strong: rgba(17, 21, 26, 0.28);
  --blue: #6f9dff;
  --blue-dark: #315bd6;
  --pink: #ff4f9a;
  --yellow: #ffd84f;
  --green: #a8f05a;
  --violet: #9e72ff;
  --white: #ffffff;
  --header-h: 76px;
  --hud-h: 58px;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
  transition: background 240ms ease, color 240ms ease;
}

body.dark {
  --paper: #11151b;
  --paper-strong: #1a2029;
  --ink: #f1f5fa;
  --muted: #aab5c2;
  --line: rgba(241, 245, 250, 0.14);
  --line-strong: rgba(241, 245, 250, 0.28);
  --blue: #739dff;
  --blue-dark: #9eb9ff;
}

button,
input {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  height: var(--header-h);
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: blur(18px);
}

.site-header::before,
.site-header::after {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
  content: "";
}

.site-header::before {
  left: 28%;
}

.site-header::after {
  right: 28%;
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 12px;
  margin-left: clamp(20px, 4vw, 64px);
  padding: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--yellow);
  color: #11151a;
  font-size: 11px;
  transform: rotate(-4deg);
}

.desktop-nav,
.utility-nav {
  display: flex;
  align-items: center;
}

.desktop-nav {
  justify-content: center;
  gap: 4px;
}

.desktop-nav button,
.utility-nav button {
  padding: 10px 11px;
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.desktop-nav button {
  border: 1px solid transparent;
}

.desktop-nav button:hover,
.desktop-nav button.active {
  border-color: var(--line-strong);
  background: var(--yellow);
  color: #11151a;
}

.utility-nav {
  justify-content: flex-end;
  gap: 2px;
  margin-right: clamp(20px, 4vw, 64px);
}

.utility-nav button:hover {
  background: color-mix(in srgb, var(--blue) 22%, transparent);
}

.map-toggle {
  display: block;
}

.viewport {
  position: fixed;
  inset: var(--header-h) 0 var(--hud-h);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  touch-action: pan-y pinch-zoom;
  perspective: 1800px;
  perspective-origin: 50% 50%;
  isolation: isolate;
}

.viewport::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.viewport::before,
.viewport::after {
  position: absolute;
  z-index: 30;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  content: "";
}

.viewport::before {
  width: 100%;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(3, 7, 18, 0.34) 48%, rgba(255, 255, 255, 0.18) 51%, transparent);
  filter: blur(1px);
}

.viewport::after {
  background: rgba(6, 10, 20, 0.12);
}

.viewport.scene-turning::after {
  animation: pageFlash 940ms ease-out both;
}

.viewport.scene-turning.turn-next::before {
  animation: foldSpineNext 940ms cubic-bezier(0.2, 0.72, 0.18, 1) both;
}

.viewport.scene-turning.turn-previous::before {
  animation: foldSpinePrevious 940ms cubic-bezier(0.2, 0.72, 0.18, 1) both;
}

body.is-swiping .viewport {
  cursor: grabbing;
  user-select: none;
}

.innovation-transition {
  position: sticky;
  z-index: 42;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin-bottom: calc(-100dvh + var(--header-h) + var(--hud-h));
  overflow: hidden;
  background: linear-gradient(180deg, var(--paper) 0%, #7895e4 28%, #9d7fd3 56%, #e486b6 78%, var(--paper) 100%);
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transform: translateZ(120px) scale(1.08);
  visibility: hidden;
}

body.dark .innovation-transition {
  background: linear-gradient(180deg, var(--paper) 0%, #182f73 28%, #3f3475 56%, #71375f 78%, var(--paper) 100%);
}

.innovation-transition::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 25% 50%;
  content: "";
}

.innovation-transition::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 120px rgba(2, 6, 28, 0.5);
  content: "";
}

.innovation-transition.is-active {
  visibility: visible;
  animation: portalReveal 1220ms cubic-bezier(0.22, 0.76, 0.18, 1) both;
}

.innovation-transition.is-scroll-active {
  visibility: visible;
  opacity: var(--scroll-visibility, 0);
  transform: translate3d(0, var(--scroll-shift, 0), 0) scale(var(--scroll-scale, 1));
}

#transition-canvas {
  position: absolute;
  z-index: 0;
  inset: 0;
}

.innovation-copy {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: min(88vw, 880px);
  text-align: center;
  transform: translate(-50%, -50%);
  translate: 0 var(--copy-y, 0);
}

.innovation-copy > span {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(7, 17, 63, 0.72);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.innovation-copy strong,
.innovation-copy strong b {
  display: block;
}

.innovation-copy strong {
  font-size: clamp(46px, 7.4vw, 112px);
  font-weight: 900;
  line-height: 0.82;
  text-transform: uppercase;
  text-shadow: 0 12px 36px rgba(33, 102, 255, 0.4);
}

.innovation-copy strong b {
  font-weight: inherit;
}

.innovation-copy strong b:last-child {
  color: #9eeeff;
}

.is-active .innovation-copy > span {
  animation: portalKicker 760ms 80ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.is-active .innovation-copy strong b:first-child {
  animation: portalTypeNext 780ms 60ms cubic-bezier(0.18, 0.78, 0.2, 1) both;
}

.is-active .innovation-copy strong b:last-child {
  animation: portalTypePrevious 780ms 110ms cubic-bezier(0.18, 0.78, 0.2, 1) both;
}

.portal-core {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(28vw, 360px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  rotate: var(--core-turn, 0deg);
}

.portal-core i {
  position: absolute;
  inset: 18%;
  border: 2px solid #b8ff63;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(184, 255, 99, 0.5);
  transform: rotateX(70deg);
}

.portal-core i:nth-child(2) {
  inset: 28% 8%;
  border-color: #7cecff;
  transform: rotateY(70deg) rotateZ(24deg);
}

.portal-core i:nth-child(3) {
  inset: 10% 30%;
  border-color: #ff6db4;
  transform: rotateY(64deg) rotateZ(-32deg);
}

.is-active .portal-core {
  animation: portalCorePulse 1220ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.android-device .innovation-transition::after {
  box-shadow: none;
}

.android-device .portal-core i {
  box-shadow: none;
}

@keyframes portalReveal {
  0% { opacity: 0; transform: translate3d(0, 100%, 80px) scale(0.985); }
  18% { opacity: 1; }
  32%, 68% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  100% { opacity: 0; transform: translate3d(0, -100%, -80px) scale(0.985); }
}

@keyframes portalKicker {
  0% { opacity: 0; transform: translateY(18px); }
  35%, 72% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-12px); }
}

@keyframes portalTypeNext {
  0% { opacity: 0; transform: translateX(12%) skewX(-8deg); }
  32%, 72% { opacity: 1; transform: translateX(0) skewX(0); }
  100% { opacity: 0; transform: translateX(-7%) skewX(5deg); }
}

@keyframes portalTypePrevious {
  0% { opacity: 0; transform: translateX(-12%) skewX(8deg); }
  32%, 72% { opacity: 1; transform: translateX(0) skewX(0); }
  100% { opacity: 0; transform: translateX(7%) skewX(-5deg); }
}

@keyframes portalCorePulse {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.35) rotate(-24deg); }
  42% { opacity: 0.82; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.8) rotate(46deg); }
}

.world {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 700%;
  transform: translate3d(0, 0, 0);
  transition: none;
  transform-style: preserve-3d;
  will-change: transform;
}

.scene.page-out-next .scene-shell,
.scene.page-out-previous .scene-shell,
.scene.page-in-next .scene-shell,
.scene.page-in-previous .scene-shell,
.scene.gesture-preview .scene-shell {
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform, filter, opacity;
}

.scene.page-out-next .scene-shell {
  transform-origin: center top;
  animation: pageOutNext 1220ms cubic-bezier(0.22, 0.78, 0.18, 1) both;
}

.scene.page-out-previous .scene-shell {
  transform-origin: center bottom;
  animation: pageOutPrevious 1220ms cubic-bezier(0.22, 0.78, 0.18, 1) both;
}

.scene.page-in-next .scene-shell {
  transform-origin: center bottom;
  animation: pageInNext 1220ms cubic-bezier(0.22, 0.78, 0.18, 1) both;
}

.scene.page-in-previous .scene-shell {
  transform-origin: center top;
  animation: pageInPrevious 1220ms cubic-bezier(0.22, 0.78, 0.18, 1) both;
}

.scene.gesture-preview .scene-shell {
  transition: none;
  transform: translate3d(0, var(--gesture-shift), var(--gesture-depth)) rotateX(var(--gesture-rotate));
}

.scene.gesture-next .scene-shell { transform-origin: center top; }
.scene.gesture-previous .scene-shell { transform-origin: center bottom; }

@keyframes pageOutNext {
  0% { opacity: 1; filter: brightness(1); transform: translate3d(0, 0, 0) rotateX(0) scale(1); }
  48% { opacity: 0.9; filter: brightness(0.86); transform: translate3d(0, -7%, -70px) rotateX(3deg) scale(0.99); }
  100% { opacity: 0.34; filter: brightness(0.65); transform: translate3d(0, -18%, -150px) rotateX(8deg) scale(0.97); }
}

@keyframes pageOutPrevious {
  0% { opacity: 1; filter: brightness(1); transform: translate3d(0, 0, 0) rotateX(0) scale(1); }
  48% { opacity: 0.9; filter: brightness(0.86); transform: translate3d(0, 7%, -70px) rotateX(-3deg) scale(0.99); }
  100% { opacity: 0.34; filter: brightness(0.65); transform: translate3d(0, 18%, -150px) rotateX(-8deg) scale(0.97); }
}

@keyframes pageInNext {
  0% { opacity: 0.34; filter: brightness(0.68); transform: translate3d(0, 18%, -160px) rotateX(-8deg) scale(0.97); }
  55% { opacity: 0.94; filter: brightness(0.96); transform: translate3d(0, 3%, -28px) rotateX(-2deg) scale(0.995); }
  100% { opacity: 1; filter: brightness(1); transform: translate3d(0, 0, 0) rotateX(0) scale(1); }
}

@keyframes pageInPrevious {
  0% { opacity: 0.34; filter: brightness(0.68); transform: translate3d(0, -18%, -160px) rotateX(8deg) scale(0.97); }
  55% { opacity: 0.94; filter: brightness(0.96); transform: translate3d(0, -3%, -28px) rotateX(2deg) scale(0.995); }
  100% { opacity: 1; filter: brightness(1); transform: translate3d(0, 0, 0) rotateX(0) scale(1); }
}

@keyframes foldSpineNext {
  0% { opacity: 0; transform: translateY(250%) skewY(-5deg); }
  24% { opacity: 0.72; }
  100% { opacity: 0; transform: translateY(-110%) skewY(4deg); }
}

@keyframes foldSpinePrevious {
  0% { opacity: 0; transform: translateY(-110%) skewY(5deg); }
  24% { opacity: 0.72; }
  100% { opacity: 0; transform: translateY(250%) skewY(-4deg); }
}

@keyframes pageFlash {
  0%, 100% { opacity: 0; }
  38% { opacity: 0.32; }
}

.scene {
  position: absolute;
  width: 100vw;
  height: calc(100% / 7);
  min-height: 0;
  overflow: hidden;
  background: var(--paper);
  perspective: 1800px;
  transform-style: preserve-3d;
}

.scene[data-col] { left: 0; }
#home { top: 0; }
#systems { top: calc(100% / 7); }
#research { top: calc(200% / 7); }
#impact { top: calc(300% / 7); }
#credentials { top: calc(400% / 7); }
#travel { top: calc(500% / 7); }
#personal { top: calc(600% / 7); }

.scene-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 25% 50%;
  pointer-events: none;
}

.scene-grid::before {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 50%, var(--ink) 0 1px, transparent 2px),
    radial-gradient(circle at 50% 50%, var(--ink) 0 1px, transparent 2px),
    radial-gradient(circle at 75% 50%, var(--ink) 0 1px, transparent 2px);
  background-size: 100% 100%;
  opacity: 0.35;
  content: "";
}

.float-canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.86;
  pointer-events: none;
}

body.dark .float-canvas {
  opacity: 0.72;
}

.scene-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: clamp(24px, 4vw, 62px);
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  translate: 0 var(--shell-y, 0);
  scale: var(--shell-scale, 1);
  opacity: var(--shell-opacity, 1);
}

.hero-copy,
.area-heading,
.travel-copy,
.personal-copy {
  translate: 0 var(--heading-y, 0);
}

.hero-object,
.systems-visual,
.research-orbit,
.signal-tower,
.credential-stack,
.travel-map,
.shaay-frame {
  translate: 0 var(--visual-y, 0);
}

.search-dock,
.area-cards,
.link-grid,
.credential-list,
.travel-preview {
  translate: 0 var(--content-y, 0);
}

.mono-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.home-shell {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(440px, 1.5fr) minmax(260px, 1fr);
  grid-template-rows: 110px 1fr 150px;
  gap: 16px;
}

.home-meta {
  grid-column: 1;
  grid-row: 1;
}

.home-meta > p:last-child {
  max-width: 220px;
  margin: 28px 0 0;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.5;
}

.profile-chip {
  display: flex;
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  align-items: center;
  gap: 14px;
  max-width: 370px;
  padding: 8px 16px 8px 8px;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--paper-strong) 88%, transparent);
  box-shadow: 7px 7px 0 color-mix(in srgb, var(--blue) 35%, transparent);
}

.profile-chip img {
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.profile-chip div {
  min-width: 0;
}

.profile-chip strong,
.profile-chip span {
  display: block;
}

.profile-chip strong {
  font-size: 17px;
  line-height: 1.2;
}

.profile-chip span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.hero-object {
  --drift-x: 0px;
  --drift-y: 0px;
  position: relative;
  grid-column: 2;
  grid-row: 1 / 4;
  min-height: 420px;
  align-self: center;
  perspective: 1000px;
  pointer-events: none;
  transform: translate3d(calc(150px + var(--drift-x)), var(--drift-y), 0) scale(0.88);
  transition: transform 220ms ease-out;
}

.gel-word {
  position: absolute;
  inset: 8% -3% 5% 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0px, 0.2vw, 4px);
  filter: drop-shadow(18px 24px 22px rgba(49, 91, 214, 0.22));
  transform: translateY(-68px) rotate(-7deg) rotateX(8deg);
  transform-style: preserve-3d;
}

.gel-letter {
  --push-x: 0px;
  --push-y: 0px;
  --squash-x: 1;
  --squash-y: 1;
  --tilt: 0deg;
  position: relative;
  display: inline-block;
  color: #4057c8;
  font-family: var(--display);
  font-size: clamp(94px, 11.7vw, 184px);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.8;
  -webkit-text-stroke: 2px rgba(19, 36, 122, 0.72);
  text-shadow:
    0 3px 0 rgba(174, 193, 255, 0.82),
    0 8px 0 rgba(52, 70, 181, 0.92),
    0 15px 18px rgba(31, 41, 137, 0.4);
  transform: translate3d(var(--push-x), var(--push-y), 0) rotate(var(--tilt)) scaleX(var(--squash-x)) scaleY(var(--squash-y));
  transform-origin: 50% 70%;
  transition: transform 190ms cubic-bezier(0.2, 0.85, 0.25, 1.15);
  animation: gelLetterFloat 3.7s ease-in-out infinite;
  will-change: transform, translate;
}

.gel-letter::after {
  position: absolute;
  inset: 0;
  color: transparent;
  content: attr(data-letter);
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.28);
  text-shadow: -6px -5px 8px rgba(255, 255, 255, 0.4);
  transform: translateZ(14px) scale(0.96);
}

.gel-letter:nth-child(2) { animation-delay: -1.4s; }
.gel-letter:nth-child(3) { animation-delay: -2.7s; }
.gel-letter:nth-child(4) { animation-delay: -0.8s; }
.gel-letter:nth-child(5) { animation-delay: -3.5s; }

.gel-letter:nth-child(2) { animation-duration: 4.1s; }
.gel-letter:nth-child(3) { animation-duration: 3.5s; }
.gel-letter:nth-child(4) { animation-duration: 4.3s; }
.gel-letter:nth-child(5) { animation-duration: 3.9s; }

body.dark .gel-letter {
  color: #9d7cff;
  -webkit-text-stroke-color: rgba(74, 45, 162, 0.86);
  text-shadow:
    0 3px 0 rgba(222, 211, 255, 0.92),
    0 8px 0 rgba(103, 68, 210, 0.92),
    0 15px 22px rgba(81, 42, 170, 0.5);
}

body.dark .gel-letter::after {
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.42);
  text-shadow: -6px -5px 8px rgba(255, 255, 255, 0.6);
}

@keyframes gelLetterFloat {
  0%, 100% { translate: 0 3px; }
  50% { translate: 0 -16px; }
}

.data-loop {
  position: absolute;
  border: clamp(24px, 3.5vw, 54px) solid color-mix(in srgb, var(--blue) 82%, white);
  border-radius: 48% 52% 46% 54%;
  filter: drop-shadow(18px 24px 0 rgba(49, 91, 214, 0.16));
  transform-style: preserve-3d;
}

.loop-one {
  top: 12%;
  left: 5%;
  width: 62%;
  height: 62%;
  animation: loopFloat 6s ease-in-out infinite;
  transform: rotate(-18deg) rotateX(52deg);
}

.loop-two {
  right: 2%;
  bottom: 10%;
  width: 52%;
  height: 55%;
  border-color: color-mix(in srgb, var(--violet) 72%, white);
  animation: loopFloatTwo 7s ease-in-out infinite;
  transform: rotate(24deg) rotateY(50deg);
}

.pipeline-core {
  position: absolute;
  top: 46%;
  left: 50%;
  display: flex;
  width: 118px;
  height: 118px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 2px solid #11151a;
  background: var(--yellow);
  box-shadow: 10px 10px 0 var(--pink);
  transform: translate(-50%, -50%) rotate(8deg);
}

.pipeline-core span {
  width: 13px;
  height: 50px;
  background: #11151a;
  animation: dataPulse 1.4s ease-in-out infinite alternate;
}

.pipeline-core span:nth-child(2) { height: 76px; animation-delay: 180ms; }
.pipeline-core span:nth-child(3) { height: 34px; animation-delay: 360ms; }

.object-tag {
  position: absolute;
  z-index: 3;
  padding: 8px 11px;
  border: 1px solid #11151a;
  color: #11151a;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  box-shadow: 4px 4px 0 rgba(17, 21, 26, 0.2);
}

.tag-sql { top: 16%; left: 3%; background: var(--green); transform: rotate(-9deg); }
.tag-ai { top: 9%; right: 9%; background: var(--pink); transform: rotate(8deg); }
.tag-etl { right: 3%; bottom: 21%; background: var(--yellow); transform: rotate(-5deg); }
.tag-impact { left: 8%; bottom: 12%; background: var(--white); transform: rotate(6deg); }

.hero-copy {
  position: relative;
  z-index: 4;
  grid-column: 1 / 3;
  grid-row: 2;
  align-self: end;
  max-width: 560px;
  padding-bottom: 10px;
}

.accent-label {
  width: max-content;
  padding: 6px 9px;
  background: var(--pink);
  color: #11151a;
}

.hero-copy h1 {
  max-width: 520px;
  margin: 18px 0 14px;
  font-size: clamp(46px, 4.5vw, 68px);
  font-weight: 800;
  line-height: 0.91;
  text-transform: uppercase;
}

.hero-copy > p:not(.mono-label) {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}

.primary-action,
.hero-actions a,
.inline-link,
.personal-actions a,
.personal-actions button {
  min-height: 44px;
  padding: 12px 17px;
  border: 1px solid var(--line-strong);
  background: var(--paper-strong);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.primary-action {
  background: var(--ink);
  color: var(--paper);
}

.hero-actions a:hover,
.inline-link:hover,
.personal-actions a:hover,
.personal-actions button:hover {
  background: var(--yellow);
  color: #11151a;
}

.search-dock {
  position: absolute;
  z-index: 5;
  right: clamp(24px, 4vw, 62px);
  bottom: clamp(24px, 4vw, 52px);
  width: min(330px, 28vw);
  padding: 20px;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--paper-strong) 90%, transparent);
  box-shadow: 10px 10px 0 color-mix(in srgb, var(--pink) 28%, transparent);
}

.search-dock label {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 42px;
  border-bottom: 1px solid var(--line-strong);
}

.search-row input {
  min-width: 0;
  height: 44px;
  border: 0;
  background: transparent;
  outline: 0;
  font-size: 14px;
}

.search-row button {
  background: var(--yellow);
  color: #11151a;
  cursor: pointer;
  font-size: 20px;
}

.search-results {
  min-height: 82px;
  padding-top: 14px;
}

.search-results span {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.search-results strong,
.search-results p {
  display: block;
  margin: 4px 0 0;
}

.search-results strong {
  font-size: 15px;
}

.search-results p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.area-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(360px, 1.05fr) minmax(340px, 1.15fr);
  grid-template-rows: 1fr;
  align-items: center;
  gap: clamp(24px, 3vw, 54px);
}

.area-heading {
  align-self: start;
  padding-top: 5vh;
}

.area-heading h2,
.personal-copy h2 {
  margin: 20px 0 18px;
  font-size: clamp(34px, 4vw, 64px);
  font-weight: 800;
  line-height: 0.98;
  text-transform: uppercase;
}

.area-heading > p:not(.mono-label),
.personal-copy > p:not(.mono-label) {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.inline-link {
  display: inline-flex;
  margin-top: 24px;
}

.area-cards {
  display: grid;
  align-self: stretch;
  align-content: center;
  gap: 12px;
}

.systems-cards {
  grid-template-columns: 1fr 1fr;
}

.area-card {
  padding: clamp(18px, 2vw, 28px);
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--paper-strong) 92%, transparent);
  box-shadow: 7px 7px 0 color-mix(in srgb, var(--blue) 23%, transparent);
}

.area-card.feature-card {
  background: var(--yellow);
  color: #11151a;
  box-shadow: 8px 8px 0 var(--pink);
}

.area-card > span,
.link-card > span,
.closing-note > span {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.area-card h3 {
  margin: 10px 0 8px;
  font-size: clamp(18px, 1.7vw, 26px);
  line-height: 1.12;
}

.area-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.feature-card p { color: #32363b; }

.systems-visual {
  position: relative;
  min-height: 440px;
  perspective: 1000px;
}

.terminal-window {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100%, 520px);
  border: 1px solid #11151a;
  background: #13171d;
  color: #eaf3ff;
  box-shadow: 18px 20px 0 var(--blue);
  transform: translate(-50%, -50%) rotateY(-9deg) rotateX(4deg);
}

.terminal-bar {
  display: flex;
  height: 42px;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.terminal-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink);
}

.terminal-bar span:nth-child(2) { background: var(--yellow); }
.terminal-bar span:nth-child(3) { background: var(--green); }

.terminal-bar b {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
}

.terminal-body {
  padding: 30px;
  font-family: var(--mono);
  font-size: 13px;
}

.terminal-body p {
  margin: 0 0 22px;
}

.terminal-body p span {
  display: inline-block;
  width: 36px;
  color: var(--green);
}

.status-line {
  margin-top: 34px;
  padding: 14px;
  border: 1px solid rgba(168, 240, 90, 0.45);
  background: rgba(168, 240, 90, 0.08);
  color: var(--green);
}

.status-line i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.flow-node {
  position: absolute;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid #11151a;
  color: #11151a;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 5px 5px 0 rgba(17, 21, 26, 0.18);
}

.node-a { top: 6%; left: 4%; background: var(--yellow); transform: rotate(-7deg); }
.node-b { top: 12%; right: 0; background: var(--pink); transform: rotate(8deg); }
.node-c { bottom: 4%; right: 10%; background: var(--green); transform: rotate(-4deg); }

.research-orbit {
  position: relative;
  min-height: 470px;
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
}

.ring-one {
  width: 82%;
  height: 44%;
  animation: orbitSpin 12s linear infinite;
}

.ring-two {
  width: 54%;
  height: 80%;
  border-color: var(--blue-dark);
  animation: orbitSpinTwo 14s linear infinite;
}

.research-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  border: 2px solid #11151a;
  background: var(--yellow);
  color: #11151a;
  font-size: 58px;
  font-weight: 900;
  box-shadow: 12px 12px 0 var(--pink);
  transform: translate(-50%, -50%) rotate(-6deg);
}

.research-core span { color: var(--pink); }

.orbit-label {
  position: absolute;
  padding: 7px 10px;
  border: 1px solid #11151a;
  color: #11151a;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
}

.label-patent { top: 18%; left: 4%; background: var(--pink); transform: rotate(-8deg); }
.label-scholar { top: 13%; right: 4%; background: var(--green); transform: rotate(7deg); }
.label-books { right: 11%; bottom: 14%; background: var(--white); transform: rotate(-5deg); }

.research-cards {
  grid-template-columns: 1fr 1fr;
}

.research-cards .feature-card {
  grid-column: 1 / 3;
}

.scene-impact {
  background: color-mix(in srgb, var(--paper) 72%, var(--pink));
}

.signal-tower {
  position: relative;
  min-height: 440px;
}

.tower-mast {
  position: absolute;
  bottom: 9%;
  left: 50%;
  width: 12px;
  height: 58%;
  background: var(--ink);
  transform: translateX(-50%);
}

.tower-mast::before,
.tower-mast::after {
  position: absolute;
  bottom: -12px;
  width: 120px;
  height: 12px;
  background: var(--ink);
  content: "";
  transform-origin: center;
}

.tower-mast::before { left: -100px; transform: rotate(-61deg); }
.tower-mast::after { right: -100px; transform: rotate(61deg); }

.signal-wave {
  position: absolute;
  top: 17%;
  left: 50%;
  border: 3px solid var(--blue-dark);
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  animation: signalPulse 2.2s ease-out infinite;
}

.wave-one { width: 90px; height: 90px; }
.wave-two { width: 170px; height: 170px; animation-delay: 450ms; }
.wave-three { width: 250px; height: 250px; animation-delay: 900ms; }

.signal-tower > span {
  position: absolute;
  right: 4%;
  bottom: 14%;
  padding: 8px 11px;
  border: 1px solid #11151a;
  background: var(--yellow);
  color: #11151a;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  transform: rotate(5deg);
}

.link-grid {
  display: grid;
  align-self: stretch;
  align-content: center;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.link-card {
  position: relative;
  min-height: 175px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--paper-strong) 92%, transparent);
  transition: transform 180ms ease, background 180ms ease;
}

.link-card:hover {
  z-index: 2;
  background: var(--yellow);
  color: #11151a;
  transform: translateY(-6px) rotate(-1deg);
}

.link-card strong {
  display: block;
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.15;
}

.link-card p {
  margin: 8px 30px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.link-card:hover p { color: #363a40; }

.link-card i {
  position: absolute;
  right: 20px;
  bottom: 16px;
  font-size: 22px;
  font-style: normal;
}

.scene-credentials {
  background: color-mix(in srgb, var(--paper) 80%, var(--yellow));
}

.credential-stack {
  position: relative;
  min-height: 440px;
  perspective: 900px;
}

.stack-card {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 64%;
  height: 48%;
  place-items: center;
  border: 2px solid #11151a;
  color: #11151a;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 900;
}

.stack-back {
  background: var(--blue);
  transform: translate(-64%, -68%) rotate(-12deg) rotateY(12deg);
}

.stack-mid {
  background: var(--pink);
  transform: translate(-44%, -52%) rotate(8deg) rotateY(-8deg);
}

.stack-front {
  background: var(--yellow);
  box-shadow: 14px 14px 0 rgba(17, 21, 26, 0.2);
  transform: translate(-54%, -34%) rotate(-2deg);
}

.credential-list {
  border-top: 1px solid var(--line-strong);
}

.credential-list article {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-strong);
}

.credential-list article > span {
  font-family: var(--mono);
  color: var(--pink);
  font-size: 12px;
  font-weight: 800;
}

.credential-list h3,
.credential-list p {
  margin: 0;
}

.credential-list h3 {
  font-size: 20px;
}

.credential-list p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.scene-travel {
  background: color-mix(in srgb, var(--paper) 90%, var(--blue));
}

.travel-shell {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(470px, 1.35fr) minmax(270px, 0.78fr);
  align-items: center;
  gap: clamp(22px, 3vw, 50px);
}

.travel-copy {
  align-self: start;
  padding-top: 5vh;
}

.travel-copy h2 {
  margin: 20px 0 18px;
  font-size: clamp(34px, 3.8vw, 60px);
  font-weight: 800;
  line-height: 0.98;
  text-transform: uppercase;
}

.travel-copy > p:not(.mono-label) {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.travel-map {
  position: relative;
  width: 100%;
  aspect-ratio: 10 / 6.1;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 52% 45%, color-mix(in srgb, var(--blue) 28%, transparent), transparent 29%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    color-mix(in srgb, var(--paper-strong) 92%, var(--blue));
  background-size: auto, 10% 16.66%, 10% 16.66%, auto;
  box-shadow: 14px 14px 0 color-mix(in srgb, var(--blue) 30%, transparent);
  isolation: isolate;
}

.travel-network-canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.travel-hub {
  --hub-drift-x: 0px;
  --hub-drift-y: 0px;
  position: absolute;
  z-index: 2;
  top: 45%;
  left: 52%;
  display: grid;
  width: clamp(84px, 12vw, 128px);
  aspect-ratio: 1;
  place-content: center;
  border: 1px solid color-mix(in srgb, var(--blue) 70%, var(--ink));
  border-radius: 50%;
  background: color-mix(in srgb, var(--blue) 35%, transparent);
  box-shadow:
    inset 0 0 34px color-mix(in srgb, var(--paper-strong) 58%, transparent),
    0 0 0 18px color-mix(in srgb, var(--blue) 8%, transparent),
    0 0 54px color-mix(in srgb, var(--pink) 24%, transparent);
  color: var(--ink);
  text-align: center;
  transform: translate(calc(-50% + var(--hub-drift-x)), calc(-50% + var(--hub-drift-y)));
  animation: travel-hub-breathe 4.6s ease-in-out infinite;
}

.travel-hub span,
.travel-hub strong {
  display: block;
  font-family: var(--mono);
  text-transform: uppercase;
}

.travel-hub span {
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 800;
}

.travel-hub strong {
  margin-top: 5px;
  font-size: 8px;
  letter-spacing: 0;
}

@keyframes travel-hub-breathe {
  0%, 100% { transform: translate(calc(-50% + var(--hub-drift-x)), calc(-50% + var(--hub-drift-y))) scale(0.97); }
  50% { transform: translate(calc(-50% + var(--hub-drift-x)), calc(-50% + var(--hub-drift-y))) scale(1.04); }
}

.travel-pin {
  --float-x: 0px;
  --float-y: 0px;
  position: absolute;
  z-index: 4;
  top: var(--y);
  left: var(--x);
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border: 2px solid color-mix(in srgb, var(--paper-strong) 82%, transparent);
  border-radius: 50%;
  background: var(--pink);
  box-shadow:
    0 0 0 1px var(--ink),
    0 0 0 7px color-mix(in srgb, var(--pink) 10%, transparent),
    0 4px 14px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transform: translate(calc(-50% + var(--float-x)), calc(-50% + var(--float-y)));
  transition: background 160ms ease, box-shadow 160ms ease;
}

.travel-pin span {
  position: absolute;
  z-index: 4;
  bottom: 22px;
  left: 50%;
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  background: var(--paper-strong);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.travel-pin:hover,
.travel-pin:focus-visible,
.travel-pin.active {
  z-index: 8;
  background: var(--yellow);
  box-shadow:
    0 0 0 1px var(--ink),
    0 0 0 10px color-mix(in srgb, var(--yellow) 16%, transparent),
    0 0 24px color-mix(in srgb, var(--yellow) 64%, transparent);
  transform: translate(calc(-50% + var(--float-x)), calc(-50% + var(--float-y))) scale(1.35);
}

.travel-pin:hover span,
.travel-pin:focus-visible span,
.travel-pin.active span {
  opacity: 1;
  transform: translate(-50%, 0) scale(0.74);
}

.travel-preview {
  margin: 0;
  border: 1px solid var(--line-strong);
  background: var(--paper-strong);
  box-shadow: 10px 10px 0 var(--yellow);
  transform: rotate(1.5deg);
}

.travel-photo-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #090c12;
}

.travel-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 150ms ease, transform 420ms cubic-bezier(0.22, 0.78, 0.18, 1);
}

.travel-preview.is-changing img {
  opacity: 0.25;
  transform: scale(1.035);
}

.travel-photo-number {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 7px;
  background: var(--yellow);
  color: #11151a;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
}

.travel-preview figcaption {
  display: grid;
  gap: 4px;
  padding: 15px 16px 17px;
}

.travel-preview figcaption span {
  color: var(--pink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.travel-preview figcaption strong {
  font-size: 24px;
  line-height: 1.05;
}

.travel-preview figcaption p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.personal-shell {
  display: grid;
  grid-template-columns: minmax(330px, 0.85fr) minmax(440px, 1.15fr);
  grid-template-rows: 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 84px);
}

.personal-copy {
  max-width: 580px;
}

.personal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.shaay-frame {
  position: relative;
  width: min(100%, 680px);
  margin: 0;
  justify-self: end;
  border: 1px solid var(--line-strong);
  background: var(--paper-strong);
  box-shadow: 18px 18px 0 var(--blue);
  transform: rotate(1.5deg);
}

.shaay-frame.video-frame {
  width: min(100%, 640px);
}

.shaay-frame::before {
  position: absolute;
  z-index: 2;
  top: -20px;
  left: 12%;
  width: 98px;
  height: 38px;
  background: color-mix(in srgb, var(--yellow) 75%, transparent);
  content: "";
  transform: rotate(-7deg);
}

.shaay-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.shaay-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #090c12;
  object-fit: contain;
}

.shaay-media-pair {
  display: grid;
  height: 320px;
  grid-template-columns: 1fr 1fr;
  background: #090c12;
}

.shaay-media-pair img,
.shaay-media-pair video {
  width: 100%;
  height: 320px;
  aspect-ratio: auto;
}

.shaay-media-pair img {
  object-fit: cover;
  object-position: center;
}

.shaay-media-pair video {
  object-fit: contain;
}

.visit-message {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--paper-strong) 92%, transparent);
}

.visit-message span {
  color: var(--pink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.visit-message strong {
  max-width: 470px;
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.25;
}

.shaay-frame figcaption {
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.closing-note {
  display: grid;
  grid-template-columns: 145px 1fr;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.closing-note strong {
  max-width: 380px;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.2;
}

.world-map {
  position: fixed;
  z-index: 80;
  top: 50%;
  left: 50%;
  width: min(760px, calc(100vw - 40px));
  padding: 24px;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--paper-strong) 96%, transparent);
  box-shadow: 18px 18px 0 color-mix(in srgb, var(--pink) 45%, transparent);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -46%) scale(0.97);
  transition: opacity 180ms ease, transform 180ms ease;
}

.world-map.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.map-header span,
.map-header strong {
  display: block;
}

.map-header span {
  font-family: var(--mono);
  color: var(--pink);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.map-header strong {
  margin-top: 4px;
  font-size: 22px;
}

.map-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  font-size: 26px;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.map-cell {
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.map-cell small,
.map-cell strong {
  display: block;
}

.map-cell small {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 10px;
}

.map-cell strong {
  margin-top: 34px;
  font-size: 17px;
}

.map-cell:hover,
.map-cell.active {
  background: var(--yellow);
  color: #11151a;
}

.world-map > p {
  margin: 16px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.map-backdrop {
  position: fixed;
  z-index: 70;
  inset: 0;
  background: rgba(10, 13, 18, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.map-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.hud {
  position: fixed;
  z-index: 50;
  bottom: 0;
  left: 0;
  display: grid;
  width: 100%;
  height: var(--hud-h);
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px);
  font-family: var(--mono);
  font-size: 10px;
}

.hud-time,
.hud-position,
.hud-coordinates {
  display: flex;
  align-items: center;
  gap: 16px;
}

.globe {
  display: inline-block;
  rotate: var(--scroll-rotation, 0deg);
}

.hud-time span:last-child,
.hud-position span,
.hud-coordinates span:first-child {
  color: var(--muted);
}

.hud-position {
  padding: 0 22px;
}

.hud-coordinates {
  justify-content: flex-end;
}

.globe {
  font-size: 24px;
}

noscript {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--paper);
}

@keyframes loopFloat {
  0%, 100% { transform: rotate(-18deg) rotateX(52deg) translateY(0); }
  50% { transform: rotate(-13deg) rotateX(48deg) translateY(-16px); }
}

@keyframes loopFloatTwo {
  0%, 100% { transform: rotate(24deg) rotateY(50deg) translateY(0); }
  50% { transform: rotate(19deg) rotateY(54deg) translateY(14px); }
}

@keyframes dataPulse {
  from { transform: scaleY(0.65); }
  to { transform: scaleY(1); }
}

@keyframes orbitSpin {
  from { transform: translate(-50%, -50%) rotate(-18deg); }
  to { transform: translate(-50%, -50%) rotate(342deg); }
}

@keyframes orbitSpinTwo {
  from { transform: translate(-50%, -50%) rotate(28deg); }
  to { transform: translate(-50%, -50%) rotate(-332deg); }
}

@keyframes signalPulse {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-45deg) scale(0.6); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(-45deg) scale(1.15); }
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header::before,
  .site-header::after,
  .desktop-nav {
    display: none;
  }

  .map-toggle {
    display: block;
  }

  .home-shell {
    grid-template-columns: minmax(220px, 0.9fr) minmax(400px, 1.2fr);
    grid-template-rows: 90px 1fr 150px;
  }

  .profile-chip {
    grid-column: 2;
  }

  .hero-object {
    grid-column: 2;
    grid-row: 1 / 4;
    transform: translate3d(calc(34px + var(--drift-x)), var(--drift-y), 0) scale(0.92);
  }

  .hero-copy {
    grid-column: 1 / 3;
    max-width: 660px;
  }

  .search-dock {
    width: 300px;
  }

  .area-shell {
    grid-template-columns: minmax(250px, 0.75fr) minmax(330px, 1fr);
  }

  .area-heading {
    grid-column: 1;
  }

  .systems-visual,
  .research-orbit,
  .signal-tower,
  .credential-stack {
    grid-column: 2;
    grid-row: 1;
  }

  .area-cards,
  .link-grid,
  .credential-list {
    position: absolute;
    right: clamp(24px, 4vw, 62px);
    bottom: clamp(24px, 4vw, 54px);
    left: clamp(24px, 4vw, 62px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .area-card,
  .link-card {
    min-height: 150px;
    padding: 18px;
  }

  .area-card h3,
  .link-card strong {
    font-size: 17px;
  }

  .research-cards .feature-card {
    grid-column: auto;
  }

  .credential-list {
    border-top: 0;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .credential-list article {
    grid-template-columns: 34px 1fr;
    padding: 18px;
    border: 1px solid var(--line-strong);
    background: color-mix(in srgb, var(--paper-strong) 88%, transparent);
  }

  .travel-shell {
    grid-template-columns: minmax(210px, 0.65fr) minmax(420px, 1.35fr);
  }

  .travel-map {
    grid-column: 2;
  }

  .travel-preview {
    position: absolute;
    right: clamp(24px, 4vw, 62px);
    bottom: clamp(24px, 4vw, 54px);
    width: 210px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 66px;
    --hud-h: 46px;
  }

  .site-header {
    padding: 0 16px;
  }

  .brand {
    gap: 8px;
    margin-left: 0;
    font-size: 11px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .utility-nav {
    gap: 0;
    margin-right: 0;
  }

  .utility-nav button {
    padding: 9px 7px;
    font-size: 9px;
  }

  .theme-toggle,
  .sound-toggle {
    display: block;
  }

  .scene {
    position: relative;
    top: auto !important;
    left: auto !important;
    height: auto;
    min-height: calc(100dvh - var(--header-h) - var(--hud-h));
    overflow: visible;
    perspective: 1100px;
  }

  .viewport {
    perspective: 1100px;
  }

  .innovation-transition::before {
    background-size: 50% 33.333%;
  }

  .innovation-copy {
    width: calc(100vw - 36px);
  }

  .innovation-copy > span {
    margin-bottom: 13px;
    font-size: 9px;
  }

  .innovation-copy strong {
    font-size: clamp(38px, 13vw, 52px);
    line-height: 0.86;
  }

  .portal-core {
    width: min(64vw, 260px);
  }

  .world {
    position: relative;
    top: auto;
    left: auto;
    height: auto;
    transition: none;
  }

  .viewport::before {
    width: 100%;
    height: 42%;
  }

  .viewport.scene-turning::after,
  .viewport.scene-turning.turn-next::before,
  .viewport.scene-turning.turn-previous::before {
    animation-duration: 1220ms;
  }

  .scene.page-out-next .scene-shell {
    animation: pageOutNext 1220ms cubic-bezier(0.22, 0.78, 0.18, 1) both;
  }

  .scene.page-out-previous .scene-shell {
    animation: pageOutPrevious 1220ms cubic-bezier(0.22, 0.78, 0.18, 1) both;
  }

  .scene.page-in-next .scene-shell {
    animation: pageInNext 1220ms cubic-bezier(0.22, 0.78, 0.18, 1) both;
  }

  .scene.page-in-previous .scene-shell {
    animation: pageInPrevious 1220ms cubic-bezier(0.22, 0.78, 0.18, 1) both;
  }

  .scene.gesture-preview .scene-shell {
    transform: translate3d(0, var(--gesture-shift), var(--gesture-depth)) rotateX(calc(var(--gesture-rotate) * 0.68));
  }

  .scene-grid {
    position: absolute;
    background-size: 50% 33.333%;
  }

  .scene-shell {
    min-height: calc(100dvh - var(--header-h) - var(--hud-h));
    height: auto;
    padding: 24px 20px 56px;
  }

  .home-shell,
  .area-shell,
  .travel-shell,
  .personal-shell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .home-meta {
    order: 1;
  }

  .home-meta > p:last-child {
    display: none;
  }

  .profile-chip {
    order: 2;
    max-width: 100%;
    align-self: flex-start;
    justify-self: auto;
    box-shadow: 5px 5px 0 color-mix(in srgb, var(--blue) 35%, transparent);
  }

  .profile-chip img {
    width: 56px;
    height: 56px;
  }

  .profile-chip strong { font-size: 15.5px; }
  .profile-chip span { font-size: 11px; }

  .hero-copy {
    order: 3;
    align-self: auto;
    padding: 0;
  }

  .hero-copy h1 {
    margin: 15px 0 12px;
    max-width: 320px;
    font-size: clamp(32px, 8.8vw, 38px);
    line-height: 1;
    text-transform: uppercase;
  }

  .hero-copy > p:not(.mono-label) {
    font-size: 15px;
  }

  .hero-actions {
    align-items: stretch;
    gap: 8px;
    margin-top: 18px;
  }

  .primary-action,
  .hero-actions a {
    display: grid;
    flex: 1;
    place-items: center;
    padding: 11px;
    text-align: center;
  }

  .hero-object {
    order: 4;
    width: 100%;
    min-height: 260px;
    transform: translate3d(var(--drift-x), var(--drift-y), 0);
  }

  .gel-word {
    inset: 0;
    transform: rotate(-4deg) scale(0.88);
    animation: none;
  }

  .gel-letter {
    font-size: clamp(72px, 20vw, 92px);
    transition-duration: 520ms;
    animation-name: gelLetterFloatMobile;
    animation-duration: 4.1s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
  }

  .hero-object.is-reacting .gel-letter {
    transition-duration: 170ms;
  }

  .data-loop {
    border-width: 25px;
  }

  .pipeline-core {
    width: 86px;
    height: 86px;
  }

  .pipeline-core span { width: 9px; height: 36px; }
  .pipeline-core span:nth-child(2) { height: 54px; }
  .pipeline-core span:nth-child(3) { height: 26px; }

  .object-tag { padding: 6px 8px; font-size: 9px; }

  .search-dock {
    position: static;
    order: 5;
    width: 100%;
    align-self: auto;
    justify-self: auto;
    padding: 16px;
    box-shadow: 7px 7px 0 color-mix(in srgb, var(--pink) 28%, transparent);
  }

  .search-results {
    min-height: 70px;
  }

  .float-canvas {
    opacity: 0.72;
  }

  .area-heading {
    order: 1;
    padding-top: 8px;
  }

  .area-heading h2,
  .travel-copy h2,
  .personal-copy h2 {
    margin: 14px 0 12px;
    font-size: clamp(32px, 9.5vw, 44px);
  }

  .area-heading > p:not(.mono-label),
  .travel-copy > p:not(.mono-label),
  .personal-copy > p:not(.mono-label) {
    font-size: 15px;
  }

  .systems-visual,
  .research-orbit,
  .signal-tower,
  .credential-stack {
    order: 2;
    width: 100%;
    min-height: 290px;
  }

  .terminal-window {
    width: 90%;
    box-shadow: 10px 12px 0 var(--blue);
    transform: translate(-50%, -50%) rotateY(-4deg) rotateX(2deg);
  }

  .terminal-body {
    padding: 22px;
    font-size: 11px;
  }

  .terminal-body p { margin-bottom: 15px; }
  .status-line { margin-top: 20px; }

  .flow-node {
    width: 50px;
    height: 50px;
    font-size: 10px;
  }

  .area-cards,
  .link-grid,
  .credential-list {
    position: static;
    order: 3;
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .systems-cards {
    grid-template-columns: 1fr;
  }

  .research-cards {
    grid-template-columns: 1fr;
  }

  .area-card,
  .link-card {
    min-height: 0;
  }

  .area-card h3,
  .link-card strong {
    font-size: 18px;
  }

  .research-core {
    width: 112px;
    height: 112px;
    font-size: 42px;
  }

  .link-card strong { margin-top: 16px; }

  .credential-list article {
    padding: 18px 0;
    background: transparent;
    border-width: 0 0 1px;
  }

  .travel-copy {
    order: 1;
    padding-top: 8px;
  }

  .travel-map {
    order: 2;
    width: 100%;
    min-height: 0;
    box-shadow: 8px 8px 0 color-mix(in srgb, var(--blue) 30%, transparent);
  }

  .travel-pin {
    width: 14px;
    height: 14px;
  }

  .travel-pin span {
    bottom: 20px;
  }

  .travel-hub {
    width: 76px;
  }

  .travel-preview {
    position: static;
    order: 3;
    width: min(100%, 380px);
    align-self: center;
    box-shadow: 8px 8px 0 var(--yellow);
    transform: rotate(0.75deg);
  }

  .travel-photo-wrap {
    aspect-ratio: 4 / 4.4;
  }

  .personal-copy { order: 1; }

  .shaay-frame {
    order: 2;
    width: calc(100% - 10px);
    box-shadow: 10px 10px 0 var(--blue);
  }

  .shaay-frame img {
    aspect-ratio: 4 / 3;
  }

  .shaay-frame video {
    aspect-ratio: 9 / 13;
    object-fit: cover;
  }

  .shaay-media-pair {
    display: block;
    height: auto;
  }

  .shaay-media-pair img,
  .shaay-media-pair video {
    height: auto;
  }

  .visit-message {
    padding: 15px 16px;
  }

  .visit-message strong {
    font-size: 17px;
  }

  .closing-note {
    order: 3;
    display: block;
    padding-bottom: 24px;
  }

  .closing-note strong {
    display: block;
    margin-top: 10px;
    font-size: 19px;
  }

  .world-map {
    width: calc(100vw - 28px);
    padding: 18px;
    box-shadow: 10px 10px 0 color-mix(in srgb, var(--pink) 45%, transparent);
  }

  .map-grid {
    grid-template-columns: 1fr 1fr;
  }

  .map-cell {
    min-height: 88px;
    padding: 13px;
  }

  .map-cell strong {
    margin-top: 20px;
    font-size: 15px;
  }

  .hud {
    grid-template-columns: 1fr auto;
    padding: 0 16px;
    font-size: 9px;
  }

  .hud-time span:last-child,
  .hud-coordinates {
    display: none;
  }

  .hud-position {
    justify-self: end;
    padding: 0;
  }
}

@keyframes pageOutNextMobile {
  from { opacity: 1; transform: translate3d(0, 0, 0) rotateY(0) scale(1); }
  to { opacity: 0.55; transform: translate3d(-5%, 0, -88px) rotateY(-11deg) scale(0.975); }
}

@keyframes pageOutPreviousMobile {
  from { opacity: 1; transform: translate3d(0, 0, 0) rotateY(0) scale(1); }
  to { opacity: 0.55; transform: translate3d(5%, 0, -88px) rotateY(11deg) scale(0.975); }
}

@keyframes pageInNextMobile {
  from { opacity: 0.48; transform: translate3d(7%, 0, -100px) rotateY(13deg) scale(0.97); }
  to { opacity: 1; transform: translate3d(0, 0, 0) rotateY(0) scale(1); }
}

@keyframes pageInPreviousMobile {
  from { opacity: 0.48; transform: translate3d(-7%, 0, -100px) rotateY(-13deg) scale(0.97); }
  to { opacity: 1; transform: translate3d(0, 0, 0) rotateY(0) scale(1); }
}

@keyframes gelLetterFloatMobile {
  0%, 100% { translate: 0 2px; }
  50% { translate: 0 -9px; }
}

@media (max-height: 760px) and (min-width: 761px) {
  .scene-shell {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .home-shell {
    grid-template-rows: 76px 1fr 126px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 4.4vw, 64px);
  }

  .hero-copy > p:not(.mono-label) {
    font-size: 15px;
  }

  .hero-actions { margin-top: 16px; }
  .hero-object { min-height: 360px; }
  .area-heading { padding-top: 2vh; }
  .area-heading h2,
  .personal-copy h2 { font-size: clamp(32px, 3.6vw, 52px); }
  .systems-visual,
  .research-orbit,
  .signal-tower,
  .credential-stack { min-height: 360px; }
  .area-card { padding: 17px; }
  .area-card h3 { font-size: 18px; }
  .link-card { min-height: 145px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
