

body.is-night{background:var(--night);color:var(--paper)}

.deck{
  height:100vh;
  height:100dvh;

  height:var(--deck-h,100dvh);
  overflow-y:scroll;scrollbar-width:none;

  scroll-snap-type:y mandatory;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-y:contain;
}

.deck.snap-free{scroll-snap-type:none}

body{transition:background .18s ease-out,color .18s ease-out;background:#ddd6c8}

body[data-active-panel="elpm"]{background:var(--paper)}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.mark-logo .logo-light,.mark-logo .logo-dark{transition-duration:.18s}
.deck::-webkit-scrollbar{display:none}
.panel{
  height:100vh;
  height:100dvh;
  height:var(--deck-h,100dvh);
  scroll-snap-align:start;
  display:flex;
  align-items:center;

  padding:clamp(120px,15vh,168px) 7vw clamp(80px,11vh,110px);
  position:relative;

  --media-h:calc(var(--deck-h,100dvh) - clamp(120px,15vh,168px) - clamp(80px,11vh,110px));
}
.panel-inner{width:100%;max-width:1180px;margin:0 auto}

.chrome{position:fixed;inset:0;pointer-events:none;z-index:20}

.rail{
  position:absolute;top:50%;right:26px;transform:translateY(-50%);
  display:flex;flex-direction:column;align-items:center;gap:16px;pointer-events:auto;
}
.rail a{display:block;padding:5px;text-decoration:none;color:inherit}
.rail .dot{
  display:block;width:9px;height:9px;border-radius:50%;background:transparent;
  box-shadow:inset 0 0 0 1.5px rgba(20,20,18,.45);
  transition:background .3s ease,box-shadow .3s ease;
}
body.is-night .rail .dot{box-shadow:inset 0 0 0 1.5px rgba(249,248,245,.55)}
.rail a:hover .dot{box-shadow:inset 0 0 0 1.5px var(--accent)}
.rail a[aria-current="true"] .dot{background:var(--accent);box-shadow:inset 0 0 0 1.5px var(--accent)}

.hero{font-size:clamp(2.7rem,6.6vw,5.6rem);font-weight:900;line-height:.94;letter-spacing:-.035em;max-width:15ch}
.hero em{font-style:normal;color:inherit}
.lede{font-size:clamp(1rem,1.3vw,1.15rem);font-weight:400;line-height:1.5;max-width:44ch;margin-top:28px;color:var(--ink-60)}
body.is-night .lede{color:rgba(249,248,245,.62)}

.stats{display:flex;flex-wrap:wrap;gap:clamp(40px,5vw,76px);margin-top:clamp(38px,5vh,52px)}

.spec-rows{margin-top:clamp(14px,2vh,22px);display:flex;flex-direction:column;gap:7px}
.spec-rows .row{display:flex;gap:.7em;align-items:baseline;flex-wrap:wrap}

#luma .spec-rows .k{color:#8a4e00}
#luma .spec-rows .v{color:rgba(20,20,18,.72)}
#luma .stat i{color:rgba(20,20,18,.72)}
.stack .spec-rows{align-items:center}
.stack .spec-rows .row{justify-content:center}

.split{display:grid;grid-template-columns:1.05fr 1fr;gap:6vw;align-items:center}
.media{
  display:flex;align-items:center;justify-content:center;
  height:var(--media-h);
}

.split .copy{align-self:stretch;display:flex;flex-direction:column}
.split .copy-text{margin:auto 0}
.split .cta-row{margin-top:0}

#luma,#elpm{
  padding-top:clamp(66px,9vh,96px);
  padding-bottom:clamp(38px,5.5vh,60px);
  --media-h:calc(var(--deck-h,100dvh) - clamp(66px,9vh,96px) - clamp(38px,5.5vh,60px));
}

#luma{

  background:radial-gradient(120% 90% at 50% 37%, #f6f3ee 0%, #ece6dc 35%, #ddd6c8 70%);
}

