/* Ella Design — futuristic test homepage */

:root {
  --void: #05040a;
  --ink: #0c0a12;
  --mist: rgba(245, 242, 255, 0.92);
  --muted: rgba(200, 195, 220, 0.72);
  --cyan: #3dffce;
  --magenta: #ff3d8a;
  --amber: #ffb14a;
  --violet: #8b5cff;
  --lime: #c4f542;
  --card-void: #060508;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-index: "Barlow Condensed", system-ui, sans-serif;
  --header-h: 4.25rem;
  --work-card-border-grey: rgba(228, 232, 242, 0.97);
  --work-card-border-magenta: rgba(255, 61, 138, 0.9);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.lenis {
  scroll-behavior: auto;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--mist);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Multi-follow cursor decoration (vanilla; disabled on touch / reduced motion) */
.cursor-multi {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 46;
  overflow: hidden;
}

body[data-vanta-effect="rings"] .cursor-multi {
  display: none !important;
}

.cursor-multi[hidden] {
  display: none !important;
}

.cursor-multi__layer {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  will-change: transform;
  border-radius: 50%;
}

.cursor-multi__layer--1 {
  width: 148px;
  height: 148px;
  margin: -74px 0 0 -74px;
  background: radial-gradient(
    circle,
    rgba(255, 61, 138, 0.22) 0%,
    rgba(61, 255, 206, 0.08) 45%,
    transparent 70%
  );
  filter: blur(0.5px);
}

.cursor-multi__layer--2 {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border: 1.5px solid rgba(61, 255, 206, 0.55);
  background: rgba(61, 255, 206, 0.06);
  box-shadow: 0 0 24px rgba(61, 255, 206, 0.25);
}

.cursor-multi__layer--3 {
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.5),
    0 0 28px rgba(255, 61, 138, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .cursor-multi {
    display: none !important;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: var(--mist);
  color: var(--void);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 0.75rem;
}

.audio-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.15rem 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  flex: 0 0 auto;
  transition:
    color 0.2s var(--ease-out),
    opacity 0.2s var(--ease-out);
}

.audio-toggle:hover {
  color: var(--mist);
}

.audio-toggle[aria-pressed="true"] {
  color: rgba(181, 255, 240, 0.96);
}

.audio-toggle--nav {
  margin-left: 0.1rem;
}

.audio-toggle__icon {
  width: 1rem;
  height: 1rem;
}

.audio-toggle__wave {
  opacity: 0;
}

.audio-toggle[aria-pressed="true"] .audio-toggle__wave {
  opacity: 1;
  animation: audio-wave-pulse 1.25s ease-in-out infinite;
}

.audio-toggle[aria-pressed="true"] .audio-toggle__wave--2 {
  animation-delay: 0.16s;
}

.audio-toggle__slash {
  position: absolute;
  width: 1.05rem;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transform: rotate(-40deg);
  opacity: 1;
  transition: opacity 0.2s var(--ease-out);
}

.audio-toggle[aria-pressed="true"] .audio-toggle__slash {
  opacity: 0;
}

.audio-toggle.is-unavailable {
  opacity: 0.45;
  cursor: not-allowed;
}

.audio-toggle:focus-visible {
  outline: 2px solid rgba(61, 255, 206, 0.75);
  outline-offset: 3px;
}

@keyframes audio-wave-pulse {
  0%,
  100% {
    opacity: 0.42;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 767px) {
  .site-header__nav .audio-toggle {
    display: none;
  }
}

/* —— Full-screen background (Vanta HALO + veil + grain) —— */
.video-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Vanta.js HALO target — full bleed; WebGL canvas injected by Vanta */
.vanta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

/* Vanta NET: WebGL canvas uses mouse/touch; hero text passes through except real controls */
body[data-vanta-effect="net"] .vanta-bg {
  pointer-events: auto;
}

body[data-vanta-effect="net"] .hero {
  pointer-events: none;
}

body[data-vanta-effect="net"] .hero a,
body[data-vanta-effect="net"] .hero button {
  pointer-events: auto;
}

/* RINGS mode: energy core built from layered gradients + light blur (compositor), not p5 — saves CPU. */
.rings-energy-orb {
  position: absolute;
  z-index: 0;
  /* Sized in JS from inner ring geometry; fallback before first paint */
  width: 140px;
  height: 140px;
  left: 72%;
  top: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  isolation: isolate;
  will-change: transform;
}

.rings-energy-orb--narrow {
  left: 64%;
  top: 47%;
}

.rings-energy-orb__layer {
  position: absolute;
  display: block;
  border-radius: 50%;
}

/* Wide cyan mist — no filter (cheap). */
.rings-energy-orb__layer--1 {
  inset: -42%;
  background: radial-gradient(
    circle at 50% 48%,
    rgba(90, 240, 255, 0.5) 0%,
    rgba(130, 255, 255, 0.22) 32%,
    rgba(60, 200, 255, 0.08) 52%,
    transparent 68%
  );
  animation: rings-orb-breathe 5.8s ease-in-out infinite;
}

/* Mid bloom — single blur pass for soft Vanta-like falloff. */
.rings-energy-orb__layer--2 {
  inset: -24%;
  background: radial-gradient(
    circle at 46% 44%,
    rgba(200, 255, 255, 0.75) 0%,
    rgba(100, 235, 255, 0.4) 38%,
    rgba(120, 210, 255, 0.12) 58%,
    transparent 72%
  );
  filter: blur(16px);
  opacity: 0.92;
  animation: rings-orb-breathe 4.4s ease-in-out 0.35s infinite reverse;
}

/* Inner teal / cyan shell — smaller blur. */
.rings-energy-orb__layer--3 {
  inset: -10%;
  background: radial-gradient(
    circle at 42% 40%,
    rgba(240, 255, 255, 0.88) 0%,
    rgba(110, 250, 255, 0.55) 42%,
    rgba(72, 220, 255, 0.2) 62%,
    transparent 78%
  );
  filter: blur(9px);
  animation: rings-orb-breathe 3.5s ease-in-out 0.15s infinite;
}

/* Hot core */
.rings-energy-orb__layer--core {
  inset: 14%;
  background: radial-gradient(
    circle at 38% 35%,
    #ffffff 0%,
    rgba(230, 255, 255, 0.95) 18%,
    rgba(150, 252, 255, 0.55) 45%,
    rgba(100, 230, 255, 0.15) 65%,
    transparent 78%
  );
  filter: blur(5px);
}

/* Spec highlight */
.rings-energy-orb__layer--spec {
  inset: 22%;
  background: radial-gradient(
    circle at 30% 26%,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(220, 255, 255, 0.45) 16%,
    transparent 38%
  );
  opacity: 0.9;
}

@keyframes rings-orb-breathe {
  0%,
  100% {
    opacity: 0.82;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rings-energy-orb__layer--1,
  .rings-energy-orb__layer--2,
  .rings-energy-orb__layer--3 {
    animation: none;
    opacity: 0.92;
  }
}

.rings-tooltip {
  position: fixed;
  z-index: 70;
  width: min(280px, 84vw);
  padding: 0.7rem 0.78rem 0.78rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(9, 10, 18, 0.8);
  color: rgba(246, 244, 255, 0.96);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 22px rgba(255, 61, 138, 0.22);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  cursor: pointer;
}

.rings-tooltip__close {
  position: absolute;
  top: 0.32rem;
  right: 0.42rem;
  width: 1.45rem;
  height: 1.45rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.rings-tooltip__close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.rings-tooltip__layout {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: 0.62rem;
  align-items: stretch;
  padding-right: 1.45rem;
}

.rings-tooltip__lockcol {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.rings-tooltip__lock {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  width: 100%;
  color: var(--magenta);
  font-size: 0.92rem;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  padding-right: 0.36rem;
}

.rings-tooltip__lock--empty {
  color: rgba(255, 255, 255, 0.3);
}

.rings-tooltip__content {
  display: grid;
  gap: 0.22rem;
}

.rings-tooltip__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  color: rgba(252, 250, 255, 0.98);
}

.rings-tooltip__meta {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(193, 247, 255, 0.88);
}


/* No CSS blur on full-screen WebGL canvas — avoids an extra compositing pass each frame */
.vanta-bg canvas.vanta-canvas {
  transform: scale(1.015);
  transform-origin: center center;
}

body[data-vanta-effect="net"] .vanta-bg canvas.vanta-canvas {
  transform: none;
}

/* Reduced motion: no HALO (see vanta-halo.js) — static gradient */
.vanta-bg--static {
  background:
    radial-gradient(ellipse 100% 85% at 50% 35%, rgba(22, 78, 99, 0.5) 0%, transparent 58%),
    radial-gradient(ellipse 90% 70% at 85% 85%, rgba(94, 234, 212, 0.14) 0%, transparent 52%),
    radial-gradient(ellipse 80% 60% at 10% 90%, rgba(139, 92, 255, 0.1) 0%, transparent 48%),
    #05040a;
}

/* Brighter magenta from top-right, fading diagonally toward bottom-left (0% opacity) */
.video-stage__magenta {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom left,
    rgba(255, 75, 175, 0.52) 0%,
    rgba(255, 61, 138, 0.22) 32%,
    rgba(255, 61, 138, 0) 62%
  );
}

.video-stage__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* Cool scrim over HALO — keeps text readable */
  background:
    radial-gradient(ellipse 95% 72% at 18% 28%, rgba(34, 211, 238, 0.14) 0%, transparent 54%),
    radial-gradient(ellipse 82% 58% at 88% 72%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 100% 78% at 50% 100%, rgba(6, 182, 212, 0.08) 0%, transparent 46%),
    linear-gradient(170deg, rgba(4, 12, 24, 0.4) 0%, rgba(6, 20, 36, 0.34) 50%, rgba(4, 14, 28, 0.46) 100%);
}

.video-stage__grain {
  position: absolute;
  inset: -20%;
  z-index: 3;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Static grain — avoids continuous layer animation next to WebGL */
  mix-blend-mode: overlay;
}

body.reduced-motion .video-stage__veil {
  background:
    radial-gradient(ellipse 95% 72% at 18% 28%, rgba(34, 211, 238, 0.16) 0%, transparent 54%),
    radial-gradient(ellipse 82% 58% at 88% 72%, rgba(59, 130, 246, 0.14) 0%, transparent 50%),
    linear-gradient(170deg, rgba(4, 12, 24, 0.52) 0%, rgba(6, 20, 36, 0.44) 100%);
}

/* —— Header —— */
.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  background: linear-gradient(to bottom, rgba(5, 4, 10, 0.75), rgba(5, 4, 10, 0.15));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header__mark {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mist);
  padding: 0.35rem 0;
}

.site-header__mark:hover {
  color: var(--cyan);
}

.site-header__nav {
  display: none;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 768px) {
  .site-header__nav {
    display: flex;
  }
}

.site-header__nav a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}

