@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&display=swap');

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #11110f;
  --dark-gray: #716b63;
  --concrete: #f4f2ec;
  --text-primary: #161412;
  --white: #ffffff;

  --font-primary: 'Courier Prime', 'Courier New', Courier, monospace;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--concrete);
  overscroll-behavior: none;
}

body {
  background: var(--concrete);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-weight: 400;
  overflow-x: hidden;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
  cursor: none;
  transition: background-color 0.45s ease, color 0.3s ease;
}

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

button {
  cursor: none;
}

button, input, textarea, select {
  font: inherit;
}

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

/* ============================================
   GRAIN TEXTURE OVERLAY
   ============================================ */
.grain {
  display: none;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1.6%, -1.4%); }
  50% { transform: translate(1.8%, 0.3%); }
  75% { transform: translate(-0.8%, 1.5%); }
  100% { transform: translate(0, 0); }
}

/* ============================================
   CUSTOM CURSOR — iPad-style
   ============================================ */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.15);
  pointer-events: none;
  z-index: 10000;
  will-change: transform;
  transition: width 0.25s cubic-bezier(0.23, 1, 0.32, 1),
              height 0.25s cubic-bezier(0.23, 1, 0.32, 1),
              background 0.25s ease,
              border 0.25s ease,
              border-radius 0.25s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.2s ease;
}

.cursor--dark {
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cursor--snap {
  background: rgba(26, 26, 26, 0.06);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
}

.cursor--hover-image {
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.cursor--hidden {
  opacity: 0;
}

/* ============================================
   LANDING PAGE
   ============================================ */
.landing {
  --landing-reveal-x: 50%;
  --landing-reveal-y: 50%;
  --landing-reveal-radius: 0px;
  --landing-reveal-progress: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: transparent;
  z-index: 100;
  overflow: hidden;
  contain: layout style;
  isolation: isolate;
}

.landing::before,
.landing::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.landing::before {
  z-index: 0;
  background: var(--black);
  -webkit-mask-image: radial-gradient(
    circle at var(--landing-reveal-x) var(--landing-reveal-y),
    transparent calc(var(--landing-reveal-radius) - 0.5px),
    rgba(0, 0, 0, 0.04) calc(var(--landing-reveal-radius) + 1px),
    rgba(0, 0, 0, 0.72) calc(var(--landing-reveal-radius) + 12px),
    rgba(0, 0, 0, 1) calc(var(--landing-reveal-radius) + 28px)
  );
  mask-image: radial-gradient(
    circle at var(--landing-reveal-x) var(--landing-reveal-y),
    transparent calc(var(--landing-reveal-radius) - 0.5px),
    rgba(0, 0, 0, 0.04) calc(var(--landing-reveal-radius) + 1px),
    rgba(0, 0, 0, 0.72) calc(var(--landing-reveal-radius) + 12px),
    rgba(0, 0, 0, 1) calc(var(--landing-reveal-radius) + 28px)
  );
}

.landing::after {
  z-index: 2;
  background: radial-gradient(
    circle at var(--landing-reveal-x) var(--landing-reveal-y),
    rgba(255, 255, 255, 0) calc(var(--landing-reveal-radius) - 4px),
    rgba(244, 242, 236, calc(0.006 + var(--landing-reveal-progress) * 0.03)) calc(var(--landing-reveal-radius) + 0.5px),
    rgba(255, 255, 255, calc(0.012 + var(--landing-reveal-progress) * 0.045)) calc(var(--landing-reveal-radius) + 5px),
    rgba(255, 255, 255, 0) calc(var(--landing-reveal-radius) + 20px)
  );
  opacity: min(1, calc(var(--landing-reveal-progress) * 0.66));
  mix-blend-mode: screen;
}

.landing__vector-field {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Reusable vector field background for any page */
.vector-field-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
}

/* Portal cue — centered, hidden until cursor approaches */
.landing__portal {
  --portal-charge: 0;
  --portal-proximity: 0;
  --portal-size: 108px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--portal-size);
  height: var(--portal-size);
  z-index: 105;
  cursor: pointer;
  opacity: calc(0.003 + var(--portal-proximity) * 0.36 + var(--portal-charge) * 0.34);
  transition: opacity 0.22s ease, transform 0.35s ease;
  will-change: opacity, transform;
}

.landing__portal.is-visible {
  opacity: calc(0.005 + var(--portal-proximity) * 0.44 + var(--portal-charge) * 0.38);
}

.landing__portal:hover {
  transform: translate(-50%, -50%) scale(calc(1.008 + var(--portal-proximity) * 0.02));
}

.landing__portal.is-near {
  transform: translate(-50%, -50%) scale(calc(1.01 + var(--portal-proximity) * 0.035 + var(--portal-charge) * 0.02));
}

.landing__portal.is-charging {
  opacity: calc(0.18 + var(--portal-proximity) * 0.5 + var(--portal-charge) * 0.34);
  transform: translate(-50%, -50%) scale(calc(1.015 + var(--portal-proximity) * 0.04 + var(--portal-charge) * 0.055));
}

.landing__portal--handoff,
.landing--transitioning .landing__portal {
  opacity: 0 !important;
  transform: translate(-50%, -50%) scale(1.04);
}

.landing__portal--handoff .landing__portal-bloom,
.landing__portal--handoff .landing__portal-orbit,
.landing__portal--handoff .landing__portal-ring,
.landing__portal--handoff .landing__portal-core,
.landing--transitioning .landing__portal .landing__portal-bloom,
.landing--transitioning .landing__portal .landing__portal-orbit,
.landing--transitioning .landing__portal .landing__portal-ring,
.landing--transitioning .landing__portal .landing__portal-core {
  transition: none !important;
}

.landing__portal-bloom {
  position: absolute;
  inset: calc(26% - var(--portal-proximity) * 6% - var(--portal-charge) * 7%);
  background: radial-gradient(circle, rgba(232, 228, 223, calc(0.004 + var(--portal-proximity) * 0.085 + var(--portal-charge) * 0.22)) 0%, rgba(232, 228, 223, calc(var(--portal-proximity) * 0.012 + var(--portal-charge) * 0.04)) 38%, rgba(232, 228, 223, 0) 76%);
  filter: blur(calc(6px + var(--portal-proximity) * 10px + var(--portal-charge) * 18px));
  opacity: calc(0.001 + var(--portal-proximity) * 0.24 + var(--portal-charge) * 0.58);
  pointer-events: none;
  animation: portal-bloom-pulse 2.5s ease-in-out infinite;
  transform-origin: center;
}

.landing__portal-orbit,
.landing__portal-ring,
.landing__portal-core {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.landing__portal-orbit {
  width: calc(40px + var(--portal-proximity) * 30px + var(--portal-charge) * 22px);
  height: calc(40px + var(--portal-proximity) * 30px + var(--portal-charge) * 22px);
  border: 1px solid rgba(232, 228, 223, calc(0.025 + var(--portal-proximity) * 0.22 + var(--portal-charge) * 0.24));
  opacity: calc(0.012 + var(--portal-proximity) * 0.48 + var(--portal-charge) * 0.36);
  box-shadow: 0 0 calc(1px + var(--portal-proximity) * 10px + var(--portal-charge) * 16px) rgba(232, 228, 223, calc(0.004 + var(--portal-proximity) * 0.1 + var(--portal-charge) * 0.18));
  transition: opacity 0.14s ease, transform 0.14s ease, box-shadow 0.14s ease, width 0.16s ease, height 0.16s ease;
  animation: portal-orbit-pulse 2.8s ease-in-out infinite;
}

.landing__portal-orbit::before,
.landing__portal-orbit::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid transparent;
}

.landing__portal-orbit::before {
  border-top-color: rgba(232, 228, 223, calc(0.12 + var(--portal-proximity) * 0.34 + var(--portal-charge) * 0.32));
  border-right-color: rgba(232, 228, 223, calc(0.03 + var(--portal-proximity) * 0.08 + var(--portal-charge) * 0.08));
  transform: rotate(calc(16deg + var(--portal-proximity) * 18deg + var(--portal-charge) * 84deg));
}

.landing__portal-orbit::after {
  inset: calc(10px - var(--portal-proximity) * 3px - var(--portal-charge) * 2px);
  border-left-color: rgba(232, 228, 223, calc(0.04 + var(--portal-proximity) * 0.12 + var(--portal-charge) * 0.54));
  border-bottom-color: rgba(232, 228, 223, calc(0.02 + var(--portal-proximity) * 0.05 + var(--portal-charge) * 0.14));
  transform: rotate(calc(-32deg - var(--portal-proximity) * 14deg - var(--portal-charge) * 56deg));
}

.landing__portal-ring {
  width: calc(14px + var(--portal-proximity) * 28px + var(--portal-charge) * 28px);
  height: calc(14px + var(--portal-proximity) * 28px + var(--portal-charge) * 28px);
  opacity: calc(0.008 + var(--portal-proximity) * 0.56 + var(--portal-charge) * 0.64);
  transition: opacity 0.14s ease, transform 0.14s ease, width 0.14s ease, height 0.14s ease;
  background:
    conic-gradient(
      from -90deg,
      rgba(232, 228, 223, calc(0.008 + var(--portal-proximity) * 0.08)) 0deg,
      rgba(232, 228, 223, calc(0.008 + var(--portal-proximity) * 0.08)) 360deg
    ),
    conic-gradient(
      from -90deg,
      rgba(232, 228, 223, calc(0.08 + var(--portal-proximity) * 0.54 + var(--portal-charge) * 0.34)) 0deg,
      rgba(232, 228, 223, calc(0.08 + var(--portal-proximity) * 0.54 + var(--portal-charge) * 0.34)) calc(18deg + var(--portal-proximity) * 96deg + var(--portal-charge) * 246deg),
      rgba(232, 228, 223, 0) calc(28deg + var(--portal-proximity) * 104deg + var(--portal-charge) * 252deg),
      rgba(232, 228, 223, 0) 360deg
    );
  -webkit-mask:
    radial-gradient(circle, transparent calc(50% - 1.2px - var(--portal-proximity) * 0.1px), #000 calc(50% - 0.7px), #000 calc(50% + 0.7px + var(--portal-charge) * 0.25px), transparent calc(50% + 1.7px + var(--portal-charge) * 0.45px));
  mask:
    radial-gradient(circle, transparent calc(50% - 1.2px - var(--portal-proximity) * 0.1px), #000 calc(50% - 0.7px), #000 calc(50% + 0.7px + var(--portal-charge) * 0.25px), transparent calc(50% + 1.7px + var(--portal-charge) * 0.45px));
  box-shadow: 0 0 calc(1px + var(--portal-proximity) * 8px + var(--portal-charge) * 13px) rgba(232, 228, 223, calc(0.005 + var(--portal-proximity) * 0.1 + var(--portal-charge) * 0.18));
  animation: portal-ring-pulse 2.15s ease-in-out infinite;
}

.landing__portal-core {
  width: calc(1px + var(--portal-proximity) * 9px + var(--portal-charge) * 20px);
  height: calc(1px + var(--portal-proximity) * 9px + var(--portal-charge) * 20px);
  opacity: calc(0.006 + var(--portal-proximity) * 0.56 + var(--portal-charge) * 0.8);
  background: radial-gradient(circle, rgba(232, 228, 223, calc(0.14 + var(--portal-proximity) * 0.52 + var(--portal-charge) * 0.26)) 0%, rgba(232, 228, 223, calc(0.002 + var(--portal-proximity) * 0.09 + var(--portal-charge) * 0.24)) 52%, rgba(232, 228, 223, 0) 100%);
  box-shadow:
    0 0 calc(1px + var(--portal-proximity) * 10px + var(--portal-charge) * 22px) rgba(232, 228, 223, calc(0.004 + var(--portal-proximity) * 0.12 + var(--portal-charge) * 0.32)),
    0 0 1px rgba(232, 228, 223, 0.9);
  transition: width 0.14s ease, height 0.14s ease, opacity 0.14s ease, box-shadow 0.14s ease;
  animation: portal-core-pulse 1.95s ease-in-out infinite;
}

.landing__portal.is-charging .landing__portal-bloom,
.landing__portal.is-charging .landing__portal-orbit,
.landing__portal.is-charging .landing__portal-ring,
.landing__portal.is-charging .landing__portal-core {
  animation-duration: 1.05s;
}

@keyframes portal-bloom-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(calc(0.44 + var(--portal-idle) * 0.04 + var(--portal-idle-glow) * 0.18 + var(--portal-presence) * 0.04));
  }
  50% {
    transform: translate(-50%, -50%) scale(calc(0.54 + var(--portal-idle) * 0.06 + var(--portal-breath) * 0.08 + var(--portal-idle-glow) * 0.22 + var(--portal-proximity) * 0.08 + var(--portal-pulse) * 0.22 + var(--portal-charge) * 0.18));
  }
}

@keyframes portal-orbit-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0.986);
  }
  50% {
    transform: translate(-50%, -50%) scale(calc(1.004 + var(--portal-proximity) * 0.03 + var(--portal-charge) * 0.08));
  }
}