#elpm{background:var(--paper)}

#luma .hero .accent{color:var(--accent)}

#elpm .hl-name{font-size:clamp(2rem,8.4vw,6.6rem);letter-spacing:-.03em;white-space:nowrap}

#elpm .hero--name .hero-module{max-height:clamp(180px,32vh,320px);margin:0 0 clamp(-40px,-3.5vh,-22px) 0}

#elpm .copy{max-width:min(880px,94%)}

#elpm .stat b{font-size:clamp(1.4rem,2.5vw,2.1rem)}

.apps{margin-top:clamp(14px,2vh,24px);display:flex;flex-wrap:wrap;justify-content:center;gap:10px clamp(20px,3vw,40px);max-width:min(820px,94%)}
.app{font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--accent-ink);font-weight:500;white-space:nowrap}
.stack{
  display:grid;
  grid-template-rows:minmax(0,6fr) auto minmax(0,1fr) auto;
  justify-items:center;text-align:center;height:var(--media-h);
  row-gap:clamp(12px,2.2vh,26px);
}
.stack .media{grid-row:1;min-height:0;width:100%;height:100%}
.stack .media img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.stack .copy{grid-row:2;align-self:start;display:flex;flex-direction:column;align-items:center;max-width:60ch}
.stack .stack-cta{grid-row:4;align-self:end}
.stack .stack-cta .cta{margin-top:0}

.stack .eyebrow{margin-bottom:16px}
.stack .hero{font-size:clamp(1.7rem,2.9vw,2.8rem);max-width:22ch;margin-left:auto;margin-right:auto}
.stack .lede{margin-top:16px;max-width:54ch;margin-left:auto;margin-right:auto}
.stack .stats{justify-content:center;margin-top:clamp(16px,2.2vh,26px)}

@media (min-width:861px) and (min-height:821px){

  .stack{grid-template-rows:minmax(0,9fr) auto minmax(0,1fr) auto}
  .stack .lede{margin-top:12px}
  .stack .stats{margin-top:clamp(14px,1.8vh,22px)}
}

.stack--overlap{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:clamp(14px,2.4vh,28px);
}

.stack--overlap .hero,
.stack--overlap .copy,
.stack--overlap .stack-cta{align-self:center}
.stack--overlap .hero{display:flex;flex-direction:column;align-items:center;margin:0}

.hero--name{position:relative;display:flex;flex-direction:column;align-items:center}
.hl-name{
  font-family:var(--sans);font-weight:900;letter-spacing:-.04em;line-height:.82;
  font-size:clamp(4rem,17vw,14rem);color:var(--accent);
  position:relative;z-index:1;
}

.hl-sub{
  display:block;font-family:var(--sans);font-weight:700;color:var(--ink);
  font-size:clamp(.82rem,1.4vw,1.1rem);letter-spacing:.16em;text-transform:uppercase;
  margin-top:clamp(6px,1vh,12px);
}

.stack--overlap .hero-module{
  display:block;width:auto;height:auto;max-width:100%;
  position:relative;z-index:2;
  transition:filter .35s ease;
}
.stack--overlap .hero-module.is-loaded{
  filter:drop-shadow(0 6px 10px rgba(48,38,22,.18)) drop-shadow(0 26px 40px rgba(48,38,22,.24));
}

.stack--overlap .hero--name .hero-module{
  max-height:clamp(220px,42vh,440px);
  margin:0 0 clamp(-120px,-8vh,-52px) 0;
}
.stack--overlap .copy{display:flex;flex-direction:column;align-items:center;gap:0;max-width:60ch}
.stack--overlap .stats{justify-content:center}
.stack--overlap .spec-rows{align-items:center}
.stack--overlap .spec-rows .row{justify-content:center}
.stack--overlap .stack-cta{margin-top:clamp(12px,3vh,38px);display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px 14px}
.stack--overlap .stack-cta .cta.ghost{margin-left:0}
@media (max-width:860px){
  .stack--overlap{gap:12px}
  .hl-name{font-size:clamp(3.4rem,22vw,6rem)}
  .stack--overlap .hero--name .hero-module{max-height:clamp(160px,28vh,240px);margin:0 0 clamp(-46px,-4vh,-28px) 0}

  #elpm .hl-name{font-size:clamp(1.6rem,7.2vw,2.3rem)}
  #elpm .hero--name .hero-module{max-height:clamp(140px,23vh,200px);margin:0 0 clamp(-12px,-1.2vh,-4px) 0}
}