.site-header__nav a:hover {
  color: var(--mist);
}

.site-header__cta {
  padding: 0.35rem 0;
  border: none;
  border-bottom: 2px solid rgba(61, 255, 206, 0.55);
  border-radius: 0;
  color: var(--cyan) !important;
}

.site-header__cta:hover {
  background: transparent;
  color: var(--mist) !important;
  border-bottom-color: var(--mist);
}

.site-header__menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

@media (min-width: 768px) {
  .site-header__menu {
    display: none;
  }
}

.site-header__menu span {
  display: block;
  height: 2px;
  background: var(--mist);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.site-header__menu[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.site-header__menu[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  z-index: 40;
  top: var(--header-h);
  left: 0;
  right: 0;
  padding: 1.25rem clamp(1rem, 4vw, 3rem) 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(8, 6, 18, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--mist);
  text-decoration: none;
}

/* —— Main —— */
main {
  position: relative;
  z-index: 1;
}

/* —— Hero —— */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--header-h) + 2.5rem) clamp(1rem, 4vw, 3rem) 4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.5rem;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: clamp(0.7rem, 1.5vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--magenta);
  margin: 0;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.35rem, 13vw, 8.25rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  word-spacing: normal;
  max-width: min(95vw, 42rem);
}

.hero__title-line {
  display: block;
}

