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

/* ── PAGE TRANSITION WIPE ── */
/* Full-screen purple curtain used for home↔other and other↔other navigation.
   Hidden/covering states use the same clip-path convention as #menu-overlay. */
#page-transition-wipe {
  position: fixed; inset: 0;
  z-index: 20000;
  background: var(--accent);
  clip-path: inset(0% 0% 100% 0%);
  pointer-events: none;
}

#page-transition-wipe.is-covering {
  clip-path: inset(0% 0% 0% 0%);
}

/* ── LOADING SCREEN ── */
#loader {
  position: fixed; inset: 0;
  z-index: 10000;
  background: #0a0a24;
  overflow: hidden;
  transition: opacity 0.6s ease;
}

#loaderCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 0;
}

/* Tints the starfield to the site's brand purple */
.loader-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background: var(--accent);
  opacity: 0.55;
  pointer-events: none;
}

.loader-content {
  position: relative;
  z-index: 2;
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.75rem;
}

.loader-logo {
  display: block;
  width: clamp(88px, 10vw, 130px);
  aspect-ratio: 1082.17 / 384.37;
  background-color: var(--text);
  -webkit-mask: url('../images/logos/w-logo.svg') no-repeat center / contain;
  mask: url('../images/logos/w-logo.svg') no-repeat center / contain;
  animation: loaderPulse 1.4s ease-in-out infinite;
}

.loader-bar {
  width: 220px; height: 2px;
  background: rgba(240,237,230,0.3);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar-fill {
  width: 0%; height: 100%;
  background: var(--text);
  border-radius: 2px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

#cursor-dot {
  position: fixed; width: 8px; height: 8px;
  background: var(--text); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, background 0.3s ease;
}

#cursor-ring {
  position: fixed; width: 40px; height: 40px;
  border: 1px solid var(--accent);
  border-radius: 50%; pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease,
              border-color 0.3s ease, background 0.3s ease;
}

body.cursor-hover #cursor-ring {
  width: 64px; height: 64px;
  background: var(--accent-dim);
  border-color: var(--accent);
}

body.cursor-hover #cursor-dot { background: var(--accent); }

nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200; padding: 2rem 5vw;
  display: flex; align-items: center; justify-content: space-between;
}

nav::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(8,8,8,0.9) 0%, transparent 100%);
  pointer-events: none;
}

.nav-logo {
  display: inline-flex; align-items: center;
  text-decoration: none; position: relative;
  z-index: 201;
}
.nav-logo-mark {
  display: block;
  width: clamp(72px, 9vw, 120px);
  aspect-ratio: 1082.17 / 384.37;
  background-color: var(--text);
  -webkit-mask: url('../images/logos/w-logo.svg') no-repeat center / contain;
  mask: url('../images/logos/w-logo.svg') no-repeat center / contain;
  transform: scale(1) rotate(0deg);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav-logo:hover .nav-logo-mark {
  transform: scale(1.06) rotate(-9deg);
  animation: logoHover 1s cubic-bezier(0.45, 0, 0.55, 1) 0.4s infinite;
}

#menu-toggle {
  position: relative; z-index: 201;
  width: 44px; height: 44px;
  background: none; border: none;
  display: flex; flex-direction: column;
  align-items: flex-end; justify-content: center;
  gap: 5px; cursor: none; padding: 0;
}

.burger-line {
  display: block; height: 1.5px;
  background: var(--text); border-radius: 2px;
  transform-origin: right center;
  transition: width 0.35s cubic-bezier(0.76,0,0.24,1),
              transform 0.35s cubic-bezier(0.76,0,0.24,1),
              opacity 0.2s ease;
}

.burger-line:nth-child(1) { width: 28px; }

.burger-line:nth-child(2) { width: 20px; }

.burger-line:nth-child(3) { width: 24px; }

body.menu-open .burger-line:nth-child(1) {
  width: 26px;
  transform: translateY(6.5px) rotate(-45deg);
}

body.menu-open .burger-line:nth-child(2) {
  opacity: 0; width: 0;
}

body.menu-open .burger-line:nth-child(3) {
  width: 26px;
  transform: translateY(-6.5px) rotate(45deg);
}

