:root {
  --bg: #050505;
  --bg-soft: #0d0d0d;
  --panel: rgba(255, 255, 255, 0.018);
  --panel-strong: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f4f4;
  --muted: rgba(244, 244, 244, 0.62);
  --accent: #ffffff;
  --accent-soft: rgba(255, 255, 255, 0.08);
  --shadow: 0 36px 100px rgba(0, 0, 0, 0.45);
  --radius-lg: 36px;
  --radius-md: 24px;
  --radius-sm: 14px;
  --font-sans: "Space Grotesk", "Bahnschrift", "Avenir Next Condensed",
    "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", "Consolas", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.055), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.04), transparent 20%),
    linear-gradient(180deg, #080808 0%, #030303 100%);
  font-family: var(--font-sans);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 100%);
  pointer-events: none;
}

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

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
  padding: 32px 0 120px;
}

.site-header {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: 40px;
  padding: 12px 0 36px;
}

.site-mark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.site-logo {
  display: block;
  width: auto;
  height: 181px;
  max-width: min(748px, 74vw);
  object-fit: contain;
  filter: grayscale(1) brightness(1.06);
}

.site-nav {
  display: flex;
  gap: 28px;
  justify-self: center;
}

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.01);
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--text);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.site-nav a {
  color: var(--muted);
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.primary-link:hover,
.primary-link:focus-visible,
.project-card:hover .card-title,
.project-card:focus-visible .card-title {
  color: var(--accent);
}

.hero-section,
.about-section,
.projects-section,
.project-hero,
.project-section {
  position: relative;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(280px, 0.9fr);
  align-items: start;
  gap: 88px;
  min-height: calc(100vh - 220px);
  padding-top: 24px;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
}

.render-frame {
  position: relative;
  width: min(92vw, 640px);
  aspect-ratio: 1 / 1;
  background: transparent;
  overflow: hidden;
  perspective: 1400px;
  transform-style: preserve-3d;
}

.render-core,
.render-grid,
.render-glow {
  position: absolute;
}

.point-sphere {
  position: absolute;
  inset: 8%;
  z-index: 2;
  width: 84%;
  height: 84%;
  display: block;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.035));
}

.render-glow {
  inset: auto 22% 18% 22%;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 72%);
  filter: blur(20px);
  z-index: 1;
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.86;
}

.hero-copy h1,
.section-head h2,
.project-hero-copy h1,
.project-section-head h2 {
  margin: 0;
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.hero-copy h1 {
  max-width: 10ch;
  font-size: clamp(2.8rem, 6.4vw, 5.8rem);
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.04em;
}

.hero-title-static,
.hero-title-dynamic-wrap {
  display: block;
}

.hero-title-dynamic-wrap {
  min-height: 1.08em;
}

.hero-title-dynamic {
  display: inline-block;
  position: relative;
  will-change: transform, opacity;
}

.hero-title-dynamic::before,
.hero-title-dynamic::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.hero-title-dynamic.is-glitch::before,
.hero-title-dynamic.is-glitch::after {
  opacity: 0.42;
}

.hero-title-dynamic.is-glitch::before {
  color: rgba(255, 255, 255, 0.82);
  transform: translate(-0.03em, -0.01em);
  clip-path: inset(0 0 48% 0);
  animation: hero-glitch-a 180ms steps(2, end) 2;
}

.hero-title-dynamic.is-glitch::after {
  color: rgba(255, 255, 255, 0.5);
  transform: translate(0.035em, 0.02em);
  clip-path: inset(52% 0 0 0);
  animation: hero-glitch-b 180ms steps(2, end) 2;
}

.hero-title-dynamic.is-entering {
  animation: hero-word-in 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-title-dynamic.is-leaving {
  animation: hero-word-out 320ms ease forwards;
}

.hero-text,
.about-copy,
.project-lead,
.project-section-copy,
.project-list,
.video-note {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.05vw, 1.06rem);
  line-height: 1.78;
}

.hero-text {
  max-width: 31rem;
  margin: 30px 0 44px;
}

.hero-copy {
  padding-top: 48px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.01);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.primary-link:hover,
.primary-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateY(-2px);
}