.hero__title-line + .hero__title-line {
  margin-top: 0.06em;
}

.hero__title-line--accent {
  background: linear-gradient(
    108deg,
    #8cffea 0%,
    #b9f6ff 18%,
    #d4c4ff 42%,
    #f0abfc 68%,
    #fda4af 88%,
    #fde68a 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__tagline {
  margin: 1rem 0 0;
  max-width: 38rem;
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 2vw, 1.08rem);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.hero__infinity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.2em 0 0.12em;
  vertical-align: -0.12em;
  color: var(--cyan);
  opacity: 0.92;
  animation: hero-infinity-pulse 2.8s ease-in-out infinite;
}

.hero__infinity-icon {
  display: block;
}

@keyframes hero-infinity-pulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

body.reduced-motion .hero__infinity {
  animation: none;
  opacity: 0.9;
}

.hero__meta-line {
  margin: 0;
  max-width: 40rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.hero__scroll {
  margin-top: auto;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  align-self: flex-start;
  padding: 0.5rem 0;
  transition: color 0.25s;
}

.hero__scroll:hover {
  color: var(--cyan);
}

/* —— Work —— */
.work {
  padding: clamp(4rem, 12vw, 8rem) clamp(1rem, 4vw, 3rem);
}

.work__head {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.work__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.work-layout-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.work-layout-toggle__btn {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    color 0.2s var(--ease-out),
    background 0.2s var(--ease-out);
}

.work-layout-toggle__btn:hover {
  color: var(--mist);
}

.work-layout-toggle__btn.is-active {
  background: rgba(245, 242, 255, 0.94);
  color: var(--void);
}

.work-panel--bento {
  margin-top: clamp(0.5rem, 2vw, 1rem);
}

.work-panel--bento[hidden] {
  display: none !important;
}

.work-panel--strip[hidden] {
  display: none !important;
}

.work__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.35rem, 13vw, 8.25rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: min(95vw, 42rem);
}

.work__title-ghost {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: inherit;
  background: linear-gradient(
    108deg,
    #8cffea 0%,
    #b9f6ff 18%,
    #d4c4ff 42%,
    #f0abfc 68%,
    #fda4af 88%,
    #fde68a 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* —— Work: scroll-driven horizontal strip + tech-noir cards —— */
.work-horizontal-stage {
  position: relative;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.work-horizontal-stage__sticky {
  position: sticky;
  top: var(--header-h);
  z-index: 6;
  padding-bottom: 0.5rem;
}

.work-carousel {
  margin-top: 0;
}

.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin-bottom: 1rem;
}

.work-filters__btn {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(8, 6, 16, 0.55);
  color: var(--muted);
  cursor: pointer;
  transition:
    color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    background 0.2s var(--ease-out);
}

.work-filters__btn:hover {
  color: var(--mist);
  border-color: rgba(255, 255, 255, 0.38);
}

.work-filters__btn.is-active {
  color: var(--void);
  background: rgba(245, 242, 255, 0.92);
  border-color: rgba(245, 242, 255, 0.95);
}

.work-card--filtered-out,
.work-bento__tile--filtered-out {
  display: none !important;
}

.work-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 8;
  padding: 0.32rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(8, 8, 16, 0.72);
  backdrop-filter: blur(6px) saturate(140%);
  -webkit-backdrop-filter: blur(6px) saturate(140%);
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--mist);
  pointer-events: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 4px 14px rgba(0, 0, 0, 0.38);
}

.work-card--latest .work-card__lock {
  top: 2.35rem;
}

/* —— Work: bento grid (row-major: 01–03 row 1, 04–06 row 2, 07 row 3 col 1, …) —— */
.work-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 58px);
  align-items: stretch;
  padding: clamp(16px, 2.5vw, 22px);
  box-sizing: border-box;
}