#menu-overlay {
  position: fixed; inset: 0;
  z-index: 150;
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 0 8vw;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s cubic-bezier(0.76,0,0.24,1);
}

body.menu-open #menu-overlay {
  clip-path: inset(0 0 0% 0);
  pointer-events: all;
}

.menu-list {
  list-style: none;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.15rem;
  width: 100%;
}

.menu-item {
  overflow: hidden; width: 100%; text-align: center;
}

.menu-link {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 1.2rem;
  text-decoration: none;
  padding: 0.35rem 0;
  position: relative;
  transform: translateY(60px);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.76,0,0.24,1),
              opacity 0.7s ease;
}

body.menu-open .menu-link {
  transform: translateY(0);
  opacity: 1;
}

.menu-item:nth-child(1) .menu-link { transition-delay: 0.08s; }

.menu-item:nth-child(2) .menu-link { transition-delay: 0.13s; }

.menu-item:nth-child(3) .menu-link { transition-delay: 0.18s; }

.menu-item:nth-child(4) .menu-link { transition-delay: 0.23s; }

.menu-item:nth-child(5) .menu-link { transition-delay: 0.28s; }

.menu-item:nth-child(6) .menu-link { transition-delay: 0.33s; }

.menu-desc {
  font-family: 'Geist', 'Inter', sans-serif;
  font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.1em; color: var(--accent);
  width: 2.5rem; text-align: right; flex-shrink: 0;
  margin-top: 0.2rem;
}

.menu-text-roll {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.85;
  color: var(--text);
  position: relative;
  display: inline-block;
  overflow: hidden;
  transition: color 0.35s ease;
}

.roll-top,
.roll-bottom {
  display: block;
  white-space: nowrap;
}

.roll-bottom {
  position: absolute; inset: 0;
  color: var(--accent);
  /* No wrapper-level transform — per-letter .ch handles all movement */
}

.roll-top .ch {
  display: inline-block;
  transform: translateY(0);
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-duration: 0.45s;
}

.roll-bottom .ch {
  display: inline-block;
  transform: translateY(105%);   /* sits below, ready to roll in */
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-duration: 0.45s;
}

.menu-link:hover .roll-top .ch {
  transform: translateY(-105%);
}

.menu-link:hover .roll-bottom .ch {
  transform: translateY(0);
}

.menu-link:hover .menu-text-roll {
  color: var(--accent);
}

.menu-link:hover .menu-desc {
  color: var(--text-muted);
}

.menu-link::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--border);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.76,0,0.24,1);
}

.menu-link:hover::after { transform: scaleX(1); }

.menu-footer {
  position: absolute; bottom: 3rem; left: 8vw; right: 8vw;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  padding-top: 1.5rem;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease 0.35s, transform 0.5s ease 0.35s;
}

body.menu-open .menu-footer {
  opacity: 1; transform: translateY(0);
}

.menu-footer-label {
  font-size: 0.75rem; color: var(--text-muted);
  letter-spacing: 0.1em; font-family: 'Geist', 'Inter', sans-serif;
}

#hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: space-between; padding: 0 5vw 8vh;
  position: relative; overflow: hidden;
  background: var(--bg);
}

#hero-zoom-driver {
  position: relative;
  height: 280vh; /* long scroll travel so the deep zoom into the eye reads smoothly */
}

#hero {
  position: sticky !important;
  top: 0;
}

.hero-img-wrap {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}

.hero-img {
  position: absolute; inset: 0; width: 100%; height: 112%;
  top: -6%; object-fit: cover; object-position: 50% 40%;
  transform-origin: 47% 42%; /* the skull's left eye socket */
  will-change: transform;
}

/* Fades to site-black once the zoom reaches the eye, so the cut to the
   next section feels like falling through it rather than a hard scroll cut */
.hero-blackout {
  position: absolute; inset: 0; z-index: 2;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
}

.hero-blackout-particles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; /* faded in separately, only once the blackout is fully black */
}

.hero-overlay-top {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(8,8,8,0.72) 0%,
    rgba(8,8,8,0.2) 18%,
    transparent 40%
  );
}

.hero-overlay-bottom {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top,
    rgba(8,8,8,0.9) 0%,
    rgba(8,8,8,0.4) 20%,
    transparent 45%
  );
}