.about-section,
.projects-section,
.project-section {
  padding: 168px 0 0;
}

.section-head,
.project-section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 44px;
}

.section-head h2,
.project-section-head h2 {
  font-size: clamp(1.9rem, 3.3vw, 3.4rem);
}

.about-copy {
  max-width: 58rem;
}

.mission-statement {
  margin-top: 0;
  color: var(--text);
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  line-height: 1.42;
}

.mission-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.mission-list span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.015);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 40px;
  align-items: start;
}

.about-grid {
  display: grid;
  gap: 18px;
}

.about-card {
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
}

.about-card-label {
  margin: 0 0 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-card h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
  line-height: 1.28;
}

.about-card p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.72;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.project-card {
  display: grid;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.016));
}

.card-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius-md) - 6px);
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.13), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 55%),
    linear-gradient(180deg, #111111, #070707);
}

.card-visual::before,
.card-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.card-visual::before {
  inset: 20% 54% 22% 14%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-visual::after {
  inset: 48% 14% 14% 42%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
}

.card-visual.has-image::before,
.card-visual.has-image::after {
  content: none;
}

.card-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-visual.has-image::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 42%;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  filter: none;
}

.card-index {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.card-content {
  display: grid;
  gap: 14px;
}

.card-title {
  margin: 0;
  font-size: 1.22rem;
  transition: color 180ms ease;
}

.card-copy,
.card-tech {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.card-copy {
  font-size: 0.98rem;
}

.card-tech {
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.project-page {
  padding-bottom: 96px;
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 48px;
  padding: 36px 0 110px;
}

.project-hero-copy {
  padding: 32px 0;
}

.project-hero-copy h1 {
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  max-width: 11ch;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.meta-chip {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.project-render {
  position: relative;
  min-height: 500px;
  background: transparent;
  overflow: hidden;
}

.project-image {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.13), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 55%),
    linear-gradient(180deg, #111111, #070707);
}

.project-image img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-image::before {
  z-index: 2;
}

.project-image::after {
  z-index: 2;
}

.project-image:not(.is-missing)::before,
.project-image:not(.is-missing)::after {
  content: none;
}

.project-image:not(.is-missing) .project-render-label {
  z-index: 3;
}

.project-image:not(.is-missing) .project-render-label::before {
  content: "";
  position: absolute;
  inset: -9px -12px;
  z-index: -1;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
}

.project-archive-render {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04), transparent 24%),
    radial-gradient(circle at 20% 24%, rgba(255, 255, 255, 0.03), transparent 26%);
  perspective: 1400px;
}

.archive-scene,
.archive-orbit,
.archive-core,
.archive-core-face,
.archive-beacon {
  position: absolute;
}

.archive-scene {
  inset: 0;
  transform-style: preserve-3d;
  animation: archive-scene-drift 14s ease-in-out infinite;
}

.archive-orbit {
  left: 50%;
  top: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  transform-style: preserve-3d;
}

.archive-orbit-a {
  width: 58%;
  height: 58%;
  transform: translate(-50%, -50%) rotateX(72deg) rotateZ(12deg) translateZ(36px);
  animation: archive-orbit-a-spin 16s linear infinite;
}

.archive-orbit-b {
  width: 68%;
  height: 34%;
  transform: translate(-50%, -50%) rotateX(76deg) rotateZ(-16deg) translateZ(-14px);
  border-color: rgba(255, 255, 255, 0.09);
  animation: archive-orbit-b-spin 22s linear infinite reverse;
}

.archive-orbit-c {
  width: 38%;
  height: 68%;
  transform: translate(-50%, -50%) rotateY(72deg) rotateZ(12deg) translateZ(16px);
  border-color: rgba(255, 255, 255, 0.08);
  animation: archive-orbit-c-spin 18s linear infinite;
}

.archive-core {
  left: 50%;
  top: 50%;
  width: 24%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%) rotateX(62deg) rotateZ(44deg) translateZ(18px);
  transform-style: preserve-3d;
  animation: archive-core-float 9s ease-in-out infinite;
}

.archive-core-face {
  inset: 0;
  border-radius: 26px;
}

.archive-core-top {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.08),
    0 0 28px rgba(255, 255, 255, 0.05);
  transform: translateZ(18px);
}