.work-bento__link {
  position: relative;
  display: block;
  min-height: 300px;
  margin-bottom: 0;
  margin-top: 0;
  border-radius: 0;
  border: 2px solid transparent;
  overflow: visible;
  text-decoration: none;
  color: inherit;
  background: rgba(20, 18, 28, 0.9);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 8px 28px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out),
    opacity 0.28s var(--ease-out),
    filter 0.28s var(--ease-out);
}

/* Grey + magenta frame above the image (border alone was painting under the bleed image) */
.work-bento__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  box-sizing: border-box;
  border: 2px solid var(--work-card-border-grey);
  box-shadow: 0 0 0 1px var(--work-card-border-magenta);
  opacity: 0;
  transition: opacity 0.32s var(--ease-out);
}

/* Bento focus mode: dim non-active cards while one is hovered/focused. */
.work-bento:hover .work-bento__link {
  opacity: 0.46;
  filter: saturate(78%) brightness(0.72);
}

.work-bento:hover .work-bento__link:hover,
.work-bento:hover .work-bento__link:focus-visible {
  opacity: 1;
  filter: none;
}

.work-bento:focus-within .work-bento__link {
  opacity: 0.46;
  filter: saturate(78%) brightness(0.72);
}

.work-bento:focus-within .work-bento__link:focus-visible {
  opacity: 1;
  filter: none;
}

