:root{
  --black:#0E100F;
  --grey:#333030;
  --reveal:#1e1c20;
  --white:#fffce1;
  --muted:#898684;
  --line:rgba(242,240,235,.16);
  --pad:clamp(18px,3vw,48px);
  --ease:cubic-bezier(.76,0,.24,1);
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  background-color:var(--reveal);
  background-image:
    radial-gradient(circle at 50% 46%, rgba(255,252,225,.018) 0%, rgba(255,252,225,0) 52%),
    radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 48%, rgba(0,0,0,.055) 100%);
  color:var(--white);
  font-family:"Inter",Arial,sans-serif;
  font-size:14px;
  font-weight:400;
  overflow-x:hidden;
}

body.is-intro{overflow:hidden}

button,a{font:inherit;color:inherit}
a{text-decoration:none}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  padding: var(--pad);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  mix-blend-mode: difference;
  font-size: 10px;
  letter-spacing: .1em;

  /* --- THE FIX: Hide on load, fade in as you scroll --- */
  opacity: 0;
  animation: fadeInOnScroll linear both;
  animation-timeline: scroll(root);
  animation-range: 0px 150px; /* Fully fades in by the time you scroll 150px */
}

@keyframes fadeInOnScroll {
  to {
    opacity: 1;
  }
}

/* Real end-of-page footer: sits once, in normal document flow, after all
   sections. Nothing is fixed, so it can never overlap sticky/full-height
   section content further up the page — there's no "safe lane" to maintain
   per section anymore. */
.site-footer {
  position: static;
  display: flex;
  justify-content: space-between;
  padding: var(--pad);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--muted);
}

.brand,.menu-toggle{pointer-events:auto}

.brand{
  font-weight:600;
  letter-spacing:-.045em;
}

 .eyebrow {
                display: inline-flex;
                align-items: center;
                gap: 18px;
                color: #FFFCE1;
                margin-bottom: 22px;
            }

            .eyebrow::before {
                content: "";
                width: 22px;
                height: 1px;
                background: #FFFCE1;
            }


.menu-toggle{
  border:0;
  padding:0;
  background:transparent;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:11px;
  font-size:10px;
  letter-spacing:.11em;
  
  /* --- THE FIX --- */
  width: max-content;
}


.menu-toggle b{
  width:18px;
  height:1px;
  display:block;
  background:currentColor;
  transition:transform .65s var(--ease);
}

.menu-toggle b+b{
  margin-left:-29px;
  transform:translateY(5px);
}

.menu-toggle[aria-expanded="true"] b:first-of-type{transform:rotate(45deg)}
.menu-toggle[aria-expanded="true"] b:last-of-type{transform:rotate(-45deg)}