.archive-core-side {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  transform: translateZ(0);
  filter: brightness(0.8);
}

.archive-beacon {
  width: 10px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.18);
}

.archive-beacon-a {
  left: 28%;
  top: 36%;
  transform: translateZ(56px);
  animation: archive-beacon-pulse-a 6s ease-in-out infinite;
}

.archive-beacon-b {
  right: 24%;
  top: 28%;
  transform: translateZ(-12px);
  animation: archive-beacon-pulse-b 7s ease-in-out infinite;
}

.archive-beacon-c {
  right: 30%;
  bottom: 24%;
  transform: translateZ(24px);
  animation: archive-beacon-pulse-c 5.5s ease-in-out infinite;
}

.project-render::before,
.project-render::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  transform: rotate(12deg);
}

.project-render::after {
  inset: 20%;
  transform: rotate(-16deg);
}

.project-render-label {
  position: absolute;
  left: 22px;
  bottom: 20px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-layout {
  display: grid;
  gap: 36px;
}

.project-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 0.64fr);
  gap: 40px;
  padding-top: 52px;
  border-top: 1px solid var(--line);
}

.project-list {
  margin: 0;
  padding-left: 20px;
}

.simulation-frame,
.video-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.simulation-frame iframe,
.video-frame iframe {
  display: block;
  width: 100%;
  min-height: 460px;
  border: 0;
}

.external-embed {
  display: grid;
  min-height: 460px;
  place-items: center;
}

.external-embed.is-loaded {
  display: block;
}

.external-embed-placeholder {
  display: grid;
  gap: 18px;
  width: min(100% - 40px, 480px);
  justify-items: start;
}

.external-embed-label {
  margin: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.external-embed-placeholder p:not(.external-embed-label) {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.external-embed-button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  font: inherit;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.external-embed-button:hover,
.external-embed-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.045);
}

.video-note {
  margin-top: 18px;
}

.fallback-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
}

.legal-content {
  overflow-wrap: anywhere;
}

.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4 {
  margin: 0 0 16px;
  color: var(--text);
  line-height: 1.14;
}

.legal-content h1 {
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.legal-content h2 {
  margin-top: 32px;
  font-size: clamp(1.08rem, 1.4vw, 1.35rem);
}

.legal-content h3 {
  margin-top: 26px;
  font-size: clamp(1rem, 1.12vw, 1.12rem);
}

.legal-content h4 {
  margin-top: 20px;
  font-size: 1rem;
}

.legal-content p {
  margin: 0 0 18px;
}

.legal-content ul {
  margin: 0 0 20px;
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 12px;
}

.legal-content a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.34);
  text-underline-offset: 0.22em;
}

.legal-content a:hover,
.legal-content a:focus-visible {
  text-decoration-color: var(--text);
}

.project-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.project-navigation.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.project-navigation-link {
  display: grid;
  gap: 8px;
  min-height: 104px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.project-navigation-link:hover,
.project-navigation-link:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.016));
}

.project-navigation-next {
  text-align: right;
}

.project-navigation-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-navigation-title {
  align-self: end;
  font-size: clamp(1.05rem, 1.3vw, 1.28rem);
  line-height: 1.28;
}

.project-empty {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 120px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 180ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
}