@keyframes portal-ring-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0.94) rotate(calc(var(--portal-proximity) * 12deg + var(--portal-charge) * 42deg));
  }
  50% {
    transform: translate(-50%, -50%) scale(calc(1 + var(--portal-proximity) * 0.04 + var(--portal-charge) * 0.11)) rotate(calc(14deg + var(--portal-proximity) * 24deg + var(--portal-charge) * 110deg));
  }
}

@keyframes portal-core-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0.86);
  }
  50% {
    transform: translate(-50%, -50%) scale(calc(1.02 + var(--portal-proximity) * 0.08 + var(--portal-charge) * 0.18));
  }
}

@media (max-width: 767px) {
  .landing__portal {
    --portal-size: 96px;
  }

  .landing__portal-orbit {
    width: 64px;
    height: 64px;
  }

  .landing__portal-ring {
    width: 40px;
    height: 40px;
  }
}

/* Easter egg portal — hidden in bottom-right */
.landing__easter-egg {
  position: fixed;
  top: 78%;
  left: 82%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  z-index: 105;
  cursor: pointer;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing__easter-egg.is-visible {
  opacity: 1;
}

.landing__easter-egg-dot {
  width: 6px;
  height: 6px;
  background: rgba(232, 228, 223, 0.3);
  border-radius: 50%;
  animation: easter-pulse 3s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes easter-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.5); }
}

.landing--transitioning {
  pointer-events: none;
}

.landing--transitioning .landing__vector-field {
  filter: none;
  transform: scale(1.01);
  transition: transform 0.9s ease;
}

.landing__field-morph {
  position: fixed;
  inset: 0;
  z-index: 101;
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 0.8vw;
  padding: 0 2vw;
  pointer-events: none;
  opacity: 1;
}

.landing__field-morph::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(232, 228, 223, 0.26) 0, rgba(232, 228, 223, 0.14) 16%, rgba(232, 228, 223, 0) 48%),
    linear-gradient(180deg, rgba(232, 228, 223, 0.08), rgba(232, 228, 223, 0.02));
  opacity: 0;
  transition: opacity 0.45s ease;
}

.landing__field-morph.is-active::before {
  opacity: 1;
}

.landing__field-band {
  height: 100%;
  background:
    linear-gradient(180deg,
      rgba(232, 228, 223, 0.02) 0%,
      rgba(232, 228, 223, 0.78) 18%,
      rgba(232, 228, 223, 0.94) 50%,
      rgba(232, 228, 223, 0.78) 82%,
      rgba(232, 228, 223, 0.02) 100%);
  transform: scaleY(0.04) scaleX(0.3);
  transform-origin: center center;
  opacity: 0;
  filter: blur(18px);
  transition:
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease,
    filter 0.7s ease;
  box-shadow: 0 0 32px rgba(232, 228, 223, 0.18);
}

.landing__field-morph.is-active .landing__field-band {
  transform: scaleY(1) scaleX(1);
  opacity: 1;
  filter: blur(1px);
}

.landing__field-morph.is-exit {
  opacity: 0;
  transition: opacity 0.45s ease;
}

.site--revealing {
  pointer-events: none;
  --site-handoff: 0;
}

.site.site--revealing .slideshow-nav-bar,
.site.site--revealing .slideshow__scroll-hint,
.site.site--revealing .slideshow__divider-content,
.site.site--revealing .slideshow__about-content {
  opacity: var(--site-handoff);
  filter: blur(calc((1 - var(--site-handoff)) * 10px));
  transition: opacity 0.16s linear, filter 0.16s linear;
}

.site.site--revealing .slideshow__slide.is-active .slideshow__title-wrapper {
  opacity: var(--site-handoff);
  filter: blur(calc((1 - var(--site-handoff)) * 8px));
  transition: opacity 0.16s linear, filter 0.16s linear;
}

body.portfolio-transition-active .slideshow__divider-label,
body.portfolio-transition-active .slideshow__divider-title,
body.portfolio-transition-active .slideshow-nav-bar,
body.portfolio-transition-active .slideshow__scroll-hint {
  transition: opacity 0.38s ease, filter 0.38s ease, color 0.38s ease, text-shadow 0.38s ease;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  display: flex;
  gap: 2rem;
  padding: 2rem 3rem;
  opacity: 0;
  mix-blend-mode: normal;
}

.nav__link {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  background: rgba(232, 228, 223, 0.7);
  padding: 0.35em 0.7em;
  border-radius: 2px;
  transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.nav__link:hover {
  color: var(--black);
  background: rgba(232, 228, 223, 0.95);
}

/* ============================================
   SLIDESHOW NAV BAR
   ============================================ */
.slideshow-nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.35rem;
  z-index: 55;
  background: rgba(244, 242, 236, 0.94);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  opacity: 0;
}

.slideshow-nav-bar__link,
.slideshow-nav-bar__logo {
  text-shadow: none;
  transition: opacity 0.2s ease;
}

/* Nav on dark slides (dividers, about) */
.slideshow-nav-bar--on-dark .slideshow-nav-bar__link,
.slideshow-nav-bar--on-dark .slideshow-nav-bar__logo {
  color: var(--text-primary);
  text-shadow: none;
}

.slideshow-nav-bar__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-primary);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1;
}

.slideshow-nav-bar__logo:hover {
  opacity: 0.5;
}

.slideshow-nav-bar__links {
  display: flex;
  gap: 1.1rem;
  margin-left: auto;
}

.slideshow-nav-bar__link {
  font-family: var(--font-primary);
  font-size: 0.68rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-primary);
  text-decoration: none;
}

.slideshow-nav-bar__link:hover {
  opacity: 0.5;
}

/* ============================================
   SITE WRAPPER
   ============================================ */
.site {
  background: var(--concrete);
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ============================================
   STACKING SLIDESHOW
   ============================================ */
.slideshow {
  position: relative;
  width: 100%;
}

.slideshow__container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--concrete);
  contain: layout style;
  counter-reset: portfolio-slides;
}

.slideshow__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  transform: translateY(100%);
  will-change: transform;
  gap: 0.7rem;
  padding: 4.25rem 0 2rem;
  text-align: center;
}

.slideshow__slide:first-child {
  transform: translateY(0%);
}

.slideshow__slide--coming-soon {
  cursor: default;
}

.slideshow__slide-img-wrapper {
  width: min(23vw, 320px);
  height: auto;
  max-height: 64vh;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.08);
  flex: 0 0 auto;
}

.slideshow__slide-img-wrapper--portrait {
  width: min(23vw, 320px);
  aspect-ratio: 3 / 4;
}

.slideshow__slide-img-wrapper--landscape {
  width: min(30vw, 420px);
  aspect-ratio: 4 / 3;
}

.slideshow__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: none;
}

.slideshow__slide.is-active img {
  transform: scale(1);
}

.slideshow__slide:hover img {
  transform: none;
}

/* Title — fixed overlay, separate from slides */
.slideshow__title-wrapper {
  position: static;
  overflow: hidden;
  z-index: 2;
  display: block;
  padding-top: 0.1rem;
  min-height: 1.2rem;
  position: relative;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.slideshow__title {
  font-family: var(--font-primary);
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-primary);
  pointer-events: none;
  transform: none;
  transition: none;
}

/* Fixed current project label */
.slideshow__current-title {
  display: none;
}

.slideshow__current-title.is-visible {
  display: none;
}

.slideshow__current-name {
  font-family: var(--font-primary);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7), 0 0 60px rgba(0, 0, 0, 0.4);
  display: block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.slideshow__current-index {
  font-family: var(--font-primary);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  display: block;
  margin-top: 0.3rem;
}
}

.slideshow__slide.is-active .slideshow__title {
  transform: none;
}

.slideshow__slide.is-active .slideshow__title-wrapper {
  opacity: 1;
}

.slideshow__slide[data-project] {
  counter-increment: portfolio-slides;
}

.slideshow__slide[data-project] .slideshow__title-wrapper::before {
  content: counter(portfolio-slides, decimal-leading-zero) ".";
  position: absolute;
  right: calc(100% + 0.8rem);
  top: 0;
  font-family: var(--font-primary);
  font-size: 0.68rem;
  color: var(--dark-gray);
}

.slideshow__badge {
  position: absolute;
  top: 12%;
  right: 10%;
  font-family: var(--font-primary);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--concrete);
  background: rgba(10, 10, 10, 0.6);
  padding: 0.4em 1em;
  pointer-events: none;
}

/* Category Divider Slides */
.slideshow__slide--divider {
  background: var(--concrete);
  cursor: default;
}

.slideshow__divider-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.slideshow__divider-label {
  font-family: var(--font-primary);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--dark-gray);
}

.slideshow__divider-title {
  font-family: var(--font-primary);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-primary);
}

/* Coming Soon Card */
.slideshow__coming-soon-card {
  width: 85%;
  max-height: 80vh;
  aspect-ratio: 16 / 10;
  background: var(--dark-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.slideshow__coming-soon-label {
  font-family: var(--font-primary);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #666;
}

.slideshow__coming-soon-title {
  font-family: var(--font-primary);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #999;
}

/* About Me slide at end of slideshow */
.slideshow__slide--about {
  background: var(--concrete);
  cursor: pointer;
}

.slideshow__about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.slideshow__about-photo {
  width: min(24vw, 300px);
  height: auto;
  aspect-ratio: 0.78;
  border-radius: 0;
  overflow: hidden;
  background: var(--concrete);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.slideshow__about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transition: none;
}

.slideshow__slide--about:hover .slideshow__about-photo img {
  filter: none;
  transform: none;
}

.slideshow__about-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.slideshow__about-label {
  font-family: var(--font-primary);
  font-size: 0.65rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--dark-gray);
}

.slideshow__about-name {
  font-family: var(--font-primary);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

/* Scroll hint */
.slideshow__scroll-hint {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-primary);
  font-size: 0.62rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--dark-gray);
  opacity: 0;
  transition: opacity 0.4s ease, color 0.4s ease;
}

.slideshow__scroll-hint--on-dark {
  color: var(--dark-gray);
}

