/* Homepage: first screen, project chapter and the frame around the film.
   One idea: the page opens at night inside the studio's own rendered city and ends on paper.
   Tokens and rules are documented in _qa/landing-20261109/DIRECTION.md. */
.landing{
  --night:#07121a;--night-2:#0c1a25;--night-3:#132532;
  --bone:#ece7da;--bone-2:#b7bdb9;--bone-3:#8696a0;
  --rule:rgba(236,231,218,.16);--rule-strong:rgba(236,231,218,.32);
  --ember:#ef9a72;--signal:#9cd6ca;
  --gutter:clamp(20px,5vw,72px);--maxw:1584px;
  --lp-ease:cubic-bezier(.16,1,.3,1);
  --t-display:clamp(3rem,6.4vw,7rem);--t-h2:clamp(2.25rem,4.7vw,4.75rem);--t-h3:clamp(2rem,3.3vw,3.25rem);
  --t-lead:clamp(1.0625rem,1.3vw,1.3125rem);--t-body:1rem;--t-label:.75rem;
}
html:has(.landing){background:#07121a;scroll-padding-top:0}
html:has(.landing)::-webkit-scrollbar-track{background:#07121a}
html:has(.landing)::-webkit-scrollbar-thumb{background:#33454f;border-color:#07121a}
html:has(.landing)::-webkit-scrollbar-thumb:hover{background:#4c626e}

/* The page owns its width: night chapters are full-bleed, the paper sections keep the reading column. */
.landing .site-shell{max-width:none;padding:0;margin:0}
.lp-wrap{width:100%;max-width:var(--maxw);margin-inline:auto;padding-inline:var(--gutter)}
.lp-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* Masthead: same markup as every other page, laid over the night on this one only. */
.landing .gloryck-header{position:absolute;inset:0 0 auto 0;background:none;-webkit-backdrop-filter:none;backdrop-filter:none;color:var(--bone)}
.landing .gloryck-header .gh-frame{width:100%;max-width:var(--maxw);padding-inline:var(--gutter);height:104px}
.landing .gloryck-header .gh-frame::after{display:none}
.landing .gloryck-header a{color:var(--bone)!important}
.landing .gloryck-header .gh-brand .gh-stop{color:var(--ember)}
.landing .gloryck-header .gh-nav{gap:34px}.landing .gloryck-header .gh-nav a{min-width:44px}
.landing .gloryck-header .gh-nav a,.landing .gloryck-header .gh-contact{font-size:15px}
.landing .gloryck-header .gh-locale{font-size:12px;min-width:44px;min-height:44px;border-left-color:var(--rule-strong)}
.landing .gh-nav a::after{background:var(--ember)}
.landing .gloryck-header .gh-nav a:hover,.landing .gloryck-header .gh-nav a[aria-current],.landing .gloryck-header .gh-locale:hover,.landing .gloryck-header .gh-contact:hover{color:var(--ember)!important}
.landing .gloryck-header a:focus-visible{outline-color:var(--ember)}
@media(max-width:760px){
  .landing .gloryck-header .gh-frame{height:auto;min-height:0;padding-top:14px;gap:4px 16px}
  .landing .gloryck-header .gh-nav{justify-content:flex-start;gap:28px;border-top:0;padding:0!important}
  .landing .gloryck-header .gh-nav a{font-size:14px}
  .landing .gloryck-header .gh-contact{font-size:14px}
  .landing .gloryck-header .gh-locale{font-size:12px;min-width:44px;min-height:44px}
}
@media(max-width:359px){.landing .gloryck-header .gh-nav{gap:22px}}

/* Shared night typography */
.lp-hero,.lp-work{background:var(--night);color:var(--bone);font-family:var(--sans);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
.lp-hero ::selection,.lp-work ::selection{background:var(--ember);color:var(--night)}
.lp-hero :focus-visible,.lp-work :focus-visible{outline:2px solid var(--ember);outline-offset:4px;border-radius:2px}
.lp-kicker{font:400 var(--t-label)/1.5 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--bone-2)}
.lp-quiet{color:var(--bone-3)}
.lp-hero h1,.lp-work h2,.lp-work h3{font-family:var(--sans);font-weight:500;margin:0;text-wrap:balance}
.lp-hero h1>span,.lp-work h2>span{display:block}

/* 1. First screen */
.lp-hero{position:relative;isolation:isolate;display:flex;flex-direction:column;min-height:min(100vh,1160px);min-height:min(100svh,1160px);overflow:hidden}
.lp-hero-media{position:absolute;z-index:-1;inset:0;overflow:hidden;mask-image:linear-gradient(0deg,transparent 2%,#000 20%)}
.lp-hero-frame,.lp-hero-frame canvas{position:absolute;inset:0}
.lp-hero-frame picture{position:absolute;inset:8% 0 0 auto;width:min(68vw,98svh,1360px);mask-image:linear-gradient(90deg,transparent,#000 51%),linear-gradient(180deg,transparent,#000 4.2%);mask-composite:intersect}
.lp-hero-frame img,.lp-hero-frame canvas{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 24%}
.lp-hero-frame canvas{pointer-events:none;animation:lp-stage-in .2s linear}
@keyframes lp-stage-in{from{opacity:0}to{opacity:1}}
.lp-hero-frame canvas[hidden]{display:none}
.lp-hero::after{content:'';position:absolute;z-index:-1;inset:0 0 auto;height:150px;background:linear-gradient(180deg,rgba(7,18,26,.78),rgba(7,18,26,.35) 42%,transparent);pointer-events:none}
.lp-hero-body{flex:1;display:flex;flex-direction:column;justify-content:center;padding-top:132px;padding-bottom:40px}
.lp-hero h1{font-size:var(--t-display);line-height:.95;letter-spacing:-.045em;margin:22px 0 0;max-width:11.5em}
.lp-lead{font-size:var(--t-lead);line-height:1.5;color:var(--bone-2);max-width:35em;margin-top:clamp(22px,2.6vw,36px);text-wrap:pretty}
.lp-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 32px;margin-top:clamp(28px,3vw,44px)}
.lp-btn{display:inline-flex;align-items:center;gap:18px;min-height:56px;padding:0 24px 0 26px;background:var(--bone);color:var(--night);font-size:1rem;font-weight:500;letter-spacing:-.01em;border-radius:4px;transition:background .3s var(--lp-ease),transform .3s var(--lp-ease)}
.lp-btn svg,.lp-link svg{width:20px;height:20px;flex:none;transition:transform .4s var(--lp-ease)}
.lp-btn:hover{background:#fff}.lp-btn:hover svg{transform:translateY(3px)}
.lp-close-actions .lp-btn:is(:hover,:focus-visible) svg{transform:translate(2px,-2px)}
.lp-link{display:inline-flex;align-items:center;gap:10px;min-height:48px;font-size:1rem;color:var(--bone);border-bottom:1px solid var(--rule-strong);transition:color .3s var(--lp-ease),border-color .3s var(--lp-ease)}
.lp-link:hover{color:var(--ember);border-color:var(--ember)}.lp-link:hover svg{transform:translate(2px,-2px)}

/* 2. Projects */
.lp-work{padding-block:clamp(72px,10vw,168px) clamp(72px,9vw,152px)}
.lp-work-head{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:clamp(16px,2vw,32px);align-items:end;padding-bottom:clamp(40px,5vw,80px)}

.lp-work h2{grid-column:1/span 8;font-size:var(--t-h2);line-height:.98;letter-spacing:-.04em}

.lp-case{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:clamp(16px,2vw,32px);padding-block:clamp(36px,4.4vw,72px);border-top:1px solid var(--rule)}
.lp-case-info{grid-column:1/span 4;display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding-right:clamp(0px,1.5vw,28px)}

.lp-work h3{font-size:var(--t-h3);line-height:1;letter-spacing:-.04em;margin-top:clamp(18px,2vw,30px)}
.lp-case-claim{font-size:clamp(1.125rem,1.5vw,1.4375rem);line-height:1.3;letter-spacing:-.015em;color:var(--bone);margin-top:16px;text-wrap:balance}

.lp-case-link{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:56px;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);font-size:1rem;font-weight:500;color:var(--bone);transition:color .3s var(--lp-ease),border-color .3s var(--lp-ease)}
.lp-case-link{margin-top:auto;width:auto;justify-content:flex-start;border:0}
.lp-case-link svg{width:20px;height:20px;flex:none;transition:transform .4s var(--lp-ease)}
.lp-case-link:hover{color:var(--ember);border-color:var(--ember)}.lp-case-link:hover svg{transform:translateX(4px)}
.lp-case-links{margin-top:auto;display:flex;flex-wrap:wrap;column-gap:clamp(20px,2.4vw,36px)}.lp-case-link-out:hover svg{transform:translate(3px,-3px)}
.lp-stage{grid-column:5/-1;margin:0;min-width:0;display:flex;flex-direction:column;background:var(--night-2);border:1px solid var(--rule);border-radius:6px;overflow:hidden;box-shadow:0 48px 90px -48px rgba(0,0,0,.75);transition:border-color .5s var(--lp-ease)}
.lp-stage:hover,.lp-stage:focus-within{border-color:var(--rule-strong)}
.lp-case{--stage-h:560px}.lp-case[data-case=lift]{--stage-h:556px}.lp-case[data-case=flmcp],.lp-case[data-case=carbot]{--stage-h:584px}.lp-case[data-case=hv2]{--stage-h:470px}
.lp-stage{align-self:start}
.lp-preview-slot{height:var(--stage-h)}
.lp-stage iframe{display:block;width:100%;height:var(--stage-h);border:0;background:var(--night-2);color-scheme:dark}
.lp-stage figcaption{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;padding:0 16px;border-top:1px solid var(--rule);font:400 var(--t-label)/1.4 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--bone-2)}
.lp-live{display:inline-flex;align-items:center;gap:10px}
.lp-live::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--signal);box-shadow:0 0 0 4px rgba(156,214,202,.14)}
.lp-stage figcaption a{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--bone);white-space:nowrap;transition:color .3s var(--lp-ease)}
.lp-stage figcaption a:hover{color:var(--ember)}
.lp-stage figcaption svg{width:15px;height:15px}

/* Reveal: only when landing.js is running; the page is complete without it. */
.lp-js .lp-case{opacity:0;transform:translateY(28px)}
.lp-js .lp-case.lp-in{opacity:1;transform:none;transition:opacity .9s var(--lp-ease),transform 1.1s var(--lp-ease)}

@media(prefers-reduced-motion:no-preference){
  .lp-motion h1>span{animation:lp-unmask .78s var(--lp-ease) .10s backwards}
  .lp-motion h1>.lp-quiet{animation:lp-unmask .76s var(--lp-ease) .40s backwards,lp-breath .90s ease-in-out 1.3s}
  .lp-motion .lp-lead{animation:lp-rise .62s var(--lp-ease) .72s backwards}
  .lp-motion .lp-actions{animation:lp-rise .58s var(--lp-ease) .90s backwards}
  .lp-motion .lp-actions:focus-within{animation:none}
}
@keyframes lp-unmask{from{clip-path:inset(0 0 100%);transform:translateY(18px)}to{clip-path:inset(0);transform:none}}
@keyframes lp-breath{50%{color:#aab8c0}}
@keyframes lp-rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){
  .lp-js .lp-case{opacity:1;transform:none}
  .lp-btn,.lp-link,.lp-case-link,.lp-btn svg,.lp-link svg,.lp-case-link svg{transition:none}
}

@media(max-width:1100px){
  .lp-work h2{grid-column:1/-1}
  /* Stacked: name and claim, then the working preview, then the detail. */
  .lp-case{row-gap:0}.lp-case-info{display:contents}
  .lp-case-info>*,.lp-stage{grid-column:1/-1}
  .lp-stage{order:1;margin-top:28px}.lp-case-links{order:4}
  
}
@media(min-width:601px) and (max-width:1250px){.lp-lead{max-width:min(35em,52vw)}}
@media(min-width:601px) and (max-width:1000px){.landing{--t-display:clamp(2.5rem,5.7vw,3.5rem)}.lp-hero h1{max-width:none}}
@media(min-width:1101px) and (max-width:1150px),(max-width:780px){.lp-case[data-case=hv2]{--stage-h:552px}}
@media(max-width:760px){
  .landing{--t-h2:clamp(2.125rem,9.6vw,3.25rem);--t-h3:clamp(2rem,9vw,2.75rem)}
  
}
@media(max-width:600px){
  .landing{--t-display:min(11.4vw,4.25rem)}.landing[data-locale=en]{--t-display:min(10.1vw,3.75rem)}
  .lp-wide-only{display:none}
  /* The tower fills the top of the screen; copy starts under its sign (positions follow the image width). */
  .lp-hero-media{left:0;width:auto;bottom:auto;height:min(170vw,760px);-webkit-mask-image:linear-gradient(0deg,transparent 14%,#000 50%);mask-image:linear-gradient(0deg,transparent 14%,#000 50%)}
  .lp-hero-frame picture{inset:0;width:100%;mask:none}
  .lp-hero-frame img{object-position:50% 0}
  .lp-hero-body{justify-content:flex-start;padding-top:min(100vw,480px);padding-bottom:28px}
  .lp-hero h1{margin-top:12px}
  .lp-actions{gap:8px 26px}
  .lp-case[data-case=lift]{--stage-h:520px}.lp-case[data-case=flmcp]{--stage-h:575px}.lp-case[data-case=carbot]{--stage-h:600px}.lp-case[data-case=hv2]{--stage-h:672px}
  .lp-stage{margin-inline:calc(var(--gutter)*-1 + 8px)}
  .lp-stage figcaption{padding:0 12px;letter-spacing:.03em}
}
@media(max-width:420px){}
@media(min-width:601px) and (max-height:760px){.lp-hero h1{font-size:clamp(3rem,10.5vh,7rem)}.lp-hero-body{padding-top:112px;padding-bottom:24px}}

/* 4. The studio, on paper. Same grid and type scale as the night chapters, with the tokens swapped. */
.lp-paper{background:var(--paper);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;padding-block:clamp(72px,9vw,152px)}
.lp-paper+.lp-paper{padding-top:0}
.lp-paper .lp-quiet{color:#73746c}
.lp-paper :focus-visible,.lp-close :focus-visible,.lp-foot :focus-visible{outline:2px solid var(--copper);outline-offset:4px;border-radius:2px}
.lp-close :focus-visible,.lp-foot :focus-visible{outline-color:var(--ember)}
.lp-paper h2,.lp-close h2{font-family:var(--sans);font-weight:500;margin:0;text-wrap:balance}
.lp-paper h2>span,.lp-close h2>span{display:block}
.lp-paper h2{font-size:var(--t-h2);line-height:.98;letter-spacing:-.04em}
.lp-paper-head{padding-bottom:clamp(36px,4.5vw,72px)}
.lp-paper-head-link{display:flex;align-items:flex-end;justify-content:space-between;gap:32px}
.lp-paper-link{display:inline-flex;align-items:center;gap:12px;min-height:48px;font-size:1rem;font-weight:500;white-space:nowrap;border-bottom:1px solid var(--ink);transition:color .3s var(--lp-ease),border-color .3s var(--lp-ease)}
.lp-paper-link svg{width:20px;height:20px;transition:transform .4s var(--lp-ease)}
.lp-paper-link:hover{color:var(--copper);border-color:var(--copper)}.lp-paper-link:hover svg{transform:translateX(4px)}

.lp-service{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:clamp(16px,2vw,32px);align-items:baseline;padding-block:clamp(28px,3vw,48px);border-top:1px solid var(--line)}
.lp-service:last-child{border-bottom:1px solid var(--line)}
.lp-service h3{grid-column:1/span 7;margin:0;font-family:var(--sans);font-weight:500;font-size:clamp(1.625rem,2.5vw,2.625rem);line-height:1.05;letter-spacing:-.035em;text-wrap:balance}
.lp-service-tags{grid-column:8/-1;margin:0;font:400 var(--t-label)/1.7 var(--mono);letter-spacing:.04em;color:var(--muted);text-align:right}
/* Each row is a link to its service page. */
a.lp-service{transition:color .3s var(--lp-ease)}
a.lp-service .lp-service-tags{grid-column:8/span 4;transition:color .3s var(--lp-ease)}
a.lp-service svg{grid-column:12;justify-self:end;align-self:center;width:24px;height:24px;transition:transform .4s var(--lp-ease)}
a.lp-service:hover,a.lp-service:hover .lp-service-tags{color:var(--copper)}a.lp-service:hover svg{transform:translateX(4px)}

.lp-about h2{font-size:var(--t-display);line-height:.97;letter-spacing:-.045em}

.lp-post{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:clamp(16px,2vw,32px);align-items:baseline;min-height:88px;padding-block:clamp(22px,2.4vw,36px);border-top:1px solid var(--line);transition:color .3s var(--lp-ease)}
.lp-post:last-child{border-bottom:1px solid var(--line)}
.lp-post h3{grid-column:1/span 9;margin:0;font-family:var(--sans);font-weight:500;font-size:clamp(1.25rem,1.9vw,1.75rem);line-height:1.2;letter-spacing:-.02em;text-wrap:balance}
.lp-post-date{grid-column:10/span 2;font:400 var(--t-label)/1.5 var(--mono);letter-spacing:.06em;color:var(--muted);text-align:right;white-space:nowrap}
.lp-post svg{grid-column:12;justify-self:end;align-self:center;width:24px;height:24px;transition:transform .4s var(--lp-ease)}
.lp-post:hover{color:var(--copper)}.lp-post:hover svg{transform:translate(3px,-3px)}

/* 5. Closing chapter: back to night. */
.lp-close{background:var(--night);color:var(--bone);font-family:var(--sans);-webkit-font-smoothing:antialiased;padding-block:clamp(96px,12vw,200px) clamp(56px,6vw,96px)}
.lp-close h2{font-size:var(--t-display);line-height:.97;letter-spacing:-.045em;max-width:12.5em}
.lp-close-mail{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin-top:clamp(48px,6vw,104px);padding-top:clamp(20px,2vw,32px);border-top:1px solid var(--rule)}
.lp-close-mail>a{font-size:clamp(1.375rem,7vw,4.75rem);line-height:1.1;letter-spacing:-.04em;font-weight:500;transition:color .3s var(--lp-ease)}
.lp-close-mail>a:hover{color:var(--ember)}
.lp-close .copy-email{display:grid;place-items:center;width:44px;height:44px;border:0;background:none;padding:10px;color:var(--bone-2);border-radius:4px;transition:color .3s var(--lp-ease)}
.lp-close .copy-email:hover{color:var(--ember)}.lp-close .copy-email svg{width:20px;height:20px}
.lp-close .copy-status{display:block;min-height:20px;font-size:.875rem;line-height:1.45;color:var(--ember)}
.lp-close-actions{margin-top:16px}

.lp-foot{background:var(--night);color:var(--bone-2);font-family:var(--sans);font-size:.875rem;padding-bottom:clamp(16px,2vw,28px)}
.lp-foot-main{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 40px;padding-block:20px;border-top:1px solid var(--rule)}
.lp-foot-brand{display:inline-flex;align-items:center;gap:10px;min-height:44px;color:var(--bone);font-size:1.5rem;font-weight:600;letter-spacing:-.03em}
.lp-foot-brand svg{width:26px;height:26px}.lp-foot-brand b{font-weight:inherit;color:var(--ember)}
.lp-foot-links{display:flex;flex-wrap:wrap;gap:0 clamp(20px,3vw,40px)}
.lp-foot-links a{display:inline-flex;align-items:center;min-width:44px;min-height:44px;transition:color .3s var(--lp-ease)}.lp-foot-links a:hover{color:var(--ember)}
.lp-foot-sub{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;border-top:1px solid var(--rule)}
.lp-legal summary{display:flex;align-items:center;min-height:48px;cursor:pointer;transition:color .3s var(--lp-ease)}.lp-legal summary:hover{color:var(--ember)}
.lp-legal summary::-webkit-details-marker{display:none}
.lp-legal summary::after{content:"";width:6px;height:6px;margin:-3px 2px 0 10px;border:solid currentColor;border-width:0 1px 1px 0;transform:rotate(45deg)}
.lp-legal[open] summary::after{margin-top:3px;transform:rotate(225deg)}
.lp-legal>div{padding-bottom:16px;line-height:1.7}.lp-legal strong{color:var(--bone);font-weight:500}.lp-legal p{margin:4px 0 0}
.lp-foot-copy{margin:0;white-space:nowrap;flex:none;line-height:48px;color:var(--bone-3)}

/* Film: the title and the chapter numbers are all that stays on screen. */
.world-topline{justify-content:flex-end}
.world-topline>span:first-child,.world-stage-label,.world-stage-copy,.world-chapters button span,.world-replay,.world-atmosphere-label{display:none}
.world-journey:not(.world-failed) .world-status{width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

/* The contact sheet speaks the same language. */
.landing .contact-dialog h2{font:500 clamp(2.25rem,5vw,3.25rem)/1 var(--sans);letter-spacing:-.04em}
.landing .dialog-sheet{border-top:0}.landing .contact-dialog .button{border-radius:4px}

@media(max-width:1000px){
  .lp-service h3,.lp-service-tags{grid-column:1/-1;text-align:left}.lp-service-tags{margin-top:10px}
  a.lp-service h3,a.lp-service .lp-service-tags{grid-column:1/span 11}a.lp-service svg{grid-row:1/span 2}
  .lp-post h3{grid-column:1/span 11}.lp-post-date{grid-column:1/span 11;grid-row:2;text-align:left;margin-top:8px}.lp-post svg{grid-row:1/span 2}
}
@media(max-width:600px){
  .lp-paper-head-link{flex-direction:column;align-items:flex-start;gap:16px}
  .lp-foot-main{flex-direction:column;align-items:flex-start}
}
@media(prefers-reduced-motion:reduce){.lp-btn:hover svg,.lp-close-actions .lp-btn:is(:hover,:focus-visible) svg{transform:none}.lp-paper-link,.lp-paper-link svg,.lp-service,.lp-service-tags,.lp-service svg,.lp-post,.lp-post svg,.lp-close-mail>a{transition:none}}