/* Varied tile heights (12 cards); grid fills row-major so 01–07 match carousel order across first rows */
.work-bento__link:nth-child(1) {
  min-height: 520px;
}

.work-bento__link:nth-child(2) {
  min-height: 250px;
}

.work-bento__link:nth-child(3) {
  min-height: 430px;
}

.work-bento__link:nth-child(4) {
  min-height: 300px;
}

.work-bento__link:nth-child(5) {
  min-height: 500px;
}

.work-bento__link:nth-child(6) {
  min-height: 270px;
}

.work-bento__link:nth-child(7) {
  min-height: 390px;
}

.work-bento__link:nth-child(8) {
  min-height: 540px;
}

.work-bento__link:nth-child(9) {
  min-height: 240px;
}

.work-bento__link:nth-child(10) {
  min-height: 455px;
}

.work-bento__link:nth-child(11) {
  min-height: 285px;
}

.work-bento__link:nth-child(12) {
  min-height: 410px;
}

.work-bento__link:hover,
.work-bento__link:focus-visible {
  transform: translateY(-4px);
  border-color: var(--work-card-border-grey);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 0 0 1px var(--work-card-border-magenta),
    0 14px 40px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(255, 61, 138, 0.22);
}

.work-bento__link:hover::after,
.work-bento__link:focus-visible::after {
  opacity: 1;
}

.work-bento__link:focus-visible {
  outline: 2px solid rgba(61, 255, 206, 0.55);
  outline-offset: 3px;
}

.work-bento__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transform: scale(1.02);
  transition: transform 0.45s var(--ease-out);
  /* Clip image to tile; link stays overflow:visible so brackets can sit outside */
  clip-path: inset(0);
}

.work-bento__link:hover .work-bento__img,
.work-bento__link:focus-visible .work-bento__img {
  transform: scale(1.075);
}

body.rings-hover-pointer {
  cursor: pointer;
}

.work-bento__chrome {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1rem 1rem;
  background: rgba(22, 22, 28, 0.52);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.work-bento__lock {
  flex-shrink: 0;
  color: var(--magenta);
  opacity: 0.95;
}

.work-bento__title {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: rgba(252, 250, 255, 0.98);
}

/* 781px–1280px: two cards per row. */
@media (max-width: 1280px) {
  .work-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 4vw, 48px);
  }

  .work-bento__link:nth-child(1) {
    min-height: 430px;
  }

  .work-bento__link:nth-child(2) {
    min-height: 230px;
  }

  .work-bento__link:nth-child(3) {
    min-height: 360px;
  }

  .work-bento__link:nth-child(4) {
    min-height: 252px;
  }

  .work-bento__link:nth-child(5) {
    min-height: 404px;
  }

  .work-bento__link:nth-child(6) {
    min-height: 236px;
  }

  .work-bento__link:nth-child(7) {
    min-height: 332px;
  }

  .work-bento__link:nth-child(8) {
    min-height: 420px;
  }

  .work-bento__link:nth-child(9) {
    min-height: 214px;
  }

  .work-bento__link:nth-child(10) {
    min-height: 372px;
  }

  .work-bento__link:nth-child(11) {
    min-height: 246px;
  }

  .work-bento__link:nth-child(12) {
    min-height: 344px;
  }
}