.hero{
  position:relative;
  min-height:100svh;
  padding:calc(var(--pad)*2.7) var(--pad) var(--pad);
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.hero-top,.eyebrow{
  color:var(--muted);
  font-size:10px;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.hero-top{position:absolute;top:calc(var(--pad)*2.7);left:var(--pad)}

.hero h1{
  margin:0;
  font-size:clamp(32px,6vw,64px);
  line-height:.87;
  letter-spacing:-.065em;
  font-weight:500;
}

.hero h1 em{
  margin-left:1.12em;
  font-style:normal;
}

.hero-bottom{
  position:absolute;
  bottom:var(--pad);
  left:var(--pad);
  right:var(--pad);
  display:flex;
  justify-content:space-between;
  color:var(--muted);
  font-size:10px;
  letter-spacing:.08em;
}

.scroll-cue{
  color:inherit;
  font:inherit;
  letter-spacing:inherit;
  text-decoration:none;
  cursor:pointer;
  transition:color .2s ease;
}

.scroll-cue:hover,
.scroll-cue:focus-visible{
  color:var(--white);
}

.object-section{
  min-height:125svh;
  position:relative;
  display:grid;
  place-items:center;
  overflow:hidden;
  background-color:var(--reveal);
  background-image:
    radial-gradient(circle at 50% 46%, rgba(255,252,225,.018) 0%, rgba(255,252,225,0) 52%),
    radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 48%, rgba(0,0,0,.055) 100%);
}

.object{
  width:min(48vw,600px);
  height:min(48vw,600px);
  display:grid;
  place-items:center;
}

.object svg{
  width:100%;
  height:100%;
  overflow:visible;
  transform-origin:50% 50%;
}

.object-label{
  position:absolute;
  bottom:var(--pad);
  left:var(--pad);
  font-size:10px;
  letter-spacing:.1em;
  color:var(--muted);
}

.object-label strong{
  color:var(--white);
  font-weight:400;
  margin-left:5px;
}

/* =========================================================
   ABSTRACT LINE DRAW
   A single folded-paper-plane path that draws itself in as the
   section scrolls past — echoes "UNFOLDING PAPERPLANES" from the
   hero, kept to one continuous stroke on a plain dark ground.
========================================================= */
.line-section{
  position:relative;
  width:100%;
  height:180vh;
  background:var(--black);
}

.line-sticky{
  position:sticky;
  top:0;
  width:100%;
  height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.line-draw{
  width:min(70vw,900px);
  height:auto;
  overflow:visible;
  filter:drop-shadow(0 0 26px rgba(255,252,225,.16));
}

.line-draw path{
  fill:none;
  stroke:var(--white);
  stroke-width:2;
  stroke-linejoin:round;
  stroke-linecap:round;
}

.line-pen{
  position:absolute;
  top:0;
  left:0;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--white);
  box-shadow:0 0 14px 3px rgba(255,252,225,.55);
  pointer-events:none;
  opacity:0;
  transition:opacity .25s ease;
  will-change:transform;
}

.line-pen.is-active{
  opacity:1;
}

@media (max-width:700px){
  .line-section{
    height:150vh;
  }
  .line-draw{
    width:min(84vw,520px);
  }
}

/* =========================================================
   SIGNATURE: PERSPECTIVE IMAGE WHEEL + LETTER FILL
   A vertical stack of cards mounted on a 3D wheel (rotateX +
   translateZ, classic CSS carousel technique) so images near the
   center read flat while ones further up/down recede in
   perspective — modeled after thisisonward.com's image stack +
   letter-fill moment, rebuilt with this site's own cards/type.
========================================================= */
.fan-section{
  position:relative;
  width:100%;
  height:150vh;
  background:var(--black);
  overflow:hidden;
}

.fan-sticky{
  position:sticky;
  top:0;
  width:100%;
  height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:clamp(20px, 6vw, 90px);
  overflow:hidden;
}

.fan-images{
  position:relative;
  flex:0 0 auto;
  width:min(30vw, 280px);
  height:min(64vh, 560px);
  perspective:900px;
  overflow:hidden;
  mask-image:linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-image:linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.fan-track{
  position:absolute;
  inset:0;
  transform-style:preserve-3d;
  will-change:transform;
}

.fan-card{
  position:absolute;
  top:50%;
  left:50%;
  width:100%;
  height:150px;
  margin-top:-75px;
  border-radius:10px;
  background:linear-gradient(160deg, rgba(255,252,225,.16), rgba(255,252,225,.04));
  border:1px solid rgba(255,252,225,.18);
  /* Each card sits on a virtual cylinder: rotated around the wheel's
     horizontal axis, then pushed out to the cylinder's radius. The
     whole .fan-track rotates on scroll (see script.js), sweeping
     different cards through the flat, "in-focus" center position. */
  transform: rotateX(calc(var(--i) * 26deg)) translateZ(260px);
}

.fan-letter{
  position:relative;
  z-index:4;
  flex:0 0 auto;
  width:1em;
  height:1em;
  font-family:"Inter",Arial,sans-serif;
  font-weight:800;
  font-size:clamp(160px,26vw,300px);
  line-height:1;
  pointer-events:none;
}

.fan-letter-outline,
.fan-letter-fill-wrap{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
}

.fan-letter-outline{
  color:transparent;
  -webkit-text-stroke:1.5px rgba(255,252,225,.35);
}

.fan-letter-fill-wrap{
  overflow:hidden;
  /* Filled letter reveals bottom-to-top as --fill goes 0 -> 1. Driven
     directly (no smoothing lag) and on an accelerated curve in
     script.js, so it's fully colored well before the section (and the
     image wheel behind it) finishes scrolling — not right at the end. */
  clip-path: inset(calc((1 - var(--fill, 0)) * 100%) 0 0 0);
}

.fan-letter-fill{
  color:var(--white);
}

@media (max-width:900px){
  .fan-sticky{
    flex-direction:column;
    gap:10px;
  }
  .fan-images{
    width:min(60vw,260px);
    height:min(38vh,320px);
  }
  .fan-letter{ font-size:clamp(120px,34vw,220px); }
}

@media (prefers-reduced-motion: reduce) {
  .fan-track{ transition:none; }
}

.about{
  position:relative;
  min-height:90svh;
  padding:18vh var(--pad);
  border-top:1px solid var(--line);
}

.about-grid{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:10vw;
  margin-top:30px;
}

.about h2{
  margin:0;
  font-size:clamp(50px,8vw,130px);
  line-height:.78;
  letter-spacing:-.08em;
  font-weight:500;
}

.about-grid p{
  max-width:25em;
  margin:0;
  color:var(--muted);
  font-size:clamp(16px,1.35vw,21px);
  line-height:1.1;
}

/* =========================================
   MENU — SPLIT REVEAL
   ========================================= */

.menu {
  position: fixed;
  z-index: 15;
  inset: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;

  background: var(--white);
  color: var(--black);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: scale(1.025);

  transition:
    opacity .55s ease,
    visibility .55s,
    transform .8s var(--ease);
}

.menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}


/* Menu links */

.menu a {
  position: relative;

  display: block;

  color: inherit;
  text-decoration: none;

  font-family: inherit;
  font-size: clamp(34px, 5vw, 76px);
  line-height: .9;
  font-weight: 500;
  letter-spacing: -.055em;
  text-transform: uppercase;

  overflow: hidden;

  clip-path: inset(0 0 0 0);

  opacity: 0;
  transform: translateY(25px);

  transition:
    opacity .5s ease,
    transform .8s var(--ease);
}


/* Opening sequence */

.menu.open a {
  opacity: 1;
  transform: translateY(0);
}


/* stagger */

.menu.open a:nth-child(1) {
  transition-delay: .12s;
}

.menu.open a:nth-child(2) {
  transition-delay: .18s;
}

.menu.open a:nth-child(3) {
  transition-delay: .24s;
}

.menu.open a:nth-child(4) {
  transition-delay: .30s;
}

.menu.open a:nth-child(5) {
  transition-delay: .36s;
}

/* =========================================
   SPLIT CENTER REVEAL
   ========================================= */

.menu a::before,
.menu a::after {
  content: attr(data-text);

  position: absolute;
  left: 0;
  top: 0;

  width: 100%;
  height: 100%;

  overflow: hidden;

  color: inherit;
  background: var(--white);

  pointer-events: none;

  transition:
    transform .75s cubic-bezier(.76,0,.24,1);
}


/* top half */

.menu a::before {
  clip-path: inset(0 0 50% 0);

  transform: translateX(0);
}


/* bottom half */

.menu a::after {
  clip-path: inset(50% 0 0 0);

  transform: translateX(0);
}


/* Move the two halves away from the centre */

.menu.open a::before {
  transform: translateX(-105%);
}

.menu.open a::after {
  transform: translateX(105%);
}





/* Compositor-only split animation: grows from the exact center outward.
   Uses scaleX anchored at each panel's inner edge (screen center) instead of
   clip-path, so the browser only ever composites a transform — no per-frame
   re-rasterization of a full-viewport clip region, which was the source of
   the mid-intro stutter. */
@keyframes introSplitLeft {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes introSplitRight {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Keep the split's small moving elements compositor-only too. */
@keyframes introLineGrow {
  from { transform: translateX(-50%) scaleX(0); }
  to   { transform: translateX(-50%) scaleX(1); }
}
@keyframes introDotPulse {
  from { transform: translate(-50%,-50%) scale(1); }
  to   { transform: translate(-50%,-50%) scale(1.05); }
}

/* ---------- Reference-inspired intro ---------- */

.intro{
  position:fixed;
  z-index:100;
  inset:0;
  background:var(--black);
  overflow:hidden;
  isolation:isolate;
}

.intro-stage{
  position:absolute;
  inset:0;
  background:var(--grey);
  opacity:0;
}

.split{
  position:absolute;
  z-index:2;
  top:0;
  width:50%;
  height:100%;
  background:var(--black);
  will-change:transform;
  backface-visibility:hidden;
}

/* transform-origin sits on the panel's inner edge (screen center), so
   scaleX(0)->scaleX(1) visually grows outward from the middle. */
.split-left{
  left:0;
  transform-origin:100% 50%;
  transform:scaleX(0);
}

.split-right{
  right:0;
  transform-origin:0% 50%;
  transform:scaleX(0);
}

.intro-dot{
  position:absolute;
  z-index:4;
  left:50%;
  top:50%;
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--black);
  transform:translate(-50%,-50%) scale(0);
  will-change:transform;
}

/* Once the intro is complete, remove it completely. */
.intro.done{display:none}

@media(max-width:700px){
  .hero h1{font-size:clamp(56px,18vw,112px)}
  .hero h1 em{margin-left:.5em}
  .about-grid{grid-template-columns:1fr;gap:45px}
  .object{width:78vw;height:78vw}
  .menu a{font-size:18vw}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*:before,*:after{
    animation-duration:.01ms!important;
    transition-duration:.01ms!important;
  }
}

.intro-line{
  position:absolute;
  z-index:4;
  left:50%;
  width:140px;
  height:1px;
  transform:translateX(-50%) scaleX(0);
  transform-origin:50% 50%;
  will-change:transform;
  pointer-events:none;
}
.intro-line-bottom{
  top:calc(50% + 48px);
  background:#333030;
}
.intro-line-top{
  top:calc(50% + 48px);
  background:#8b8989;
}
.object-section {
  position: relative;
  width: 100%;
  height: 160vh; /* Enough extra height for a smooth scroll-scrub, without a long empty stretch after it */
  background: #000;
}

#objectMount {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Force the canvas to actively stretch and stay visible */
#objectMount canvas {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain; 
  z-index: 5;
}
#videoCanvas {
  display: block;
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  background-color: #000; /* If it turns black, the canvas is working but the video path is stuck */
  z-index: 10;
}