@media (min-width:861px) and (max-height:820px){
  .hl-name{font-size:clamp(3.6rem,12vw,8rem)}
  .stack--overlap .hero--name .hero-module{max-height:clamp(170px,34vh,280px);margin:0 0 clamp(-72px,-7vh,-44px) 0}
  .stack--overlap{gap:clamp(10px,1.8vh,20px)}
}

.glow{position:relative}

.glow::before{display:none}

.glow img{position:relative;z-index:1;
  filter:drop-shadow(0 6px 10px rgba(48,38,22,.18)) drop-shadow(0 26px 38px rgba(48,38,22,.22));}

.media img{
  max-width:100%;max-height:100%;width:auto;height:auto;
  object-fit:contain;display:block;border-radius:4px;
}

#labs{height:auto;min-height:100vh;min-height:100dvh;min-height:var(--deck-h,100dvh);padding-bottom:clamp(24px,3.5vh,40px);scroll-snap-align:start;

  background:var(--night);color:var(--paper)}
.labs-inner{display:flex;flex-direction:column}

.thesis-sub{font-size:clamp(1.25rem,1.9vw,1.7rem);line-height:1.35;font-weight:400;margin-top:20px;color:var(--accent);max-width:34ch;text-wrap:balance}

.thesis-body{font-size:clamp(1.05rem,1.4vw,1.3rem);line-height:1.6;margin-top:clamp(18px,2.4vh,26px);color:rgba(249,248,245,.6);max-width:56ch;text-wrap:pretty}
.thesis-body:first-of-type{margin-top:clamp(28px,4vh,44px)}

.thesis-body + .thesis-body{margin-top:.55em}

.thesis-sub .hl,.thesis-body .hl{color:var(--accent);font-weight:600}
.thesis-sub .em,.thesis-body .em{color:rgba(249,248,245,.92);font-weight:600}

.story-label{font-family:var(--mono);font-size:11px;font-weight:400;letter-spacing:.2em;text-transform:uppercase;color:var(--accent);margin-top:clamp(44px,7vh,96px)}

.lab{margin-top:clamp(56px,9vh,110px)}

.lab-title{font-family:var(--mono);font-size:11px;font-weight:400;letter-spacing:.2em;text-transform:uppercase;color:var(--accent);margin-bottom:clamp(24px,4vh,40px);text-align:left}
.filmstrip{
  position:relative;
  width:100vw;margin-left:calc(50% - 50vw);
  overflow:hidden;
  padding-block:clamp(22px,2.8vw,36px);
  display:flex;flex-direction:column;gap:clamp(12px,1.7vw,26px);
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
          mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
}

.filmstrip-row{overflow:hidden}
.filmstrip-track{display:flex;align-items:center;width:max-content;will-change:transform;cursor:grab;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.filmstrip-track.is-dragging{cursor:grabbing}

.fs-item{flex:0 0 auto;height:var(--fs-h,240px);aspect-ratio:var(--fs-ar,3/2);margin:0 clamp(12px,1.6vw,26px) 0 0;padding:0;border:0;background:#0a0a0a;overflow:hidden;cursor:pointer;
  transform:translateY(var(--fs-y,0));
  box-shadow:0 16px 38px rgba(0,0,0,.5),0 2px 8px rgba(0,0,0,.4);
  transition:transform .45s cubic-bezier(.2,.7,.2,1),box-shadow .45s ease}

.fs-item>img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none;-webkit-user-drag:none;user-select:none}
.fs-item:hover{transform:translateY(var(--fs-y,0)) scale(1.035);box-shadow:0 24px 54px rgba(0,0,0,.6)}
.fs-item:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

.fs-portrait{--fs-ar:3/4;  --fs-h:clamp(230px,42vw,344px);--fs-y:-18px}
.fs-wide    {--fs-ar:16/10;--fs-h:clamp(168px,30vw,240px);--fs-y:22px}
.fs-square  {--fs-ar:1/1;  --fs-h:clamp(190px,34vw,272px);--fs-y:-4px}
.fs-pano    {--fs-ar:2/1;  --fs-h:clamp(156px,27vw,214px);--fs-y:16px}

.commission-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(178px,1fr));gap:clamp(20px,2.4vw,36px);margin-top:clamp(26px,4vh,42px);max-width:860px}
.commission-grid h4{font-family:var(--mono);font-size:11px;font-weight:400;letter-spacing:.14em;text-transform:uppercase;color:rgba(249,248,245,.92)}
.commission-grid p{margin-top:9px;font-size:.98rem;line-height:1.55;color:rgba(249,248,245,.6)}

.lab .cta{margin-top:clamp(28px,4vh,44px)}
.lab .filmstrip{margin-top:clamp(44px,6vh,84px)}

.lightbox{position:fixed;inset:0;z-index:300;display:flex;align-items:center;justify-content:center;padding:clamp(16px,4vw,56px);background:rgba(5,5,5,.92);opacity:0;transition:opacity .25s ease}
.lightbox[hidden]{display:none}
.lightbox.show{opacity:1}
.lightbox-img{max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 20px 80px rgba(0,0,0,.6)}
.lightbox-close{position:absolute;top:clamp(10px,2vw,22px);right:clamp(14px,2.4vw,28px);width:44px;height:44px;border:0;background:none;color:var(--paper);font-size:34px;line-height:1;cursor:pointer;opacity:.75;transition:opacity .2s,color .2s}
.lightbox-close:hover{opacity:1;color:var(--accent)}
.lightbox-close:focus-visible{outline:2px solid var(--accent);outline-offset:2px;opacity:1}

@media (max-width:860px){
  .rail{display:none}
  .mark{top:18px}
  .mark-logo,.mark-logo img{height:24px}
  .panel{padding:104px 7vw 76px}
  .split{grid-template-columns:1fr;gap:26px;align-content:center}
  .media{height:40vh;max-height:340px}
  .stats{gap:36px}
  .stat b{font-size:1.9rem}

  #elpm .stats{gap:clamp(14px,4.5vw,24px)}
  #elpm .stat b{font-size:clamp(1.05rem,5.2vw,1.25rem)}

  .stack{grid-template-rows:auto auto auto;align-content:center;row-gap:clamp(10px,1.6vh,16px)}
  .stack .media{grid-row:1;height:auto}
  .stack .media img{width:auto;height:auto;max-width:100%;max-height:clamp(220px,38vh,320px)}
  .stack .stack-cta{grid-row:3;align-self:auto;margin-top:clamp(6px,1.4vh,14px)}
  .stack .lede{margin-top:10px}
  .stack .stats{margin-top:clamp(12px,1.8vh,18px)}
  .stack .spec-rows{margin-top:clamp(10px,1.6vh,16px);gap:5px}
}

@media (min-width:861px) and (max-height:820px){
  .panel{padding:clamp(88px,12vh,120px) 7vw clamp(56px,8vh,88px)}
  h1{font-size:clamp(2.2rem,5.2vw,3.7rem)}
  .eyebrow{margin-bottom:20px}
  .lede{margin-top:20px}
  .stats{margin-top:30px}
  .stat b{font-size:clamp(1.8rem,3vw,2.5rem)}
  .cta{margin-top:28px}

  .panel{--media-h:calc(100dvh - clamp(88px,12vh,120px) - clamp(56px,8vh,88px))}

}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none !important}

}

