/* ============================================================
   Élevé — A Ballet Studio for Every Dancer
   Warm candlelit dark · Cormorant Garamond + Jost
   ============================================================ */

:root{
  --night:#16120e;
  --night-2:#1f1913;
  --umber:#2c241c;
  --haze:#c8b194;          /* window light */
  --haze-bright:#e9dabf;
  --ivory:#f2ecdf;
  --ivory-dim:#cfc5b4;
  --ivory-faint:#9c9282;
  --satin:#d9b9a6;         /* pointe-shoe satin */
  --line:rgba(214,197,168,.22);

  --serif:"Cormorant Garamond",Georgia,serif;
  --sans:"Jost",system-ui,sans-serif;
  --ease:cubic-bezier(.22,.61,.36,1);
}

*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:auto;}
body{
  font-family:var(--sans);
  font-weight:300;
  background:var(--night);
  color:var(--ivory);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
::selection{background:var(--haze);color:var(--night);}
img,video{display:block;max-width:100%;}

/* ---------- atmosphere layers (fixed) ---------- */
.grain{
  position:fixed;inset:-40%;z-index:7;pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity:.06;
  mix-blend-mode:overlay;
}
.dust{
  position:fixed;inset:0;z-index:6;pointer-events:none;
  width:100%;height:100%;
}
.ribbon{
  position:fixed;inset:0;z-index:8;pointer-events:none;
  width:100%;height:100%;
  mix-blend-mode:screen;
}

/* ---------- barre rail (scroll progress) ---------- */
.rail{
  position:fixed;right:clamp(14px,2.4vw,34px);top:50%;
  transform:translateY(-50%);
  height:34vh;width:1px;z-index:9;pointer-events:none;
}
.rail__line{
  position:absolute;inset:0;
  background:linear-gradient(180deg,transparent,var(--line) 12%,var(--line) 88%,transparent);
}
.rail__dot{
  position:absolute;left:50%;top:0;
  width:5px;height:5px;border-radius:50%;
  transform:translate(-50%,-50%);
  background:var(--haze-bright);
  box-shadow:0 0 10px rgba(233,218,191,.8);
}
@media (max-width:880px){ .rail{display:none;} }

/* ---------- topbar ---------- */
.topbar{
  position:fixed;inset:0 0 auto 0;z-index:10;
  display:flex;align-items:center;justify-content:space-between;
  padding:clamp(16px,2.6vh,26px) clamp(20px,4vw,48px);
  mix-blend-mode:difference;
}
.topbar__mark{
  display:inline-flex;align-items:center;gap:10px;
  color:var(--ivory);text-decoration:none;
  font-family:var(--serif);font-weight:500;
  font-size:1.3rem;letter-spacing:.06em;
}
.topbar__mark svg{opacity:.85;}
.topbar__edition{
  font-size:10px;letter-spacing:.3em;text-transform:uppercase;
  color:var(--ivory-dim);font-weight:300;
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position:relative;
  height:100vh;
  height:100svh;
}
.hero__stage{
  position:relative;
  height:100vh;
  height:100svh;
  overflow:hidden;
}
.hero__media{position:absolute;inset:0;will-change:transform;}
/* CSS stand-in scene — shows until hero.png / hero.mp4 exist */
.hero__scene{
  position:absolute;inset:0;
  background:
    radial-gradient(58% 88% at 8% 16%, rgba(233,218,191,.32), transparent 62%),
    linear-gradient(112deg, rgba(233,218,191,.12) 0%, transparent 42%),
    radial-gradient(120% 80% at 72% 112%, rgba(124,98,70,.38), transparent 70%),
    linear-gradient(180deg,#241d16 0%, #16120e 72%);
}
.hero__poster,
.hero__video{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:center;
}
.hero__video{opacity:0;transition:opacity .9s var(--ease);}
.hero__video.is-ready{opacity:1;}
.hero__rays{
  position:absolute;inset:-12%;pointer-events:none;
  background:
    linear-gradient(106deg, transparent 10%, rgba(236,222,196,.10) 17%, transparent 27%,
                    rgba(236,222,196,.06) 35%, transparent 44%);
  mix-blend-mode:screen;
  animation:rays 13s ease-in-out infinite alternate;
}
@keyframes rays{
  from{opacity:.55;transform:translateX(-1.5%);}
  to  {opacity:1;  transform:translateX(1.5%);}
}
.hero__veil{
  position:absolute;inset:0;pointer-events:none;
  background:
    linear-gradient(90deg, rgba(13,10,8,.55) 0%, rgba(13,10,8,.22) 38%, transparent 64%),
    linear-gradient(180deg, rgba(13,10,8,.34), transparent 28%, transparent 68%, rgba(13,10,8,.5));
}

/* hero copy — the mock’s text, as HTML */
.hero__inner{
  position:absolute;z-index:3;
  left:clamp(22px,9vw,12.5vw);
  top:50%;transform:translateY(-50%);
  max-width:620px;
}
.hero__eyebrow{
  font-size:clamp(11px,1.05vw,14px);
  letter-spacing:.42em;text-transform:uppercase;
  color:var(--ivory-dim);font-weight:300;
  margin-bottom:1.1em;
  text-shadow:0 1px 3px rgba(13,10,8,.55),0 2px 18px rgba(13,10,8,.45);
}
.hero__title{
  font-family:var(--serif);
  font-weight:400;
  font-size:clamp(3.1rem,7.6vw,6.4rem);
  line-height:1.04;
  letter-spacing:.005em;
  color:var(--ivory);
  white-space:nowrap;
  text-shadow:0 2px 6px rgba(13,10,8,.45),0 6px 34px rgba(13,10,8,.4);
}
.hero__title .mask{display:inline-block;overflow:hidden;vertical-align:bottom;}
.hero__title .word{display:inline-block;padding-right:.22em;}
.hero__orn{
  display:flex;align-items:center;gap:14px;
  color:var(--ivory-dim);
  margin:1.6em 0 1.5em;
  max-width:420px;
}
.hero__orn-line{flex:1;height:1px;background:var(--line);}
.hero__sub{
  font-size:clamp(11px,1.1vw,14px);
  letter-spacing:.34em;text-transform:uppercase;
  color:var(--ivory-dim);font-weight:300;
  text-shadow:0 1px 3px rgba(13,10,8,.55),0 2px 18px rgba(13,10,8,.45);
}

/* act 2 — mid-scrub line (anchored by left/right so it stays
   centred at every width; absolute shrink-to-fit + translateX
   drifted off-screen on narrow viewports) */
.hero__inner--act2{
  left:0;right:0;top:54%;
  transform:translateY(-50%);
  text-align:center;
  opacity:0;
  max-width:none;
  padding:0 24px;
}
.hero__line2{
  font-family:var(--serif);
  font-weight:300;
  font-size:clamp(1.7rem,3.6vw,3rem);
  color:var(--ivory);
  letter-spacing:.02em;
  text-shadow:0 2px 6px rgba(13,10,8,.55),0 4px 28px rgba(13,10,8,.5);
}
.hero__line2 em{font-style:italic;color:var(--haze-bright);}

.scrollcue{
  position:absolute;z-index:3;
  left:50%;bottom:34px;transform:translateX(-50%);
  display:flex;flex-direction:column;align-items:center;gap:12px;
  font-size:10px;letter-spacing:.34em;text-transform:uppercase;
  color:var(--ivory-dim);
}
.scrollcue__line{
  width:1px;height:44px;
  background:linear-gradient(180deg,var(--ivory-dim),transparent);
  animation:cue 2.4s var(--ease) infinite;
  transform-origin:top;
}
@keyframes cue{
  0%{transform:scaleY(0);}
  45%{transform:scaleY(1);}
  100%{transform:scaleY(1);opacity:0;}
}

/* ============================================================
   SHARED TYPE
   ============================================================ */
.eyebrow{
  font-size:11px;letter-spacing:.38em;text-transform:uppercase;
  color:var(--haze);font-weight:300;
  margin-bottom:1.4em;
}
.display{
  font-family:var(--serif);
  font-weight:400;
  font-size:clamp(2.1rem,4.6vw,3.9rem);
  line-height:1.12;
  letter-spacing:.005em;
  color:var(--ivory);
}
.lede{
  margin-top:1.5em;
  font-size:clamp(1rem,1.3vw,1.15rem);
  color:var(--ivory-dim);
  max-width:54ch;
  line-height:1.75;
}
[data-reveal]{opacity:0;transform:translateY(26px);}
.no-motion [data-reveal],
.no-motion [data-intro],
.no-motion .hero__title .word{opacity:1 !important;transform:none !important;}

/* big drifting background words — the back layer of the depth sandwich */
.bigword{
  position:absolute;z-index:0;pointer-events:none;
  top:14%;left:-2%;
  font-family:var(--serif);font-style:italic;font-weight:300;
  font-size:clamp(7rem,22vw,19rem);
  line-height:1;
  color:transparent;
  -webkit-text-stroke:1px rgba(214,197,168,.10);
  user-select:none;
  will-change:transform;
}
.bigword--right{left:auto;right:-4%;top:8%;}

.facts{
  margin-top:2.6em;
  display:flex;gap:clamp(26px,4vw,56px);
  list-style:none;
}
.facts li{display:flex;flex-direction:column;gap:4px;}
.facts b{
  font-family:var(--serif);font-weight:500;
  font-size:1.5rem;color:var(--haze-bright);
  letter-spacing:.02em;
}
.facts span{
  font-size:10px;letter-spacing:.28em;text-transform:uppercase;
  color:var(--ivory-faint);
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto{
  position:relative;
  padding:clamp(110px,22vh,200px) clamp(22px,9vw,12.5vw);
  overflow:hidden;
}
.manifesto__inner{position:relative;z-index:2;max-width:760px;}

/* ============================================================
   TERMS MARQUEE
   ============================================================ */
.terms{
  overflow:hidden;
  padding:clamp(28px,5vh,48px) 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.terms__track{
  display:flex;align-items:center;gap:34px;
  width:max-content;
  white-space:nowrap;
  will-change:transform;
}
.terms__track span{
  font-family:var(--serif);font-style:italic;font-weight:300;
  font-size:clamp(1.5rem,2.6vw,2.3rem);
  color:transparent;
  -webkit-text-stroke:1px rgba(233,218,191,.42);
}
.terms__track i{
  font-style:normal;color:var(--haze);
  font-size:1.1rem;
}

/* ============================================================
   POSITIONS
   ============================================================ */
.positions{position:relative;}
.positions__pin{
  position:relative;
  height:100vh;
  height:100svh;
  display:flex;flex-direction:column;
  padding:clamp(90px,14vh,140px) clamp(22px,9vw,12.5vw) clamp(40px,7vh,80px);
  overflow:hidden;
}
.positions__head{position:relative;z-index:2;}
.positions__stage{
  position:relative;z-index:2;flex:1;
  margin-top:clamp(20px,4vh,44px);
}

/* cinematic atmosphere: a raking window beam, low fog catching it,
   a spotlight pool behind the numeral, and a vignette to close the
   frame — the stage the positions stand on */
.positions__atmo{
  position:absolute;inset:0;z-index:0;pointer-events:none;
}
.atmo__beam{
  position:absolute;top:-25%;
  height:160%;
  mix-blend-mode:screen;
  filter:blur(18px);
  background:linear-gradient(90deg,
    transparent,
    rgba(233,218,191,.06) 32%,
    rgba(233,218,191,.13) 50%,
    rgba(233,218,191,.06) 68%,
    transparent);
  animation:beam-breathe 11s ease-in-out infinite alternate;
}
.atmo__beam--1{left:6%;width:34%;transform:rotate(19deg);}
.atmo__beam--2{
  left:34%;width:15%;
  transform:rotate(24deg);
  opacity:.55;
  animation-duration:16s;
  animation-delay:-6s;
}
@keyframes beam-breathe{
  from{opacity:.5;}
  to{opacity:1;}
}
.atmo__fog{
  position:absolute;left:-12%;
  width:124%;
  mix-blend-mode:screen;
  filter:blur(36px);
  background:
    radial-gradient(46% 62% at 30% 62%, rgba(233,218,191,.11), transparent 72%),
    radial-gradient(40% 56% at 72% 38%, rgba(200,177,148,.09), transparent 72%);
  animation:fog-drift 38s ease-in-out infinite alternate;
}
.atmo__fog--1{bottom:-8%;height:48%;}
.atmo__fog--2{
  bottom:7%;height:36%;opacity:.65;
  animation-duration:54s;animation-delay:-20s;
}
.atmo__fog--3{
  bottom:22%;height:30%;opacity:.4;
  animation-duration:66s;animation-delay:-44s;
}
@keyframes fog-drift{
  from{transform:translateX(-4%) scale(1);}
  to{transform:translateX(5%) scale(1.06);}
}
.atmo__spot{
  position:absolute;left:50%;top:48%;
  width:min(58vw,820px);height:min(58vw,820px);
  transform:translate(-50%,-50%);
  background:radial-gradient(50% 42% at 50% 50%,
    rgba(233,218,191,.10),
    rgba(233,218,191,.035) 46%,
    transparent 70%);
}
.atmo__floor{
  position:absolute;left:50%;top:60%;
  width:min(44vw,620px);height:130px;
  transform:translateX(-50%);
  filter:blur(8px);
  background:radial-gradient(50% 50% at 50% 50%,
    rgba(233,218,191,.14), transparent 70%);
}
.atmo__vignette{
  position:absolute;inset:0;
  background:radial-gradient(115% 88% at 50% 42%,
    transparent 52%, rgba(10,8,6,.62) 100%);
}
@media (prefers-reduced-motion: reduce){
  .atmo__beam,.atmo__fog{animation:none;}
}
.pos{
  position:absolute;inset:0;
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  text-align:center;
}
.pos__numeral{
  position:absolute;left:50%;top:46%;
  transform:translate(-50%,-50%);
  font-family:var(--serif);font-weight:300;
  font-size:clamp(11rem,30vh,20rem);
  line-height:1;
  color:rgba(233,218,191,.07);
  user-select:none;
}
.pos__feet{
  position:relative;z-index:2;
  width:clamp(220px,30vw,340px);height:auto;
}
.pos__feet .foot{
  fill:none;
  stroke:var(--haze-bright);
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
  filter:drop-shadow(0 0 6px rgba(233,218,191,.25));
}
.pos__cap{
  position:relative;z-index:2;
  margin-top:clamp(18px,3.4vh,30px);
  display:flex;flex-direction:column;gap:8px;
}
.pos__cap b{
  font-family:var(--serif);font-weight:500;font-style:italic;
  font-size:1.6rem;letter-spacing:.04em;
  color:var(--ivory);
}
.pos__cap span{
  font-size:.95rem;color:var(--ivory-dim);
  max-width:40ch;
}

/* mobile / static: positions flow vertically instead of pinning.
   The pin-framed beams/fog/spotlights are sized for one viewport,
   so they're dropped — and every figure carries its own stage
   light instead: a spotlight pool behind it and a floor glow
   beneath the feet */
@media (max-width:880px){
  .positions__pin{height:auto;display:block;}
  .positions__stage{margin-top:40px;}
  .pos{position:relative;inset:auto;min-height:62vh;}
  .atmo__beam,.atmo__spot,.atmo__floor,.atmo__fog{display:none;}
  .pos::before{
    content:"";position:absolute;z-index:0;pointer-events:none;
    left:50%;top:46%;
    width:min(120vw,560px);height:min(120vw,560px);
    transform:translate(-50%,-50%);
    background:radial-gradient(50% 42% at 50% 50%,
      rgba(233,218,191,.11),
      rgba(233,218,191,.04) 46%,
      transparent 70%);
  }
  .pos::after{
    content:"";position:absolute;z-index:0;pointer-events:none;
    left:50%;top:56%;
    width:min(82vw,440px);height:130px;
    transform:translateX(-50%);
    filter:blur(10px);
    background:radial-gradient(50% 50% at 50% 50%,
      rgba(233,218,191,.15), transparent 70%);
  }
}
.static .positions__pin{height:auto;display:block;}
.static .pos{position:relative;inset:auto;padding:60px 0;}
.static .atmo__beam,.static .atmo__spot,.static .atmo__floor,.static .atmo__fog{display:none;}

/* ============================================================
   PROGRAMS
   ============================================================ */
.programs{
  position:relative;overflow:hidden;
  padding:clamp(110px,20vh,190px) clamp(22px,9vw,12.5vw);
  background:linear-gradient(180deg,var(--night) 0%,var(--night-2) 50%,var(--night) 100%);
}
.programs__inner{position:relative;z-index:2;}
.programs__grid{
  margin-top:clamp(44px,8vh,80px);
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:clamp(20px,2.6vw,34px);
}
.program{
  position:relative;
  border:1px solid var(--line);
  padding:clamp(26px,3vw,40px);
  background:rgba(22,18,14,.5);
  backdrop-filter:blur(2px);
  transition:transform .6s var(--ease),border-color .6s var(--ease);
}
.program:hover{
  transform:translateY(-6px);
  border-color:rgba(233,218,191,.4);
}
.program__no{
  font-family:var(--serif);font-style:italic;font-weight:300;
  font-size:2.2rem;color:var(--haze);
  display:block;margin-bottom:14px;
}
.program h3{
  font-family:var(--serif);font-weight:500;
  font-size:1.55rem;letter-spacing:.02em;
  color:var(--ivory);
}
.program__ages{
  margin:6px 0 16px;
  font-size:10px;letter-spacing:.3em;text-transform:uppercase;
  color:var(--haze);
}
.program p{color:var(--ivory-dim);font-size:.98rem;line-height:1.7;}
.program__cue{
  display:block;margin-top:22px;padding-top:16px;
  border-top:1px solid var(--line);
  font-size:11px;letter-spacing:.18em;text-transform:uppercase;
  color:var(--ivory-faint);
}

/* ============================================================
   FACULTY
   ============================================================ */
.faculty{
  position:relative;overflow:hidden;
  min-height:100vh;
  min-height:100svh;
  display:flex;flex-direction:column;justify-content:space-between;
  gap:clamp(30px,6vh,60px);
  padding:clamp(90px,14vh,150px) clamp(22px,9vw,12.5vw) clamp(46px,8vh,84px);
}
.faculty__media{position:absolute;inset:0;z-index:0;will-change:transform;}
.faculty__media img{
  width:100%;height:100%;
  object-fit:cover;object-position:center 24%;
}
/* melts the photo into the night above and below, and pools shadow
   at the foot of the frame for the name columns */
.faculty__veil{
  position:absolute;inset:0;z-index:1;
  background:
    linear-gradient(180deg, var(--night) 0%, rgba(22,18,14,.3) 22%,
      transparent 46%, rgba(22,18,14,.5) 74%, var(--night) 100%),
    radial-gradient(120% 70% at 50% 110%, rgba(13,10,8,.55), transparent 62%);
}
.faculty__head{position:relative;z-index:2;}
.faculty__head .display{
  text-shadow:0 2px 6px rgba(13,10,8,.5),0 6px 30px rgba(13,10,8,.45);
}
/* one name column under each figure in the photograph */
.faculty__names{
  position:relative;z-index:2;
  list-style:none;
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:clamp(18px,3vw,46px);
}
.faculty__names li{
  border-top:1px solid rgba(233,218,191,.34);
  padding-top:16px;
  display:flex;flex-direction:column;gap:7px;
}
.faculty__names b{
  font-family:var(--serif);font-weight:500;
  font-size:clamp(1.3rem,1.8vw,1.7rem);letter-spacing:.02em;
  color:var(--ivory);
  text-shadow:0 1px 4px rgba(13,10,8,.6);
}
.faculty__names i{
  font-style:normal;
  font-size:10px;letter-spacing:.28em;text-transform:uppercase;
  color:var(--haze);
}
.faculty__names span{
  color:var(--ivory-dim);font-size:.92rem;line-height:1.6;
  text-shadow:0 1px 4px rgba(13,10,8,.6);
}
/* mobile: the portrait crop would cut the outer figures, so the
   photo becomes its own frame with the names stacked beneath it */
@media (max-width:880px){
  .faculty{min-height:0;justify-content:flex-start;gap:0;}
  .faculty__head{order:1;}
  .faculty__media{order:2;position:relative;inset:auto;margin-top:34px;}
  .faculty__media img{height:auto;aspect-ratio:3/2;object-position:center;}
  .faculty__veil{display:none;}
  .faculty__names{order:3;grid-template-columns:1fr;margin-top:30px;gap:24px;}
}

/* ============================================================
   CLOSE
   ============================================================ */
.close{
  position:relative;overflow:hidden;
  min-height:88vh;
  display:flex;align-items:center;justify-content:center;
  text-align:center;
  padding:clamp(110px,18vh,170px) clamp(22px,8vw,60px);
}
.close__scene{
  position:absolute;inset:0;
  background:
    radial-gradient(60% 70% at 50% 110%, rgba(200,177,148,.20), transparent 70%),
    radial-gradient(50% 60% at 84% 0%, rgba(233,218,191,.10), transparent 65%),
    linear-gradient(180deg,var(--night) 0%, #1d1712 100%);
}
.close__inner{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;}
.close__title{
  font-family:var(--serif);font-weight:400;
  font-size:clamp(2.6rem,6.4vw,5.2rem);
  line-height:1.06;
  color:var(--ivory);
}
.close__sub{
  margin-top:1.4em;
  color:var(--ivory-dim);
  font-size:clamp(1rem,1.3vw,1.15rem);
  max-width:44ch;
  line-height:1.75;
}
.cta{
  margin-top:2.6em;
  display:inline-flex;align-items:center;gap:12px;
  padding:16px 34px;
  border:1px solid rgba(233,218,191,.45);
  color:var(--haze-bright);text-decoration:none;
  font-size:12px;letter-spacing:.26em;text-transform:uppercase;
  transition:background .5s var(--ease),color .5s var(--ease),border-color .5s var(--ease);
}
.cta:hover{
  background:var(--haze-bright);
  border-color:var(--haze-bright);
  color:var(--night);
}
.cta svg{transition:transform .4s var(--ease);}
.cta:hover svg{transform:translateX(5px);}
.close__fine{
  margin-top:4em;
  font-size:11px;letter-spacing:.08em;
  color:var(--ivory-faint);
}
.close__fine a{color:var(--ivory-dim);}

/* ============================================================
   STATIC / REDUCED-MOTION
   ============================================================ */
.no-motion .scrollcue,
.no-motion .hero__inner--act2{display:none;}
.no-motion .hero__rays{animation:none;}
.no-motion .dust,
.no-motion .ribbon{display:none;}

/* ============================================================
   SMALL SCREENS
   ============================================================ */
@media (max-width:640px){
  .hero__title{white-space:normal;}
  .hero__inner{left:22px;right:22px;}
  /* the portrait crop puts the bright dancer dead-centre, so the
     copy moves to the floor under a heavy bottom scrim */
  .hero__veil{
    background:
      linear-gradient(180deg, rgba(13,10,8,.42), transparent 26%,
        transparent 44%, rgba(13,10,8,.55) 70%, rgba(13,10,8,.88) 100%),
      linear-gradient(90deg, rgba(13,10,8,.28), transparent 62%);
  }
  .hero__inner--act1{top:auto;bottom:118px;transform:none;}
  .hero__orn{margin:1.2em 0 1.1em;}
  .hero__inner--act2{top:auto;bottom:20vh;transform:none;}
  .facts{flex-wrap:wrap;}
  .faculty__list b{min-width:0;width:100%;}
  .topbar__edition{display:none;}
}