/* --- HERO ANIMATION SEQUENCE AFTER INTRO --- */

/* Initially hide text elements before the fade-in triggers */
.hero h1,
.hero-top,
.hero-bottom {
  opacity: 0;
}

/* When the intro finishes, trigger the staggered fading animations */
.intro.done + .site-header,
.intro.done ~ main .hero-top {
  animation: fadeInText 1s cubic-bezier(.25, 1, .5, 1) forwards;
  animation-delay: 1.2s; /* Appears shortly after background returns */
}

.intro.done ~ main .hero h1 {
  animation: fadeInText 1.4s cubic-bezier(.25, 1, .5, 1) forwards;
  animation-delay: 1.5s; /* Staggered slightly later for editorial look */
}

.intro.done ~ main .hero-bottom {
  animation: fadeInText 1s cubic-bezier(.25, 1, .5, 1) forwards;
  animation-delay: 1.8s; /* Final subtle element to slide into focus */
}

/* Keyframes for text entry */
@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(10px); /* Subtle upward motion */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Blackout Flash Overlay Layer */
.flash-overlay {
  position: fixed;
  inset: 0;
  background: #0E100F; /* Matches your background --black */
  z-index: 99;
  pointer-events: none;
  opacity: 0;
}

.flash-overlay.active {
  animation: cinematicFlash 1.6s cubic-bezier(.76, 0, .24, 1) forwards;
}

