/* ============================================================
   ELLINA — AI Creative Direction
   Dark luxury editorial. Cormorant + EB Garamond + Jost.
   ============================================================ */

:root{
  /* palette */
  --ink:        #0b0a09;
  --ink-2:      #100e0c;
  --char:       #16120f;
  --cream:      #ece4d8;
  --cream-2:    rgba(236,228,216,0.64);
  --cream-3:    rgba(236,228,216,0.40);
  --cream-4:    rgba(236,228,216,0.22);
  --mauve:      #cba7a6;
  --mauve-deep: #8c6266;
  --rose:       #d9b6b1;
  --line:       rgba(236,228,216,0.12);
  --line-2:     rgba(236,228,216,0.06);

  /* type */
  --display: "Cormorant Garamond", Georgia, serif;
  --body:    "EB Garamond", Georgia, serif;
  --ui:      "Jost", "Helvetica Neue", sans-serif;

  /* metrics */
  /* past 1680px of viewport the second term wins: side gutters grow and the
     content column stays centered instead of stretching across big monitors */
  --gutter: max(clamp(1.4rem, 5.5vw, 6.5rem), calc((100vw - 1680px) / 2));
  --mg: clamp(0.55rem, 1vw, 1rem);   /* gallery gap */
  --ease: cubic-bezier(.21,.7,.21,1);
}

/* ---------- reset ---------- */
*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; overflow-x:clip; background:#0b0a09; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }
body{
  font-family:var(--body);
  background:var(--ink);
  color:var(--cream);
  line-height:1.5;
  font-size:clamp(1rem,0.55vw + 0.9rem,1.18rem);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img,video{ display:block; max-width:100%; }
/* nothing may widen the page itself: side-overflow (coverflow wings, hero
   florals) is clipped here so iOS never gets a horizontally draggable body */
main{ overflow-x:clip; }
a{ color:inherit; text-decoration:none; touch-action:manipulation; }
button{ font:inherit; color:inherit; background:none; border:none; cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
::selection{ background:var(--mauve-deep); color:#fff; }

/* ---------- atmosphere ---------- */
/* grain sits on its OWN compositor layer (no blend) so it never repaints while
   the page scrolls — blend-mode here was the main cause of scroll jank */
.grain{
  position:fixed; inset:-12%; z-index:9000; pointer-events:none;
  opacity:.035; transform:translateZ(0); contain:strict;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation:grain 7s steps(6) infinite;
}
@keyframes grain{
  0%{transform:translate(0,0)} 20%{transform:translate(-4%,3%)}
  40%{transform:translate(3%,-5%)} 60%{transform:translate(-2%,4%)}
  80%{transform:translate(5%,2%)} 100%{transform:translate(0,0)}
}
/* phones: the animated grain layer competes with scrolling for the
   compositor; freeze it (still textured, just static) */
@media (hover:none) and (pointer:coarse){
  .grain{ animation:none; }
}
/* the vignette runs 30% PAST the bottom of the viewport: iOS 26 Safari's
   Liquid Glass toolbar is transparent and shows the page behind it, so a
   fixed layer that stops at the screen edge leaves an untinted strip under
   the glass. The gradient's vertical radius (77% of the now-130%-tall box)
   keeps the on-screen look identical; past its last stop the color clamps,
   so everything below the screen edge is filled with the same max tint. */
.vignette{
  position:fixed; top:0; left:0; right:0; bottom:-30%;
  z-index:8000; pointer-events:none;
  background:radial-gradient(130% 77% at 50% 0%, transparent 55%, rgba(0,0,0,.55) 100%);
}

/* ---------- floating cursor tag ---------- */
.cursor-tag{
  position:fixed; top:0; left:0; z-index:9500; pointer-events:none;
  opacity:0; transition:opacity .35s var(--ease);
  mix-blend-mode:difference; will-change:transform;
}
.cursor-tag span{
  font-family:var(--ui); font-size:.62rem; letter-spacing:.32em;
  text-transform:uppercase; color:#fff;
  border:1px solid rgba(255,255,255,.7); border-radius:100px;
  padding:.7em 1.2em; display:inline-block;
}
body.show-tag .cursor-tag{ opacity:1; }
@media (hover:none){ .cursor-tag{ display:none; } }

/* ============================================================
   NAV
   ============================================================ */
.nav{
  position:fixed; top:0; left:0; width:100%; z-index:1000;
  display:flex; align-items:center; justify-content:space-between;
  padding:clamp(1rem,2.2vw,1.7rem) var(--gutter);
  padding-top:calc(clamp(1rem,2.2vw,1.7rem) + env(safe-area-inset-top, 0px));
  padding-left:max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right:max(var(--gutter), env(safe-area-inset-right, 0px));
  transition:background .6s var(--ease), padding .5s var(--ease), border-color .6s var(--ease);
  border-bottom:1px solid transparent;
}
.nav--solid{
  background:rgba(11,10,9,.82);
  backdrop-filter:blur(9px);
  -webkit-backdrop-filter:blur(9px);
  border-bottom-color:var(--line);
  padding-top:calc(clamp(.7rem,1.4vw,1rem) + env(safe-area-inset-top, 0px)); padding-bottom:clamp(.7rem,1.4vw,1rem);
}
.nav__brand{ display:flex; flex-direction:column; line-height:1; }
.nav__mark{ font-family:var(--display); font-weight:500; font-size:1.55rem; letter-spacing:.16em; }
.nav__sub{ font-family:var(--ui); font-weight:300; font-size:.56rem; letter-spacing:.46em;
  text-transform:uppercase; color:var(--mauve); margin-top:.45em; padding-left:.18em; }
.nav__links{ display:flex; gap:clamp(1.4rem,2.4vw,2.6rem); }
.nav__links a{
  font-family:var(--ui); font-weight:300; font-size:.72rem; letter-spacing:.22em;
  text-transform:uppercase; color:var(--cream-2); position:relative;
  padding:.4em 0; transition:color .4s var(--ease);
}
.nav__links a i{ font-style:normal; color:var(--mauve); font-size:.6em; margin-right:.6em; vertical-align:.25em; letter-spacing:.1em; }
.nav__links a::after{
  content:""; position:absolute; left:0; bottom:0; height:1px; width:0;
  background:var(--mauve); transition:width .45s var(--ease);
}
.nav__links a:hover, .nav__links a.active{ color:var(--cream); }
.nav__links a:hover::after, .nav__links a.active::after{ width:100%; }

.nav__menu{ display:none; width:34px; height:34px; position:relative; }
.nav__menu span{ position:absolute; left:6px; right:6px; height:1.4px; background:var(--cream);
  transition:transform .4s var(--ease), opacity .3s; }
.nav__menu span:nth-child(1){ top:13px; } .nav__menu span:nth-child(2){ bottom:13px; }
body.menu-open .nav__menu span:nth-child(1){ transform:translateY(4px) rotate(45deg); }
body.menu-open .nav__menu span:nth-child(2){ transform:translateY(-4px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position:relative; min-height:100vh; min-height:100svh;
  display:flex; flex-direction:column; justify-content:center;
  padding:6rem var(--gutter) clamp(3rem,8svh,6rem);
  overflow:hidden; isolation:isolate;
}
.hero__florals{ position:absolute; inset:0; z-index:-1; }
.floral{
  position:absolute; object-fit:contain; will-change:transform;
  -webkit-mask-image:radial-gradient(ellipse 62% 60% at 50% 46%, #000 30%, transparent 75%);
          mask-image:radial-gradient(ellipse 62% 60% at 50% 46%, #000 30%, transparent 75%);
}
.floral--a{ width:min(58vw,640px); top:-6%; right:-8%; opacity:.95; }
.floral--b{ width:min(34vw,360px); bottom:-10%; left:-6%; opacity:.5; filter:saturate(.8) brightness(.85); }
.floral--c{ width:min(26vw,290px); top:42%; right:14%; opacity:.42; filter:saturate(.7) brightness(.8); }
.hero::before{   /* readability scrim, left→right */
  content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(100deg, var(--ink) 18%, rgba(11,10,9,.45) 48%, transparent 72%);
}

.hero__inner{ max-width:min(100%,30ch); }
.hero__eyebrow{
  font-family:var(--ui); font-weight:300; font-size:clamp(.62rem,.8vw,.74rem);
  letter-spacing:.4em; text-transform:uppercase; color:var(--mauve);
  display:flex; align-items:center; gap:1.1em; margin-bottom:clamp(1.4rem,3vw,2.4rem);
}
.hero__eyebrow .line{ width:clamp(1.6rem,4vw,3.4rem); height:1px; background:var(--mauve); opacity:.6; }

.hero__title{
  font-family:var(--display); font-weight:300;
  font-size:clamp(4.2rem,15vw,12rem); line-height:.86; letter-spacing:.02em;
  margin-bottom:clamp(1.6rem,3.5vw,2.6rem); text-indent:-.04em;
}
.hero__title .word{ display:inline-block; }
.hero__title .word--it{ font-style:italic; color:var(--mauve); font-weight:300; }

.hero__lede{
  font-size:clamp(1.05rem,1.5vw,1.4rem); color:var(--cream-2);
  max-width:34ch; line-height:1.55; margin-bottom:clamp(2rem,4vw,3rem);
}
.nb{ white-space:nowrap; }
.hero__cta{ display:flex; flex-wrap:wrap; gap:.8rem; }
.pill{
  font-family:var(--ui); font-weight:300; font-size:.74rem; letter-spacing:.22em;
  text-transform:uppercase; color:var(--cream);
  border:1px solid var(--line); border-radius:100px;
  padding:1em 1.9em; position:relative; overflow:hidden;
  transition:color .5s var(--ease), border-color .5s var(--ease);
}
.pill::before{
  content:""; position:absolute; inset:0; z-index:-1; border-radius:inherit;
  background:var(--cream); transform:translateY(101%); transition:transform .5s var(--ease);
}
.pill:hover{ color:var(--ink); border-color:var(--cream); }
.pill:hover::before{ transform:none; }
.pill--ghost{ color:var(--cream-2); }

.hero__scroll{
  position:absolute; left:50%; bottom:clamp(1.4rem,3svh,2.4rem); transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:.9rem;
  font-family:var(--ui); font-weight:300; font-size:.6rem; letter-spacing:.34em;
  text-transform:uppercase; color:var(--cream-3);
}
.hero__scrollline{ width:1px; height:54px; background:linear-gradient(var(--mauve),transparent); position:relative; overflow:hidden; }
.hero__scrollline::after{ content:""; position:absolute; top:-50%; left:0; width:100%; height:50%;
  background:var(--cream); animation:scrolldot 2.4s var(--ease) infinite; }
@keyframes scrolldot{ 0%{top:-50%} 60%,100%{top:120%} }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-head{
  display:flex; align-items:baseline; gap:clamp(1rem,2vw,2rem);
  padding:clamp(5rem,13svh,11rem) var(--gutter) clamp(2.2rem,5vw,4rem);
}
.section-head__no{
  font-family:var(--ui); font-weight:300; font-size:.74rem; letter-spacing:.3em;
  color:var(--mauve); padding-top:.6em;
}
.section-head__title{
  font-family:var(--display); font-weight:300; font-size:clamp(2.6rem,7vw,6rem);
  line-height:1; letter-spacing:.01em;
}

/* ============================================================
   ABOUT
   ============================================================ */
/* ABOUT — cinematic, in motion: a kinetic statement, a reel of capabilities
   sweeping edge to edge, a slowly turning seal, and credits that fade up. */
.about{
  min-height:100vh; min-height:100svh; position:relative; overflow:hidden;
  display:flex; flex-direction:column; justify-content:center;
  padding:clamp(6rem,12svh,8.5rem) 0 clamp(3rem,7svh,5rem);
}

/* two columns: statement left, indexed facts right — tops & bottoms aligned */
.about__grid{
  padding-inline:var(--gutter);
  display:grid; grid-template-columns:minmax(0,1.02fr) minmax(0,.86fr);
  align-items:stretch; gap:clamp(2.6rem,6vw,6.5rem);
}

/* — kinetic statement — */
.about__inner{ max-width:62rem; }
.about__kicker{
  font-family:var(--ui); font-weight:300; font-size:.72rem; letter-spacing:.5em;
  text-transform:uppercase; color:var(--mauve);
  display:flex; align-items:center; gap:1em; margin-bottom:clamp(1.4rem,3svh,2.2rem);
}
.about__kicker::before{ content:""; width:clamp(1.6rem,4vw,3rem); height:1px; background:var(--mauve); opacity:.6; }
.about__statement{
  font-family:var(--display); font-weight:300;
  font-size:clamp(1.8rem,3.3vw,3.35rem); line-height:1.2; letter-spacing:.005em;
  color:var(--cream); max-width:22ch; text-wrap:balance;
}
.about__statement em{ font-style:italic; color:var(--mauve); }
/* per-word entrance: rise + de-blur, staggered */
.about__statement .w{
  display:inline-block; opacity:0;
  transform:translateY(.6em) rotate(1.5deg); filter:blur(10px);
  transition:opacity .7s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
  transition-delay:calc(var(--wi,0) * 34ms);
}
.about__statement.is-in .w{ opacity:1; transform:none; filter:none; }

/* — the index: facts with iconography, distributed to fill column height — */
.about__facts{
  display:flex; flex-direction:column; justify-content:space-between;
  gap:clamp(1.4rem,3svh,2.4rem); padding-block:.2rem;
}
.about__facts .fact{ display:grid; gap:.85em; }
.about__facts dt{
  display:flex; align-items:center; gap:.8em;
  font-family:var(--ui); font-weight:400; font-size:.78rem; letter-spacing:.32em;
  text-transform:uppercase; color:var(--mauve);
  padding-bottom:.95em; border-bottom:1px solid var(--line-2);
}
.fact__icon{ width:1.25rem; height:1.25rem; flex:none; opacity:.92; }
.about__facts dd{ font-family:var(--body); font-size:1.05rem; line-height:1.66; color:var(--cream-2); letter-spacing:.01em; }
.fact__row{ display:block; }
.fact__row + .fact__row{ margin-top:.5em; }
.about__facts .fact:nth-child(1){ --d:0; }
.about__facts .fact:nth-child(2){ --d:1; }
.about__facts .fact:nth-child(3){ --d:2; }
.about__facts .fact:nth-child(4){ --d:3; }

/* toolkit reads as a quiet set of dotted chips */
.fact__tools{ display:flex; flex-wrap:wrap; gap:.35em 1.1em; }
.fact__tools span{ position:relative; }
.fact__tools span:not(:last-child)::after{
  content:"·"; position:absolute; right:-.7em; top:0; color:var(--mauve); opacity:.5;
}

@media (prefers-reduced-motion: reduce){
  .about__statement .w{ opacity:1; transform:none; filter:none; transition:none; }
}
@media (max-width:900px){
  .about{ min-height:0; }
  .about__grid{ grid-template-columns:1fr; gap:clamp(2.4rem,6svh,3.4rem); }
  .about__statement{ max-width:26ch; font-size:clamp(1.7rem,5vw,2.6rem); }
  .about__facts{ max-width:34rem; }
}

/* ============================================================
   SERVICES
   ============================================================ */
.svc{ list-style:none; padding:0 var(--gutter) clamp(4rem,9svh,7rem); border-top:1px solid var(--line); }
.svc__row{ border-bottom:1px solid var(--line); }
.svc__row a{
  display:grid; grid-template-columns:1fr auto; align-items:center; gap:clamp(1rem,3vw,2.6rem);
  padding:clamp(1.3rem,3vw,2.3rem) clamp(.2rem,1vw,1rem);
  position:relative; transition:padding-left .5s var(--ease);
}
.svc__row a::before{
  content:""; position:absolute; left:0; top:0; height:100%; width:0;
  background:linear-gradient(90deg, rgba(203,167,166,.10), transparent 80%);
  transition:width .55s var(--ease); z-index:-1;
}
.svc__idx{ font-family:var(--ui); font-weight:300; font-size:.74rem; letter-spacing:.28em; color:var(--mauve); }
.svc__name{
  font-family:var(--display); font-weight:300; font-size:clamp(1.7rem,5vw,3.6rem);
  line-height:1.05; color:var(--cream-2); letter-spacing:.01em;
  transition:color .5s var(--ease), transform .55s var(--ease);
}
.svc__tag{
  font-family:var(--ui); font-weight:300; font-size:.64rem; letter-spacing:.26em; text-transform:uppercase;
  color:var(--cream-3); justify-self:end; text-align:right;
  display:flex; align-items:center; gap:1em;
}
.svc__tag::after{ content:"→"; font-size:1.1rem; letter-spacing:0; opacity:0; transform:translateX(-8px);
  transition:opacity .5s var(--ease), transform .5s var(--ease); color:var(--mauve); }
.svc__row a:hover{ padding-left:clamp(1rem,2.5vw,2.4rem); }
.svc__row a:hover::before{ width:100%; }
.svc__row a:hover .svc__name{ color:var(--cream); }
.svc__row a:hover .svc__tag{ color:var(--cream-2); }
.svc__row a:hover .svc__tag::after{ opacity:1; transform:none; }

/* ============================================================
   WORK
   ============================================================ */
.cat{ padding:clamp(3.5rem,9svh,7rem) var(--gutter); border-top:1px solid var(--line-2); }
.cat__head{
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:clamp(1rem,3vw,3rem); align-items:end; margin-bottom:clamp(2rem,4vw,3.4rem);
}
.cat__head--alt{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
/* centered header (AI models) — quiet, axis-aligned over the carousel */
.cat__head--center{
  display:flex; flex-direction:column; align-items:center; text-align:center;
  gap:clamp(.9rem,1.8vw,1.4rem); margin-bottom:clamp(2.4rem,5svh,4rem);
}
.cat__head--center .cat__title{
  font-size:clamp(1.9rem,3.8vw,3.2rem); line-height:1; margin:0; text-wrap:balance;
}
.cat__head--center .cat__desc{ max-width:56ch; align-self:auto; text-wrap:pretty; }
.cat__title{
  font-family:var(--display); font-weight:300; font-size:clamp(2.2rem,6vw,4.8rem);
  line-height:.98; letter-spacing:.01em;
}
.cat__desc{ font-size:clamp(1rem,1.3vw,1.18rem); color:var(--cream-2); max-width:46ch; line-height:1.6; align-self:end; }

/* generic shot */
.shot{ position:relative; overflow:hidden; background:var(--char); cursor:pointer; }
.shot img{ width:100%; height:100%; object-fit:cover; transition:transform 1.1s var(--ease), filter .8s var(--ease);
  filter:grayscale(.06); }
.shot::after{ content:""; position:absolute; inset:0; box-shadow:inset 0 0 0 1px var(--line);
  opacity:0; transition:opacity .5s var(--ease); pointer-events:none; }
.shot:hover img{ transform:scale(1.045); filter:grayscale(0); }
.shot:hover::after{ opacity:1; }

/* video section — text left, reel right */
.cat--split{
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);
  gap:clamp(2rem,5vw,5rem); align-items:center;
}
.cat--split .cat__lead{ max-width:30rem; }
.cat--split .cat__title{ font-size:clamp(1.9rem,3.5vw,3.3rem); margin:0; }
.cat--split .cat__desc{
  margin-top:clamp(1.3rem,2.2vw,2rem); max-width:42ch; align-self:auto;
}

/* video reel — TikTok-style swipe deck */
.reel{ display:flex; flex-direction:column; align-items:center; gap:clamp(1.2rem,2.6vw,2rem); }
.reel__stage{ position:relative; width:100%; }

.reel__phone{
  position:relative; width:100%; aspect-ratio:16/10;
  border-radius:12px; overflow:hidden; background:var(--char);
  box-shadow:0 40px 90px -38px rgba(0,0,0,.85), inset 0 0 0 1px var(--line);
  display:flex; scroll-snap-type:x mandatory;
  overflow-x:auto; overflow-y:hidden; scroll-behavior:smooth;
  scrollbar-width:none; -ms-overflow-style:none;
  overscroll-behavior-x:contain; touch-action:pan-x pan-y;
}
.reel__phone::-webkit-scrollbar{ display:none; }
.reel__phone:focus-visible{ outline:2px solid var(--mauve,#b9a6a0); outline-offset:3px; }

.reel__slide{
  position:relative; flex:0 0 100%; height:100%;
  scroll-snap-align:center; scroll-snap-stop:always;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden; cursor:pointer; margin:0;
}
.reel__bg{ display:none; }
.reel__video{
  position:relative; z-index:1;
  width:100%; height:100%;
  object-fit:cover; display:block;
}
.reel__play{
  position:absolute; z-index:2; left:50%; top:50%; transform:translate(-50%,-50%);
  width:62px; height:62px; border:1px solid rgba(236,228,216,.7); border-radius:50%;
  background:rgba(7,6,5,.18); backdrop-filter:blur(2px); pointer-events:none;
  transition:opacity .5s var(--ease), transform .5s var(--ease);
}
.reel__play::after{ content:""; position:absolute; left:54%; top:50%; transform:translate(-50%,-50%);
  border-left:12px solid var(--cream); border-top:8px solid transparent; border-bottom:8px solid transparent; }
.reel__slide.is-playing .reel__play{ opacity:0; transform:translate(-50%,-50%) scale(.6); }

.reel__arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:4;
  width:52px; height:52px; border-radius:50%;
  border:1px solid rgba(236,228,216,.55); background:rgba(7,6,5,.4); color:var(--cream);
  backdrop-filter:blur(3px);
  font-family:var(--display); font-size:1.8rem; line-height:0; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), opacity .3s;
}
.reel__arrow--prev{ left:clamp(.7rem,1.6vw,1.4rem); }
.reel__arrow--next{ right:clamp(.7rem,1.6vw,1.4rem); }
.reel__arrow:hover{ background:var(--cream); color:var(--ink); border-color:var(--cream); }
.reel__arrow:disabled{ opacity:0; pointer-events:none; }

.reel__dots{ display:flex; gap:11px; align-items:center; justify-content:center; }
.reel__dot{
  width:7px; height:7px; border-radius:50%; padding:0; border:0; cursor:pointer;
  background:var(--cream); opacity:.26; transition:opacity .4s var(--ease), transform .4s var(--ease);
}
.reel__dot:hover{ opacity:.55; }
.reel__dot.is-active{ opacity:1; transform:scale(1.5); }

@media (max-width:880px){
  .cat--split{ grid-template-columns:1fr; gap:clamp(1.8rem,5vw,2.6rem); }
  .cat--split .cat__lead{ max-width:46ch; }
}
@media (max-width:760px){
  .reel__arrow{ display:none; }
  .reel__phone{ aspect-ratio:4/5; border-radius:10px; }
}
@media (prefers-reduced-motion: reduce){
  .reel__phone{ scroll-behavior:auto; }
}

/* horizontal rail (AI models) */
.rail{
  display:flex; gap:var(--mg); overflow-x:auto; scroll-snap-type:x mandatory;
  padding-bottom:1rem; margin:0 calc(var(--gutter) * -1); padding-left:var(--gutter); padding-right:var(--gutter);
  scrollbar-width:none;
  overscroll-behavior-x:contain; touch-action:pan-x pan-y;
}
.rail::-webkit-scrollbar{ display:none; }
.rail .shot{ flex:0 0 auto; width:min(72vw,340px); aspect-ratio:3/4; scroll-snap-align:center; }

/* coverflow (AI models) — 3D cover carousel of faces */
.coverflow{ margin-top:clamp(1.6rem,4svh,3rem); margin-inline:calc(var(--gutter) * -1); }
.coverflow__stage{
  position:relative; height:clamp(360px,58svh,580px);
  perspective:1900px; perspective-origin:50% 44%;
  touch-action:pan-y; cursor:grab; outline:none;
}
.coverflow__stage.is-grabbing{ cursor:grabbing; }
.coverflow__stage:focus-visible{ box-shadow:inset 0 0 0 1px var(--line); border-radius:8px; }

.coverflow__item{
  position:absolute; left:50%; top:50%; margin:0;
  width:clamp(200px,24vw,340px); aspect-ratio:3/4;
  transform:translate(-50%,-50%)
            translateX(var(--x,0px)) translateZ(var(--z,0px))
            rotateY(var(--ry,0deg)) scale(var(--s,1));
  opacity:var(--o,1); transform-style:preserve-3d;
  will-change:transform,opacity; overflow:hidden; border-radius:7px;
  background:var(--char); box-shadow:0 48px 90px -42px rgba(0,0,0,.85);
}
.coverflow__item img{ width:100%; height:100%; object-fit:cover; display:block;
  filter:grayscale(.06); user-select:none; -webkit-user-drag:none; pointer-events:none; }
.coverflow__item::after{ content:""; position:absolute; inset:0; border-radius:inherit;
  box-shadow:inset 0 0 0 1px var(--line); pointer-events:none; }
.coverflow__item.is-active{ cursor:pointer; }
.coverflow__item.is-active::after{ box-shadow:inset 0 0 0 1px rgba(236,228,216,.26); }

.coverflow__ui{ display:flex; align-items:center; justify-content:center;
  gap:clamp(1rem,3vw,2rem); margin-top:clamp(1.6rem,3.4svh,2.6rem); }
.coverflow__bar{ position:relative; width:min(42vw,280px); height:1px;
  background:rgba(236,228,216,.16); overflow:hidden; }
.coverflow__bar span{ position:absolute; inset:0 0 0 0; background:var(--cream);
  transform:scaleX(0); transform-origin:left; will-change:transform; }
.coverflow__count{ font-family:var(--ui,var(--body)); font-size:.74rem;
  letter-spacing:.28em; color:var(--cream-2); white-space:nowrap; }
.coverflow__arrow{
  flex:0 0 auto; width:50px; height:50px; border-radius:50%;
  border:1px solid var(--line); background:transparent; color:var(--cream);
  font-family:var(--display); font-size:1.7rem; line-height:0; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), opacity .3s;
}
.coverflow__arrow:hover{ background:var(--cream); color:var(--ink); border-color:var(--cream); }
.coverflow__arrow:disabled{ opacity:.2; cursor:default; }
.coverflow__arrow:disabled:hover{ background:transparent; color:var(--cream); border-color:var(--line); }

@media (max-width:560px){
  .coverflow__stage{ height:clamp(320px,52svh,460px); }
  .coverflow__item{ width:min(56vw,230px); }
}
@media (prefers-reduced-motion: reduce){
  .coverflow__item{ will-change:auto; }
}

/* coverflow — cutout variant (full-body figures, no background, no card) */
/* box ratio (~0.66) is wider than the widest figure so every model fills the
   height and reads at one consistent stature; the empty sides are transparent */
.coverflow--cutout .coverflow__stage{
  height:clamp(460px,74svh,680px); perspective:2400px; perspective-origin:50% 50%;
}
/* soft cinematic light pool behind the centred figure */
.coverflow--cutout .coverflow__stage::before{
  content:""; position:absolute; left:50%; top:54%; transform:translate(-50%,-50%);
  width:min(620px,52vw); height:92%; border-radius:50%; z-index:0;
  background:radial-gradient(ellipse at center,
    rgba(203,167,166,.12), rgba(236,228,216,.05) 42%, transparent 72%);
  pointer-events:none;
}
.coverflow--cutout .coverflow__item{ z-index:1; }
.coverflow--cutout .coverflow__item{
  width:clamp(300px,36vw,470px); aspect-ratio:auto; height:clamp(420px,66svh,600px);
  background:none; box-shadow:none; border-radius:0; overflow:visible;
}
.coverflow--cutout .coverflow__item img{
  width:100%; height:100%; object-fit:contain; object-position:bottom center;
  filter:none;
}
.coverflow--cutout .coverflow__item::after{ display:none; }   /* no card frame on cutouts */
@media (max-width:560px){
  .coverflow--cutout .coverflow__stage{ height:clamp(400px,62svh,540px); }
  .coverflow--cutout .coverflow__item{ width:min(86vw,360px); height:clamp(360px,56svh,470px); }
}

/* coverflow — tall variant (full-body looks: a touch bigger than the face deck
   so the figure reads large, but card + pager still fit one screen) */
.coverflow--tall .coverflow__stage{ height:min(58svh,clamp(420px,52vw,560px)); }
.coverflow--tall .coverflow__item{ width:min(26vw,calc(58svh * 0.66),380px); }
.coverflow--tall .coverflow__ui{ margin-top:clamp(.8rem,1.6svh,1.4rem); }
@media (max-width:560px){
  .coverflow--tall .coverflow__stage{ height:clamp(360px,56svh,500px); }
  .coverflow--tall .coverflow__item{ width:min(64vw,290px); }
}

/* masonry (characters, clothing) */
.masonry{ column-gap:var(--mg); }
.masonry--3{ column-count:3; }
.masonry .shot{ width:100%; margin-bottom:var(--mg); break-inside:avoid; display:block; }
.masonry .shot img{ height:auto; }
.shot--frame img{ background:#0d0c0b; }

/* horizontal rail base (the film rails override the sizing below) */
.prail{
  display:flex; gap:clamp(.9rem,1.4vw,1.4rem);
  overflow-x:auto; scroll-snap-type:x proximity;
  overscroll-behavior-x:contain; touch-action:pan-x pan-y;
  padding-bottom:2px;
  scrollbar-width:none; cursor:default; scroll-behavior:smooth; outline:none;
}
.prail.is-grabbing{ scroll-behavior:auto; scroll-snap-type:none; }
.prail::-webkit-scrollbar{ display:none; }
.prail:focus-visible{ box-shadow:inset 0 0 0 1px var(--line); border-radius:10px; }

.prail .shot{
  flex:0 0 auto; width:clamp(250px,40vw,440px); aspect-ratio:3/4;
  scroll-snap-align:start; border-radius:9px; position:relative; cursor:default;
  transition:opacity .55s var(--ease), filter .55s var(--ease);
}
.prail .shot img{ border-radius:inherit; filter:none; }    /* lit by default — full colour */
.prail .shot:hover img{ transform:none; }                  /* no zoom on hover */
.prail .shot::after{ display:none; }                       /* no frame outline on the rails */

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

/* ============================================================
   CLOTHING FILM RAILS (Desert + Street) — contained editorial
   modules: header label + uniform-height framed cards (mixed
   orientation, nothing cropped) + reused coverflow pager.
   Whole module is viewport-height-bound to sit on one screen.
   ============================================================ */

/* the wrap stacks: header + rail + pager, height-aware gaps */
.prail-wrap{
  margin-top:clamp(3.2rem,8.5svh,5.5rem);   /* clear air below the looks carousel */
  display:flex; flex-direction:column;
  gap:clamp(.7rem,1.6svh,1.2rem);
}

/* series label row — Jost uppercase, mauve accent + quiet meta */
.prail-head{
  display:flex; align-items:baseline; justify-content:space-between;
  gap:1rem; padding:0 var(--gutter);
}
.prail-head__label{
  font-family:var(--ui); font-weight:400;
  font-size:clamp(.62rem,.8vw,.72rem); letter-spacing:.32em;
  text-transform:uppercase; color:var(--mauve);
}
.prail-head__meta{
  font-family:var(--ui); font-weight:300;
  font-size:clamp(.56rem,.72vw,.64rem); letter-spacing:.3em;
  text-transform:uppercase; color:var(--cream-4);
}

/* the rail itself — uniform CARD HEIGHT, natural width => mixed
   portrait/landscape both shown whole. Height bound so
   label + card + pager ≈ one screen at laptop heights. */
.prail--film{
  gap:clamp(.7rem,1.2vw,1.2rem);
  scroll-snap-type:none;                       /* free endless ribbon — no snapping */
  /* full-bleed breakout: the ribbon runs through the whole screen,
     edge to edge, while the rest of the module keeps its gutters */
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  padding:0 0 2px;
}
.prail--film .shot{
  flex:0 0 auto;
  width:auto; aspect-ratio:auto;
  height:min(46svh, clamp(300px,44vw,460px));   /* viewport-height-bound */
  scroll-snap-align:center;
  position:relative; overflow:hidden;
  border-radius:7px;
  background:var(--char);
  box-shadow:0 48px 90px -42px rgba(0,0,0,.85);
  cursor:zoom-in;
}
/* inset hairline frame — matches coverflow cards */
.prail--film .shot::after{
  content:""; position:absolute; inset:0; z-index:3;
  border-radius:inherit; pointer-events:none;
  box-shadow:inset 0 0 0 1px var(--line);
}
.prail--film .shot img{
  width:auto; max-width:none; height:100%;
  object-fit:contain; display:block;
}

/* quiet pager — hairline bar + count, no buttons (the ribbon is hand-driven) */
.prail__ui{
  display:flex; align-items:center; justify-content:center;
  gap:clamp(1rem,3vw,2rem); padding:0 var(--gutter);
  margin-top:clamp(.4rem,1.2svh,.9rem);
}
.prail__bar{
  position:relative; width:min(42vw,280px); height:1px;
  background:rgba(236,228,216,.16); overflow:hidden;
}
.prail__bar span{
  position:absolute; inset:0; background:var(--cream);
  transform:scaleX(0); transform-origin:left; will-change:transform;
}
.prail__count{
  font-family:var(--ui); font-weight:300; font-size:.7rem;
  letter-spacing:.28em; color:var(--cream-2); white-space:nowrap;
}

@media (max-width:760px){
  .prail--film .shot{ height:min(52svh, clamp(280px,62vw,420px)); }
  .prail__bar{ width:min(40vw,200px); }
}

/* product photography — four-up grid, sized to sit on one screen */
.prod-grid{
  margin-top:clamp(1.4rem,3svh,2.4rem);
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:clamp(.7rem,1.2vw,1.3rem);
}
.prod-grid .shot{ aspect-ratio:3/4; border-radius:9px; }
.prod-grid .shot img{ border-radius:inherit; filter:none; }
@media (max-width:860px){
  .prod-grid{ grid-template-columns:repeat(2,1fr); gap:clamp(.7rem,2vw,1.1rem); }
}
@media (max-width:480px){
  .prod-grid{ grid-template-columns:1fr; }
}

/* ============================================================
   CONSISTENT CHARACTERS — open-to-reveal set
   ============================================================ */
.charset{ position:relative; }

/* natural (no-JS) state: all six visible as a 3×2 grid */
.charset__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--mg); }
.charset__grid .shot{ aspect-ratio:3/4; }
.charset__cover{ display:none; }

/* enhanced: collapsed to a single cover photo with an Open pill */
.charset.is-ready .charset__grid{ display:none; }
.charset.is-ready .charset__cover{
  display:block; position:relative;
  width:min(440px,80vw); margin-inline:auto;
  aspect-ratio:3/4; overflow:hidden; background:var(--char);
  -webkit-tap-highlight-color:transparent;
  transition:opacity .4s var(--ease), transform .55s var(--ease);
}
.charset__cover img{
  width:100%; height:100%; object-fit:cover; filter:grayscale(.06);
  transition:transform 1.1s var(--ease);
}
.charset__cover:hover img{ transform:scale(1.045); }
.charset__cover::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(to top, rgba(7,6,5,.6), transparent 46%);
}
.charset__label{
  position:absolute; left:50%; bottom:clamp(1.2rem,3.4vw,2rem);
  transform:translateX(-50%); z-index:1; pointer-events:none;
}
.charset__cover:hover .charset__label{ color:var(--ink); border-color:var(--cream); }
.charset__cover:hover .charset__label::before{ transform:none; }

/* opening: cover fades, grid cascades in one after another */
.charset.is-cover-out .charset__cover{ opacity:0; transform:scale(.985); pointer-events:none; }
.charset.is-open .charset__cover{ display:none; }
/* show the grid + cap its width off the viewport height so both rows fit one screen */
.charset.is-open .charset__grid{
  display:grid; margin-inline:auto;
  max-width:calc((100vh  - 18rem) * 9 / 8 + 2 * var(--mg));
  max-width:calc((100svh - 18rem) * 9 / 8 + 2 * var(--mg));
}
.charset.is-open .charset__grid .shot{
  opacity:0; transform:translateY(28px) scale(.985);
  transition:opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay:calc(var(--i,0) * 95ms);
}
.charset.is-revealed .charset__grid .shot{ opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce){
  .charset.is-ready .charset__cover{ transition:none; }
  .charset.is-open .charset__grid .shot{ transition:none; transition-delay:0s; }
}

/* ============================================================
   CONTACT
   ============================================================ */
/* ── CONTACT — closing page: the peony as a framed artefact, details beside ── */
.contact{
  position:relative; min-height:100svh; overflow:hidden;
  display:flex; flex-direction:column; background:var(--ink);
  border-top:1px solid var(--line-2);   /* same hairline that parts every section */
}
.contact__body{ flex:1; display:flex; min-height:0; }

/* gallery wall — a tall film frame, hairline border, breathing mat */
.contact__stage{
  flex:0 0 48%; min-width:0; min-height:0;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:clamp(.9rem,2svh,1.4rem);
  padding:clamp(4.6rem,11svh,6.5rem) clamp(1.4rem,3vw,3rem) clamp(1.6rem,4svh,2.4rem);
}
.contact__frame{
  /* every detail scales off the phone's own height, so the mockup stays
     true to iPhone proportions at any size */
  --phone-h:64svh;
  --bezel:calc(var(--phone-h) * .014);
  --phone-r:calc(var(--phone-h) * .078);
  position:relative; height:var(--phone-h); min-height:0;
  aspect-ratio:9/19.5; max-width:100%;
  padding:var(--bezel);
  border-radius:var(--phone-r);
  background:#171411;                                   /* the body */
  border:1px solid rgba(236,228,216,.2);                /* metallic rim catch-light */
  box-shadow:
    0 0 0 1px rgba(0,0,0,.65),
    0 30px 70px -28px rgba(0,0,0,.75);
}
.contact__frame video{
  width:100%; height:100%; object-fit:cover; display:block;
  border-radius:calc(var(--phone-r) - var(--bezel));
  background:#000;                                      /* OLED under the letterbox */
}
/* dynamic island */
.contact__frame::before{
  content:""; position:absolute; z-index:2;
  top:calc(var(--bezel) + var(--phone-h) * .017); left:50%; transform:translateX(-50%);
  width:24%; height:calc(var(--phone-h) * .016); border-radius:100px;
  background:#060504;
}
/* power button on the rim */
.contact__frame::after{
  content:""; position:absolute; right:-2.5px; top:26%;
  width:2.5px; height:9%; border-radius:2px;
  background:#37322d;
}
/* the details beside the artefact */
.contact__inner{
  position:relative; z-index:1; flex:1; min-width:0;
  display:flex; flex-direction:column; align-items:flex-start; justify-content:center;
  text-align:left; gap:clamp(2rem,5.5svh,3.4rem);
  padding:clamp(5rem,12svh,7rem) var(--gutter) clamp(2rem,5svh,3rem) clamp(1.2rem,2.5vw,2.6rem);
}
/* the closing statement, now the section's headline — a developing serif line */
.contact__line{
  font-family:var(--display); font-weight:300;
  font-size:clamp(2.2rem,3.4vw + .8rem,4.3rem); line-height:1.08; letter-spacing:.005em;
  max-width:15ch; text-wrap:balance;
}
.contact__line em{ font-style:italic; color:var(--mauve); }

/* the three contacts — full text, typeset large */
.contact__rows{
  list-style:none; display:flex; flex-direction:column; align-items:flex-start;
  gap:clamp(1.4rem,4svh,2.4rem);
}
.contact__cta{
  display:flex; flex-direction:column; align-items:flex-start; gap:.6rem;
  text-align:left; padding:0; -webkit-tap-highlight-color:transparent;
}
.contact__cta:focus-visible{ outline:1px solid var(--mauve); outline-offset:8px; }

/* tiny label — crossfades to its action hint on hover, to "copied" after a click */
.contact__k{
  position:relative; display:block; height:1.1em;
  font-family:var(--ui); font-weight:300; font-size:.64rem; letter-spacing:.3em;
  text-transform:uppercase; color:var(--mauve);
}
.contact__k > span{
  display:block; transition:opacity .35s var(--ease), transform .35s var(--ease);
}
.contact__k-act, .contact__k-done{
  position:absolute; inset:0; opacity:0; transform:translateY(7px); white-space:nowrap;
}
.contact__cta:hover .contact__k-base,
.contact__cta:focus-visible .contact__k-base{ opacity:0; transform:translateY(-7px); }
.contact__cta:hover .contact__k-act,
.contact__cta:focus-visible .contact__k-act{ opacity:1; transform:none; }
.contact__cta.is-copied .contact__k-base,
.contact__cta.is-copied .contact__k-act{ opacity:0; transform:translateY(-7px); }
.contact__cta.is-copied .contact__k-done{ opacity:1; transform:none; color:var(--cream); }

/* the value itself — big serif, underline sweeps in on hover */
.contact__v{
  font-family:var(--display); font-weight:300;
  font-size:clamp(1.55rem,2.5vw + .35rem,3.2rem); line-height:1.12; letter-spacing:.015em;
  color:var(--cream); position:relative; transition:color .4s var(--ease);
  font-variant-numeric:lining-nums;   /* oldstyle zero reads as "o" — fatal in an email address */
}
.contact__v::after{
  content:""; position:absolute; left:0; bottom:-.06em; height:1px; width:0;
  background:var(--mauve); transition:width .5s var(--ease);
}
.contact__cta:hover .contact__v,
.contact__cta:focus-visible .contact__v{ color:var(--mauve); }
.contact__cta:hover .contact__v::after,
.contact__cta:focus-visible .contact__v::after{ width:100%; }

.contact__toast{
  font-family:var(--ui); font-weight:300; font-size:.7rem; letter-spacing:.28em;
  text-transform:uppercase; color:var(--mauve); min-height:1em;
  opacity:0; transform:translateY(4px); transition:opacity .4s var(--ease), transform .4s var(--ease);
}
.contact__toast.is-on{ opacity:1; transform:none; }

/* develop-in choreography: armed by JS (letters split), fired once on arrival */
.contact .lt{ display:inline-block; }
.contact--arm .lt{
  opacity:0; transform:translateY(.35em); filter:blur(6px);
  transition:opacity .55s var(--ease), transform .6s var(--ease), filter .55s var(--ease);
}
.contact--arm.contact--on .lt{ opacity:1; transform:none; filter:none; }
.contact--arm .contact__k{
  opacity:0; transform:translateY(8px);
  transition:opacity .5s var(--ease), transform .5s var(--ease);
}
.contact--arm.contact--on .contact__k{ opacity:1; transform:none; }
.contact--arm .contact__rows li:nth-child(1) .contact__k{ transition-delay:.9s; }
.contact--arm .contact__rows li:nth-child(2) .contact__k{ transition-delay:1.2s; }
.contact--arm .contact__rows li:nth-child(3) .contact__k{ transition-delay:1.5s; }

/* the headline develops in first, then the labels and rows follow */
.contact--arm .contact__line{
  opacity:0; transform:translateY(.4em); filter:blur(7px);
  transition:opacity .8s var(--ease) .15s, transform .9s var(--ease) .15s, filter .8s var(--ease) .15s;
}
.contact--arm.contact--on .contact__line{ opacity:1; transform:none; filter:none; }

/* the phone rises and settles into place, its screen already alive */
.contact--arm .contact__frame{
  opacity:0; transform:translateY(36px) scale(.965);
  transition:opacity .9s var(--ease) .1s, transform 1.15s cubic-bezier(.22,.61,.21,1) .1s;
}
.contact--arm.contact--on .contact__frame{ opacity:1; transform:none; }

/* the footer lives inside the contact screen so the page ends exactly here */
.contact .foot{ position:relative; z-index:1; }

/* stacked gallery on small screens: the frame is elastic and absorbs
   exactly the space the details don't need — always one clean screen */
@media (max-width:860px){
  .contact__body{ flex-direction:column; }
  /* on a phone, the phone-in-a-phone mockup is redundant — drop it and let the
     details own the screen as pure type, centred in the space it leaves */
  .contact__stage{ display:none; }
  .contact__inner{
    flex:1; justify-content:center;
    gap:clamp(1.7rem,4.2svh,2.7rem);
    padding:clamp(4.6rem,12svh,6rem) var(--gutter) clamp(2rem,5svh,3rem);
  }
}

@media (prefers-reduced-motion: reduce){
  .contact--arm .lt, .contact--arm .contact__k, .contact--arm .contact__line{ opacity:1; transform:none; filter:none; transition:none; }
  .contact--arm .contact__frame{ opacity:1; transform:none; transition:none; }
}

/* ---------- footer ---------- */
.foot{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:1rem;
  padding:clamp(2rem,5vw,3.4rem) var(--gutter); border-top:1px solid var(--line);
  padding-bottom:calc(clamp(2rem,5vw,3.4rem) + env(safe-area-inset-bottom, 0px));
  font-family:var(--ui); font-weight:300; font-size:.64rem; letter-spacing:.3em; text-transform:uppercase; color:var(--cream-3);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lb{
  position:fixed; inset:0; z-index:10000; display:flex; align-items:center; justify-content:center;
  background:rgba(7,6,5,.94); backdrop-filter:blur(8px);
  opacity:0; visibility:hidden; transition:opacity .5s var(--ease), visibility .5s;
  padding:clamp(1rem,4vw,3rem);
  padding-top:calc(clamp(1rem,4vw,3rem) + env(safe-area-inset-top, 0px));
  padding-bottom:calc(clamp(1.6rem,4vw,3rem) + env(safe-area-inset-bottom, 0px));
  overscroll-behavior:contain;
}
@media (hover:none) and (pointer:coarse){
  .lb{ backdrop-filter:none; background:rgba(7,6,5,.97); }
}
/* continue the lightbox backdrop past both screen edges so iOS 26's
   transparent Liquid Glass toolbars never reveal the page behind it */
.lb::before, .lb::after{
  content:""; position:absolute; left:0; right:0; height:45svh;
  background:rgba(7,6,5,.97); pointer-events:none;
}
.lb::before{ bottom:100%; }
.lb::after{ top:100%; }
.lb.open{ opacity:1; visibility:visible; }
.lb__stage{ max-width:min(92vw,1100px); max-height:88vh; max-height:84svh; display:flex; align-items:center; justify-content:center;
  transform:scale(.97); transition:transform .5s var(--ease); }
.lb.open .lb__stage{ transform:none; }
.lb__stage img, .lb__stage video{ max-width:100%; max-height:88vh; max-height:84svh; object-fit:contain; box-shadow:0 30px 80px rgba(0,0,0,.6); }
.lb__stage video{ cursor:pointer; }
/* never flash native player chrome when swapping videos */
.lb__stage video::-webkit-media-controls,
.lb__stage video::-webkit-media-controls-enclosure,
.lb__stage video::-webkit-media-controls-panel{ display:none !important; -webkit-appearance:none; }
.lb__close{ position:absolute;
  top:calc(clamp(1rem,3vw,2rem) + env(safe-area-inset-top, 0px));
  right:max(clamp(1rem,3vw,2rem), env(safe-area-inset-right, 0px));
  font-size:2.4rem; line-height:1; color:var(--cream-2); transition:color .3s, transform .4s var(--ease); }
.lb__close:hover{ color:var(--cream); transform:rotate(90deg); }
.lb__nav{ position:absolute; top:50%; transform:translateY(-50%); font-size:2.6rem; color:var(--cream-3);
  padding:1rem; transition:color .3s; user-select:none; }
.lb__nav:hover{ color:var(--cream); }
.lb__nav--prev{ left:max(clamp(.2rem,2vw,1.5rem), env(safe-area-inset-left, 0px)); }
.lb__nav--next{ right:max(clamp(.2rem,2vw,1.5rem), env(safe-area-inset-right, 0px)); }
.lb__count{ position:absolute; bottom:calc(clamp(1rem,3vw,2rem) + env(safe-area-inset-bottom, 0px)); left:50%; transform:translateX(-50%);
  font-family:var(--ui); font-weight:300; font-size:.68rem; letter-spacing:.3em; color:var(--cream-3); }

/* ============================================================
   REVEAL + STAGGER
   ============================================================ */
.reveal{ opacity:0; transform:translateY(30px); transition:opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay:calc(var(--d,0) * 70ms); }
.reveal.in{ opacity:1; transform:none; }

:is(.meta,.svc,.masonry,.rail,.pgrid,.vgrid,.contact__list,.hero__inner) > *:nth-child(1){ --d:0; }
:is(.meta,.svc,.masonry,.rail,.pgrid,.vgrid,.contact__list,.hero__inner) > *:nth-child(2){ --d:1; }
:is(.meta,.svc,.masonry,.rail,.pgrid,.vgrid,.contact__list,.hero__inner) > *:nth-child(3){ --d:2; }
:is(.meta,.svc,.masonry,.rail,.pgrid,.vgrid,.contact__list,.hero__inner) > *:nth-child(4){ --d:3; }
:is(.meta,.svc,.masonry,.rail,.pgrid,.vgrid,.contact__list) > *:nth-child(5){ --d:4; }
:is(.svc,.masonry,.rail,.contact__list) > *:nth-child(6){ --d:5; }
:is(.masonry,.rail) > *:nth-child(7){ --d:6; }
:is(.masonry) > *:nth-child(n+8){ --d:3; }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  .grain{ animation:none; } .hero__scrollline::after{ animation:none; }
}

/* ============================================================
   KINETIC TITLES — line-mask reveal (rise from behind a clip)
   ============================================================ */
.kline{ display:block; overflow:hidden; padding-bottom:.2em; margin-bottom:-.2em; }
.kline__in{
  display:block; transform:translateY(112%);
  transition:transform 1.05s var(--ease); transition-delay:calc(var(--li,0) * 95ms);
  will-change:transform;
}
.is-krevealed .kline__in{ transform:none; }
@media (prefers-reduced-motion: reduce){
  .kline__in{ transform:none; transition:none; }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
/* desktop hero: centered composition, title on one line */
@media (min-width: 861px){
  .hero{ text-align:center; padding-bottom:clamp(5rem,14svh,9rem); }
  .hero__inner{ max-width:min(100%,56rem); margin-inline:auto; }
  .hero__title{ white-space:nowrap; }
  .hero__eyebrow{ justify-content:center; }
  .hero__lede{ margin-inline:auto; }
  .hero__cta{ justify-content:center; }
}
@media (max-width: 1080px){
  .masonry--3{ column-count:2; }
}
@media (max-width: 860px){
  .nav__links{
    position:fixed; inset:0; z-index:-1; flex-direction:column; justify-content:center; align-items:center;
    gap:2rem; background:rgba(9,8,7,.985);
    opacity:0; visibility:hidden; transition:opacity .5s var(--ease), visibility .5s;
    padding-top:env(safe-area-inset-top, 0px); padding-bottom:env(safe-area-inset-bottom, 0px);
    overscroll-behavior:contain;
  }
  /* run the menu backdrop past both screen edges (iOS 26 Liquid Glass) */
  .nav__links::before, .nav__links::after{
    content:""; position:absolute; left:0; right:0; height:45svh;
    background:rgba(9,8,7,.985); pointer-events:none;
  }
  .nav__links::before{ bottom:100%; }
  .nav__links::after{ top:100%; }
  body.menu-open .nav__links{ opacity:1; visibility:visible; }
  body.menu-open{ overflow:hidden; }
  .nav__links a{ font-size:1.1rem; letter-spacing:.3em; }
  /* backdrop blur on a fixed header is a major scroll-jank source on iOS:
     swap it for a slightly more opaque solid tint on small screens */
  .nav--solid{ background:rgba(11,10,9,.94); backdrop-filter:none; -webkit-backdrop-filter:none; }

  .hero{ text-align:center; }
  .hero__inner{ max-width:42ch; margin-inline:auto; }
  .hero__lede{ margin-inline:auto; }
  .hero__cta{ justify-content:center; }

  /* tablet & phone hero: title sized to hold one line, the peony slips UNDER a
     vertical scrim so the headline stays readable where they overlap */
  .hero__title{ font-size:clamp(3.6rem,11.5vw,7rem); }
  .hero__florals{ z-index:-2; }
  .hero::before{ background:linear-gradient(180deg,
    rgba(11,10,9,0) 0%, rgba(11,10,9,.12) 22%, rgba(11,10,9,.6) 44%,
    rgba(11,10,9,.82) 62%, var(--ink) 90%); }
  .floral--a{ width:min(52vw,430px); top:-6%; right:-8%; }
  .hero__eyebrow{ display:block; text-align:center; text-wrap:balance; }
  .hero__eyebrow .line{ display:none; }
  .about{ min-height:0; padding-block:clamp(5rem,12svh,7rem) clamp(3rem,8svh,5rem); }
  .cat__head, .cat__head--alt{ grid-template-columns:1fr; gap:1rem; }
  .cat__desc{ max-width:52ch; }
  .svc__row a{ grid-template-columns:1fr; }
  .svc__tag{ display:none; }
}
@media (max-width: 560px){
  .prail .shot{ width:min(78vw,360px); }
  .masonry--3{ column-count:1; }
  .hero__title{ font-size:clamp(3.6rem,21vw,6rem); }
  /* hero on phones: peony stays a top accent; text reads over a soft vertical scrim */
  .hero::before{ background:linear-gradient(180deg,
    rgba(11,10,9,0) 0%, rgba(11,10,9,.12) 22%, rgba(11,10,9,.6) 44%,
    rgba(11,10,9,.82) 62%, var(--ink) 90%); }
  .floral--a{ width:min(62vw,280px); top:-4%; right:-10%; }
  .floral--c{ top:30%; right:4%; opacity:.22; }
  .hero__eyebrow{ display:none; }
  .nav__sub{ display:none; }
}