/* ≤780px: single column so thumbnails stay full-width. */
@media (max-width: 780px) {
  .work-bento {
    grid-template-columns: 1fr;
    gap: clamp(32px, 5vw, 44px);
  }

  .work-bento__link:nth-child(1) {
    min-height: 340px;
  }

  .work-bento__link:nth-child(2) {
    min-height: 260px;
  }

  .work-bento__link:nth-child(3) {
    min-height: 300px;
  }

  .work-bento__link:nth-child(4) {
    min-height: 280px;
  }

  .work-bento__link:nth-child(5) {
    min-height: 320px;
  }

  .work-bento__link:nth-child(6) {
    min-height: 248px;
  }

  .work-bento__link:nth-child(7) {
    min-height: 292px;
  }

  .work-bento__link:nth-child(8) {
    min-height: 360px;
  }

  .work-bento__link:nth-child(9) {
    min-height: 240px;
  }

  .work-bento__link:nth-child(10) {
    min-height: 308px;
  }

  .work-bento__link:nth-child(11) {
    min-height: 268px;
  }

  .work-bento__link:nth-child(12) {
    min-height: 288px;
  }
}

@media (max-width: 520px) {
  .work-bento {
    gap: clamp(28px, 7vw, 38px);
  }
}

.work-carousel__hint {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.work-carousel__hint-line {
  flex: 0 0 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), transparent);
}

.work-carousel__viewport {
  position: relative;
  width: 100%;
  height: min(78vh, 580px);
  overflow: hidden;
  border-radius: 0;
}

.work-carousel__viewport--native {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.work-carousel__track {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: clamp(3rem, 8.5vw, 5.5rem);
  height: 100%;
  width: max-content;
  padding: 14px clamp(1rem, 3.8vw, 1.65rem) 16px clamp(1rem, 3.8vw, 1.65rem);
  box-sizing: border-box;
  will-change: transform;
}

body.reduced-motion .work-horizontal-stage__sticky {
  position: relative;
  top: auto;
}

body.reduced-motion .work-carousel__track {
  transform: none !important;
}

body.reduced-motion .work-card {
  scroll-snap-align: start;
}

body.reduced-motion .work-card:hover,
body.reduced-motion .work-card:focus-visible {
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .work-bento__link::after {
    transition-duration: 0.14s;
  }
}

.work-card {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  width: min(90vw, 468px);
  height: 100%;
  max-height: 100%;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: 2px solid transparent;
  overflow: visible;
  transition:
    box-shadow 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out),
    outline 0.3s var(--ease-out);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 10, 0) 0%,
    rgba(5, 5, 10, 0.16) 42%,
    rgba(5, 5, 10, 0.48) 100%
  );
  z-index: 1;
  transition: opacity 0.35s var(--ease-out);
}

.work-card:hover::after,
.work-card:focus-visible::after {
  opacity: 0;
}

.work-card:hover,
.work-card:focus-visible {
  border-color: var(--work-card-border-grey);
  box-shadow:
    0 0 0 1px var(--work-card-border-magenta),
    0 22px 56px rgba(0, 0, 0, 0.55),
    0 0 36px rgba(255, 61, 138, 0.2);
}

.work-card:focus-visible {
  outline: 2px solid rgba(61, 255, 206, 0.65);
  outline-offset: 3px;
}