.hero-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 80% 80% at 50% 48%,
    transparent 28%,
    rgba(8,8,8,0.55) 100%
  );
}

.hero-eyebrow {
  font-size: 0.75rem; font-weight: 400; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text);
  position: relative; z-index: 3; opacity: 0;
}

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

.hero-light {
  position: absolute; z-index: 2; pointer-events: none;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,255,255,0.07) 0%,
    rgba(200,170,255,0.04) 35%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  filter: blur(2px);
  will-change: transform;
  mix-blend-mode: screen;
}

#slogan {
  background: var(--bg);
  padding: 12vh 5vw 10vh;
  overflow: hidden;
  position: relative;
  z-index: 2;
  opacity: 0; /* starts invisible — GSAP reveals it */
}

.hero-title .word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.12em;
  padding-top: 0.05em; /* extra room so ascenders aren't clipped */
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3.5rem, 10vw, 10rem);
  font-weight: 800; line-height: 0.92;
  letter-spacing: -0.04em; position: relative; z-index: 1;
  overflow: hidden;
}

.hero-title .line {
  display: block; overflow: hidden;
}

.hero-title .word {
  display: inline-block;
  transform: translateY(108%);
  filter: blur(14px);
  opacity: 1; /* clip mask handles visibility — no opacity fade needed */
  will-change: transform, filter;
}

.hero-title .accent-word { color: var(--accent); }

.hero-sub {
  display: flex; align-items: flex-end; justify-content: space-between;
  position: relative; z-index: 3;
  width: 100%;
}

.hero-desc {
  font-size: 1rem; color: var(--text-muted); max-width: 340px;
  line-height: 1.7; opacity: 0;
}

.hero-scroll {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-dim); opacity: 0;
  display: flex; align-items: center; gap: 1rem;
}

.hero-scroll-line {
  width: 60px; height: 1px; background: var(--text-dim);
  position: relative; overflow: hidden;
}

.hero-scroll-line::after {
  content: ''; position: absolute;
  inset-block: 0; left: -100%; width: 100%;
  background: var(--accent);
  animation: scanline 2s ease-in-out infinite 1.5s;
}

.hero-scroll-cue {
  position: absolute;
  left: 50%; bottom: 2.5rem;
  transform: translateX(-50%);
  z-index: 3;
  opacity: 0;
}

.hero-scroll-cue-mouse {
  display: block;
  width: 22px; height: 34px;
  border: 1.5px solid var(--text-dim);
  border-radius: 12px;
  position: relative;
}

.hero-scroll-cue-dot {
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  border-radius: 2px;
  background: var(--accent);
  animation: heroScrollDot 1.8s ease-in-out infinite;
}

.marquee-wrap {
  padding: 1.5rem 0; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden; white-space: nowrap;
}

.marquee-track {
  display: inline-flex; gap: 0;
}

.marquee-item {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-muted);
  padding: 0 2.5rem;
}

.marquee-item span { color: var(--accent); margin-right: 2.5rem; }

section { padding: 12vh 5vw; }

.section-label {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem;
}

.section-label::before {
  content: ''; width: 30px; height: 1px; background: var(--accent);
}

.section-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700; line-height: 1.05;
  letter-spacing: -0.03em;
}

#work { background: var(--bg); }

.aurora-container {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

.work-intro {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 5rem;
  gap: 2rem; flex-wrap: wrap;
}

.work-intro-right {
  font-size: 0.9rem; color: var(--text-muted); max-width: 280px;
  line-height: 1.7;
}

.hover-expand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  height: 480px;  /* fixed height so collapsed panels fill fully */
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hover-expand::-webkit-scrollbar {
  display: none;
}

.he-panel {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  cursor: none;
  /* collapsed default — grows evenly to fill the row's full width */
  flex: 1 1 0;
  min-width: 52px;
  height: 100%;
  transition:
    flex 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 0.6s ease;
}

.he-panel.is-active {
  flex: 0 0 360px;
}

.he-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.he-bg svg,
.he-bg img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
}

.he-panel.is-active .he-bg {
  transform: scale(1.04);
}

.he-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.75) 0%, rgba(8,8,8,0.1) 55%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.he-panel.is-active .he-overlay {
  opacity: 1;
}