@keyframes float-core {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

@keyframes archive-scene-drift {
  0%,
  100% {
    transform: rotateX(0deg) rotateY(0deg) translateY(0);
  }

  50% {
    transform: rotateX(3deg) rotateY(-7deg) translateY(-10px);
  }
}

@keyframes archive-orbit-a-spin {
  from {
    transform: translate(-50%, -50%) rotateX(72deg) rotateZ(12deg) translateZ(36px);
  }

  to {
    transform: translate(-50%, -50%) rotateX(72deg) rotateZ(372deg) translateZ(36px);
  }
}

@keyframes archive-orbit-b-spin {
  from {
    transform: translate(-50%, -50%) rotateX(76deg) rotateZ(-16deg) translateZ(-14px);
  }

  to {
    transform: translate(-50%, -50%) rotateX(76deg) rotateZ(344deg) translateZ(-14px);
  }
}

@keyframes archive-orbit-c-spin {
  from {
    transform: translate(-50%, -50%) rotateY(72deg) rotateZ(12deg) translateZ(16px);
  }

  to {
    transform: translate(-50%, -50%) rotateY(72deg) rotateZ(372deg) translateZ(16px);
  }
}

@keyframes archive-core-float {
  0%,
  100% {
    transform: translate(-50%, -50%) rotateX(62deg) rotateZ(44deg) translateZ(18px);
  }

  50% {
    transform: translate(-50%, -50%) rotateX(62deg) rotateZ(52deg) translateZ(34px);
  }
}

@keyframes archive-beacon-pulse-a {
  0%,
  100% {
    transform: translateZ(56px) scale(1);
    opacity: 0.72;
  }

  50% {
    transform: translateZ(72px) scale(1.18);
    opacity: 1;
  }
}

@keyframes archive-beacon-pulse-b {
  0%,
  100% {
    transform: translateZ(-12px) scale(1);
    opacity: 0.5;
  }

  50% {
    transform: translateZ(6px) scale(1.12);
    opacity: 0.86;
  }
}

@keyframes archive-beacon-pulse-c {
  0%,
  100% {
    transform: translateZ(24px) scale(1);
    opacity: 0.6;
  }

  50% {
    transform: translateZ(44px) scale(1.14);
    opacity: 0.92;
  }
}

@keyframes hero-word-in {
  from {
    opacity: 0;
    transform: translateY(0.18em);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes hero-word-out {
  from {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }

  to {
    opacity: 0;
    transform: translateY(-0.16em);
    filter: blur(6px);
  }
}

@keyframes hero-glitch-a {
  0%,
  100% {
    transform: translate(-0.03em, -0.01em);
  }

  50% {
    transform: translate(0.025em, 0.02em);
  }
}

@keyframes hero-glitch-b {
  0%,
  100% {
    transform: translate(0.035em, 0.02em);
  }

  50% {
    transform: translate(-0.02em, -0.015em);
  }
}


@media (max-width: 980px) {
  .hero-section,
  .project-hero,
  .about-layout,
  .project-section {
    grid-template-columns: 1fr;
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 24px;
  }

  .site-nav {
    justify-self: start;
    gap: 18px;
  }

  .hero-section {
    min-height: auto;
    gap: 36px;
    padding-top: 0;
  }

  .hero-visual {
    order: -1;
    min-height: 340px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .about-layout {
    gap: 24px;
  }

  .project-hero {
    gap: 28px;
    padding-bottom: 80px;
  }

  .project-render {
    min-height: 380px;
  }

  .project-section {
    gap: 24px;
    padding-top: 36px;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1200px);
    padding-top: 14px;
    padding-bottom: 72px;
  }

  .site-header {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 20px;
  }

  .nav-toggle {
    display: inline-flex;
    position: absolute;
    top: 12px;
    right: 0;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 64px;
    padding-top: 18px;
  }

  .site-logo {
    height: 96px;
    max-width: min(360px, 78vw);
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
    font-size: 0.94rem;
  }

  .nav-open .site-nav {
    display: flex;
  }

  .hero-copy h1,
  .project-hero-copy h1 {
    max-width: none;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 12vw, 3.8rem);
  }

  .section-head h2,
  .project-section-head h2 {
    font-size: clamp(1.65rem, 8vw, 2.4rem);
  }

  .hero-text,
  .about-copy,
  .project-lead,
  .project-section-copy,
  .project-list,
  .video-note {
    font-size: 0.96rem;
    line-height: 1.72;
  }

  .hero-text {
    margin: 24px 0 32px;
    max-width: 100%;
  }

  .hero-section {
    gap: 24px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .render-frame {
    width: 100%;
  }

  .hero-visual {
    min-height: 280px;
  }

  .point-sphere {
    inset: 4%;
    width: 92%;
    height: 92%;
  }

  .about-section,
  .projects-section,
  .project-section {
    padding-top: 88px;
  }

  .section-head,
  .project-section-head {
    margin-bottom: 28px;
  }

  .about-card,
  .project-card,
  .fallback-card,
  .project-navigation-link {
    padding: 18px;
  }

  .about-card h3,
  .card-title {
    font-size: 1rem;
  }

  .card-copy {
    font-size: 0.94rem;
  }

  .card-tech,
  .meta-chip,
  .project-render-label,
  .project-navigation-label,
  .footer-copy {
    font-size: 0.68rem;
  }

  .project-page {
    padding-bottom: 64px;
  }

  .project-hero {
    gap: 22px;
    padding: 18px 0 56px;
  }

  .project-hero-copy {
    padding: 12px 0 0;
  }

  .project-meta {
    gap: 8px;
    margin-top: 22px;
  }

  .meta-chip {
    padding: 8px 10px;
  }

  .project-render {
    min-height: 260px;
  }

  .archive-core {
    width: 30%;
  }

  .archive-beacon {
    width: 8px;
  }

  .footer-links {
    gap: 12px;
  }

  .simulation-frame iframe,
  .video-frame iframe {
    min-height: 280px;
  }

  .external-embed {
    min-height: 280px;
  }

  .external-embed-placeholder {
    width: min(100% - 32px, 440px);
    gap: 14px;
  }

  .project-navigation {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 40px;
    padding-top: 24px;
  }

  .project-navigation-link {
    min-height: 86px;
  }

  .project-navigation-next {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .page-shell {
    width: calc(100% - 16px);
    padding-bottom: 56px;
  }

  .site-logo {
    height: 78px;
    max-width: 72vw;
  }

  .site-nav {
    gap: 10px 12px;
    font-size: 0.9rem;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 13vw, 3.1rem);
    line-height: 0.98;
  }

  .hero-title {
    gap: 0.08em;
  }

  .hero-text {
    margin: 20px 0 28px;
  }

  .primary-link {
    min-height: 50px;
    padding: 0 18px;
    font-size: 0.94rem;
  }

  .hero-visual {
    min-height: 240px;
  }

  .render-glow {
    inset: auto 18% 18% 18%;
  }

  .about-section,
  .projects-section,
  .project-section {
    padding-top: 72px;
  }

  .about-layout {
    gap: 18px;
  }

  .project-hero-copy h1 {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
  }

  .project-render {
    min-height: 220px;
  }

  .project-render::before,
  .project-render::after {
    inset: 16%;
  }

  .project-render::after {
    inset: 24%;
  }

  .archive-orbit-a {
    width: 64%;
    height: 64%;
  }

  .archive-orbit-b {
    width: 74%;
    height: 38%;
  }

  .archive-orbit-c {
    width: 44%;
    height: 74%;
  }

  .simulation-frame iframe,
  .video-frame iframe {
    min-height: 220px;
  }

  .external-embed {
    min-height: 220px;
  }

  .external-embed-button {
    min-height: 46px;
    padding: 0 16px;
    font-size: 0.94rem;
  }
}