@keyframes cinematicFlash {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 1; /* Quick dip to full black */
  }
  60% {
    opacity: 1; /* Brief hold in absolute dark */
  }
  100% {
    opacity: 0; /* Fade back out to your radial mesh background */
  }
}
.object-section {
  position: relative;
  width: 100%;
  height: 160vh; 
  background: #000;
  display: flex;
  flex-direction: column; /* Stack layout components sequentially downward */
  align-items: center;
  justify-content: flex-start;
  padding-top: calc(var(--pad) * 2); /* Provides comfortable breathing room at the top */
}

/* --- Centered space mono message styling --- */
.reminder-text {
  font-family: "Space Mono", monospace;
  font-size: 14px; /* Small size matching your header/footer parameters */
  letter-spacing: .08em;
  color: var(--muted); /* Automatically inherits your existing text color variable */
  text-align: center;
  width: 100%;
  max-width: 600px;
  margin-bottom: 24px; /* Separation space between the message and the video mount */
  z-index: 6;
  text-transform: uppercase; /* Optional: forces clean editorial caps */
}

#objectMount {
  position: sticky;
  top: 10vh; /* Drops the sticky container slightly down so it doesn't collide with the message */
  width: 100%;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================
   HERO — THREE CORNER STRIPES
   ======================================== */

.hero {
  position: relative;
  overflow: hidden;
}

.hero-stripes {
  position: absolute;
  right: -2vw;
  bottom: 2vw;
  width: min(38vw, 520px);
  height: min(30vw, 420px);
  pointer-events: none;
  z-index: 1;
}

.hero-stripe {
  position: absolute;
  display: block;
  width: 9vw;
  min-width: 85px;
  max-width: 125px;
  height: 150%;
  transform: rotate(42deg);
  transform-origin: center;
}

/* 1st stripe — solid */
.hero-stripe-1 {
  right: 44%;
  top: -18%;
  background: #fffce1;
}

/* 2nd stripe — very fine dots */
.hero-stripe-2 {
  right: 35%;
  top: -18%;
  background-color: #333030;

  background-image: radial-gradient(
    circle,
    #fffce1 0.15px,
    transparent 0.9px
  );

  background-size: 5px 5px;
}

/* 3rd stripe — different existing-site color */
.hero-stripe-3 {
  right: 26%;
  top: -18%;
  background: #898684;
}
.hero-stripe {
  width: 1.5vw;
  min-width: 15px;
  max-width: 20px;
}


/* =========================================================
   ABSTRACT SCRUB VIDEO — Picture 3 inspired
========================================================= */

.scrub-section{
  position:relative;
  height:260vh;
  background-color:var(--reveal);
  background-image:
    radial-gradient(circle at 50% 46%,rgba(255,252,225,.018) 0%,rgba(255,252,225,0) 52%),
    radial-gradient(circle at 50% 50%,rgba(0,0,0,0) 48%,rgba(0,0,0,.055) 100%);
}