.work-card__index {
  position: absolute;
  top: 2px;
  left: 2px;
  right: auto;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(4.5rem, 11vw, 5.25rem);
  padding: 8px clamp(0.34rem, 0.9vw, 0.52rem);
  border-radius: 0;
  background: linear-gradient(
    135deg,
    rgba(8, 10, 18, 0.78) 0%,
    rgba(16, 14, 30, 0.7) 52%,
    rgba(36, 18, 38, 0.62) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-family: var(--font-index);
  font-weight: 800;
  font-size: clamp(3.25rem, 11vw, 5.25rem);
  line-height: 0.82;
  letter-spacing: 0.02em;
  color: rgba(240, 247, 255, 0.98);
}

.work-card__lock {
  position: absolute;
  top: clamp(0.85rem, 2.2vw, 1.15rem);
  right: clamp(0.65rem, 2vw, 1rem);
  z-index: 7;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0.36rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  color: var(--magenta);
  opacity: 0.98;
  stroke-width: 2.2;
  pointer-events: none;
}

.work-card__img {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  border-radius: 0;
  border: none;
  object-fit: cover;
  opacity: 1;
  filter: none;
  transform: scale(1);
  transition: transform 0.45s var(--ease-out);
  z-index: 0;
}

.work-card:hover .work-card__img,
.work-card:focus-visible .work-card__img {
  transform: scale(1);
  box-shadow:
    0 0 0 1px rgba(255, 61, 138, 0.35),
    0 0 26px rgba(255, 61, 138, 0.38),
    0 0 58px rgba(255, 61, 138, 0.2);
}

.work-card__footer {
  position: relative;
  z-index: 6;
  margin-top: 1rem;
  padding: 0.05rem 0.08rem 0;
  background: none;
}

.work-card__label {
  margin: 0;
  display: grid;
  gap: 0.38rem;
}

.work-card__title {
  display: block;
  margin: 0 4px;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2.9vw, 1.45rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-transform: none;
  color: rgba(251, 249, 255, 0.98);
}

.work-card:hover .work-card__title,
.work-card:focus-visible .work-card__title {
  color: var(--magenta);
}

.work-card__meta {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(0.72rem, 1.62vw, 0.84rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(215, 232, 248, 0.86);
}

@media (max-width: 540px) {
  .work-carousel__viewport {
    height: min(72vh, 500px);
  }

  .work-card {
    width: min(91vw, 400px);
  }

  .work-card__label {
    gap: 0.3rem;
  }

  .work-card__title {
    font-size: clamp(1.04rem, 3.7vw, 1.2rem);
  }

  .work-card__meta {
    font-size: clamp(0.68rem, 2.4vw, 0.78rem);
  }
}

.work__more {
  margin: 2rem 0 0;
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 42rem;
}

.work__more a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(61, 255, 206, 0.35);
  transition: color 0.2s, border-color 0.2s;
}

.work__more a:hover {
  color: var(--mist);
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

/* —— About —— */
.about {
  margin: 0;
  padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 4vw, 3rem) clamp(4rem, 12vw, 8rem);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about__layout {
  display: grid;
  gap: 2rem;
  text-shadow: 0 1px 20px rgba(5, 4, 10, 0.55);
}

@media (min-width: 900px) {
  .about__layout {
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: start;
  }
}

.about__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: rgba(252, 250, 255, 0.98);
}

.about__title-italic {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 600;
  color: rgba(185, 246, 255, 0.95);
  background: linear-gradient(
    120deg,
    rgba(94, 234, 212, 0.98) 0%,
    rgba(61, 255, 206, 0.98) 28%,
    rgba(255, 61, 138, 0.98) 56%,
    rgba(139, 92, 255, 0.95) 78%,
    rgba(185, 246, 255, 0.98) 100%
  );
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: experiences-gradient-shift 8s ease-in-out infinite alternate;
}

@keyframes experiences-gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

body.reduced-motion .about__title-italic {
  animation: none;
  background-position: 50% 50%;
}

.about__p {
  margin: 0 0 1.5rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(235, 232, 248, 0.94);
  max-width: 40rem;
}

.about__skills {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(215, 210, 235, 0.9);
  max-width: 40rem;
}

.about__skills-label {
  font-weight: 800;
  color: rgba(252, 250, 255, 0.98);
  margin-right: 0.35em;
}

/* —— Footer —— */
.footer {
  padding: 3rem clamp(1rem, 4vw, 3rem) 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer__thanks {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
  color: var(--mist);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2rem;
  margin-bottom: 2rem;
}

.footer__links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
  text-decoration: none;
}

.footer__links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.footer__fine {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(200, 195, 220, 0.45);
}

/* —— Reveal —— */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.85s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.reduced-motion [data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}