.slideshow__scroll-hint svg {
  width: 11px;
  height: 14px;
  animation: none;
  will-change: auto;
}

@keyframes bounce-arrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.slideshow__scroll-hint--hidden {
  opacity: 0 !important;
  pointer-events: none;
}

/* Slide progress ruler */
.slideshow__progress {
  position: fixed;
  right: 1.7rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  width: 22px;
  padding: 0.35rem 0.2rem 0.35rem 0.4rem;
  border: none;
  background: transparent;
  opacity: 0.72;
  pointer-events: none;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.3s ease;
}

.slideshow__progress-frame {
  position: relative;
}

.slideshow__progress-track {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.slideshow__progress-track::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 1px;
  background: transparent;
}

.slideshow__tick {
  width: 5px;
  height: 1px;
  background: rgba(26, 26, 26, 0.12);
  transition: width 0.24s ease, background 0.24s ease, opacity 0.24s ease;
}

.slideshow__tick--major {
  width: 9px;
  background: rgba(26, 26, 26, 0.18);
}

.slideshow__tick.is-active {
  width: 11px;
  background: rgba(26, 26, 26, 0.36);
}

.slideshow__progress-marker {
  position: absolute;
  top: 0;
  right: -1px;
  width: 12px;
  height: 1px;
  background: rgba(26, 26, 26, 0.42);
  transform: translateY(calc(var(--slideshow-progress, 0) * var(--slideshow-progress-range, 0px)));
  transition: transform 0.18s linear, background 0.24s ease, opacity 0.24s ease;
}

.slideshow__progress--light {
  border-color: transparent;
  background: transparent;
}

.slideshow__progress--light .slideshow__progress-track::after {
  background: transparent;
}

.slideshow__progress--light .slideshow__tick {
  background: rgba(244, 242, 236, 0.12);
}

.slideshow__progress--light .slideshow__tick--major {
  background: rgba(244, 242, 236, 0.18);
}

.slideshow__progress--light .slideshow__tick.is-active,
.slideshow__progress--light .slideshow__progress-marker {
  background: rgba(244, 242, 236, 0.38);
}

/* ============================================
   PROJECT PAGE SHARED STYLES
   ============================================ */
.project-page {
  background: var(--concrete);
  min-height: 100vh;
}

.project-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.project-hero__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 4rem 6%;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
}

.project-hero__category {
  font-family: var(--font-primary);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.project-hero__category span {
  display: inline-block;
  transform: translateY(100%);
  animation: text-reveal 0.6s 0.3s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.project-hero__title {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  overflow: hidden;
}

.project-hero__title span {
  display: inline-block;
  transform: translateY(100%);
  animation: text-reveal 0.6s 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes text-reveal {
  to {
    transform: translateY(0);
  }
}

.project-back {
  position: fixed;
  top: 2rem;
  left: 2rem;
  z-index: 50;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  color: var(--text-primary);
  background: rgba(232, 228, 223, 0.7);
  padding: 0.35em 0.7em;
  border-radius: 2px;
  cursor: none;
  transition: color 0.2s ease, background 0.2s ease;
  border: none;
  text-decoration: none;
}

.project-back:hover {
  color: var(--black);
  background: rgba(232, 228, 223, 0.95);
}

/* Project gallery */
.project-gallery {
  padding: 4rem 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 2000px;
}

.project-gallery__image {
  width: 85%;
  margin: 0 auto 4rem;
  overflow: hidden;
}

/* Full-bleed modifier — edge-to-edge images */
.project-gallery__image--full-bleed {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-bottom: 4rem;
}

.project-gallery__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Staggered reveal: odd from left, even from right */
.project-gallery__image:nth-child(odd) img {
  clip-path: inset(0 100% 0 0);
  filter: saturate(0.7);
  transition: clip-path 0.8s cubic-bezier(0.23, 1, 0.32, 1),
              filter 0.4s ease;
}

.project-gallery__image:nth-child(even) img {
  clip-path: inset(0 0 0 100%);
  filter: saturate(0.7);
  transition: clip-path 0.8s cubic-bezier(0.23, 1, 0.32, 1),
              filter 0.4s ease;
}

.project-gallery__image.is-revealed img {
  clip-path: inset(0 0 0 0);
}

.project-gallery__image img:hover {
  filter: saturate(1);
}

.project-gallery__video {
  width: 85%;
  max-height: 80vh;
  margin: 0 auto 4rem;
}

.project-gallery__video video {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

/* Design project (single image, centered) */
.project-single {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 4rem;
}

.project-single img {
  max-width: 70%;
  max-height: 85vh;
  object-fit: contain;
}

/* Coming soon page */
.coming-soon-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: var(--concrete);
  gap: 1rem;
}

.coming-soon-page__title {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--text-primary);
}

.coming-soon-page__label {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--dark-gray);
}

/* ============================================
   PROJECTS ATLAS
   ============================================ */
.projects-index {
  background: linear-gradient(180deg, #f6f4ef 0%, #ece5da 100%);
  min-height: 100vh;
  padding: 0 0 2.6rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.projects-atlas {
  --atlas-accent: #8e342a;
}

.projects-atlas::before,
.projects-atlas::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.projects-atlas::before {
  inset: -12rem auto auto -16rem;
  width: 36rem;
  height: 36rem;
  background: radial-gradient(circle, rgba(163, 58, 44, 0.11) 0%, rgba(163, 58, 44, 0) 68%);
}

.projects-atlas::after {
  inset: auto -12rem -14rem auto;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle, rgba(71, 108, 129, 0.14) 0%, rgba(71, 108, 129, 0) 70%);
}

.projects-atlas .vector-field-bg {
  opacity: 0.08;
}

.projects-atlas__intro,
.projects-atlas__layout,
.projects-atlas__footer-wrap {
  position: relative;
  z-index: 1;
  max-width: 1520px;
  margin: 0 auto;
  padding-left: 1.6rem;
  padding-right: 1.6rem;
}

.projects-atlas__intro {
  padding-top: 5.8rem;
  padding-bottom: 1.55rem;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(260px, 0.35fr);
  gap: 2rem;
  align-items: end;
}

.projects-atlas__eyebrow,
.projects-atlas__intro-label,
.projects-atlas__legend-label,
.projects-atlas__detail-eyebrow,
.projects-atlas__note-label {
  font-family: var(--font-primary);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-gray);
}

.projects-atlas__title {
  max-width: 18ch;
  font-family: var(--font-primary);
  font-size: clamp(1.9rem, 4.8vw, 4.25rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-top: 0.3rem;
}

.projects-atlas__lede {
  max-width: 48ch;
  margin-top: 1rem;
  font-family: var(--font-primary);
  font-size: 0.72rem;
  line-height: 1.72;
  color: rgba(22, 20, 18, 0.72);
}

.projects-atlas__intro-note {
  align-self: end;
  max-width: 30ch;
  justify-self: end;
  padding: 1rem 1rem 1.05rem;
  border: 1px solid rgba(17, 17, 15, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(53, 47, 38, 0.06);
}

.projects-atlas__intro-note p {
  margin-top: 0.5rem;
  font-family: var(--font-primary);
  font-size: 0.63rem;
  line-height: 1.7;
  color: rgba(22, 20, 18, 0.72);
}

.projects-atlas__layout {
  display: grid;
  grid-template-columns: minmax(200px, 0.34fr) minmax(0, 1fr) minmax(300px, 0.4fr);
  grid-template-areas: 'legend field detail';
  gap: 1.8rem;
  align-items: start;
}

.projects-atlas__legend {
  grid-area: legend;
  position: sticky;
  top: 4.15rem;
}

.projects-atlas__legend-card,
.projects-atlas__detail-frame {
  position: relative;
  border: 1px solid rgba(17, 17, 15, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 60px rgba(53, 47, 38, 0.08);
  overflow: hidden;
}

.projects-atlas__legend-card {
  padding: 1rem 1rem 1.15rem;
}

.projects-atlas__legend-stat {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.projects-atlas__legend-stat strong {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 400;
  line-height: 0.9;
  color: var(--text-primary);
}

.projects-atlas__legend-stat span {
  font-family: var(--font-primary);
  font-size: 0.62rem;
  color: rgba(22, 20, 18, 0.66);
}

.projects-atlas__legend-stat--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1.05rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(17, 17, 15, 0.08);
}

.projects-atlas__legend-stat--split div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.projects-atlas__legend-stat--split strong {
  font-size: 1.18rem;
}

.projects-atlas__legend-groups {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(17, 17, 15, 0.08);
}

.projects-atlas__legend-group {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: 0.7rem;
  align-items: start;
}

.projects-atlas__legend-group strong {
  display: block;
  font-family: var(--font-primary);
  font-size: 0.63rem;
  font-weight: 400;
  color: var(--text-primary);
}

.projects-atlas__legend-group p {
  margin-top: 0.2rem;
  font-family: var(--font-primary);
  font-size: 0.58rem;
  line-height: 1.65;
  color: rgba(22, 20, 18, 0.64);
}

.projects-atlas__legend-swatch {
  position: relative;
  display: block;
  width: 100%;
  height: 0.75rem;
  margin-top: 0.16rem;
}

.projects-atlas__legend-swatch::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.projects-atlas__legend-swatch--architecture::before {
  background: linear-gradient(90deg, rgba(165, 60, 48, 0.1) 0%, rgba(165, 60, 48, 0.9) 100%);
}

.projects-atlas__legend-swatch--interior::before {
  background: linear-gradient(90deg, rgba(53, 95, 118, 0.1) 0%, rgba(53, 95, 118, 0.9) 100%);
}

.projects-atlas__legend-swatch--design::before {
  background: linear-gradient(90deg, rgba(28, 27, 24, 0.08) 0%, rgba(28, 27, 24, 0.92) 100%);
}

.projects-atlas__field {
  grid-area: field;
  min-width: 0;
}

.projects-atlas__stage-shell {
  min-width: 0;
}

.projects-atlas__stage {
  --atlas-drift-x: 0px;
  --atlas-drift-y: 0px;
  --atlas-glow-x: 50%;
  --atlas-glow-y: 50%;
  position: relative;
  min-height: clamp(680px, 72vw, 960px);
  border: 1px solid rgba(17, 17, 15, 0.08);
  border-radius: 38px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(53, 47, 38, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.projects-atlas__stage::before,
.projects-atlas__stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.projects-atlas__stage::before {
  z-index: 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(165, 60, 48, 0.09) 0%, rgba(165, 60, 48, 0) 25%),
    radial-gradient(circle at 76% 39%, rgba(53, 95, 118, 0.11) 0%, rgba(53, 95, 118, 0) 24%),
    radial-gradient(circle at 50% 85%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(247, 244, 239, 0.64) 48%, rgba(237, 231, 220, 0.92) 100%);
}

.projects-atlas__stage::after {
  z-index: 1;
  background:
    radial-gradient(circle at var(--atlas-glow-x) var(--atlas-glow-y), rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0) 19%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 50%);
}

.projects-atlas__diagram,
.projects-atlas__annotation,
.projects-atlas__note,
.projects-atlas__pulse {
  transition: transform 0.24s ease;
}

.projects-atlas__diagram {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  transform: translate3d(calc(var(--atlas-drift-x) * 0.32), calc(var(--atlas-drift-y) * 0.32), 0);
}

.projects-atlas__orbit {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.58;
  transition: opacity 0.28s ease, stroke-width 0.28s ease, filter 0.28s ease;
}

.projects-atlas__orbit--architecture {
  stroke: url(#atlasArchitecture);
}

.projects-atlas__orbit--interior {
  stroke: url(#atlasInterior);
}

.projects-atlas__orbit--design {
  stroke: url(#atlasDesign);
}

.projects-atlas__trace {
  fill: none;
  stroke: rgba(17, 17, 15, 0.2);
  stroke-width: 1;
  stroke-dasharray: 3 8;
  opacity: 0.7;
}

[data-active-orbit='architecture'] .projects-atlas__orbit--architecture,
[data-active-orbit='interior'] .projects-atlas__orbit--interior,
[data-active-orbit='design'] .projects-atlas__orbit--design {
  opacity: 1;
  stroke-width: 2.6;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.28));
}

.projects-atlas__annotation {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate3d(calc(var(--atlas-drift-x) * -0.12), calc(var(--atlas-drift-y) * -0.12), 0) rotate(var(--rotation));
  transform-origin: left center;
  font-family: var(--font-primary);
  font-size: 0.54rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(22, 20, 18, 0.5);
  z-index: 2;
  white-space: nowrap;
}

.projects-atlas__annotation--note {
  max-width: 30ch;
  white-space: normal;
  line-height: 1.7;
  letter-spacing: 0.08em;
  text-transform: none;
}

.projects-atlas__pulse {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(17, 17, 15, 0.09);
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
  animation: atlas-pulse 6.5s ease-in-out infinite;
}

.projects-atlas__pulse--one {
  left: 44%;
  top: 28%;
  width: 120px;
  height: 120px;
}

.projects-atlas__pulse--two {
  left: 57%;
  top: 46%;
  width: 170px;
  height: 170px;
  animation-delay: 1.5s;
}

.projects-atlas__pulse--three {
  left: 71%;
  top: 71%;
  width: 128px;
  height: 128px;
  animation-delay: 2.4s;
}

.projects-atlas__node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 1px;
  height: 1px;
  z-index: 3;
  color: inherit;
}

.projects-atlas__node::before,
.projects-atlas__node::after {
  content: '';
  position: absolute;
  left: 0;
  pointer-events: none;
}

.projects-atlas__node::before {
  top: var(--stem-top);
  width: 1px;
  height: var(--stem-h);
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(17, 17, 15, 0.04) 0%, rgba(17, 17, 15, 0.24) 100%);
}

.projects-atlas__node::after {
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(17, 17, 15, 0.08);
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.projects-atlas__node-core,
.projects-atlas__node-thumb,
.projects-atlas__node-label {
  position: absolute;
}

.projects-atlas__node-core {
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(17, 17, 15, 0.18);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.38);
}

.projects-atlas__node-thumb {
  left: 0;
  top: var(--thumb-y);
  width: var(--thumb-w);
  height: var(--thumb-h);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(17, 17, 15, 0.09);
  background: rgba(255, 255, 255, 0.8);
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(38, 33, 27, 0.12);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.projects-atlas__node-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.03);
}

.projects-atlas__node-thumb--ghost {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(231, 226, 217, 0.96) 100%);
  border-style: dashed;
}

.projects-atlas__node-soon {
  font-family: var(--font-primary);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(22, 20, 18, 0.56);
}

.projects-atlas__node-label {
  left: var(--label-x);
  top: var(--label-y);
  min-width: 138px;
  max-width: 210px;
  padding: 0.38rem 0.45rem 0.42rem;
  border: 1px solid rgba(17, 17, 15, 0.08);
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 34px rgba(53, 47, 38, 0.08);
  opacity: 0.9;
  transition: opacity 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.projects-atlas__node-label::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 18px;
  height: 1px;
  background: rgba(17, 17, 15, 0.16);
  transform: translateY(-50%);
}

.projects-atlas__node--label-right .projects-atlas__node-label {
  transform: translate(0, -50%);
  text-align: left;
}

.projects-atlas__node--label-right .projects-atlas__node-label::before {
  right: calc(100% + 8px);
}

.projects-atlas__node--label-left .projects-atlas__node-label {
  transform: translate(-100%, -50%);
  text-align: right;
}

.projects-atlas__node--label-left .projects-atlas__node-label::before {
  left: calc(100% + 8px);
}

.projects-atlas__node-code {
  display: block;
  font-family: var(--font-primary);
  font-size: 0.49rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(22, 20, 18, 0.5);
}

.projects-atlas__node-name {
  display: block;
  margin-top: 0.12rem;
  font-family: var(--font-primary);
  font-size: 0.6rem;
  line-height: 1.35;
  color: var(--text-primary);
}

.projects-atlas__node--architecture {
  --node-ring: rgba(165, 60, 48, 0.26);
  --node-shadow: rgba(165, 60, 48, 0.18);
}

.projects-atlas__node--interior {
  --node-ring: rgba(53, 95, 118, 0.22);
  --node-shadow: rgba(53, 95, 118, 0.18);
}

.projects-atlas__node--design {
  --node-ring: rgba(28, 27, 24, 0.18);
  --node-shadow: rgba(28, 27, 24, 0.14);
}

.projects-atlas__node:hover::after,
.projects-atlas__node:focus-visible::after,
.projects-atlas__node.is-active::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.28);
}