.he-meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1.5rem 1.4rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s;
}

.he-panel.is-active .he-meta {
  opacity: 1;
  transform: translateY(0);
}

.he-code {
  display: block;
  font-family: 'Geist', 'Inter', monospace;
  font-size: 0.68rem; letter-spacing: 0.15em;
  color: rgba(240,237,230,0.45);
  margin-bottom: 0.3rem;
}

.he-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem; font-weight: 800;
  line-height: 1.1; letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 1.4rem;
  margin-bottom: 0.5rem;
}

.he-title-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--accent);
  cursor: none;
}

.he-sub {
  font-size: 0.78rem; color: rgba(240,237,230,0.55);
  margin-bottom: 0.75rem;
  font-family: 'Geist', 'Inter', sans-serif;
}

.he-tags {
  display: flex; gap: 0.4rem; flex-wrap: wrap;
}

.he-panel.is-active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 2px;
  background: var(--accent);
  border-radius: 2px;
  z-index: 3;
  opacity: 0;
  animation: edgeGlow 0.4s ease 0.2s forwards;
}

.tag {
  font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(240,237,230,0.4);
  color: var(--text); border-radius: 100px;
  font-family: 'Geist', 'Inter', sans-serif;
}

/* ── STILLS ── */
#stills {
  background: var(--bg);
  padding: 0 0 8vh;
  overflow: hidden;
}

.stills-intro {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 12vh 5vw 6vh;
  gap: 2rem;
  flex-wrap: wrap;
}

.stills-intro-right {
  font-size: 0.9rem; color: var(--text-muted); max-width: 320px;
  line-height: 1.7;
}

.stills-gallery-link {
  position: relative;
  display: block;
  cursor: none;
  text-decoration: none;
  /* The link itself spans the whole block (photo grid + button), but only
     the button should be clickable — re-enabled below. Disabling here
     (rather than on .stills-gallery) matters because pointer-events:none
     on a child still lets clicks fall through to this <a> ancestor. */
  pointer-events: none;
}

.stills-gallery-link .stills-gallery-overlay {
  pointer-events: auto;
}

/* Static, always visible — sits below the gallery grid in normal document
   flow, never appears/disappears or moves with scroll. */
.stills-gallery-overlay {
  display: flex; align-items: center; justify-content: center;
  margin-top: 3rem;
}

.stills-gallery-overlay .cta-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 rgba(139,95,163,0);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s ease;
}

.stills-gallery-overlay .cta-btn::before {
  display: none;
}

.stills-gallery-overlay .cta-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 40px var(--accent-glow);
}

.stills-gallery {
  position: relative;
  display: flex;
  gap: 1.4vw;
  height: 175vh;
  padding: 0 5vw;
  overflow: hidden;
}

.stills-col {
  position: relative;
  flex: 1 1 25%;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 1.4vw;
  will-change: transform;
}

