:root {
  color-scheme: dark;
  --bg: #000;
  --ink: #f4f4f4;
  --muted: rgba(255, 255, 255, 0.58);
  --line: rgba(255, 255, 255, 0.16);
}

/* Route panels toggle content with the native hidden attribute. */
[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background: #000;
  color: var(--ink);
  font-family:
    "Geist Mono Local", "Geist Mono", "IBM Plex Mono", "Azeret Mono", ui-monospace, SFMono-Regular,
    Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0;
}

body.home-page {
  height: 100svh;
  overflow: hidden;
}

/* Keep vertical scrolling available without showing a browser scrollbar. */
html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body.route-page {
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: screen;
  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='0.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.62'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

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

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

.site-shell {
  min-height: 100vh;
  background: #000;
}

.home-page .site-shell {
  height: 100svh;
  overflow: hidden;
}

.route-page .site-shell {
  min-height: 100svh;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3rem);
  padding: clamp(1.35rem, 2.7vw, 3.25rem);
  color: #fff;
  mix-blend-mode: difference;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  width: auto;
  height: auto;
  font-size: clamp(0.72rem, 0.92vw, 0.92rem);
  line-height: 1;
}

.brand-mark {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 1;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3.2rem);
  font-size: clamp(0.72rem, 0.92vw, 0.92rem);
  line-height: 1;
}

.top-nav {
  justify-self: end;
  color: rgba(255, 255, 255, 0.78);
}

.top-nav a,
.brand {
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.top-nav a.is-active,
.brand:hover,
.brand:focus-visible {
  color: #fff;
  outline: none;
}

.top-nav a:focus-visible,
.brand:focus-visible,
.contact-link:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.82);
  outline-offset: 0.4rem;
}

.hero {
  position: fixed;
  inset: 0;
  z-index: 1;
  height: 100svh;
  overflow: hidden;
  background: #000;
}

.crystal-stage {
  position: relative;
  height: 100%;
  overflow: visible;
}

.model-stage {
  position: absolute;
  inset: 0;
  background: #000;
  cursor: default;
}

.model-stage canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: manipulation;
}

.model-stage canvas:not(.glow-layer) {
  z-index: 1;
}

.model-stage .glow-layer {
  z-index: 2;
  pointer-events: none;
  opacity: 0.38;
  mix-blend-mode: screen;
  filter: contrast(2.35) brightness(1.16) blur(12px);
  transform: scale(1.008);
}

.model-stage.is-interactive {
  cursor: pointer;
}

.loading-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  margin: 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.72rem;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  transition: opacity 280ms ease;
}

.model-stage.is-ready + .loading-mark {
  opacity: 0;
  pointer-events: none;
}

.home-click-hint {
  position: fixed;
  left: 50%;
  bottom: clamp(6.6rem, 19svh, 12.5rem);
  z-index: 4;
  margin: 0;
  color: #fff;
  font-size: clamp(0.72rem, 0.92vw, 0.92rem);
  line-height: 1;
  pointer-events: none;
  transform: translateX(-50%);
  animation: home-hint-breathe 4.8s ease-in-out infinite;
}

.section-label.is-visible ~ .home-click-hint,
body:not(.home-page) .home-click-hint {
  opacity: 0;
}

.section-label {
  position: fixed;
  left: clamp(1.35rem, 2.7vw, 3.25rem);
  bottom: clamp(1.35rem, 2.7vw, 3.25rem);
  z-index: 18;
  max-width: min(48rem, calc(100vw - 2.7rem));
  color: #fff;
  font-size: clamp(2.8rem, 7vw, 7.5rem);
  font-weight: 520;
  line-height: 0.9;
  opacity: 0;
  transform: translateY(1.4rem);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.section-label.is-visible {
  opacity: 0.94;
  transform: translateY(0);
}

@keyframes home-hint-breathe {
  0%,
  100% {
    opacity: 0.46;
  }

  45%,
  58% {
    opacity: 0.94;
  }
}

.route-panel {
  position: relative;
  z-index: 5;
  min-height: 100svh;
  margin-top: 0;
  padding:
    clamp(4rem, 8svh, 8rem)
    clamp(1.35rem, 2.7vw, 3.25rem)
    clamp(3rem, 7vw, 6rem);
  opacity: 0;
  visibility: hidden;
  transform: translateY(22svh);
  transition:
    opacity 420ms ease,
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 900ms;
}

.route-panel::before {
  content: "";
  position: absolute;
  inset: 4svh 0 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at 50% 78%,
      rgba(0, 0, 0, 0.36) 0%,
      rgba(0, 0, 0, 0.2) 28%,
      rgba(0, 0, 0, 0) 62%
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.22) 18%,
      rgba(0, 0, 0, 0.62) 44%,
      rgba(0, 0, 0, 0.94) 78%
    );
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 100%);
}

body.project-page .route-panel::before {
  inset: 0;
  background:
    radial-gradient(
      ellipse at 66% 36%,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.56) 26%,
      rgba(0, 0, 0, 0) 58%
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.18) 0%,
      rgba(0, 0, 0, 0.62) 12%,
      rgba(0, 0, 0, 0.92) 28%,
      rgba(0, 0, 0, 0.99) 58%
    );
  -webkit-backdrop-filter: blur(26px);
  backdrop-filter: blur(26px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 100%);
}

.route-panel.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 120ms, 0ms, 0ms;
}

.route-panel.is-switching .route-panel-inner {
  opacity: 0;
  transform: translateY(1.25rem);
}

.route-panel-inner {
  position: relative;
  z-index: 1;
  transition:
    opacity 300ms ease,
    transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.1vw, 1.35rem);
  padding-top: clamp(0.5rem, 1.1vw, 1rem);
}

.project-card {
  display: block;
  min-width: 0;
  color: rgba(255, 255, 255, 0.72);
  transition: color 220ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  color: #fff;
  outline: none;
}

.project-cover {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.project-cover img,
.project-media img,
.project-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-cover img,
.project-cover video {
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Preserve square or vertical video artwork without cutting its edges. */
.project-card--cover-contain .project-cover {
  background: #000;
}

.project-card--cover-contain .project-cover video {
  object-fit: contain;
  object-position: center;
}

.project-card:hover .project-cover img,
.project-card:hover .project-cover video,
.project-card:focus-visible .project-cover img,
.project-card:focus-visible .project-cover video {
  transform: scale(1.035);
}

.project-card-meta {
  display: grid;
  gap: 0.35rem;
  padding-top: 0.7rem;
  font-size: clamp(0.72rem, 0.92vw, 0.9rem);
  line-height: 1.25;
}

.project-card-meta strong {
  font-weight: 520;
}

.project-card-meta span {
  color: rgba(255, 255, 255, 0.48);
}

.project-detail {
  position: relative;
  z-index: 1;
  padding-top: clamp(1rem, 3vw, 2.8rem);
}

.project-detail-heading {
  display: grid;
  gap: 0.8rem;
  margin-bottom: clamp(2rem, 5vw, 4.5rem);
}

.project-detail-heading h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 520;
  line-height: 0.9;
}

.project-summary {
  display: grid;
  grid-template-columns: minmax(18rem, 0.92fr) minmax(0, 1.38fr);
  gap: clamp(0.8rem, 1.4vw, 1rem);
  align-items: start;
}

.project-intro {
  display: grid;
  gap: 0;
  width: 100%;
  margin: 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.project-intro div {
  display: grid;
  grid-template-columns: minmax(6.5rem, 0.72fr) 1fr;
  gap: 1rem;
}

.project-intro dt,
.project-intro dd {
  margin: 0;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  line-height: 1.35;
  text-shadow: 0 0 0.75rem rgba(0, 0, 0, 0.62);
}

.project-intro dt {
  color: rgba(255, 255, 255, 0.48);
}

.project-intro dd {
  color: rgba(255, 255, 255, 0.88);
}

.project-description {
  margin: 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  line-height: 1.35;
  text-shadow: 0 0 0.85rem rgba(0, 0, 0, 0.68);
}

.project-media-layout {
  display: grid;
  gap: clamp(0.9rem, 1.4vw, 1.7rem);
}

.project-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.project-media--white {
  background: #fff;
}

.project-media-wide {
  width: 100%;
}

.project-media-wide img {
  height: auto;
  object-fit: contain;
}

.project-media-wide video {
  height: auto;
  object-fit: contain;
}

.project-media-pdf {
  aspect-ratio: 16 / 9;
  background: #fff;
}

.project-media-pdf iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.project-book-pager {
  display: grid;
  gap: 0.65rem;
}

.project-book-page {
  background: #fff;
  touch-action: manipulation;
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.project-book-page img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
}

.project-book-page.is-changing img {
  animation: book-page-in 200ms ease-out;
}

.book-pager-progress {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(0.72rem, 0.85vw, 0.85rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: right;
}

.project-gallery {
  display: grid;
  gap: 0.65rem;
}

.project-gallery-frame {
  --gallery-padding: clamp(1rem, 3vw, 3rem);
  display: grid;
  place-items: center;
  height: min(78vh, 64rem);
  padding: var(--gallery-padding);
  background: #fff;
  touch-action: manipulation;
}

.project-media.project-gallery-frame > img {
  position: absolute;
  inset: var(--gallery-padding);
  display: block;
  width: calc(100% - (var(--gallery-padding) * 2)) !important;
  height: calc(100% - (var(--gallery-padding) * 2)) !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center;
}

.project-media.project-gallery-frame.is-changing > img {
  animation: book-page-in 200ms ease-out;
}

.gallery-progress {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(0.72rem, 0.85vw, 0.85rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: right;
}

.web-scroll-frame {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: clamp(1.1rem, 2vw, 1.8rem);
  background: #f5f5f7;
  box-shadow:
    0 1.4rem 4rem rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.web-scroll-chrome {
  display: grid;
  grid-template-columns: repeat(3, 0.72rem) minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem clamp(0.85rem, 1.4vw, 1.35rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(#2e363a, #242b2f);
}

.web-scroll-chrome span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.22);
}

.web-scroll-chrome span:nth-child(1) {
  background: #ff5f57;
}

.web-scroll-chrome span:nth-child(2) {
  background: #febc2e;
}

.web-scroll-chrome span:nth-child(3) {
  background: #28c840;
}

.web-scroll-chrome div {
  justify-self: center;
  width: min(34rem, 64%);
  min-width: 10rem;
  height: 1.85rem;
  border-radius: 999px;
  background: rgba(12, 18, 22, 0.48);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.64rem, 0.74vw, 0.74rem);
  line-height: 1.85rem;
  text-align: center;
}

.web-scroll-viewport {
  height: min(78vh, 46rem);
  margin: 0;
  overflow-y: auto;
  background: #fff;
  scrollbar-color: rgba(0, 0, 0, 0.42) transparent;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.web-scroll-viewport::-webkit-scrollbar {
  width: 0.72rem;
}

.web-scroll-viewport::-webkit-scrollbar-track {
  background: transparent;
}

.web-scroll-viewport::-webkit-scrollbar-thumb {
  border: 0.2rem solid #fff;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
}

.web-scroll-viewport img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 720px) {
  .project-gallery-frame {
    --gallery-padding: clamp(0.75rem, 4vw, 1.25rem);
    height: min(68vh, 34rem);
  }

  .web-scroll-viewport {
    height: min(70vh, 34rem);
  }
}

@keyframes book-page-in {
  from {
    opacity: 0.55;
    transform: translateY(2px);
  }

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

.media-sound-toggle {
  position: absolute;
  right: clamp(0.65rem, 1.2vw, 1rem);
  bottom: clamp(0.65rem, 1.2vw, 1rem);
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 0;
  padding: 0.52rem 0.62rem;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font: inherit;
  font-size: clamp(0.66rem, 0.78vw, 0.78rem);
  line-height: 1;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.media-sound-toggle:hover,
.media-sound-toggle:focus-visible {
  outline: none;
  background: #fff;
  color: #000;
}

.project-media-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.4vw, 1.7rem);
}

.project-media-square {
  aspect-ratio: 1;
}

/* Social-media source formats stay intact inside a clean square canvas. */
.project-media--social {
  --social-media-padding: clamp(1rem, 2.4vw, 2.4rem);
  --social-media-inner-gap: clamp(0.8rem, 1.5vw, 1.5rem);
  box-sizing: border-box;
  position: relative;
  aspect-ratio: 1;
  padding: var(--social-media-padding);
  overflow: hidden;
  background: #fff;
}

.project-media--social > img,
.project-media--social > video {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: calc(100% - (var(--social-media-padding) * 2) - (var(--social-media-inner-gap) * 2)) !important;
  max-height: calc(100% - (var(--social-media-padding) * 2) - (var(--social-media-inner-gap) * 2)) !important;
  transform: translate(-50%, -50%);
  border-radius: clamp(0.55rem, 1.1vw, 1rem);
  overflow: hidden;
  object-fit: contain !important;
  object-position: center;
}

.project-media--social-dark {
  --social-media-padding: clamp(0.35rem, 0.8vw, 0.9rem);
  --social-media-inner-gap: clamp(0.15rem, 0.35vw, 0.35rem);
  background: #000;
}

.project-media--social-dark > img,
.project-media--social-dark > video {
  border-radius: clamp(0.45rem, 0.9vw, 0.8rem);
}

/* Portrait or small-format images can sit on a square white field without a social-media radius. */
.project-media--framed {
  --frame-media-padding: clamp(0.85rem, 2vw, 2rem);
  position: relative;
  aspect-ratio: 1;
  padding: var(--frame-media-padding);
  overflow: hidden;
  background: #fff;
}

.project-media--framed > img,
.project-media--framed > video {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: calc(100% - (var(--frame-media-padding) * 2)) !important;
  max-height: calc(100% - (var(--frame-media-padding) * 2)) !important;
  transform: translate(-50%, -50%);
  object-fit: contain !important;
  object-position: center;
}

.page-main {
  min-height: 100svh;
  padding: clamp(7rem, 12vw, 10rem) clamp(1.35rem, 2.7vw, 3.25rem) clamp(3rem, 7vw, 6rem);
  background: #000;
}

.section-number,
.page-main p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  line-height: 1.55;
}

.page-intro h1,
.page-main h2 {
  margin: 1.2rem 0;
  max-width: 11em;
  color: #fff;
  font-size: clamp(3rem, 9vw, 9rem);
  font-weight: 520;
  line-height: 0.92;
  letter-spacing: 0;
}

.page-main p:not(.section-number) {
  max-width: 38rem;
}

.page-kicker {
  margin-bottom: clamp(1.2rem, 3vw, 2.4rem);
}

.page-intro {
  display: grid;
  min-height: 0;
  align-content: start;
  padding-bottom: 0;
}

.route-panel .page-kicker {
  margin-bottom: 0.7rem;
}

.route-panel .page-intro h1 {
  margin: 0 0 0.8rem;
}

/* Category landing states keep the heading clear of the fixed brand and anchor
   the first project row to the bottom edge of the initial desktop viewport. */
body[data-route="work"] .route-panel,
body[data-route="lab"] .route-panel,
body[data-route="artwork"] .route-panel,
body[data-route="info"] .route-panel,
body[data-route="contact"] .route-panel {
  padding-bottom: clamp(1.35rem, 2.7vw, 3.25rem);
}

body[data-route="work"] .route-panel-inner,
body[data-route="lab"] .route-panel-inner,
body[data-route="artwork"] .route-panel-inner,
body[data-route="info"] .route-panel-inner,
body[data-route="contact"] .route-panel-inner {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 10rem);
}

body[data-route="work"] .page-intro,
body[data-route="lab"] .page-intro,
body[data-route="artwork"] .page-intro,
body[data-route="info"] .page-intro,
body[data-route="contact"] .page-intro {
  padding-top: clamp(2.8rem, 6svh, 5.5rem);
}

body[data-route="work"] .project-grid,
body[data-route="lab"] .project-grid,
body[data-route="artwork"] .project-grid,
body[data-route="info"] .project-grid,
body[data-route="contact"] .project-grid {
  margin-top: auto;
}

.section-content-grid {
  display: block;
}

.section-content {
  display: grid;
  grid-template-columns: minmax(20rem, 1fr) minmax(20rem, 1fr) minmax(12rem, 0.72fr);
  gap: clamp(1.2rem, 4vw, 4rem);
}

.section-content-block {
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.section-content-block h2,
.section-content-block p,
.section-content-block ul {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  font-weight: 400;
  line-height: 1.35;
}

.section-content-block h2 {
  margin-bottom: 0.85rem;
}

.section-content-block ul {
  display: grid;
  gap: 0.12rem;
  padding: 0;
  list-style: none;
}

.section-content-block a {
  color: inherit;
  text-decoration: none;
}

.section-content-block a:hover,
.section-content-block a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.project-rule {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 35rem);
  gap: clamp(2rem, 8vw, 8rem);
  padding-top: clamp(2.5rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}

.project-rule h2,
.project-rule h3 {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 520;
  line-height: 1.15;
  text-transform: uppercase;
}

.project-rule ul {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  line-height: 1.55;
  list-style: none;
}

.project-rule li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.85rem;
}

.contact-link {
  display: inline-block;
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.82rem, 1vw, 1rem);
}

.contact-link[hidden] {
  display: none;
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    padding-inline: 1rem;
  }

  .top-nav {
    justify-self: end;
    gap: clamp(0.38rem, 1.7vw, 0.68rem);
    max-width: calc(100vw - 6.7rem);
    font-size: 0.6rem;
    scrollbar-width: none;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .brand {
    gap: 0.5rem;
    font-size: 0.6rem;
  }

  .section-label {
    font-size: clamp(2.5rem, 13vw, 5.8rem);
  }

  .home-click-hint {
    bottom: clamp(7.8rem, 23svh, 10.5rem);
    font-size: 0.6rem;
  }

  .route-panel {
    padding-top: clamp(5.5rem, 12svh, 7rem);
  }

  .page-intro {
    min-height: 0;
  }

  body[data-route="work"] .route-panel-inner,
  body[data-route="lab"] .route-panel-inner,
  body[data-route="artwork"] .route-panel-inner,
  body[data-route="info"] .route-panel-inner,
  body[data-route="contact"] .route-panel-inner {
    display: block;
    min-height: 0;
  }

  body[data-route="work"] .page-intro,
  body[data-route="lab"] .page-intro,
  body[data-route="artwork"] .page-intro,
  body[data-route="info"] .page-intro,
  body[data-route="contact"] .page-intro {
    padding-top: clamp(2rem, 5svh, 3.5rem);
  }

  body[data-route="work"] .project-grid,
  body[data-route="lab"] .project-grid,
  body[data-route="artwork"] .project-grid,
  body[data-route="info"] .project-grid,
  body[data-route="contact"] .project-grid {
    margin-top: clamp(2.5rem, 8svh, 4rem);
  }

  body[data-route="info"] .route-panel-inner,
  body[data-route="contact"] .route-panel-inner {
    display: flex;
    flex-direction: column;
    min-height: calc(100svh - 8.5rem);
  }

  body[data-route="info"] .project-grid,
  body[data-route="contact"] .project-grid {
    margin-top: auto;
  }

  .section-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-content-block h2,
  .section-content-block p,
  .section-content-block ul {
    font-size: clamp(0.78rem, 1vw, 0.95rem);
  }

  .model-stage .glow-layer {
    opacity: 0.3;
    filter: contrast(2.4) brightness(1.12) blur(9px);
  }

  .project-rule {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .project-media-pair {
    grid-template-columns: 1fr;
  }

  .project-summary {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .project-description {
    margin-top: 1rem;
  }

  body.project-page .route-panel::before {
    inset: 0;
    background:
      radial-gradient(
        ellipse at 58% 42%,
        rgba(0, 0, 0, 0.86) 0%,
        rgba(0, 0, 0, 0.62) 30%,
        rgba(0, 0, 0, 0) 62%
      ),
      linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.28) 0%,
        rgba(0, 0, 0, 0.72) 14%,
        rgba(0, 0, 0, 0.96) 36%,
        rgba(0, 0, 0, 0.99) 68%
      );
    -webkit-backdrop-filter: blur(28px);
    backdrop-filter: blur(28px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .home-click-hint {
    animation: none;
    opacity: 0.46;
  }
}