.scrub-sticky{
  position:sticky;
  top:0;
  width:100%;
  height:100svh;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

.scrub-meta,
.scrub-bottom{
  position:absolute;
  left:var(--pad);
  right:var(--pad);
  z-index:8;
  display:grid;
  align-items:center;
  font-size:10px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--muted);
  pointer-events:none;
}

.scrub-meta{
  top:var(--pad);
  grid-template-columns:1fr 1fr;
}

.scrub-meta span:last-child{
  text-align:right;
}

.scrub-bottom{
  bottom:var(--pad);
  grid-template-columns:auto minmax(80px,1fr) auto;
  gap:18px;
}

.scrub-progress{
  position:relative;
  height:1px;
  background:rgba(255,252,225,.13);
  overflow:hidden;
}

.scrub-progress-fill{
  position:absolute;
  inset:0 auto 0 0;
  width:0%;
  background:var(--white);
  transform-origin:left center;
}

.scrub-media{
  position:relative;
  width:min(72vw,900px);
  height:min(72vh,760px);
  display:grid;
  place-items:center;
  overflow:hidden;
}

#scrubVideo{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  background:transparent;
  opacity:0;
  transform:scale(.96);
  will-change:opacity,transform;
}

.scrub-media.is-ready #scrubVideo{
  opacity:1;
  transform:scale(1);
  transition:
    opacity 1s cubic-bezier(.22,1,.36,1),
    transform 1.2s cubic-bezier(.22,1,.36,1);
}

.scrub-fallback{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  pointer-events:none;
  transition:opacity .8s ease;
}

.scrub-fallback span{
  width:clamp(90px,12vw,180px);
  aspect-ratio:1;
  border:1px solid rgba(255,252,225,.5);
  border-radius:50%;
  transform:scale(.72);
  opacity:.12;
  filter:blur(.35px);
}

.scrub-media.is-ready .scrub-fallback{
  opacity:0;
}

@media(max-width:700px){
  .scrub-section{
    height:230vh;
  }

  .scrub-media{
    width:92vw;
    height:65vh;
  }

  .scrub-meta{
    grid-template-columns:1fr;
    gap:5px;
  }

  .scrub-meta span:last-child{
    text-align:left;
  }

  .scrub-bottom{
    grid-template-columns:1fr auto;
    gap:12px;
  }

  .scrub-bottom .scrub-progress{
    grid-column:1 / -1;
    grid-row:2;
  }
}

@media(prefers-reduced-motion:reduce){
  .scrub-section{
    height:100svh;
  }

  .scrub-sticky{
    position:relative;
  }

  #scrubVideo{
    opacity:1;
    transform:none;
  }

  .scrub-progress-fill{
    width:100%;
  }
}


/* ============================================================
   FULLSCREEN WINDOW / DEPTH-OF-FIELD SLIDER
   ============================================================ */

.window-slider {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 680px;
  background: #1e1c20;
  overflow: hidden;
  isolation: isolate;
}

.window-viewport {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 680px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.window-scene {
  --object-a: 0;
  --object-b: 0;
  --mouse-x: 0;
  --mouse-y: 0;
  position: relative;
  width: min(92vw, 1500px);
  height: min(78svh, 900px);
  overflow: hidden;
  perspective: 1400px;
  transform-style: preserve-3d;
  background:
    radial-gradient(circle at 50% 48%, rgba(255,252,225,.055), transparent 40%),
    #1e1c20;
  touch-action: pan-y;
}

.window-frame,
.window-frame-next {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,252,225,.9);
  pointer-events: none;
}

.window-frame { z-index: 20; }

.window-frame::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(255,252,225,.08);
}

.window-frame-next {
  z-index: 30;
  opacity: 0;
  transform: translateX(105%);
  background: #1e1c20;
}

.window-frame-next.enter-right {
  animation: windowEnterRight 650ms cubic-bezier(.76,0,.24,1) forwards;
}
.window-frame-next.enter-left {
  animation: windowEnterLeft 650ms cubic-bezier(.76,0,.24,1) forwards;
}
.window-frame-next.leave {
  animation: windowLeave 620ms cubic-bezier(.76,0,.24,1) forwards;
}