.stills-tile {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(160deg, #0d0b1a, #1a0d2e, #0a0515);
}

.stills-tile img {
  width: 100%; height: 100%;
  display: block; object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

.stills-tile.is-missing {
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--border);
}

.stills-tile.is-missing img { display: none; }

.stills-tile.is-missing::after {
  content: 'Image not found';
  font-family: 'Geist', 'Inter', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.05em;
  color: var(--text-dim);
  text-align: center;
  padding: 0 1rem;
}

/* ── STILLS — FULL GALLERY PAGE ── */
.stills-full-section {
  background: var(--bg);
  padding: 6vh 5vw 14vh;
}

.stills-full-empty {
  font-family: 'Geist', 'Inter', sans-serif;
  font-size: 0.85rem; letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 8vh 0;
  text-align: center;
}

.stills-full-grid {
  --stills-cols: 6;
  display: flex;
  flex-direction: column;
  gap: 1.2vw;
}

.stills-full-row {
  display: grid;
  grid-template-columns: repeat(var(--stills-cols), 1fr);
  gap: 1.2vw;
  will-change: transform;
}

.stills-full-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(160deg, #0d0b1a, #1a0d2e, #0a0515);
  cursor: none;
}

.stills-full-tile img {
  width: 100%; height: 100%;
  display: block; object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stills-full-tile:hover img {
  transform: scale(1.04);
}

/* ── STILLS LIGHTBOX ── */
.stills-lightbox {
  position: fixed; inset: 0;
  z-index: 300;
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.stills-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.stills-lightbox-stage {
  width: 90vw; height: 86vh;
  display: flex; align-items: center; justify-content: center;
}

.stills-lightbox-img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
  transform: scale(0.94);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
}

.stills-lightbox.is-open .stills-lightbox-img {
  transform: scale(1);
  opacity: 1;
}

.stills-lightbox-close,
.stills-lightbox-nav {
  position: fixed;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: none;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.stills-lightbox-close {
  top: 2rem; right: 2rem;
  width: 44px; height: 44px;
  font-size: 1rem;
}

.stills-lightbox-nav {
  top: 50%;
  width: 52px; height: 52px;
  font-size: 1.3rem;
  transform: translateY(-50%);
}

.stills-lightbox-prev { left: 2rem; }
.stills-lightbox-next { right: 2rem; }

.stills-lightbox-close:hover,
.stills-lightbox-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

@media (max-width: 768px) {
  .stills-lightbox-stage { width: 92vw; height: 78vh; }
  .stills-lightbox-close { top: 1.25rem; right: 1.25rem; width: 38px; height: 38px; }
  .stills-lightbox-nav { width: 42px; height: 42px; }
  .stills-lightbox-prev { left: 0.75rem; }
  .stills-lightbox-next { right: 0.75rem; }
}

#about {
  background: var(--bg);
  display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: center;
  position: relative;
  overflow: hidden;
}

.dot-field-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#about .about-visual,
#about .about-content {
  position: relative;
  z-index: 1;
}

.about-visual {
  position: relative; aspect-ratio: 4/5; overflow: hidden;
  border-radius: 12px;
}

.about-frame {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a1030 0%, #0D0B1A 50%, #0a0a14 100%);
  display: flex; align-items: center; justify-content: center;
}

.about-photo {
  width: 100%; height: 100%;
  object-fit: cover;
}

.about-badge {
  position: absolute; bottom: 2rem; left: 2rem;
  background: var(--accent); color: #fff;
  padding: 1rem 1.5rem; border-radius: 12px;
  font-family: 'Syne', sans-serif;
}

.about-badge-num { font-size: 2.5rem; font-weight: 800; line-height: 1; }

.about-badge-label { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.8; }

.about-content { }

.about-text {
  font-size: 1.05rem; color: var(--text);
  line-height: 1.85; margin-top: 2rem; margin-bottom: 3rem;
}

#process { background: var(--bg); }

.process-intro { max-width: 600px; margin: 0 auto 6rem; text-align: center; }

.process-intro .section-heading { word-break: keep-all; overflow-wrap: normal; hyphens: none; }

.process-intro p {
  font-size: 1rem; color: var(--text-muted); line-height: 1.8; margin-top: 1.5rem;
}

.step-num {
  font-family: 'Syne', sans-serif; font-size: 4rem; font-weight: 800;
  color: var(--text-dim); line-height: 1; margin-bottom: 2rem;
  display: block;
}

.step-title {
  font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700;
  margin-bottom: 0.75rem;
}

.step-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }

#contact {
  background: var(--bg);
  position: relative; overflow: hidden;
}

#contact .section-label { position: relative; z-index: 1; }

.contact-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(139,95,163,0.1) 0%, transparent 70%);
}

.contact-heading {
  text-align: center; max-width: 640px;
  margin: 4vh auto 0;
  position: relative; z-index: 1;
}

.contact-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.05; margin-bottom: 1.5rem;
}

.contact-title em { font-style: normal; color: var(--accent); }