.projects-atlas__node:hover .projects-atlas__node-core,
.projects-atlas__node:focus-visible .projects-atlas__node-core,
.projects-atlas__node.is-active .projects-atlas__node-core {
  box-shadow: 0 0 0 6px var(--node-ring), 0 0 24px var(--node-shadow);
}

.projects-atlas__node:hover .projects-atlas__node-thumb,
.projects-atlas__node:focus-visible .projects-atlas__node-thumb,
.projects-atlas__node.is-active .projects-atlas__node-thumb {
  transform: translate(-50%, -50%) scale(1.035);
  border-color: rgba(17, 17, 15, 0.18);
  box-shadow: 0 24px 54px rgba(38, 33, 27, 0.18);
}

.projects-atlas__node:hover .projects-atlas__node-label,
.projects-atlas__node:focus-visible .projects-atlas__node-label,
.projects-atlas__node.is-active .projects-atlas__node-label {
  opacity: 1;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(17, 17, 15, 0.14);
  box-shadow: 0 18px 44px rgba(53, 47, 38, 0.12);
}

.projects-atlas__node:focus-visible {
  outline: none;
}

.projects-atlas__node--soon .projects-atlas__node-thumb {
  box-shadow: 0 14px 32px rgba(53, 47, 38, 0.08);
}

.projects-atlas__note {
  position: absolute;
  left: 7.5%;
  bottom: 5.5%;
  max-width: 27ch;
  padding: 0.85rem 0.9rem 0.92rem;
  border: 1px solid rgba(17, 17, 15, 0.08);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(53, 47, 38, 0.08);
  transform: translate3d(calc(var(--atlas-drift-x) * -0.14), calc(var(--atlas-drift-y) * -0.14), 0);
  z-index: 2;
}

.projects-atlas__note p {
  margin-top: 0.45rem;
  font-family: var(--font-primary);
  font-size: 0.58rem;
  line-height: 1.72;
  color: rgba(22, 20, 18, 0.68);
}

.projects-atlas__detail {
  grid-area: detail;
  position: sticky;
  top: 4.15rem;
}

.projects-atlas__detail-frame {
  padding: 1rem;
}

.projects-atlas__detail-frame::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--atlas-accent) 0%, rgba(255, 255, 255, 0) 100%);
}

.projects-atlas__detail-media {
  position: relative;
  margin-top: 0.85rem;
  aspect-ratio: 0.88;
  border: 1px solid rgba(17, 17, 15, 0.08);
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #26231f 0%, #151412 100%);
  overflow: hidden;
}

.projects-atlas__detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.24s ease, transform 0.36s ease;
  transform: scale(1.01);
}

.projects-atlas__detail-media.is-empty .projects-atlas__detail-image {
  opacity: 0;
}

.projects-atlas__detail-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity 0.24s ease;
}

.projects-atlas__detail-media.is-empty .projects-atlas__detail-placeholder {
  opacity: 1;
}

.projects-atlas__detail-placeholder-label {
  font-family: var(--font-primary);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 242, 236, 0.72);
}

.projects-atlas__detail-placeholder-copy {
  max-width: 19ch;
  font-family: var(--font-primary);
  font-size: 1.05rem;
  line-height: 1.18;
  color: rgba(244, 242, 236, 0.96);
}

.projects-atlas__detail-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(17, 17, 15, 0.08);
}

.projects-atlas__detail-category,
.projects-atlas__detail-year {
  font-family: var(--font-primary);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(22, 20, 18, 0.54);
}

.projects-atlas__detail-title {
  margin-top: 0.45rem;
  font-family: var(--font-primary);
  font-size: clamp(1.1rem, 2vw, 1.65rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--text-primary);
}

.projects-atlas__detail-description {
  margin-top: 0.7rem;
  font-family: var(--font-primary);
  font-size: 0.64rem;
  line-height: 1.72;
  color: rgba(22, 20, 18, 0.72);
}

.projects-atlas__detail-facts {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.95rem;
}

.projects-atlas__detail-facts div {
  display: grid;
  grid-template-columns: 4.3rem 1fr;
  gap: 0.7rem;
  padding-top: 0.48rem;
  border-top: 1px solid rgba(17, 17, 15, 0.08);
}

.projects-atlas__detail-facts dt,
.projects-atlas__detail-facts dd {
  font-family: var(--font-primary);
  font-size: 0.58rem;
  line-height: 1.65;
}

.projects-atlas__detail-facts dt {
  color: rgba(22, 20, 18, 0.48);
}

.projects-atlas__detail-facts dd {
  color: var(--text-primary);
}

.projects-atlas__detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.95rem;
}

.projects-atlas__detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.28rem 0.52rem;
  border: 1px solid rgba(17, 17, 15, 0.08);
  border-radius: 999px;
  font-family: var(--font-primary);
  font-size: 0.54rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(22, 20, 18, 0.64);
  background: rgba(255, 255, 255, 0.4);
}

.projects-atlas__detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.5rem;
  margin-top: 1rem;
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 15, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(243, 239, 231, 0.96) 100%);
  font-family: var(--font-primary);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.projects-atlas__detail-link:hover {
  transform: translateY(-1px);
  border-color: rgba(17, 17, 15, 0.18);
  box-shadow: 0 16px 28px rgba(53, 47, 38, 0.08);
}

.projects-atlas__footer-wrap .site-footer {
  margin-top: 2.2rem;
}

@keyframes atlas-pulse {
  0%, 100% {
    transform: scale(0.96);
    opacity: 0.28;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.62;
  }
}

/* ============================================
   PROJECTS HELIX
   ============================================ */
.projects-index.projects-helix {
  min-height: 100dvh;
  padding: 4.65rem 1rem 0.9rem;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.95) 30%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, #ffffff 0%, #f6f3ee 100%);
}

.projects-helix {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.projects-helix::before,
.projects-helix::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.projects-helix::before {
  top: 3.6rem;
  left: 50%;
  width: min(94vw, 1560px);
  height: min(48vw, 660px);
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.56) 34%, rgba(255, 255, 255, 0) 72%);
  opacity: 0.92;
}

.projects-helix::after {
  left: 50%;
  bottom: -2.5rem;
  width: min(92vw, 1460px);
  height: 8rem;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(207, 200, 190, 0.24) 0%, rgba(207, 200, 190, 0.08) 34%, rgba(207, 200, 190, 0) 72%);
  filter: blur(22px);
}

.projects-helix__viewport {
  position: relative;
  z-index: 1;
  width: min(99.2vw, 1580px);
  height: min(920px, calc(100dvh - 5.55rem));
  min-height: 580px;
  margin: 0 auto;
}

.projects-helix__stage {
  position: relative;
  width: 100%;
  height: 100%;
  counter-reset: helix-node;
}

.projects-helix--is-entering .projects-helix__stage {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}

.projects-helix--is-ready .projects-helix__stage {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.42s ease, transform 0.56s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .projects-helix--is-ready .projects-helix__stage {
    transition: none;
  }
}

.projects-helix__webgl {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.projects-helix__webgl canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.projects-helix__mode-badge {
  position: absolute;
  left: 0.75rem;
  bottom: 0.65rem;
  z-index: 30;
  font-family: var(--font-primary);
  font-size: 0.54rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(17, 17, 15, 0.62);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 17, 15, 0.14);
  padding: 0.22rem 0.42rem;
  pointer-events: none;
  backdrop-filter: blur(3px);
}

.projects-helix__axis-notes {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.projects-helix__axis-note {
  position: absolute;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transform: translate(-50%, -50%);
  font-family: var(--font-primary);
  font-size: 0.46rem;
  letter-spacing: 0.16em;
  color: rgba(17, 17, 15, 0.38);
  opacity: 0.72;
  text-transform: uppercase;
}

.projects-helix__axis-note i {
  width: 28px;
  height: 1px;
  background: rgba(17, 17, 15, 0.22);
  display: block;
}

.projects-helix__axis-note b {
  font-weight: 400;
}

.projects-helix__axis-note--top {
  top: 20.5%;
}

.projects-helix__axis-note--mid {
  top: 50%;
}

.projects-helix__axis-note--base {
  top: 79.5%;
}

.projects-helix__guides,
.projects-helix__floor-ring {
  pointer-events: none;
}

.projects-helix__guides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 1;
}

.projects-helix--webgl-enabled .projects-helix__guides {
  display: none;
}

.projects-helix__axis,
.projects-helix__orbit,
.projects-helix__thread {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.projects-helix__axis {
  stroke: rgba(17, 17, 15, 0.12);
  stroke-width: 0.84;
  stroke-dasharray: 2 16;
}

.projects-helix__orbit {
  stroke: rgba(17, 17, 15, 0.1);
  stroke-width: 0.58;
  opacity: 0.08;
}

.projects-helix__thread {
  stroke: rgba(17, 17, 15, 0.38);
  stroke-width: 1.38;
}

.projects-helix__orbit--mid {
  opacity: 0.05;
}

.projects-helix__stage[data-active-series] .projects-helix__orbit,
.projects-helix__stage[data-active-series] .projects-helix__thread {
  transition: opacity 0.22s ease, stroke-width 0.22s ease;
}

.projects-helix__stage[data-active-series='architecture'] .projects-helix__thread,
.projects-helix__stage[data-active-series='interior'] .projects-helix__thread,
.projects-helix__stage[data-active-series='design'] .projects-helix__thread {
  opacity: 1;
}

.projects-helix__stage[data-active-series='architecture'] .projects-helix__orbit,
.projects-helix__stage[data-active-series='interior'] .projects-helix__orbit,
.projects-helix__stage[data-active-series='design'] .projects-helix__orbit {
  opacity: 0.12;
}

.projects-helix__stage[data-active-series='architecture'] .projects-helix__node:not([data-series='architecture']),
.projects-helix__stage[data-active-series='interior'] .projects-helix__node:not([data-series='interior']),
.projects-helix__stage[data-active-series='design'] .projects-helix__node:not([data-series='design']) {
  opacity: calc((0.16 + var(--depth) * 0.32) * var(--focus-dim));
}

.projects-helix__stage[data-active-series='architecture'] .projects-helix__node[data-series='architecture'],
.projects-helix__stage[data-active-series='interior'] .projects-helix__node[data-series='interior'],
.projects-helix__stage[data-active-series='design'] .projects-helix__node[data-series='design'] {
  opacity: calc((0.38 + var(--depth) * 0.62 + var(--proximity) * 0.44) * var(--focus-dim));
}

.projects-helix__floor-ring {
  position: absolute;
  left: 50%;
  bottom: 8.8%;
  border-radius: 50%;
  transform: translateX(-50%);
  border: 1px solid rgba(42, 40, 35, 0.1);
}

.projects-helix__floor-ring--base {
  display: none;
}

.projects-helix__node {
  --proximity: 0;
  --depth: 0.5;
  --fog: 0;
  --focus-dim: 1;
  --thumb-base-scale: 0.88;
  --thumb-proximity-scale: 0.74;
  --thumb-image-proximity-scale: 0.34;
  --arm-length: 0px;
  --arm-angle: 0;
  --helix-dx: 0px;
  --helix-dy: 0px;
  counter-increment: helix-node;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 0;
  height: 0;
  display: block;
  color: inherit;
  transform: translate(-50%, -50%) scale(calc(0.82 + var(--depth) * 0.34 + var(--proximity) * 0.48));
  transform-origin: center center;
  opacity: calc((0.24 + var(--depth) * 0.6 + var(--proximity) * 0.36) * (1 - var(--fog) * 0.34) * var(--focus-dim));
  transition: transform 0.16s ease, opacity 0.16s ease;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  z-index: 1;
}

.projects-helix__stem,
.projects-helix__core,
.projects-helix__thumb,
.projects-helix__label {
  position: absolute;
  left: 0;
  top: 0;
}

.projects-helix__stem {
  width: var(--arm-length);
  height: calc(1px + var(--depth) * 0.8px + var(--proximity) * 0.4px);
  transform: translate(0, -50%) rotate(calc(var(--arm-angle) * 1deg));
  transform-origin: 0 50%;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(17, 17, 15, 0.2) 0 1px,
    rgba(17, 17, 15, 0) 1px 6px
  );
  opacity: calc((0.18 + var(--depth) * 0.3 + var(--proximity) * 0.22) * var(--focus-dim));
  filter: saturate(0.8);
}

.projects-helix__core {
  width: 6px;
  height: 6px;
  transform: translate(calc(-50% + var(--helix-dx)), calc(-50% + var(--helix-dy))) scale(calc(0.86 + var(--proximity) * 0.42));
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(17, 17, 15, 0.18);
  opacity: calc(0.34 + var(--focus-dim) * 0.66);
  box-shadow:
    0 0 0 calc(1px + var(--proximity) * 3px) rgba(255, 255, 255, calc(0.1 + var(--proximity) * 0.1)),
    0 0 0 1px rgba(17, 17, 15, 0.04);
}

.projects-helix__thumb {
  width: calc(var(--thumb-w, 72px) * var(--thumb-base-scale));
  height: calc(var(--thumb-h, 52px) * var(--thumb-base-scale));
  transform: translate(-50%, -50%) scale(calc(1 + var(--depth) * 0.15 + var(--proximity) * var(--thumb-proximity-scale)));
  transform-origin: center center;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 15, calc(0.1 + var(--proximity) * 0.18));
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.95);
  opacity: calc(0.26 + var(--focus-dim) * 0.74);
  box-shadow: 0 8px 16px rgba(44, 36, 30, 0.12);
  transition: none;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.projects-helix__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(calc(1.03 + var(--proximity) * var(--thumb-image-proximity-scale)));
  filter: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
  transition: none;
}

.projects-helix__label {
  min-width: max-content;
  top: calc(var(--thumb-h, 52px) * var(--thumb-base-scale) * 0.5 + 12px);
  transform: translate(-50%, calc(6px + (1 - var(--proximity)) * 4px));
  font-family: var(--font-primary);
  font-size: 0.54rem;
  line-height: 1.35;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: rgba(22, 20, 18, 0.86);
  padding-left: 0.88rem;
  white-space: nowrap;
  opacity: calc((0.52 + var(--proximity) * 0.48) * var(--focus-dim));
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.projects-helix__label::before {
  content: counter(helix-node, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.02rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 0.44rem;
  letter-spacing: 0.12em;
  color: rgba(17, 17, 15, 0.54);
}

.projects-helix__stage[data-focus-mode='on'] .projects-helix__node:not(.is-primary) .projects-helix__thumb {
  box-shadow:
    0 2px 8px rgba(44, 36, 30, calc(0.06 + var(--depth) * 0.08)),
    0 8px 18px rgba(44, 36, 30, calc(0.03 + var(--proximity) * 0.14));
}

.projects-helix__node:hover,
.projects-helix__node:focus-visible,
.projects-helix__node.is-active {
  opacity: 1;
  z-index: 8;
}

.projects-helix__node:focus-visible {
  outline: none;
}

.projects-helix__node:focus-visible .projects-helix__thumb {
  border-color: rgba(17, 17, 15, 0.42);
  box-shadow:
    0 4px 10px rgba(44, 36, 30, 0.16),
    0 12px 24px rgba(44, 36, 30, 0.22);
}

.projects-helix__node.is-primary .projects-helix__thumb {
  animation: none;
  border-color: rgba(17, 17, 15, 0.34);
  box-shadow:
    0 4px 10px rgba(44, 36, 30, 0.14),
    0 12px 24px rgba(44, 36, 30, 0.2);
}

@keyframes helix-node-pulse {
  0%, 100% {
    border-color: rgba(17, 17, 15, 0.22);
    box-shadow:
      0 4px 10px rgba(44, 36, 30, 0.16),
      0 12px 24px rgba(44, 36, 30, 0.22);
  }
  50% {
    border-color: rgba(17, 17, 15, 0.44);
    box-shadow:
      0 6px 12px rgba(44, 36, 30, 0.2),
      0 16px 30px rgba(44, 36, 30, 0.3);
  }
}

@media (max-width: 900px) {
  .projects-index.projects-helix {
    padding-top: 4rem;
  }

  .projects-helix__viewport {
    width: min(99.4vw, 1080px);
    height: calc(100dvh - 4.65rem);
    min-height: 500px;
  }

  .projects-helix__label {
    display: none;
  }
}

@media (max-width: 640px) {
  .projects-index.projects-helix {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
    padding-top: 3.7rem;
  }

  .projects-helix__viewport {
    width: 100%;
    height: calc(100dvh - 4.25rem);
    min-height: 500px;
  }

  .projects-helix__thumb {
    width: calc(var(--thumb-w) * var(--thumb-base-scale) * 0.88);
    height: calc(var(--thumb-h) * var(--thumb-base-scale) * 0.88);
  }

  .projects-helix__label {
    font-size: 0.5rem;
    letter-spacing: 0.06em;
    padding-left: 0.78rem;
  }

  .projects-helix__label::before {
    font-size: 0.4rem;
  }

  .projects-helix__axis-note {
    font-size: 0.41rem;
    gap: 0.3rem;
  }

  .projects-helix__axis-note i {
    width: 20px;
  }
}

@media (max-width: 1280px) {
  .projects-atlas__intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .projects-atlas__intro-note {
    justify-self: start;
    max-width: 36ch;
  }

  .projects-atlas__layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-areas:
      'field detail'
      'legend detail';
  }

  .projects-atlas__legend {
    position: static;
  }
}

@media (max-width: 980px) {
  .projects-atlas__layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      'field'
      'detail'
      'legend';
  }

  .projects-atlas__detail {
    position: static;
  }

  .projects-atlas__stage-shell {
    overflow-x: auto;
    padding-bottom: 0.35rem;
  }

  .projects-atlas__stage-shell::-webkit-scrollbar {
    height: 6px;
  }

  .projects-atlas__stage-shell::-webkit-scrollbar-thumb {
    background: rgba(17, 17, 15, 0.18);
    border-radius: 999px;
  }

  .projects-atlas__stage {
    min-width: 840px;
    min-height: 720px;
  }
}

@media (max-width: 640px) {
  .projects-atlas__intro {
    padding-top: 5rem;
    padding-bottom: 1.15rem;
  }

  .projects-atlas__title {
    max-width: 13ch;
  }

  .projects-atlas__intro-note {
    max-width: none;
  }

  .projects-atlas__stage {
    min-width: 760px;
    min-height: 640px;
    border-radius: 28px;
  }

  .projects-atlas__annotation--note {
    display: none;
  }

  .projects-atlas__node-thumb {
    width: calc(var(--thumb-w) * 0.82);
    height: calc(var(--thumb-h) * 0.82);
  }

  .projects-atlas__node-label {
    min-width: 112px;
    max-width: 170px;
    padding: 0.3rem 0.36rem 0.34rem;
  }

  .projects-atlas__node-code {
    font-size: 0.45rem;
  }

  .projects-atlas__node-name {
    font-size: 0.54rem;
  }

  .projects-atlas__note {
    max-width: 21ch;
  }
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about {
  background: var(--concrete);
  min-height: 100vh;
  padding: 4.5rem 2rem 3rem;
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 560px);
  justify-content: center;
  gap: min(7vw, 7rem);
  align-items: start;
  position: relative;
  z-index: 1;
}

.about__photo {
  width: 100%;
  max-width: 300px;
  overflow: hidden;
  background: var(--concrete);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.about__photo img {
  width: 100%;
  transform: none;
  transition: none;
}

.about__photo:hover img {
  transform: none;
}

.about__content {
  padding-top: 0.4rem;
}

.about__bio {
  font-family: var(--font-primary);
  font-size: 0.78rem;
  line-height: 1.75;
  color: var(--text-primary);
  font-weight: 400;
  margin-bottom: 1.5rem;
  max-width: 52ch;
}

.about__name {
  font-family: var(--font-primary);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.about__tagline {
  font-family: var(--font-primary);
  font-size: 0.66rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--dark-gray);
  margin-bottom: 1.8rem;
}

.about__sections {
  margin-top: 2.5rem;
}

.about__section {
  margin-bottom: 2rem;
}

.about__section-title {
  font-family: var(--font-primary);
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.about__detail {
  font-family: var(--font-primary);
  font-size: 0.74rem;
  line-height: 1.7;
  color: var(--text-primary);
  font-weight: 400;
}

.about__experience {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.about__exp-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.about__exp-role {
  font-family: var(--font-primary);
  font-size: 0.74rem;
  font-weight: 400;
  color: var(--text-primary);
}

.about__exp-org {
  font-family: var(--font-primary);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-primary);
}

.about__exp-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
  text-decoration-color: rgba(17, 17, 15, 0.22);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.about__exp-link:hover {
  color: var(--dark-gray);
  text-decoration-color: rgba(17, 17, 15, 0.52);
}

.about__exp-date {
  font-family: var(--font-primary);
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--dark-gray);
}

.about__email-link {
  font-weight: 400;
  transition: color 0.2s ease;
}

.about__email-link:hover {
  color: var(--dark-gray);
}

/* ============================================
   DRAFTING ROOM PAGE
   ============================================ */
.drafting-room-page {
  background:
    radial-gradient(120% 140% at 12% 10%, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0) 56%),
    radial-gradient(130% 130% at 90% 92%, rgba(17, 17, 15, 0.08) 0%, rgba(17, 17, 15, 0) 62%),
    linear-gradient(180deg, #f5f2ec 0%, #f2eee7 56%, #ece8df 100%);
  min-height: 100vh;
  padding: 4.15rem 1rem 1.4rem;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.drafting-room-page::before,
.drafting-room-page::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.drafting-room-page::before {
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(17, 17, 15, 0.015) 0px,
      rgba(17, 17, 15, 0.015) 1px,
      transparent 1px,
      transparent 64px
    );
  opacity: 0.5;
}

.drafting-room-page::after {
  inset: -24%;
  background: conic-gradient(
    from 90deg at 50% 50%,
    rgba(17, 17, 15, 0) 0deg,
    rgba(17, 17, 15, 0.03) 84deg,
    rgba(17, 17, 15, 0) 170deg,
    rgba(17, 17, 15, 0.04) 240deg,
    rgba(17, 17, 15, 0) 360deg
  );
  filter: blur(40px);
  opacity: 0.45;
  transform: rotate(-10deg);
}

.drafting-room-page .vector-field-bg {
  opacity: 0.075;
  mix-blend-mode: multiply;
}

.drafting-room-poster {
  width: min(1220px, calc(100vw - 2rem));
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(247, 242, 233, 0.88) 100%);
  border: 1px solid rgba(17, 17, 15, 0.12);
  box-shadow:
    0 28px 64px rgba(20, 18, 15, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.46);
  padding: 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
  animation: drafting-room-poster-float 16s ease-in-out infinite;
}

.drafting-room-poster::before {
  content: '';
  position: absolute;
  inset: clamp(0.55rem, 1vw, 0.85rem);
  border: 1px solid rgba(17, 17, 15, 0.08);
  pointer-events: none;
  z-index: 5;
}

.drafting-room-poster::after {
  content: '';
  position: absolute;
  inset: clamp(0.55rem, 1vw, 0.85rem);
  background:
    linear-gradient(90deg, rgba(17, 17, 15, 0.12), rgba(17, 17, 15, 0.12)) 0 12% / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(17, 17, 15, 0.12), rgba(17, 17, 15, 0.12)) 0 88% / 100% 1px no-repeat;
  opacity: 0.26;
  pointer-events: none;
  z-index: 5;
}

.drafting-room-frame {
  position: absolute;
  inset: clamp(1rem, 2.2vw, 1.7rem) clamp(1rem, 2.2vw, 1.7rem) clamp(3.4rem, 7.8vw, 5.1rem);
  border: 1px solid rgba(17, 17, 15, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58) 0%, rgba(245, 240, 231, 0.34) 100%);
  overflow: hidden;
  isolation: isolate;
}

.drafting-room-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.drafting-room-layer--grid {
  background:
    linear-gradient(rgba(17, 17, 15, 0.08) 1px, transparent 1px) 0 0 / clamp(24px, 2.1vw, 34px) clamp(24px, 2.1vw, 34px),
    linear-gradient(90deg, rgba(17, 17, 15, 0.08) 1px, transparent 1px) 0 0 / clamp(24px, 2.1vw, 34px) clamp(24px, 2.1vw, 34px);
  transform: perspective(1220px) rotateX(67deg) translateY(34%);
  transform-origin: bottom center;
  opacity: 0.34;
}

.drafting-room-layer--plan {
  background:
    linear-gradient(rgba(17, 17, 15, 0.14), rgba(17, 17, 15, 0.14)) 12% 21% / 28% 1px no-repeat,
    linear-gradient(rgba(17, 17, 15, 0.14), rgba(17, 17, 15, 0.14)) 22% 29% / 36% 1px no-repeat,
    linear-gradient(rgba(17, 17, 15, 0.14), rgba(17, 17, 15, 0.14)) 58% 31% / 24% 1px no-repeat,
    linear-gradient(rgba(17, 17, 15, 0.14), rgba(17, 17, 15, 0.14)) 63% 63% / 18% 1px no-repeat,
    linear-gradient(rgba(17, 17, 15, 0.14), rgba(17, 17, 15, 0.14)) 17% 69% / 31% 1px no-repeat,
    linear-gradient(90deg, rgba(17, 17, 15, 0.14), rgba(17, 17, 15, 0.14)) 21% 22% / 1px 48% no-repeat,
    linear-gradient(90deg, rgba(17, 17, 15, 0.14), rgba(17, 17, 15, 0.14)) 58% 30% / 1px 34% no-repeat,
    linear-gradient(90deg, rgba(17, 17, 15, 0.14), rgba(17, 17, 15, 0.14)) 81% 36% / 1px 29% no-repeat,
    linear-gradient(90deg, rgba(17, 17, 15, 0.14), rgba(17, 17, 15, 0.14)) 38% 44% / 1px 26% no-repeat;
  opacity: 0.68;
}

.drafting-room-layer--axes {
  background:
    linear-gradient(90deg, rgba(17, 17, 15, 0.35), rgba(17, 17, 15, 0.02)) 50% 8% / 1px 84% no-repeat,
    linear-gradient(0deg, rgba(17, 17, 15, 0.3), rgba(17, 17, 15, 0.02)) 14% 54% / 73% 1px no-repeat,
    repeating-linear-gradient(
      0deg,
      rgba(17, 17, 15, 0.22) 0px,
      rgba(17, 17, 15, 0.22) 2px,
      rgba(17, 17, 15, 0) 2px,
      rgba(17, 17, 15, 0) 9px
    ) 8% 12% / 1px 74% no-repeat,
    repeating-linear-gradient(
      90deg,
      rgba(17, 17, 15, 0.22) 0px,
      rgba(17, 17, 15, 0.22) 2px,
      rgba(17, 17, 15, 0) 2px,
      rgba(17, 17, 15, 0) 10px
    ) 12% 83% / 76% 1px no-repeat;
  opacity: 0.5;
}

.drafting-room-layer--dots {
  background:
    radial-gradient(circle, rgba(17, 17, 15, 0.35) 0.5px, transparent 1px) 50% 52% / 12px 12px,
    radial-gradient(circle at 24% 64%, rgba(17, 17, 15, 0.42) 0.7px, transparent 1.4px),
    radial-gradient(circle at 68% 38%, rgba(17, 17, 15, 0.42) 0.7px, transparent 1.4px),
    radial-gradient(circle at 36% 26%, rgba(17, 17, 15, 0.34) 0.6px, transparent 1.3px),
    radial-gradient(circle at 78% 58%, rgba(17, 17, 15, 0.34) 0.6px, transparent 1.3px);
  opacity: 0.35;
  filter: saturate(0.86);
}

.drafting-room-layer--beams {
  background:
    linear-gradient(104deg, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0.5) 49%, rgba(255, 255, 255, 0) 66%) -28% 0 / 64% 100% no-repeat,
    linear-gradient(-108deg, rgba(17, 17, 15, 0) 40%, rgba(17, 17, 15, 0.09) 50%, rgba(17, 17, 15, 0) 60%) 130% 0 / 74% 100% no-repeat;
  mix-blend-mode: screen;
  animation: drafting-room-beam-sweep 15s ease-in-out infinite alternate;
}

.drafting-room-strip {
  position: absolute;
  left: clamp(1rem, 2.2vw, 1.7rem);
  right: clamp(1rem, 2.2vw, 1.7rem);
  bottom: clamp(1rem, 2.2vw, 1.7rem);
  height: clamp(1.6rem, 2vw, 2.2rem);
  border: 1px solid rgba(17, 17, 15, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(17, 17, 15, 0.08));
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(10px, 1fr);
  gap: 1px;
  padding: 1px;
  overflow: hidden;
}

.drafting-room-strip__cell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(17, 17, 15, 0.24)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 42%);
  filter: saturate(0.75) contrast(0.93);
  opacity: 0.72;
}

.drafting-room-strip__cell:nth-child(3n) {
  opacity: 0.55;
  filter: saturate(0.62) contrast(0.9);
}

.drafting-room-strip__cell:nth-child(5n) {
  opacity: 0.88;
}

.drafting-room-strip__cell:nth-child(7n) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(17, 17, 15, 0.26)),
    linear-gradient(35deg, rgba(255, 255, 255, 0.24), rgba(17, 17, 15, 0.06) 65%);
}