@keyframes windowEnterRight {
  from { opacity: 1; transform: translateX(105%); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes windowEnterLeft {
  from { opacity: 1; transform: translateX(-105%); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes windowLeave {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-3%); }
}

.window-depth {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
  transition: transform 450ms cubic-bezier(.22,1,.36,1),
              filter 450ms cubic-bezier(.22,1,.36,1);
}

.window-depth-back {
  transform: translateZ(-240px)
    translateX(calc((var(--object-b) * 18px) + (var(--mouse-x) * -34px)))
    translateY(calc(var(--mouse-y) * -22px))
    scale(.82);
  filter: blur(15px);
  opacity: .45;
}
.window-depth-mid {
  transform: translateZ(-80px)
    translateX(calc((var(--object-a) * 30px) + (var(--mouse-x) * -64px)))
    translateY(calc(var(--mouse-y) * -42px))
    scale(.92);
  filter: blur(5px);
  opacity: .72;
}
.window-depth-front {
  transform: translateZ(100px)
    translateX(calc((var(--object-a) * -18px) + (var(--mouse-x) * 100px)))
    translateY(calc(var(--mouse-y) * 68px))
    scale(1.04);
  filter: blur(0);
}

.depth-orb,
.depth-shape,
.depth-object {
  position: absolute;
  display: block;
  transform-style: preserve-3d;
  transition: left 900ms cubic-bezier(.22,1,.36,1), top 900ms cubic-bezier(.22,1,.36,1);
}

.depth-orb {
  border-radius: 50%;
  background: rgba(255,252,225,.8);
}

.orb-a { width: 13vw; height: 13vw; max-width: 190px; max-height: 190px; left: 8%; top: 16%; }
.orb-b { width: 8vw; height: 8vw; max-width: 110px; max-height: 110px; right: 17%; top: 24%; }
.orb-c { width: 5vw; height: 5vw; max-width: 70px; max-height: 70px; left: 44%; bottom: 11%; }

.depth-shape {
  border: 1px solid rgba(255,252,225,.75);
  background: rgba(255,252,225,.035);
}

.shape-a {
  width: 22vw; height: 22vw; max-width: 300px; max-height: 300px;
  left: 25%; top: 25%;
  border-radius: 44% 56% 62% 38%;
  transform: rotate(23deg);
}
.shape-b {
  width: 17vw; height: 28vw; max-width: 220px; max-height: 360px;
  right: 23%; top: 12%;
  border-radius: 50% 50% 42% 58%;
  transform: rotate(-26deg);
}
.shape-c {
  width: 12vw; height: 12vw; max-width: 170px; max-height: 170px;
  left: 51%; bottom: 7%;
  border-radius: 35%;
  transform: rotate(38deg);
}

.depth-object {
  border: 1px solid rgba(255,252,225,.9);
  border-radius: 48% 52% 38% 62%;
  background: rgba(255,252,225,.055);
  box-shadow:
    0 0 70px rgba(255,252,225,.045),
    inset 0 0 40px rgba(255,252,225,.035);
}

.object-a {
  width: 25vw; height: 15vw; max-width: 360px; max-height: 220px;
  left: 38%; top: 30%;
  transform: rotate(-14deg) skewX(-7deg);
}
.object-b {
  width: 11vw; height: 11vw; max-width: 160px; max-height: 160px;
  right: 8%; bottom: 8%;
  border-radius: 42%;
  transform: rotate(18deg);
}

.window-copy {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 25px;
  z-index: 25;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: #fffce1;
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  pointer-events: none;
}

.window-title {
  font-size: clamp(18px, 2vw, 28px);
  letter-spacing: .08em;
}

.window-controls {
  position: absolute;
  z-index: 50;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
}

.window-arrow {
  appearance: none;
  border: 0;
  background: none;
  color: #fffce1;
  width: 30px;
  height: 30px;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  opacity: .75;
  transition: opacity .25s ease, transform .25s ease;
}

.window-arrow:hover { opacity: 1; transform: scale(1.15); }

.window-dots { display: flex; gap: 8px; }

.window-dot {
  appearance: none;
  width: 5px; height: 5px;
  padding: 0;
  border: 1px solid #fffce1;
  border-radius: 50%;
  background: transparent;
  opacity: .5;
  cursor: pointer;
  transition: transform .3s ease, opacity .3s ease, background .3s ease;
}

.window-dot.active {
  opacity: 1;
  background: #fffce1;
  transform: scale(1.5);
}

.window-hint {
  position: absolute;
  z-index: 40;
  right: 24px;
  bottom: 27px;
  color: rgba(255,252,225,.48);
  font-size: 8px;
  letter-spacing: .15em;
}

.window-changing .window-depth {
  filter: blur(12px);
  transform: translateZ(-120px) scale(.96);
}

@media (max-width: 700px) {
  .window-slider, .window-viewport { min-height: 620px; }
  .window-scene { width: 94vw; height: 72svh; }
  .window-copy { left: 18px; right: 18px; }
  .window-hint { display: none; }
  .object-a { width: 42vw; height: 27vw; }
  .shape-a { width: 30vw; height: 30vw; }
  .shape-b { width: 24vw; height: 38vw; }
}

@media (prefers-reduced-motion: reduce) {
  .window-depth, .window-frame-next, .window-arrow, .window-dot,
  .depth-orb, .depth-shape, .depth-object {
    transition: none !important;
    animation: none !important;
  }
}


/* =========================================================
   SCROLL / MENU INTERACTION FIX
   The menu button only responds to primary-button activation.
   Wheel and middle-button scrolling never open the menu.
========================================================= */
.menu-toggle{
  position:relative;
  z-index:31;
  cursor:pointer;
  touch-action:manipulation;
  -webkit-user-select:none;
  user-select:none;
}
.menu-toggle:focus-visible{
  outline:1px solid currentColor;
  outline-offset:6px;
}
.menu-toggle::-moz-focus-inner{border:0}

/* Keep the page itself scrollable; only an open menu locks it via JS. */
html,body{overscroll-behavior-x:none;}


/* video canvas: vertical idle motion only */
#videoCanvas{
  rotate: none !important;
}


/* Slightly wider video canvas — height unchanged */
#videoCanvas{
  width: 105%;
  max-width: none;
}


/* Keep the video canvas completely stationary */
#videoCanvas{
  transform: translateY(0) !important;
}


/* Video credits: reveal on hover, tap-to-toggle on touch devices.
   Anchored to #objectMount (which matches the viewport width) at the
   site's standard left padding — not to .video-canvas-wrap, which is
   deliberately 105vw wide and centered, so its own left edge sits
   off-screen and is the wrong thing to align text against. */
.video-canvas-wrap{
  position:relative;
  width:105vw;
  height:100vh;
  flex:0 0 auto;
}

.video-credit{
  position:absolute;
  top:calc(100% + 3px);
  left:var(--pad);
  font-size:10px;
  line-height:1;
  letter-spacing:.1em;
  color:var(--muted);
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease;
}

#objectMount:hover .video-credit,
.video-credit.is-active{
  opacity:1;
}

.video-canvas-wrap #videoCanvas{
  width:100%;
  height:100%;
}

@media (hover:none){
  .video-credit{
    opacity:0;
  }
}


/* =========================================
   SMALL THINGS MOVE
   ========================================= */

.small-things-wrap {
  position: relative;
  width: 100%;
  margin-top: clamp(30px, 6vw, 90px);
  color: var(--white);
  z-index: 3;
}

.small-things-line {
  width: max-content;
  overflow: hidden; /* mask for the slide-up reveal below */
}

.small-things-line h1 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(52px, 9vw, 150px);
  line-height: .82;
  font-weight: 500;
  letter-spacing: -.065em;
  text-transform: uppercase;

  /* Each line sits translated down inside its own mask until
     .small-things-wrap picks up .is-visible (see script.js), then
     slides up into place — staggered per line via transition-delay. */
  transform: translateY(115%);
  opacity: 0;
  transition: transform 1s cubic-bezier(.16,1,.3,1), opacity .8s ease;
}

.small-things-line:nth-child(2) {
  margin-left: 0;
}

.small-things-line:nth-child(3) {
  margin-left: clamp(25px, 8vw, 130px);
}

.small-things-wrap.is-visible .small-things-line:nth-child(1) h1 {
  transition-delay: 0s;
}
.small-things-wrap.is-visible .small-things-line:nth-child(2) h1 {
  transition-delay: .12s;
}
.small-things-wrap.is-visible .small-things-line:nth-child(3) h1 {
  transition-delay: .24s;
}

.small-things-wrap.is-visible .small-things-line h1 {
  transform: translateY(0);
  opacity: 1;
}

.small-things-sub {
  display: flex;
  justify-content: space-between;
  width: min(100%, 520px);
  margin-top: clamp(25px, 3vw, 45px);

  color: var(--muted);
  font-family: inherit;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;

  opacity: 0;
  transform: translateY(10px);
  transition: opacity .8s ease, transform .8s ease;
  transition-delay: .4s;
}

.small-things-wrap.is-visible .small-things-sub {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .small-things-line h1,
  .small-things-sub {
    transition: none;
    transform: none;
    opacity: 1;
  }
}


/* The site footer is now a normal in-flow element (see the .site-footer
   rule near the top of this file), so it can no longer overlap sticky
   section content further up the page — the safe-lane padding, the
   protective gradient, and the shifted .scrub-bottom position that used
   to compensate for a permanently-fixed footer are no longer needed. */


/* Intro object: filled geometric diamond replacing the former dot/circle. */
.intro-diamond{
  display:block;
  width:100%;
  height:100%;
  overflow:visible;
  fill:currentColor;
  stroke:none;
  transform:none;
  transform-origin:center;
}


/* Simple section footer: text on both sides with one static line between. */
.scrub-bottom{
  position:absolute;
  left:var(--pad);
  right:var(--pad);
  bottom:var(--pad);
  z-index:30;
  display:flex;
  align-items:center;
  gap:12px;
  pointer-events:none;
  mix-blend-mode:difference;
  color:#fffce1;
  font-size:10px;
  letter-spacing:.1em;
  line-height:1;
}

.scrub-bottom > span:first-child{
  flex:0 0 auto;
}

.scrub-progress{
  position:relative;
  flex:1 1 auto;
  height:1px;
  min-width:40px;
  background:currentColor;
  opacity:.55;
}


/* Give every section that carries a meta bar its own named view-timeline,
   so the fade below is driven by that whole section entering the viewport
   — a scroll distance long enough to actually see happen — rather than by
   the tiny label itself, which is only ~20px tall and would "fade" in an
   imperceptible instant if used as its own timeline subject. */
.object-section,
.scrub-section,
.line-section,
.about,
.window-slider,
.fan-section{
  view-timeline-name: --section-enter;
  view-timeline-axis: block;
}

/* Section top metadata — fades in as its section scrolls into view. */
.scrub-meta{
  position:absolute;
  top:var(--pad);
  left:var(--pad);
  right:var(--pad);
  z-index:30;
  display:flex;
  align-items:center;
  justify-content:space-between;
  pointer-events:none;
  color:#fffce1;
  font-size:10px;
  letter-spacing:.1em;
  line-height:1;
  mix-blend-mode:difference;

  opacity:0;
  animation:metaFadeIn linear both;
  animation-timeline:--section-enter;
  /* Fade completes over the first 40% of the section's own height entering
     from below — long enough to read as a fade, done well before the
     section is centered in view. */
  animation-range:entry 0% entry 40%;
}

@keyframes metaFadeIn{
  to{ opacity:1; }
}

@supports not (animation-timeline: view()) {
  .scrub-meta{
    opacity:1;
    animation:none;
  }
}

.scrub-meta span{
  display:block;
  color:inherit;
  text-decoration:none;
}


/* Section metadata / fixed-header stacking guard */
.site-header{
  z-index:40;
}

.scrub-meta{
  z-index:30;
}


/* Restored small hero eyebrow */
.hero .eyebrow{
  position:absolute;
  top:var(--pad);
  left:var(--pad);
  z-index:41;
  margin:0;
  color:#fffce1;
  font-size:10px;
  line-height:1;
  letter-spacing:.1em;
  white-space:nowrap;
  pointer-events:none;
  mix-blend-mode:difference;
}


/* Intro object: diamond throughout — never turns into a circle */
.intro-dot{
  width:18px !important;
  height:18px !important;
  border-radius:0 !important;
  background:transparent !important;
  overflow:visible;
  z-index:6;
}
.intro-diamond{
  display:block;
  width:100%;
  height:100%;
  overflow:visible;
}
.intro-diamond rect{
  fill:var(--black);
  stroke:none;
}

/* Closed menu is completely non-interactive; only the MENU button can open it. */
.menu{
  pointer-events:none;
}
.menu.open{
  pointer-events:auto;
}
.site-header{
  pointer-events:none;
  z-index:40;
}
.site-header .menu-toggle,
.site-header .brand{
  pointer-events:auto;
}


/* =========================================================
   MENU -> SECTION TRANSITION
   Split closes from the exact center, changes section while covered,
   then opens back outward from the center.
========================================================= */
.page-transition{
  position:fixed;
  inset:0;
  z-index:90;
  pointer-events:none;
  overflow:hidden;
  visibility:hidden;
}

.page-transition-left,
.page-transition-right{
  position:absolute;
  top:0;
  width:50%;
  height:100%;
  background:var(--reveal);
  will-change:transform;
  backface-visibility:hidden;
}

.page-transition-left{
  left:0;
  transform:scaleX(0);
  transform-origin:100% 50%;
}

.page-transition-right{
  right:0;
  transform:scaleX(0);
  transform-origin:0 50%;
}

.page-transition.is-closing{
  visibility:visible;
  pointer-events:auto;
}

.page-transition.is-closing .page-transition-left,
.page-transition.is-closing .page-transition-right{
  animation:sectionTransitionClose .7s cubic-bezier(.76,0,.24,1) forwards;
}

.page-transition.is-opening{
  visibility:visible;
}

.page-transition.is-opening .page-transition-left,
.page-transition.is-opening .page-transition-right{
  animation:sectionTransitionOpen .7s cubic-bezier(.76,0,.24,1) forwards;
}

@keyframes sectionTransitionClose{
  from{transform:scaleX(0)}
  to{transform:scaleX(1)}
}

@keyframes sectionTransitionOpen{
  from{transform:scaleX(1)}
  to{transform:scaleX(0)}
}