.contact-sub {
  font-size: 1rem; color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-grid {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: 6vw; align-items: start;
  margin-top: 14vh;
  position: relative; z-index: 1;
}

.contact-form { display: flex; flex-direction: column; gap: 3rem; }

.contact-sentence {
  font-family: 'Geist', sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  font-weight: 600; line-height: 1.6;
  color: var(--text);
}

.contact-blank {
  background: transparent; border: none;
  border-bottom: 1px solid var(--text-dim);
  color: var(--accent); text-align: left;
  font-family: 'Geist', sans-serif;
  font-size: inherit; font-weight: inherit;
  padding: 0 0 0.2rem; margin: 0 0.2rem;
  outline: none;
}

.contact-blank::placeholder { color: var(--text-dim); }
.contact-blank:focus { border-bottom-color: var(--accent); }

.contact-blank-wide {
  display: block; width: 100%; margin: 0.75rem 0 0;
}

.contact-submit { align-self: flex-start; }

.contact-address-intro {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.03em;
  color: var(--accent); line-height: 1.5;
  margin-bottom: 2.5rem;
}

.contact-address-block {
  display: flex; flex-direction: column;
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.2rem, 1.9vw, 1.7rem);
  font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.3; color: var(--accent);
  text-transform: uppercase;
  white-space: nowrap;
}

.cta-btn {
  display: inline-flex; align-items: center; gap: 1rem;
  padding: 1.1rem 2.5rem; border: 1px solid var(--accent);
  background: transparent; appearance: none;
  color: var(--text); text-decoration: none;
  font-family: 'Syne', sans-serif; font-size: 0.9rem;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  position: relative; z-index: 1; overflow: hidden;
  transition: color 0.4s ease; cursor: none;
}

.cta-btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--accent); transform: scaleX(0);
  transform-origin: left; transition: transform 0.4s cubic-bezier(0.76,0,0.24,1);
  z-index: -1;
}

.cta-btn:hover::before { transform: scaleX(1); }

.cta-arrow { font-size: 1.2rem; transition: transform 0.3s ease; }

.cta-btn:hover .cta-arrow { transform: translate(4px, -4px); }

.footer-section {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* ── Full-bleed video, tinted to brand purple ── */
.footer-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

.footer-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Recolors the video's luminance to the accent hue while keeping its detail */
.footer-tint {
  position: absolute; inset: 0; z-index: 1;
  background: var(--accent);
  mix-blend-mode: color;
  opacity: 0.92;
}

/* Adds depth/contrast on top of the tint */
.footer-tint-depth {
  position: absolute; inset: 0; z-index: 2;
  background: rgba(8,8,8,0.45);
  mix-blend-mode: multiply;
}

.footer-fade-top {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(to bottom, rgba(8,8,8,0.85) 0%, transparent 32%);
}

.footer-fade-bottom {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(to top, var(--bg) 0%, transparent 38%);
}

/* Giant faint wordmark, echoing the .about-glyph treatment.
   The inner span is scaled via JS to guarantee it always sits fully in frame,
   regardless of viewport width or font-metric quirks. */
.footer-glyph {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}

.footer-glyph span {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 19rem;
  letter-spacing: -0.04em;
  color: rgba(240,237,230,0.07);
  white-space: nowrap;
  line-height: 1;
  transform-origin: center bottom;
  will-change: transform;
}

.footer-inner {
  position: relative; z-index: 4;
  flex: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 3rem 5vw;
}

.footer-top-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  margin-top: 3rem;
}

.footer-center-logo {
  display: flex;
}

.footer-logo {
  display: inline-flex; align-items: center;
  text-decoration: none;
  cursor: none;
}

.footer-logo-mark {
  display: block;
  margin-top: -10px;
  width: clamp(150px, 14vw, 260px);
  aspect-ratio: 1079.42 / 487.69;
  background-color: var(--text);
  -webkit-mask: url('../images/logos/w-footer-logo.svg') no-repeat center / contain;
  mask: url('../images/logos/w-footer-logo.svg') no-repeat center / contain;
}

.footer-legal {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.footer-bar {
  width: 140px; height: 10px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 0.5rem;
}

.footer-legal-links {
  display: flex; align-items: center; gap: 0.75rem;
}

.footer-terms,
.footer-copyright {
  font-family: 'Geist', 'Inter', sans-serif;
  font-size: 0.9rem; color: var(--text-muted);
  letter-spacing: 0.02em;
}

.footer-terms {
  text-decoration: none;
  cursor: none;
  transition: color 0.3s ease;
}

.footer-terms:hover { color: var(--accent); text-decoration: underline; }

.footer-bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  margin-top: 15rem;
}