@keyframes drafting-room-poster-float {
  0%, 100% {
    transform: translateY(0px) rotate(-0.12deg);
  }
  50% {
    transform: translateY(-4px) rotate(0.12deg);
  }
}

@keyframes drafting-room-beam-sweep {
  0% {
    transform: translateX(-1.8%);
    opacity: 0.45;
  }
  100% {
    transform: translateX(1.8%);
    opacity: 0.6;
  }
}

@media (max-width: 980px) {
  .drafting-room-page {
    padding: 3.8rem 0.8rem 1.2rem;
  }

  .drafting-room-poster {
    width: min(980px, calc(100vw - 1.2rem));
    aspect-ratio: 5 / 4;
  }

  .drafting-room-frame {
    inset: 0.8rem 0.8rem 3.1rem;
  }
}

@media (max-width: 640px) {
  .drafting-room-page {
    padding: 3.45rem 0.48rem 0.9rem;
  }

  .drafting-room-poster {
    width: calc(100vw - 0.9rem);
    aspect-ratio: 3 / 4;
  }

  .drafting-room-frame {
    inset: 0.62rem 0.62rem 2.5rem;
  }

  .drafting-room-layer--grid {
    opacity: 0.28;
  }

  .drafting-room-strip {
    left: 0.62rem;
    right: 0.62rem;
    bottom: 0.62rem;
    height: 1.4rem;
  }
}

@media (max-width: 420px) {
  .drafting-room-layer--plan,
  .drafting-room-layer--axes {
    opacity: 0.52;
  }

  .drafting-room-layer--dots {
    opacity: 0.24;
  }
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-page {
  background: var(--concrete);
  min-height: 100vh;
  color: var(--text-primary);
  position: relative;
  display: grid;
  place-items: center;
  padding: 4rem 2rem;
}

.contact-page__grid {
  width: 100%;
  min-height: calc(100vh - 44px);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.contact-page__card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  color: var(--text-primary);
  border: 0;
  transition: opacity 0.2s ease;
}

.contact-page__card:hover {
  opacity: 0.82;
  transform: none;
}

.contact-page__card-value {
  font-family: var(--font-primary);
  font-size: clamp(0.95rem, 2vw, 1.35rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  text-shadow: none;
}

/* ============================================
   PROJECT DETAILS — Axonometric + Info Side by Side
   ============================================ */
.project-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 6rem 8%;
  align-items: start;
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

.project-details__drawing {
  width: 100%;
}

.project-details__drawing img {
  width: 100%;
  height: auto;
}

.project-details__info {
  padding-top: 1rem;
}

.project-details__title {
  font-family: var(--font-primary);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.project-details__meta {
  margin-bottom: 2.5rem;
}

.project-details__meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-family: var(--font-primary);
  font-size: 0.78rem;
  color: var(--text-primary);
}

.project-details__meta-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dark-gray);
  font-weight: 400;
}

.project-details__meta-value {
  font-weight: 400;
  text-align: right;
}

.project-details__description {
  font-family: var(--font-primary);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-primary);
  font-weight: 400;
}

.project-details__drawing--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.02);
}

.project-details__placeholder-text {
  font-family: var(--font-primary);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--dark-gray);
}

/* ============================================
   PROJECT SECTION HEADERS
   ============================================ */
.project-section {
  padding: 0 8%;
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.project-section__header {
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  padding-top: 1.5rem;
}

.project-section__label {
  display: block;
  font-family: var(--font-primary);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.project-section__sublabel {
  display: block;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--dark-gray);
  font-weight: 300;
  max-width: 600px;
}

/* ============================================
   PROJECT SEQUENCE — Numbered Steps
   ============================================ */
.project-sequence {
  padding: 0 8% 4rem;
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

.project-sequence__step {
  flex: 1;
  position: relative;
}

.project-sequence__number {
  font-family: var(--font-primary);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.06);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.project-sequence__image {
  width: 100%;
  overflow: hidden;
  margin-bottom: 1rem;
}

.project-sequence__image img {
  width: 100%;
  height: auto;
  display: block;
}

.project-sequence__caption {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.project-sequence__caption-title {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}

.project-sequence__caption-desc {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--dark-gray);
  font-weight: 300;
}

.project-sequence__divider {
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
  align-self: stretch;
  flex-shrink: 0;
}

/* ============================================
   SEASONAL COMPARISON
   ============================================ */
.project-compare {
  padding: 0 8% 4rem;
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

.project-compare__grid {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.15rem 1.35rem;
  align-items: start;
}

.project-compare__corner,
.project-compare__label {
  font-family: var(--font-primary);
  font-size: 0.62rem;
  color: var(--dark-gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-compare__corner {
  padding-top: 0.55rem;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
}

.project-compare__season {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.55rem 0 0.85rem;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.project-compare__season-name {
  font-family: var(--font-primary);
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--text-primary);
}

.project-compare__season-date {
  font-family: var(--font-primary);
  font-size: 0.62rem;
  color: var(--dark-gray);
  letter-spacing: 0.04em;
}

.project-compare__label {
  padding-top: 0.7rem;
}

.project-compare__panel {
  margin: 0;
  padding: 0.7rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.38);
}

.project-compare__panel img {
  width: 100%;
  height: auto;
  display: block;
}

.project-compare__panel--plan img {
  background: rgba(255, 255, 255, 0.5);
}

.project-compare__caption {
  margin-top: 0.55rem;
  font-family: var(--font-primary);
  font-size: 0.64rem;
  line-height: 1.55;
  color: var(--dark-gray);
}

/* ============================================
   STICKY PROJECT TITLE BAR → Unified Nav Bar
   ============================================ */
.project-nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.35rem;
  z-index: 55;
  background: rgba(244, 242, 236, 0.94);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Over hero — transparent with white text */
.project-nav-bar--over-hero {
  background: transparent;
}

.project-nav-bar--over-hero .project-nav-bar__link {
  color: var(--text-primary);
  text-shadow: none;
}

.project-nav-bar--over-hero .project-nav-bar__name,
.project-nav-bar--over-hero .project-nav-bar__type {
  opacity: 0;
}

/* Scrolled past hero — no bar, just text on the page */
.project-nav-bar--solid {
  background: none;
}

.project-nav-bar--solid .project-nav-bar__link {
  color: var(--text-primary);
  text-shadow: none;
}

.project-nav-bar--solid .project-nav-bar__name,
.project-nav-bar--solid .project-nav-bar__type {
  opacity: 1;
}

.project-nav-bar__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-primary);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  color: var(--text-primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
  line-height: 1;
}

.project-nav-bar__logo:hover {
  opacity: 0.5;
}

.project-nav-bar__links {
  display: flex;
  gap: 1.1rem;
  margin-left: auto;
  flex-shrink: 0;
}

.project-nav-bar__link {
  font-family: var(--font-primary);
  font-size: 0.68rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.project-nav-bar__link:hover {
  opacity: 0.6;
}

/* ============================================
   FILMSTRIP — Horizontal Drag Scroll
   ============================================ */
.project-filmstrip {
  position: relative;
  padding: 0 8%;
  margin-bottom: 4rem;
  overflow: hidden;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.project-filmstrip:active {
  cursor: grabbing;
}

.project-filmstrip__track {
  display: flex;
  gap: 2rem;
  will-change: transform;
}

.project-filmstrip__frame {
  flex-shrink: 0;
  width: 55vw;
}

.project-filmstrip__number {
  font-family: var(--font-primary);
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.05);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.project-filmstrip__image {
  width: 100%;
  overflow: hidden;
  margin-bottom: 1rem;
}

.project-filmstrip__image img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.project-filmstrip__caption {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.project-filmstrip__caption-title {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}

.project-filmstrip__caption-desc {
  font-family: var(--font-primary);
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--dark-gray);
  font-weight: 300;
}

/* Filmstrip arrows */
.project-filmstrip__arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-primary);
  transition: border-color 0.2s ease, opacity 0.2s ease;
  border-radius: 0;
  z-index: 2;
}

.project-filmstrip__arrow:hover {
  border-color: rgba(0, 0, 0, 0.35);
}

.project-filmstrip__arrow--disabled {
  opacity: 0.2;
  pointer-events: none;
}

.project-filmstrip__arrow--prev {
  left: 2%;
}

.project-filmstrip__arrow--next {
  right: 2%;
}

/* Filmstrip dots */
.project-filmstrip__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
}

.project-filmstrip__dot {
  width: 24px;
  height: 2px;
  background: rgba(0, 0, 0, 0.12);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, width 0.3s ease;
}

.project-filmstrip__dot--active {
  background: rgba(0, 0, 0, 0.5);
  width: 36px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 2rem 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-primary);
  font-size: 0.62rem;
  color: var(--dark-gray);
  letter-spacing: 0;
  border-top: 0;
  margin-top: 4rem;
}

.site-footer__links {
  display: flex;
  gap: 1.5rem;
}

.site-footer__links a {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s ease;
}

.site-footer__links a:hover {
  color: var(--text-primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  body { cursor: auto; }
  a, button { cursor: auto; }
  .cursor { display: none; }

  .nav {
    gap: 1.2rem;
    padding: 1.5rem 1.5rem;
  }

  .nav__link {
    font-size: 0.65rem;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 4rem 1.2rem 2rem;
    justify-content: start;
  }

  .about__photo {
    max-width: 240px;
  }

  .slideshow__slide-img-wrapper {
    width: min(62vw, 320px);
  }

  .slideshow__slide-img-wrapper--portrait {
    width: min(62vw, 320px);
  }

  .slideshow__slide-img-wrapper--landscape {
    width: min(82vw, 420px);
  }

  .slideshow__current-title {
    bottom: 2rem;
    left: 1.5rem;
  }

  .slideshow__title-wrapper {
    display: block;
  }

  .slideshow__coming-soon-card {
    width: 95%;
  }

  .slideshow__progress {
    right: 0.9rem;
    width: 18px;
    padding: 0.32rem 0.14rem 0.32rem 0.28rem;
  }

  .project-gallery__image {
    width: 95%;
  }

  .project-single img {
    max-width: 90%;
  }

  .project-details {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 6%;
  }

  .project-sequence {
    flex-direction: column;
    padding: 0 6% 3rem;
  }

  .project-sequence__divider {
    width: 100%;
    height: 1px;
  }

  .project-section {
    padding: 0 6%;
  }

  .project-compare {
    padding: 0 6% 3rem;
  }

  .project-compare__grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem 0.75rem;
  }

  .project-compare__corner {
    display: none;
  }

  .project-compare__season {
    padding-top: 0.45rem;
    padding-bottom: 0.65rem;
  }

  .project-compare__label {
    grid-column: 1 / -1;
    padding-top: 0.5rem;
    margin-top: 0.2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  .project-compare__panel {
    padding: 0.45rem;
  }

  .project-compare__caption {
    font-size: 0.6rem;
  }

  .project-filmstrip__frame {
    width: 80vw;
  }

  .project-title-bar {
    padding: 0 6%;
  }

  .project-nav-bar {
    padding: 0 0.85rem;
    height: 36px;
  }

  .project-nav-bar__logo,
  .slideshow-nav-bar__logo {
    left: 0.85rem;
    transform: translateY(-50%);
    font-size: 0.74rem;
    letter-spacing: 0.01em;
  }

  .project-nav-bar__links {
    gap: 1rem;
  }

  .project-nav-bar__link {
    font-size: 0.7rem;
  }

  .slideshow-nav-bar {
    padding: 0 0.85rem;
    height: 36px;
  }

  .slideshow-nav-bar__links {
    gap: 0.75rem;
  }

  .slideshow-nav-bar__link {
    font-size: 0.62rem;
  }

  .projects-index.projects-helix {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .contact-page__card-value {
    font-size: 0.9rem;
  }

  .project-gallery__image--full-bleed {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }

  .landing {
    padding: 6vh 6vw;
  }
}

/* Portal cue override: minimal geometry with breathing halo */
.landing__portal {
  --portal-presence: 0;
  --portal-centered: 0;
  --portal-pulse: 0;
  --portal-idle: 1;
  --portal-breath: 0.5;
  --portal-idle-glow: 0.08;
  --portal-sweep: 0deg;
  --portal-sweep-soft: 0deg;
  --portal-sweep-reverse: 0deg;
  --portal-sweep-ring: 0deg;
  --portal-size: 24px;
  opacity: 1;
  overflow: visible;
  transition: transform 0.12s linear;
}

.landing__portal::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(68px + var(--portal-idle-glow) * 240px + var(--portal-presence) * 120px + var(--portal-charge) * 96px + var(--portal-pulse) * 108px);
  height: calc(68px + var(--portal-idle-glow) * 240px + var(--portal-presence) * 120px + var(--portal-charge) * 96px + var(--portal-pulse) * 108px);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(calc(0.8 + var(--portal-breath) * 0.14 + var(--portal-pulse) * 0.16 + var(--portal-charge) * 0.08));
  opacity: calc(0.03 + var(--portal-idle-glow) * 0.92 + var(--portal-presence) * 0.2 + var(--portal-charge) * 0.22 + var(--portal-pulse) * 0.2);
  background:
    radial-gradient(circle, rgba(232, 228, 223, calc(0.03 + var(--portal-idle-glow) * 0.36 + var(--portal-presence) * 0.08 + var(--portal-pulse) * 0.1 + var(--portal-charge) * 0.08)) 0%, rgba(232, 228, 223, calc(0.012 + var(--portal-idle-glow) * 0.18 + var(--portal-presence) * 0.05 + var(--portal-charge) * 0.05)) 26%, rgba(232, 228, 223, calc(0.004 + var(--portal-idle-glow) * 0.08 + var(--portal-presence) * 0.02 + var(--portal-charge) * 0.015)) 52%, rgba(232, 228, 223, 0) 76%);
  filter: blur(calc(18px + var(--portal-idle-glow) * 16px + var(--portal-presence) * 8px + var(--portal-pulse) * 8px + var(--portal-charge) * 8px));
}

.landing__portal.is-visible {
  opacity: 1;
}

.landing__portal:hover,
.landing__portal.is-near {
  transform: translate(-50%, -50%) scale(calc(0.96 + var(--portal-presence) * 0.04 + var(--portal-charge) * 0.03));
}

.landing__portal.is-centered {
  transform: translate(-50%, -50%) scale(calc(0.98 + var(--portal-centered) * 0.06 + var(--portal-charge) * 0.07));
}

.landing__portal.is-charging {
  transform: translate(-50%, -50%) scale(calc(1 + var(--portal-centered) * 0.07 + var(--portal-charge) * 0.12));
}

.landing__portal-bloom,
.landing__portal-orbit,
.landing__portal-ring,
.landing__portal-core {
  will-change: transform, opacity;
}

.landing__portal::before,
.landing__portal-bloom {
  display: none;
}

.landing__portal-orbit,
.landing__portal-ring,
.landing__portal-core {
  display: none;
}

.landing__portal.is-near .landing__portal-orbit,
.landing__portal.is-centered .landing__portal-orbit,
.landing__portal.is-charging .landing__portal-orbit,
.landing__portal.is-near .landing__portal-ring,
.landing__portal.is-centered .landing__portal-ring,
.landing__portal.is-charging .landing__portal-ring {
  display: block;
}

.landing__portal.is-centered .landing__portal-core,
.landing__portal.is-charging .landing__portal-core {
  display: block;
}

.landing__portal-bloom {
  position: absolute;
  top: 50%;
  left: 50%;
  inset: auto;
  width: calc(18px + var(--portal-idle) * 64px + var(--portal-idle-glow) * 138px + var(--portal-presence) * 138px + var(--portal-centered) * 42px + var(--portal-charge) * 82px + var(--portal-pulse) * 96px);
  height: calc(18px + var(--portal-idle) * 64px + var(--portal-idle-glow) * 138px + var(--portal-presence) * 138px + var(--portal-centered) * 42px + var(--portal-charge) * 82px + var(--portal-pulse) * 96px);
  border-radius: 50%;
  pointer-events: none;
  opacity: calc(0.02 + var(--portal-idle-glow) * 0.82 + var(--portal-presence) * 0.08 + var(--portal-centered) * 0.16 + var(--portal-charge) * 0.22 + var(--portal-pulse) * 0.52);
  transform: translate(-50%, -50%) scale(calc(0.5 + var(--portal-idle) * 0.08 + var(--portal-breath) * 0.14 + var(--portal-presence) * 0.08 + var(--portal-pulse) * 0.38 + var(--portal-charge) * 0.14));
  filter: blur(calc(22px + var(--portal-idle) * 16px + var(--portal-breath) * 8px + var(--portal-presence) * 12px + var(--portal-centered) * 8px + var(--portal-charge) * 12px + var(--portal-pulse) * 14px));
  background:
    radial-gradient(circle, rgba(232, 228, 223, calc(0.02 + var(--portal-idle-glow) * 0.34 + var(--portal-presence) * 0.05 + var(--portal-pulse) * 0.18 + var(--portal-charge) * 0.14)) 0%, rgba(232, 228, 223, calc(0.01 + var(--portal-idle-glow) * 0.16 + var(--portal-presence) * 0.03 + var(--portal-charge) * 0.05)) 22%, rgba(232, 228, 223, calc(0.004 + var(--portal-idle-glow) * 0.08 + var(--portal-presence) * 0.012 + var(--portal-charge) * 0.02)) 48%, rgba(232, 228, 223, 0) 76%),
    radial-gradient(circle, rgba(232, 228, 223, calc(0.006 + var(--portal-idle-glow) * 0.16 + var(--portal-presence) * 0.02 + var(--portal-pulse) * 0.08 + var(--portal-charge) * 0.05)) 0%, rgba(232, 228, 223, 0) 72%);
  transition: opacity 0.12s linear, transform 0.12s linear, width 0.12s linear, height 0.12s linear, filter 0.12s linear;
  animation: portal-bloom-pulse 2.6s ease-in-out infinite;
}

.landing__portal-orbit {
  width: calc(var(--portal-presence) * 12px + var(--portal-centered) * 8px + var(--portal-charge) * 10px);
  height: calc(var(--portal-presence) * 12px + var(--portal-centered) * 8px + var(--portal-charge) * 10px);
  border: 1px solid rgba(232, 228, 223, calc(var(--portal-presence) * 0.18 + var(--portal-centered) * 0.2 + var(--portal-charge) * 0.18));
  opacity: calc(var(--portal-presence) * 0.08 + var(--portal-centered) * 0.2 + var(--portal-charge) * 0.18);
  box-shadow: none;
  transform: translate(-50%, -50%) rotate(var(--portal-sweep)) scale(calc(0.82 + var(--portal-presence) * 0.08 + var(--portal-charge) * 0.12 + var(--portal-pulse) * 0.06));
  transition: opacity 0.1s linear, transform 0.1s linear, box-shadow 0.1s linear, width 0.1s linear, height 0.1s linear;
  animation: portal-orbit-pulse 2.7s ease-in-out infinite;
}

.landing__portal-orbit::before,
.landing__portal-orbit::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
}

.landing__portal-orbit::before {
  inset: -1px;
  border-top-color: rgba(232, 228, 223, calc(var(--portal-presence) * 0.24 + var(--portal-centered) * 0.2 + var(--portal-charge) * 0.18));
  border-right-color: rgba(232, 228, 223, calc(var(--portal-charge) * 0.08));
  transform: rotate(var(--portal-sweep-soft));
}

.landing__portal-orbit::after {
  inset: calc(4px - var(--portal-presence) * 0.8px - var(--portal-charge) * 1px - var(--portal-pulse) * 1px);
  border-left-color: rgba(232, 228, 223, calc(var(--portal-presence) * 0.1 + var(--portal-centered) * 0.16 + var(--portal-charge) * 0.18));
  border-bottom-color: rgba(232, 228, 223, calc(var(--portal-charge) * 0.08));
  transform: rotate(var(--portal-sweep-reverse));
}

.landing__portal-ring {
  width: calc(var(--portal-presence) * 9px + var(--portal-centered) * 8px + var(--portal-charge) * 14px);
  height: calc(var(--portal-presence) * 9px + var(--portal-centered) * 8px + var(--portal-charge) * 14px);
  opacity: calc(var(--portal-presence) * 0.04 + var(--portal-centered) * 0.26 + var(--portal-charge) * 0.34);
  transform: translate(-50%, -50%) rotate(var(--portal-sweep-ring)) scale(calc(0.76 + var(--portal-centered) * 0.08 + var(--portal-charge) * 0.18 + var(--portal-pulse) * 0.06));
  transition: opacity 0.1s linear, transform 0.1s linear, width 0.1s linear, height 0.1s linear;
  animation: portal-ring-pulse 2.1s ease-in-out infinite;
  background:
    conic-gradient(
      from -90deg,
      rgba(232, 228, 223, 0) 0deg,
      rgba(232, 228, 223, 0) 360deg
    ),
    conic-gradient(
      from -90deg,
      rgba(232, 228, 223, calc(var(--portal-presence) * 0.22 + var(--portal-centered) * 0.22 + var(--portal-charge) * 0.22)) 0deg,
      rgba(232, 228, 223, calc(var(--portal-presence) * 0.22 + var(--portal-centered) * 0.22 + var(--portal-charge) * 0.22)) calc(18deg + var(--portal-centered) * 42deg + var(--portal-charge) * 180deg),
      rgba(232, 228, 223, 0) calc(34deg + var(--portal-centered) * 52deg + var(--portal-charge) * 196deg),
      rgba(232, 228, 223, 0) 360deg
    );
  -webkit-mask: radial-gradient(circle, transparent calc(50% - 0.9px), #000 calc(50% - 0.4px), #000 calc(50% + 0.45px + var(--portal-charge) * 0.35px), transparent calc(50% + 1.15px + var(--portal-charge) * 0.5px));
  mask: radial-gradient(circle, transparent calc(50% - 0.9px), #000 calc(50% - 0.4px), #000 calc(50% + 0.45px + var(--portal-charge) * 0.35px), transparent calc(50% + 1.15px + var(--portal-charge) * 0.5px));
  box-shadow: none;
}

.landing__portal-core {
  width: calc(var(--portal-centered) * 2.6px + var(--portal-charge) * 6.8px);
  height: calc(var(--portal-centered) * 2.6px + var(--portal-charge) * 6.8px);
  opacity: calc(var(--portal-centered) * 0.34 + var(--portal-charge) * 0.34);
  background: rgba(232, 228, 223, calc(var(--portal-centered) * 0.24 + var(--portal-charge) * 0.24));
  box-shadow: none;
  transform: translate(-50%, -50%) scale(calc(0.76 + var(--portal-centered) * 0.1 + var(--portal-charge) * 0.18 + var(--portal-pulse) * 0.08));
  transition: width 0.1s linear, height 0.1s linear, opacity 0.1s linear, box-shadow 0.1s linear, transform 0.1s linear;
  animation: portal-core-pulse 1.9s ease-in-out infinite;
}

@media (max-width: 767px) {
  .landing__portal {
    --portal-size: 18px;
  }
}