.footer-fine-print { display: flex; flex-direction: column; gap: 1.25rem; }

.footer-fine-line {
  font-family: 'Geist', 'Inter', sans-serif;
  font-size: 0.72rem; color: var(--text-dim);
  letter-spacing: 0.03em;
}

.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }

.footer-links a {
  font-family: 'Geist', 'Inter', sans-serif;
  font-size: 0.8rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none;
  transition: color 0.3s ease;
  cursor: none;
}

.footer-links a:hover { color: var(--text); }

.footer-socials { display: flex; gap: 0.6rem; }

.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: rgba(8,8,8,0.4);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
  cursor: none;
}

.footer-socials svg { width: 15px; height: 15px; fill: var(--text); }

.footer-socials a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.reveal { opacity: 0; transform: translateY(40px); }

/* ── COOKIE CONSENT ── */
.cookie-icon-btn {
  position: fixed;
  left: 1.75rem; bottom: 1.75rem;
  z-index: 250;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px -6px rgba(139,95,163,0.6);
  cursor: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cookie-icon-btn:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 30px -6px rgba(139,95,163,0.75);
}

.cookie-icon-btn svg { width: 26px; height: 26px; }

.cookie-banner {
  position: fixed; inset: 0;
  z-index: 260;
  background: rgba(8,8,8,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-end;
  padding: 1.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.cookie-banner.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner-inner {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94), opacity 0.4s ease;
}

.cookie-banner.is-open .cookie-banner-inner {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  cursor: none;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.cookie-banner-close:hover { border-color: var(--accent); color: var(--accent); }

.cookie-banner-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.cookie-banner-text {
  font-size: 0.85rem; color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.cookie-option {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border);
}

.cookie-option-info { flex: 1; }

.cookie-option-title {
  font-family: 'Geist', 'Inter', sans-serif;
  font-size: 0.85rem; font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.cookie-option-desc {
  font-size: 0.75rem; color: var(--text-dim);
  line-height: 1.5;
}

.cookie-switch {
  position: relative;
  flex-shrink: 0;
  width: 40px; height: 22px;
  margin-top: 0.15rem;
}

.cookie-switch input {
  position: absolute; inset: 0;
  opacity: 0; margin: 0; cursor: none;
}

.cookie-switch-track {
  position: absolute; inset: 0;
  background: var(--border);
  border-radius: 999px;
  transition: background 0.25s ease;
}

.cookie-switch-track::before {
  content: '';
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--text);
  transition: transform 0.25s ease;
}

.cookie-switch input:checked ~ .cookie-switch-track {
  background: var(--accent);
}

.cookie-switch input:checked ~ .cookie-switch-track::before {
  transform: translateX(18px);
}

.cookie-switch input:disabled ~ .cookie-switch-track {
  background: var(--accent-dim);
  opacity: 0.6;
}

.cookie-banner-actions {
  display: flex; gap: 0.75rem;
  margin-top: 1.75rem;
}

.cookie-btn-save,
.cookie-btn-accept {
  flex: 1;
  font-family: 'Geist', 'Inter', sans-serif;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  cursor: none;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.cookie-btn-save {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--text);
}

.cookie-btn-save:hover { background: var(--accent-dim); }

.cookie-btn-accept {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--text);
}

.cookie-btn-accept:hover { background: #7a4f92; }

@media (max-width: 700px) {
  .cookie-icon-btn { left: 1.1rem; bottom: 1.1rem; width: 46px; height: 46px; }
  .cookie-icon-btn svg { width: 22px; height: 22px; }
  .cookie-banner { padding: 1rem; align-items: flex-end; }
  .cookie-banner-inner { max-width: none; padding: 1.5rem; }
}

/* ── FORM TOAST — contact form validation/success notice ── */
.form-toast {
  position: fixed;
  left: 50%; bottom: 2.5rem;
  transform: translate(-50%, 20px);
  z-index: 200;
  max-width: 90vw;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-family: 'Geist', 'Inter', sans-serif;
  font-size: 0.85rem; font-weight: 500;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.form-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.form-toast-error { border-color: #d95555; }

::-webkit-scrollbar { width: 4px; }

::-webkit-scrollbar-track { background: var(--bg); }

::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }
