:root{color-scheme:dark;--ink:#080807;--light:#f3e9da;--gold:#d7b98e;--reveal:0;font-family:Arial,Helvetica,sans-serif;font-synthesis:none}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;background:var(--ink)}body{overflow:hidden;color:var(--light)}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:2px solid #fce1b9;outline-offset:8px}[hidden]{display:none!important}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.experience{--home-menu-inset:9.2%;position:relative;isolation:isolate;width:100%;height:100svh;min-height:380px;overflow:hidden;background:#050505}.scene{position:absolute;inset:0;z-index:-2;background:#050505}.scene-video,.scene-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.scene-video{opacity:0;transition:opacity .5s linear}.scene-video.is-active{opacity:1}.scene-poster{object-fit:contain}
/* Keep the same outline on the page and on its full-screen dialogs. */
:root{--site-frame-inset:clamp(4px,1vmin,8px)}
body:not(:has(dialog[open]))::after,dialog[open]::after{
  content:"";position:fixed;inset:var(--site-frame-inset);
  border:1px solid var(--gold);pointer-events:none;z-index:31;
}
.work-project[open]::after{box-shadow:0 0 0 var(--site-frame-inset) var(--ink)}
.scene:after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:
    linear-gradient(var(--scene-edge-direction,to bottom),#000,transparent var(--scene-edge-fade,0px)),
    linear-gradient(180deg,rgba(0,0,0,.12),transparent 18%,transparent 82%,rgba(0,0,0,.24));
}
/* The logo and the lighthouse layout share the visible frame of the film. */
.brand,.about-page,.level-two-page{
  position:absolute;inset:0;margin:auto;pointer-events:none;
  width:min(100%,calc(max(380px,100svh) * 16 / 9));height:min(100%,56.25vw);
}
.brand{
  z-index:20;overflow:clip;
  --departure-top:calc(100% - var(--phare-logo-bottom));--departure-width:var(--phare-logo-width);
  --phare-logo-left:max(10.35%,env(safe-area-inset-left));
  --departure-transform:translateY(-100%);--departure-left:var(--phare-logo-left);
  /* The poster and every 384px animation frame have a 4px transparent left inset. */
  --home-logo-left:calc(var(--home-menu-inset) - var(--home-logo-width) / 96);
  --home-logo-top:max(8.85%,env(safe-area-inset-top));
  --home-logo-width:20%;--phare-logo-width:20%;
  --phare-logo-bottom:max(10%,env(safe-area-inset-bottom));
}
.lamp-flicker{position:absolute;inset:0;z-index:-1;background:#000;opacity:0;pointer-events:none}
/* Match the film's contain/cover frame so the portraits stay over the seated woman. */
.home-subliminal{position:absolute;inset:0;margin:auto;pointer-events:none;width:min(100%,calc(max(380px,100svh) * 16 / 9));height:min(100%,56.25vw)}
.home-subliminal img{position:absolute;left:31.85%;top:31.25%;width:34.5%;height:auto;opacity:0;mask-image:radial-gradient(ellipse 60% 65% at 50% 50%,#000 70%,transparent 100%)}
body:not([data-route="home"]) .home-subliminal,body:not(:is([data-phase="intro"],[data-phase="idle"])) .home-subliminal{display:none}
@media(max-width:700px){.home-subliminal{width:max(100%,calc(max(380px,100svh) * 16 / 9));height:max(100%,56.25vw);inset:auto;left:50%;top:50%;transform:translate(-50%,-50%);margin:0}}
@media(prefers-reduced-motion:reduce){.home-subliminal{display:none}}
.brand-name{
  position:absolute;display:block;pointer-events:auto;width:var(--home-logo-width);
  --logo-left:var(--home-logo-left);left:var(--logo-left);top:var(--home-logo-top);
}
body:is([data-route="about"],[data-route="to-about"]) .brand-name{
  --logo-left:var(--phare-logo-left);top:calc(100% - var(--phare-logo-bottom));transform:translateY(-100%);width:var(--phare-logo-width);
}
body[data-route="level-two"] .brand-name{
  --home-logo-top:13%;--logo-left:9.2%;top:var(--home-logo-top);transform:none;
}
@media(prefers-reduced-motion:no-preference){
  body:is([data-route="to-about"],[data-route="to-home"]) .brand-name{
    animation:brand-passage 2.5s linear var(--brand-playhead,0s) both paused;
  }
  body .brand-name[data-exiting="top"]{
    left:var(--departure-left);width:var(--departure-width);
    animation:brand-depart .45s cubic-bezier(.3,.58,.64,1) both;
  }
  body .brand-name[data-exiting="bottom"]{--press-offset:7%;animation:brand-return 1s linear both}
  body .brand-name[data-exiting="level-two"]{animation:brand-return 1s linear var(--phare-logo-exit-playhead,0s) both paused}
  body[data-paused="true"] .brand-name[data-exiting]{animation-play-state:paused}
}
@keyframes brand-depart{
  from{top:var(--departure-top);transform:var(--departure-transform);visibility:visible}
  to{top:0;transform:translateY(calc(-100% - 2px));visibility:hidden}
}
@keyframes brand-return{
  0%{top:var(--departure-top);left:var(--departure-left);transform:var(--departure-transform);width:var(--departure-width);translate:0 var(--press-offset,0%);animation-timing-function:cubic-bezier(.2,.76,.4,1)}
  26%{top:100%;left:var(--departure-left);transform:translateY(2px);width:var(--departure-width);translate:none;visibility:hidden;animation-timing-function:step-end}
  32%{top:0;left:var(--logo-left);transform:translateY(calc(-100% - 2px));width:var(--home-logo-width);visibility:visible;animation-timing-function:cubic-bezier(.2,.78,.28,1)}
  100%{top:var(--home-logo-top);left:var(--logo-left);transform:translateY(0);width:var(--home-logo-width);visibility:visible}
}
@keyframes brand-passage{
  0%{top:var(--home-logo-top);left:var(--home-logo-left);transform:translateY(0);width:var(--home-logo-width);visibility:visible;animation-timing-function:ease-in}
  22%{top:0;left:var(--home-logo-left);transform:translateY(calc(-100% - 2px));width:var(--home-logo-width);visibility:hidden;animation-timing-function:step-end}
  64%{top:100%;left:var(--phare-logo-left);transform:translateY(2px);width:var(--phare-logo-width);visibility:visible;animation-timing-function:cubic-bezier(.2,.75,.25,1)}
  100%{top:calc(100% - var(--phare-logo-bottom));left:var(--phare-logo-left);transform:translateY(-100%);width:var(--phare-logo-width);visibility:visible}
}
.brand-logo{display:block;width:100%;height:auto}
.brand-logo-animation{position:absolute;inset:0;opacity:0}
.is-animated > .brand-logo-animation{opacity:1}
.is-animated > .brand-logo-still{visibility:hidden}
.interface{position:absolute;left:50%;top:50%;width:min(100vw,177.7778svh);height:min(100svh,56.25vw);transform:translate(-50%,-50%);pointer-events:none}.orbits{position:absolute;width:100%;height:100%;overflow:visible;opacity:var(--reveal)}.orbit,.connector{stroke:var(--gold);stroke-width:.8;vector-effect:non-scaling-stroke}.orbit-faint{opacity:.18}.orbit-sweep{stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--reveal));opacity:.72;stroke-width:.9}.orbit-glow{stroke-width:3;opacity:.24}.orbit-dots{stroke-dasharray:.1 10;stroke-linecap:round;stroke-width:1.4;opacity:.38}.orbit-bottom{opacity:.32}.connector{opacity:.55}.orbit-points{fill:#fce9cb;filter:drop-shadow(0 0 4px #eed6a0)}
.portals{position:absolute;inset:0}
.brand,.about-page{--signature-top:8%;--signature-width:22.8%}
.studio-tagline{position:absolute;top:var(--signature-top);right:6.7%;width:var(--signature-width)}
.studio-tagline img{display:block;width:100%;height:auto}
.studio-tagline canvas{display:none;position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
@media(prefers-reduced-motion:no-preference){
  body[data-phase="intro"] .studio-tagline[data-writing][data-pen] img{opacity:0}
  body[data-phase="intro"] .studio-tagline[data-writing][data-pen="ready"] canvas{display:block}
}
.home-laurels{
  position:absolute;left:50%;bottom:5.65%;translate:-50% 0;width:45%;
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3.8%;
  list-style:none;margin:0;padding:0;opacity:var(--reveal);
}
.home-laurels img{display:block;width:100%;height:auto;filter:brightness(.68) sepia(.9)}
.portal{
  container-type:inline-size;--icon-shift:calc(37.5cqw + 6px);
  position:absolute;display:grid;grid-template-columns:25% minmax(0,1fr);column-gap:12px;
  align-items:center;padding:0 clamp(14px,1.25vw,24px);width:24%;height:8.25%;min-height:48px;max-height:74px;translate:0 -50%;
  border:1px solid rgba(220,191,151,.78);border-radius:999px;color:#f7eee2;text-decoration:none;
  background:linear-gradient(145deg,rgba(91,67,36,.09),rgba(8,8,7,.17) 48%,rgba(123,86,44,.055));
  box-shadow:0 0 20px rgba(223,183,125,.085),inset 0 0 22px rgba(223,190,140,.025);
  backdrop-filter:blur(3px);opacity:0;transform:translateY(8px) scale(.985);pointer-events:none;
  will-change:opacity,transform;transition:background .25s,border-color .25s,box-shadow .25s,color .25s;
}
.portal.is-visible{opacity:1;transform:translateY(0) scale(1);pointer-events:auto;animation:materialize .7s cubic-bezier(.19,1,.22,1) both}
.portal:before,.portal:after{content:"";position:absolute;inset:-1px;border:1px solid #fff0da;border-radius:inherit;pointer-events:none}
.portal:before{mask-image:radial-gradient(ellipse at 14% 0%,#000 2%,transparent 64%);filter:drop-shadow(0 -1px 4px rgba(255,224,183,.65))}
.portal:after{mask-image:radial-gradient(ellipse at 20% 100%,#000 4%,transparent 63%);filter:drop-shadow(0 2px 5px #e1b77e);box-shadow:0 3px 10px rgba(236,198,145,.42)}
.portal-training:after,.portal-contact:after{mask-image:radial-gradient(ellipse at 80% 100%,#000 4%,transparent 63%)}
.portal:hover{background:rgba(177,133,77,.13);border-color:#ffdfb2;box-shadow:0 0 30px rgba(221,177,110,.19),inset 0 0 24px rgba(221,177,110,.055);color:#fff7ec}
.portal:active{background:rgba(177,133,77,.22)}
.portal-icon{position:relative;display:grid;place-items:center;align-self:stretch;min-width:0;width:100%;height:100%;padding-right:12px;transition:transform .45s cubic-bezier(.22,1,.36,1)}
.portal-icon:after{content:"";position:absolute;right:0;top:28%;bottom:28%;width:1px;background:linear-gradient(transparent,rgba(226,196,155,.82) 18%,rgba(226,196,155,.82) 82%,transparent);transition:opacity .16s ease}
.portal-icon svg{display:block;width:clamp(28px,2.8vw,42px);height:auto;max-width:100%;aspect-ratio:1;stroke:#ead0aa;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 4px rgba(226,185,124,.12))}
.portal-label{display:block;min-width:0;margin:0;padding:0;width:100%;text-align:center;white-space:nowrap;font-size:clamp(.875rem,1.15vw,1.25rem);line-height:1.2;text-transform:uppercase;letter-spacing:clamp(.04em,.12vw,.18em);text-indent:clamp(.04em,.12vw,.18em);font-weight:400;text-shadow:0 0 10px rgba(255,226,187,.1);transition:opacity .18s ease,transform .28s ease}
.portal:focus-visible .portal-icon{transform:translateX(var(--icon-shift))}
.portal:focus-visible .portal-label{opacity:0;transform:translateX(8px)}
.portal:focus-visible .portal-icon:after{opacity:0}
@media(hover:hover) and (pointer:fine){
  .portal:hover .portal-icon{transform:translateX(var(--icon-shift))}
  .portal:hover .portal-label{opacity:0;transform:translateX(8px)}
  .portal:hover .portal-icon:after{opacity:0}
}
.portal-point{position:absolute;width:6px;height:6px;top:calc(50% - 3px);background:#fff0d6;border-radius:50%;box-shadow:0 0 5px #ffe6bf,0 0 14px rgba(230,192,140,.75)}
.portal-work,.portal-about{left:var(--home-menu-inset)}.portal-training,.portal-contact{right:9.2%}.portal-work,.portal-training{top:45.2222%}.portal-about,.portal-contact{top:65.5556%}.portal-work .portal-point,.portal-about .portal-point{right:-4px}.portal-training .portal-point,.portal-contact .portal-point{left:-4px}
.controls{
  position:absolute;inset:auto 38px max(25px,env(safe-area-inset-bottom));
  display:flex;align-items:center;gap:16px;min-height:38px;z-index:5;pointer-events:none;
}
.copyright{margin:0;color:#cbbfac;font-size:.6875rem;line-height:1.45;letter-spacing:.04em;text-shadow:0 1px 5px #000}
#enable-sound{flex:none;margin-inline-start:auto;pointer-events:auto}
.experience:focus{outline:none}
.icon-button,body[data-project-menu] .portal-back.is-visible{
  display:grid;place-items:center;border:1px solid rgba(220,191,151,.2);border-radius:50%;
  transition:background .2s,border-color .2s;
}
.icon-button{width:36px;height:36px;background:rgba(10,9,7,.18)}
.icon-button:hover{border-color:#b5a084;background:#2d231880}
.icon-button svg{width:17px;height:17px;stroke:#d0bd9f;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round}
.loading-backdrop{position:absolute;inset:0;z-index:10;background:rgba(0,0,0,.8)}
.loading{
  position:absolute;z-index:30;top:50%;left:50%;transform:translate(-50%,-50%);
  width:clamp(260px,25vw,340px);max-width:calc(100% - 40px);padding:20px 29px 19px;
  color:#ead0aa;pointer-events:none;
}
.loading-readout{display:flex;align-items:center;justify-content:space-between;gap:20px}
.loading-label{font-size:.875rem;line-height:1.35;letter-spacing:.09em;text-transform:uppercase;color:#f7eee2}
.loading-percentage{font-size:.9375rem;font-variant-numeric:tabular-nums;letter-spacing:.04em;white-space:nowrap}
.loading-track{height:3px;margin-top:12px;overflow:hidden;border-radius:999px;background:#d7b98e24}
.loading-fill{display:block;width:100%;height:100%;border-radius:inherit;transform:scaleX(var(--load-progress,0));transform-origin:left;background:linear-gradient(90deg,#af8854,#ead0aa);box-shadow:0 0 8px #ead0aa88;transition:transform .12s linear}
body[data-phase="entry"] :is(.brand,.interface,.controls){display:none}
.entry-panel{
  position:absolute;inset:0;z-index:6;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:clamp(28px,5svh,52px);pointer-events:none;
}
body[data-phase="entry"] .entry-panel{
  padding-bottom:clamp(80px,16svh,172px);
  background:radial-gradient(ellipse at 50% 44%,rgba(94,74,47,.09),transparent 55%),rgba(5,5,5,.6);
}
.entry-wordmark{display:none;position:relative;width:clamp(180px,26vw,310px);max-width:76vw}
body[data-phase="entry"] .entry-wordmark{display:block}
@media(prefers-reduced-motion:no-preference){
  body[data-phase="entry"] .entry-wordmark{animation:entry-logo-focus 1.5s ease-in-out backwards}
  @keyframes entry-logo-focus{from{opacity:0;filter:blur(14px)}to{opacity:1;filter:blur(0)}}
}
.enter{
  display:inline-flex;align-items:center;justify-content:center;gap:16px;pointer-events:auto;
  min-height:50px;max-width:90vw;padding:16px 30px;border:1px solid #c4a87fba;border-radius:100px;
  background:linear-gradient(145deg,#191510d9,#0a0908eb);color:var(--light);
  font-size:.875rem;letter-spacing:.10em;line-height:1.25;text-transform:uppercase;
  box-shadow:inset 0 0 14px #e2bd8110;transition:background .2s,border-color .2s;
}
.enter:is(:hover,:focus-visible){background:#241e16;border-color:#f0d1a1}
.play-mark{width:0;height:0;border-left:9px solid var(--gold);border-top:5px solid transparent;border-bottom:5px solid transparent}
.film-error{position:absolute;bottom:95px;left:50%;transform:translateX(-50%);width:min(80%,450px);text-align:center;font-size:.8125rem;color:#cbbba4}.no-script{position:absolute;bottom:70px;width:100%;text-align:center;font-size:.875rem}
@keyframes materialize{from{opacity:0;transform:translateY(9px) scale(.98);filter:blur(3px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}@keyframes breathe{50%{opacity:.25}}
@media(min-aspect-ratio:2/1){.interface{height:100svh;width:177.7778svh}.controls{bottom:16px}}
@media(min-width:701px) and (max-height:380px){
  body:is([data-route="home"],[data-route="to-home"]) .brand{width:min(100%,177.7778svh)}
}
@media(max-width:700px){
  .interface{
    --laurel-width:min(92vw,440px);--laurel-bottom:calc(max(16px,env(safe-area-inset-bottom)) + 38px);
    --menu-bottom:max(11%,calc(var(--laurel-bottom) + var(--laurel-width) * .123 + 10px));
  }
  .home-laurels{width:var(--laurel-width);bottom:var(--laurel-bottom);gap:2%}
  .studio-tagline{top:max(6%,env(safe-area-inset-top));right:max(4%,env(safe-area-inset-right));width:min(47%,255px)}
  .experience{--home-menu-inset:4%;min-height:380px}.scene-video,.scene-poster{object-fit:cover;object-position:50% 50%}.interface{inset:0;width:100%;height:100%;transform:none}
  .brand,.about-page,.level-two-page{width:100%;height:100%}
  .brand{
    --phare-logo-left:max(7.5%,env(safe-area-inset-left));
    --home-logo-top:max(6%,env(safe-area-inset-top));--home-logo-width:190px;
    --phare-logo-width:min(40%,170px,24svh);--phare-logo-bottom:max(1.6%,env(safe-area-inset-bottom));
  }
  .orbits{top:27%;height:52%;width:160%;left:-30%;opacity:calc(var(--reveal)*.7)}.connector,.orbit-points{display:none}
  .portal{--icon-shift:calc(50cqw - 11px);grid-template-columns:28px minmax(0,1fr);column-gap:8px;padding-inline:12px;width:44%;height:52px;min-height:52px;max-height:none;translate:none;background:rgba(8,7,6,.42);backdrop-filter:blur(8px)}
  .portal-training,.portal-contact{right:4%}.portal-work,.portal-training{top:auto;bottom:max(22%,calc(var(--menu-bottom) + 60px))}.portal-about,.portal-contact{top:auto;bottom:var(--menu-bottom)}
  .portal-icon{padding-right:6px}.portal-icon svg{width:22px;max-width:100%;height:auto}.portal-label{font-size:.875rem;letter-spacing:.015em;text-indent:.015em}.portal-point{width:4px;height:4px;top:calc(50% - 2px)}
  .controls{inset:auto 22px max(16px,env(safe-area-inset-bottom));min-height:34px}.icon-button{width:32px;height:32px}
  .film-error{bottom:34%;font-size:.75rem}.enter{font-size:.8rem;padding:18px 21px}
}
@media(max-width:450px){
  .experience{
    --tagline-top:calc(max(6%,env(safe-area-inset-top)) + 58px);
    --tagline-width:min(62vw,240px);
    --tagline-clearance:calc(var(--tagline-top) + var(--tagline-width) * 75 / 437 + 12px);
  }
  .studio-tagline{top:var(--tagline-top);width:var(--tagline-width)}
}
@media(max-width:370px){
  .portal{--icon-shift:calc(50cqw - 15px);width:90%;height:46px;min-height:46px;grid-template-columns:40px minmax(0,1fr);padding-inline:20px;column-gap:14px}
  .experience{--home-menu-inset:5%}
  .portal-training,.portal-contact{left:var(--home-menu-inset);right:auto}
  .portal-work{bottom:calc(var(--menu-bottom) + 162px)}.portal-about{bottom:calc(var(--menu-bottom) + 108px)}.portal-training{bottom:calc(var(--menu-bottom) + 54px)}.portal-contact{bottom:var(--menu-bottom)}
  .portal-label{letter-spacing:.12em;text-indent:.12em}.portal-icon{padding-right:10px}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.portal{will-change:auto}.orbit-sweep{stroke-dashoffset:0}}
@media(min-width:371px) and (max-width:700px) and (max-height:600px){.portal{height:48px;min-height:48px}.controls{bottom:9px}.orbits{top:10%;height:75%}}

/* On narrow portrait screens the homepage menu sits above the film. */
@media (max-width:1100px) and (orientation:portrait), (max-height:590px) and (orientation:landscape){
  .experience{
    --home-header-height:clamp(320px,38.5svh,510px);
    --home-row-height:clamp(44px,5.1svh,64px);
    --home-row-gap:clamp(24px,3.8svh,42px);
    --home-menu-gap:6.25vw;
    --home-menu-gutter:11.5%;
    --home-menu-foot:0px;
    --compact-logo-width:min(41vw,400px);
    --home-logo-area-height:calc(var(--home-header-height) - 2 * var(--home-row-height) - var(--home-row-gap) - var(--home-menu-foot));
    --home-logo-center:calc((var(--home-logo-area-height) + env(safe-area-inset-top)) / 2);
    --home-logo-box-top:calc(var(--home-logo-center) - var(--compact-logo-width) * 95 / 768);
  }
  body[data-project-menu] .experience{
    --camera-contain-x:0px;
    --camera-contain-y:0px;
    --camera-start-top:var(--home-header-height);
  }
  body[data-project-menu][data-route="home"] .experience{
    --home-film-height:calc(100svh - var(--home-header-height));
    background:#000;
  }
  body[data-project-menu][data-route="home"] .interface{
    inset:0 0 auto;width:100%;height:var(--home-header-height);margin:0;transform:none;
  }
  body[data-project-menu]:is([data-route="home"],[data-route="work"]) .experience > .brand{
    inset:0 0 auto;width:100%;margin:0;
    height:var(--home-logo-area-height);
    --home-logo-width:var(--compact-logo-width);
    --home-logo-left:calc((100% - var(--home-logo-width)) / 2);
    --home-logo-top:var(--home-logo-center);
  }
  body[data-project-menu]:is([data-route="home"],[data-route="work"]) .brand .brand-name{
    inset:var(--home-logo-top) auto auto var(--home-logo-left);width:var(--home-logo-width);
    transform:translateY(-50%);
  }
  body[data-project-menu][data-route="home"] .portals{
    inset:auto var(--home-menu-gutter) var(--home-menu-foot);
    display:grid;grid-auto-flow:column;
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:repeat(2,var(--home-row-height));
    gap:var(--home-row-gap) var(--home-menu-gap);
  }
  body[data-project-menu][data-route="home"] .portals .portal{
    position:relative;inset:auto;translate:none;width:100%;height:100%;min-height:0;max-height:none;
  }
  body[data-project-menu][data-route="home"] :is(.studio-tagline,.home-laurels){display:none}
  body[data-project-menu][data-route="home"] .orbits{
    left:50%;top:calc(100% + var(--home-film-height) / 2);transform:translate(-50%,-50%);
    width:max(100%,calc(var(--home-film-height) * 16 / 9));height:max(var(--home-film-height),56.25vw);
  }
  body[data-project-menu][data-route="home"] .orbits :is(.connector,.orbit-points){display:none}
  body[data-project-menu][data-route="home"] :is(.scene,.lamp-flicker){top:var(--home-header-height)}
  body[data-project-menu][data-route="home"] .scene{overflow:hidden;--scene-edge-fade:clamp(32px,11cqh,72px)}
  body[data-project-menu][data-route="home"] .scene > :is(.scene-poster,.scene-video),
  body[data-project-menu][data-route="home"] #route-film{object-fit:cover}
  body[data-project-menu][data-route="home"] .lighthouse-frame{width:100%;height:100%}
  body[data-project-menu][data-route="home"] .home-subliminal{
    inset:50% auto auto 50%;margin:0;transform:translate(-50%,-50%);
    width:max(100cqw,177.777778cqh);height:max(100cqh,56.25cqw);
  }
}

/* The lighthouse is a second scene, reached through the supplied camera move. */
.route-video,.scene.is-cutting .scene-video{transition:none}
.scene{container-type:size;background:#000}
.lighthouse-frame{
  position:absolute;inset:0;margin:auto;width:min(100cqw,177.777778cqh);height:min(100cqh,56.25cqw);
  overflow:hidden;pointer-events:none;container-type:size
}
.phare-poster{visibility:hidden}
body:is([data-route="level-two"],[data-route="about"],[data-route="to-home"]) .phare-poster{visibility:visible}
body:is([data-route="level-two"],[data-route="about"],[data-route="to-home"]) .scene > :is(.scene-video,.scene-poster){visibility:hidden}
.lighthouse-frame :is(#level-two-film,#robot-return){transform-origin:center top;transform:scale(var(--sea-scale,1))}
.lighthouse-frame #robot-return.is-active{opacity:var(--return-opacity,1)}
.lighthouse-frame[data-pan="hold"] #route-film{opacity:1}
.lighthouse-frame[data-pan="move"] #pan-frame{opacity:var(--pan-opacity,1)}
@media(max-width:700px){
  .lighthouse-frame{width:100%;height:100%}
}
body:not([data-route="home"]) .interface{opacity:0;visibility:hidden}
body:not([data-route="home"]) .copyright{display:none}
.about-page,.level-two-page{--phare-column-width:min(33.5%,680px)}
.about-page{--copy-width:var(--phare-column-width);--copy-left:min(62%,calc(92.5% - var(--copy-width)));--nav-bottom:9%;--nav-height:58px;overflow:hidden}
.level-two-page{--copy-left:9.2%;--copy-width:32%;overflow:hidden;outline:none}
.level-two-page:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,4,5,.22),transparent 57%);pointer-events:none;opacity:0}
.level-two-page[data-revealed]:before{opacity:1}
.about-page:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 28%,rgba(3,4,5,.16) 48%,rgba(3,4,5,.65) 78%,rgba(3,4,5,.4));pointer-events:none}
.about-copy{position:absolute;top:19%;bottom:23%;left:var(--copy-left);width:var(--copy-width);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d7b98e66 transparent;pointer-events:auto;padding:0 18px 12px 0;color:var(--gold);font-size:clamp(1rem,1.02vw,1.25rem);line-height:1.5}
.about-page .about-copy{container-type:inline-size}
/* The signature and the navigation sit in the same 16:9 frame on desktop. */
body:not([data-project-menu]) .about-page .about-copy{
  top:calc(var(--signature-top) + var(--signature-width) * 16 / 9 * 75 / 437);
  bottom:calc(var(--nav-bottom) + var(--nav-height));
  align-content:safe center;padding-block:12px;
}
.about-copy p{margin:0 0 1.5em}
.about-copy p:last-child{margin-bottom:0}
.about-copy>p,.about-copy>h1{--parallax-shift:80px;--parallax-duration:1.05s;--parallax-delay:0s;animation:copy-parallax var(--parallax-duration) cubic-bezier(.16,1,.3,1) var(--parallax-delay) both}
.about-copy>h1{--parallax-shift:120px;--parallax-duration:1.25s;--parallax-delay:.06s}
.about-copy>p+p{--parallax-shift:160px;--parallax-duration:1.3s;--parallax-delay:.12s}
.about-copy>h1+p{--parallax-shift:200px;--parallax-duration:1.5s;--parallax-delay:.24s}
body[data-route="to-home"] .about-copy{scrollbar-color:transparent transparent}
body[data-route="to-home"] .about-copy>*{
  animation:copy-parallax-out calc(.9s - var(--parallax-delay)) cubic-bezier(.22,.68,.42,1) both;
}
body[data-route="to-home"][data-paused="true"] .about-copy>*{animation-play-state:paused}
.about-copy h1{margin:.65em 0 .7em;color:var(--gold);font-size:clamp(2.5rem,3.65vw,5rem);line-height:1.12;letter-spacing:-.025em;text-transform:uppercase;font-weight:700}
.about-page h1{font-size:min(clamp(2.5rem,3.65vw,5rem),10cqw)}
.about-copy h1:focus{outline:none}
.about-copy:focus-visible{outline:1px solid #d7b98e88;outline-offset:8px}
.about-return{
  --nav-gap:clamp(8px,1vw,18px);--step-width:calc((100% - var(--nav-gap)) / 2.15);
  position:absolute;left:var(--copy-left);bottom:9%;
  width:var(--phare-column-width);height:58px;pointer-events:none;
}
.portal-home.is-visible{
  inset:0;width:100%;height:100%;min-height:0;max-height:none;translate:none;
  grid-template-columns:28% minmax(0,1fr);padding:0;column-gap:0;--icon-shift:36cqw;
  animation:none;
}
.portal-home .portal-icon{padding:0}
.portal-home .portal-icon svg{width:clamp(22px,1.9vw,36px)}
.portal-home .portal-label{padding-right:20%}
.portal-home .portal-point{right:-4px}
.portal-back-chevron{display:none}
.phare-nav{
  display:grid;grid-template-columns:minmax(0,1fr) var(--step-width);gap:var(--nav-gap);
}
body:not([data-project-menu]) .phare-nav{bottom:var(--nav-bottom);height:var(--nav-height)}
.phare-nav .portal{position:relative;min-width:0}
.phare-nav .portal-label{padding-inline:4px;font-size:clamp(.8125rem,1.05vw,1.125rem)}
#return-home{opacity:.5}
#return-home:focus-visible{opacity:1}
@media(hover:hover) and (pointer:fine){
  #return-home:hover{opacity:.85}
}
body[data-route="to-home"] .about-return,
body[data-route="to-home"] .about-page:before{visibility:hidden}
.about-orbit{
  position:absolute;left:100%;top:50%;width:100%;height:auto;transform:translateY(-50%);
  overflow:visible;pointer-events:none;stroke:var(--gold);filter:drop-shadow(0 0 3px #d7b98e55);
}
.about-orbit-lines{stroke-width:1;opacity:.74}
.about-orbit-lines path{stroke-dasharray:1}
.about-orbit-dots{stroke-dasharray:.1 9;stroke-linecap:round;stroke-width:1.5;opacity:.45}
.about-junction{fill:#fff0d6;stroke:none}
@media(prefers-reduced-motion:no-preference){
  .about-orbit-lines path{animation:draw-about-orbit .82s cubic-bezier(.24,.72,.32,1) both}
  .about-orbit-lines path:last-child{animation-duration:.3s}
  .about-orbit-dots,.about-junction{animation:light-about-orbit .65s ease-out backwards}
  .portal-home.is-visible{animation:reveal-homepage .72s ease-out backwards}
  body[data-route="to-about"][data-paused="true"] .about-return *{animation-play-state:paused}
}
@keyframes draw-about-orbit{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes light-about-orbit{from{opacity:0}}
@keyframes reveal-homepage{
  from{opacity:0;mask-image:linear-gradient(90deg,transparent 45%,black 55%);mask-size:240% 100%;mask-position:0% 0}
  to{mask-image:linear-gradient(90deg,transparent 45%,black 55%);mask-size:240% 100%;mask-position:100% 0}
}
@keyframes copy-parallax{from{opacity:0;transform:translate3d(var(--parallax-shift),0,0)}to{opacity:1;transform:translate3d(0,0,0)}}
@keyframes copy-parallax-out{
  from{opacity:var(--exit-opacity,1);transform:var(--exit-transform,none)}
  to{opacity:0;transform:translate3d(var(--parallax-shift),0,0)}
}
@media(max-width:1100px) and (min-width:701px){
  .about-page,.level-two-page{--phare-column-width:42%}
  .about-page{--copy-left:52%}
  .about-copy{top:21%;bottom:22%}
}
@media(max-width:700px){
  .about-page:before{background:linear-gradient(180deg,rgba(0,0,0,.14),rgba(0,0,0,.67) 26%,rgba(0,0,0,.8) 76%,rgba(0,0,0,.48))}
  .about-copy{top:max(18%,var(--tagline-clearance,0px));bottom:23%;left:7%;right:7%;width:auto;max-width:none;padding-right:10px;font-size:1rem;line-height:1.55}
  .about-copy h1{font-size:clamp(2.3rem,9.2vw,3.5rem);margin:.7em 0}
  .about-return{left:7%;width:86%;bottom:max(10%,calc(env(safe-area-inset-bottom) + 6svh + 6px));height:52px}
  .portal-home .portal-label{padding-right:6%}
}
@media(max-width:370px){
  .about-copy{left:5%}
  .about-return{left:5%;width:90%}
  .about-orbit{width:45%}
}
@media(max-height:600px){
  .about-page{--nav-bottom:10%;--nav-height:46px}
  .about-copy{top:max(24%,var(--tagline-clearance,0px));bottom:25%}
  .about-return{bottom:10%;height:46px}
}

.level-two-copy,.training-copy,.project-copy :is(p,ul){
  font-size:clamp(1rem,.9vw,1.125rem);line-height:1.4;font-weight:400;
}
.level-two-copy,.project-heading,#project-description{color:#ead0aa}
.level-two-copy{top:31.5%;bottom:28%;mask-image:linear-gradient(black calc(100% - 22px),transparent)}
.level-two-copy h1{margin:0 0 .8em;color:inherit}
.level-two-page .level-two-return{left:var(--copy-left);bottom:16.7%}
#return-phare{width:var(--step-width)}
#return-phare::before,#return-phare::after{content:none}
.about-page[data-exiting="level-two"] .about-return{animation:leave-phare-button .4s ease-in-out both}
@keyframes leave-phare-button{to{opacity:0;transform:translateX(24px)}}
.about-page[data-exiting="level-two"]:before{animation:leave-phare-shade var(--phare-copy-exit-duration) linear var(--phare-copy-exit-playhead,0s) both paused}
@keyframes leave-phare-shade{to{opacity:0}}
.about-page[data-exiting="level-two"] .about-copy{scrollbar-color:transparent transparent}
.about-page[data-restored]:not([data-exiting]) .about-copy>*{animation:none}
body[data-phase="return-phare"] .level-two-page:before{opacity:0;transition:opacity .35s}
.about-page[data-exiting="level-two"] .about-copy>*{
  animation:copy-parallax-out calc(var(--phare-copy-exit-duration) - var(--parallax-delay)) cubic-bezier(.22,.68,.42,1) var(--phare-copy-exit-playhead,0s) both paused;
}
.level-two-copy>p,.level-two-copy>h1{
  animation:copy-parallax var(--parallax-duration) cubic-bezier(.16,1,.3,1) calc(var(--level-two-copy-playhead,0s) + var(--parallax-delay)) both paused;
}
.level-two-copy>h1{--parallax-shift:-120px;--parallax-duration:1.25s;--parallax-delay:0s}
.level-two-copy>p:nth-of-type(1){--parallax-shift:-160px;--parallax-duration:1.3s;--parallax-delay:.12s}
.level-two-copy>p:nth-of-type(2){--parallax-shift:-200px;--parallax-duration:1.5s;--parallax-delay:.24s}
.level-two-copy>p:nth-of-type(3){--parallax-shift:-240px;--parallax-duration:1.5s;--parallax-delay:.32s}
.level-two-copy>p:nth-of-type(4){--parallax-shift:-280px;--parallax-duration:1.5s;--parallax-delay:.4s}
.level-two-page .portal-home.is-visible{
  animation:reveal-homepage .72s ease-out calc(var(--level-two-playhead,0s) + 3.6s) both paused;
}
.level-two-page[data-revealed="still"] .level-two-copy>*,
.level-two-page[data-revealed="still"] .portal-home{animation:none}

/* N−3 keeps the reference's left column clear of the character on the right. */
@media(min-width:701px) and (max-width:1100px){
  .level-two-page{--copy-width:39%}
  .level-two-copy,.training-copy,.project-copy :is(p,ul){font-size:1rem}
  .level-two-copy{top:29%;bottom:27%}
  .level-two-copy h1{font-size:clamp(2rem,3.65vw,5rem)}
}
@media(max-width:700px){
  body[data-route="level-two"] .brand-name{--home-logo-top:max(6%,env(safe-area-inset-top));--logo-left:7%}
  .level-two-page:before{background:linear-gradient(90deg,rgba(3,4,5,.64),rgba(3,4,5,.15) 90%)}
  .level-two-copy,.training-copy,.project-copy :is(p,ul){font-size:1rem;line-height:1.5}
  .level-two-copy{top:max(23%,var(--tagline-clearance,0px));bottom:26%;left:7%;right:7%;width:auto}
  .level-two-copy h1{margin:0 0 .75em}
  .level-two-page .level-two-return{left:7%;bottom:max(12%,calc(env(safe-area-inset-bottom) + 6svh + 6px))}
}
@media(max-width:370px){
  .level-two-copy{left:5%;right:5%}
  .level-two-page .level-two-return{left:5%}
}

.scene:not(.is-cutting) :is(#contact-loop,#contact-reverse){transition:opacity .24s ease-in-out}
@media(prefers-reduced-motion:no-preference){
  body[data-phase="intro"] .scene :is(#route-film,#contact-reverse,#training-reverse){opacity:var(--menu-return-opacity,0);transition:none}
  body[data-phase="intro"] .lamp-flicker{opacity:var(--menu-return-dim,0)}
}
.contact-page{
  position:absolute;inset:0;margin:auto;width:min(100%,177.7778svh);height:min(100%,56.25vw);
  container-type:inline-size;pointer-events:none;--contact-left:55.6%;
}
.contact-copy{position:absolute;left:var(--contact-left);top:39.8%;right:3%}
.contact-copy h1{
  margin:0;color:#ead2ae;font-size:3.65cqw;line-height:1.27;letter-spacing:-.018em;
  font-weight:750;text-transform:uppercase;outline:0;
}
.contact-copy p{max-width:32ch;margin:.5em 0 .7em;color:#100d08;font-size:1.43cqw;line-height:1.35}
.contact-links{display:flex;align-items:center;gap:.7cqw;width:max-content;max-width:100%}
.contact-icon{
  position:relative;display:grid;place-items:center;width:clamp(30px,2.6cqw,56px);aspect-ratio:1;
  border:0;border-radius:50%;background:transparent;padding:0;color:#14110e;pointer-events:auto;
}
.contact-icon img{display:block;width:100%;height:100%;transition:filter .15s ease}
.contact-icon:focus-visible img,.contact-icon[data-feedback] img{filter:invert(88%) sepia(16%) saturate(574%) hue-rotate(344deg)}
.contact-tip{
  display:none;position:absolute;z-index:1;top:calc(100% + 12px);left:0;padding:.35em .85em;
  border-radius:999px;background:white;color:#16130f;white-space:nowrap;font:400 clamp(.8rem,.86cqw,1.1rem)/1.2 Arial,sans-serif;
  user-select:text;
}
.contact-tip:before{content:"";position:absolute;left:clamp(12px,.98cqw,22px);bottom:99%;border:6px solid transparent;border-top:0;border-bottom-color:white}
.contact-icon:focus-visible .contact-tip,.contact-icon[data-feedback] .contact-tip{display:block}
@media(hover:hover){
  .contact-icon:hover img{filter:invert(88%) sepia(16%) saturate(574%) hue-rotate(344deg)}
  .contact-icon:hover .contact-tip{display:block}
}
.contact-return{position:absolute;left:var(--contact-left);bottom:10.4%;width:21%;height:7.35%}
.contact-return .portal{animation:none;border-color:#e9d3afb8}
@media(prefers-reduced-motion:no-preference){
  .contact-copy h1,.contact-copy p,.contact-links,.contact-return{
    animation:copy-parallax var(--contact-duration,1s) cubic-bezier(.16,1,.3,1)
      calc(var(--contact-remaining,4.5s) - var(--contact-lead)) both paused;
  }
  .contact-copy h1{--parallax-shift:85px;--contact-lead:1.55s}
  .contact-copy p{--parallax-shift:115px;--contact-lead:1.34s}
  .contact-links{--parallax-shift:145px;--contact-lead:1.12s;--contact-duration:.95s}
  .contact-return{--parallax-shift:90px;--contact-lead:.84s;--contact-duration:.8s}
}
@media(max-width:700px) and (orientation:portrait){
  .contact-page{width:100%;height:100%;--contact-left:7%;background:linear-gradient(0deg,#0b0906ed 1%,#16110acc 27%,transparent 58%)}
  .contact-copy{top:auto;bottom:max(24%,145px);right:5%}
  .contact-copy h1{font-size:clamp(1.85rem,8cqw,3.4rem);line-height:1.12}
  .contact-copy p{color:#f1dec4;font-size:clamp(.95rem,3.6cqw,1.35rem);margin:.65em 0 1em}
  .contact-links{gap:clamp(7px,2.4cqw,16px)}
  .contact-icon{width:44px;background:#dec7a6}
  .contact-icon:is(:focus-visible,[data-feedback]){background:#231c15}
  .contact-return{width:min(72%,320px);height:50px;bottom:max(7%,env(safe-area-inset-bottom))}
}
@media(max-height:600px) and (orientation:landscape){
  .contact-copy{top:35%}
  .contact-copy p{font-size:max(12px,1.43cqw);margin:.25em 0 .55em}
  .contact-return{bottom:6%;height:max(34px,7.35%)}
  .contact-tip{top:calc(100% + 5px)}
}

.scene-video[data-home-blend].is-active{opacity:var(--home-entry-opacity,0);transition:none}
/* Formation: the supplied cinema composition, aligned to the 16:9 movie. */
.training-page{
  position:absolute;inset:0;margin:auto;pointer-events:none;container-type:inline-size;
  width:min(100%,177.7778svh);height:min(100%,56.25vw);color:#ead2ae;
}
.training-copy{pointer-events:auto}
.training-short,body[data-training-phone] .training-copy p:not(.training-short,.training-formats){display:none}
body[data-training-phone] .training-short{display:block}
.training-copy p{margin:0 0 .65em;color:#ead0aa}
.training-copy p:last-child{margin-bottom:0}
.training-copy h1{
  margin:.3em 0 .38em;font-size:clamp(2rem,3.4cqw,5rem);line-height:1.06;
  letter-spacing:-.025em;font-weight:750;text-transform:uppercase;outline:none;
}
.training-copy:focus-visible{outline:1px solid #d7b98e88;outline-offset:6px}
.training-return{position:absolute;left:7.75%;bottom:9.75%;width:21%;height:7.4%;min-height:44px}
.training-return .portal{border-color:#e9d3afb8}
body:not([data-project-menu]) .training-page{
  display:grid;grid-template-columns:min(44vw,720px);
  justify-content:start;align-content:center;gap:clamp(10px,2.4svh,32px);
  padding-left:min(8.25%,150px);height:100svh;width:100%;
}
body:not([data-project-menu]) .training-return{
  position:relative;inset:auto;width:clamp(180px,20vw,320px);height:clamp(44px,6svh,68px);
}
@media(max-height:560px){
  body:not([data-project-menu]) .training-page{grid-template-columns:min(62vw,880px);padding-left:4vw;gap:8px}
  body:not([data-project-menu]) .training-copy h1{margin:.16em 0;line-height:1.04;font-size:2rem}
  body:not([data-project-menu]) .training-copy h1 br{display:none}
  body:not([data-project-menu]) .training-copy p{margin-bottom:.32em}
}
body[data-route="training"] .brand-name{
  --logo-left:75.5%;left:var(--logo-left);top:83.8%;width:20%;transform:none;
}
@media(prefers-reduced-motion:no-preference){
  .training-copy>* , .training-return{
    animation:copy-parallax var(--training-duration,1s) cubic-bezier(.16,1,.3,1)
      calc(var(--training-remaining,5s) - var(--training-lead,1.2s)) both paused;
  }
  .training-copy p{--parallax-shift:-80px;--training-lead:.5s;--training-duration:.5s}
  .training-copy h1{--parallax-shift:-115px;--training-lead:.4s;--training-duration:.4s}
  .training-copy h1 ~ p{--parallax-shift:-145px;--training-lead:.3s;--training-duration:.3s}
  .training-return{--parallax-shift:-85px;--training-lead:1s;--training-duration:.8s}
  body[data-route="training"] .brand-name{
    animation:training-brand-passage 5s linear calc(var(--training-remaining,5s) - 5s) both paused;
  }
}
@media(max-width:700px) and (orientation:portrait){
  .training-page{width:100%;height:100%;background:linear-gradient(90deg,#050504eb, #050504b8 72%,#05050466)}
  .training-copy h1{font-size:clamp(2rem,8.2cqw,3.5rem);line-height:1.15;margin:.65em 0 .7em}
  .training-return{left:7%;bottom:13%;width:min(65%,320px);height:50px}
  body[data-route="training"] .brand-name{--logo-left:61%;top:auto;bottom:5%;width:32%}
}
@media(max-height:600px) and (orientation:landscape){
  .training-copy h1{font-size:clamp(2rem,3.65cqw,3.5rem);margin:.4em 0 .5em}
  .training-return{bottom:8%}
}

@keyframes training-brand-passage{
  0%{top:var(--home-logo-top);bottom:auto;left:var(--home-logo-left);width:var(--home-logo-width);transform:translateY(0);visibility:visible;animation-timing-function:cubic-bezier(.4,0,.8,.4)}
  16%{top:0;bottom:auto;left:var(--home-logo-left);width:var(--home-logo-width);transform:translateY(calc(-100% - 2px));visibility:hidden;animation-timing-function:step-end}
  62%{top:100%;bottom:auto;left:var(--logo-left);width:var(--training-logo-width,20%);transform:translateY(2px);visibility:visible;animation-timing-function:cubic-bezier(.2,.75,.25,1)}
  96%,100%{top:var(--training-logo-top,83.8%);bottom:auto;left:var(--logo-left);width:var(--training-logo-width,20%);transform:translateY(0);visibility:visible}
}
@media(max-width:700px) and (orientation:portrait){
  body[data-route="training"] .brand-name{--training-logo-top:87%;--training-logo-width:32%}
}

@media(min-width:701px) and (max-width:1100px){
  .training-copy h1{font-size:3.65cqw;line-height:1.2;margin:.45em 0 .65em}
}

/* Work preserves the HP framing and foreground brand. */
.work-page{position:absolute;inset:0;margin:auto;pointer-events:none;width:min(100%,177.7778svh);height:min(100%,56.25vw)}
.work-return{position:absolute;left:8%;bottom:3.8%;width:21%;height:7.4%;min-height:44px;visibility:hidden}
.work-page[data-revealed] .work-return{visibility:visible}
.work-blackout{position:absolute;inset:0;z-index:10;background:#000;pointer-events:auto}
body[data-phase="from-work"] .controls{visibility:hidden}
@media(max-width:700px){
  .work-page{width:100%;height:100%}
  .work-return{left:7%;bottom:max(9%,env(safe-area-inset-bottom));width:min(65%,320px);height:50px}
}


/* Register Work to the HP plate: identical fitting, body/ground +32 source pixels,
   with the HP lamp held in its original position instead of moving it with the body. */
.work-frame{
  --work-offset-y:2.962963%;position:absolute;left:50%;top:50%;
  width:min(100cqw,177.777778cqh);height:min(100cqh,56.25cqw);
  transform:translate(-50%,-50%);overflow:hidden;pointer-events:none;background:#050505;
}
.work-poster,.work-lamp-anchor,#work-pause-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:fill}
.work-frame #work-film,.work-frame #work-loop,.work-poster,#work-pause-frame{object-fit:fill;transform:translateY(var(--work-offset-y))}
body[data-phase="to-work"] .work-poster{visibility:hidden}
.work-hover{position:absolute;inset:0;width:100%;height:100%;transform:translateY(var(--work-offset-y));pointer-events:none}
.experience[data-work-home]{cursor:pointer}
.work-lamp-anchor{
  inset:0 auto auto 42.5%;width:15%;height:22.5%;
  mask-image:linear-gradient(90deg,transparent 3.333333%,#000 16.666667%,#000 83.333333%,transparent 96.666667%),
    linear-gradient(180deg,#000 0%,#000 88.888889%,transparent 97.777778%);
  mask-composite:intersect;mask-repeat:no-repeat;mask-size:100% 100%;
}
@media(max-width:700px){
  .work-frame{width:max(100cqw,177.777778cqh);height:max(100cqh,56.25cqw)}
}

/* Project detail: one scroll surface, a pinned story, and a vertical film/image gallery. */
.work-frame{transition:filter .35s ease}
body[data-work-project] .work-frame{filter:blur(15px)}
body[data-work-project] :is(.brand,.work-page,.controls){visibility:hidden}
.experience:has(.work-hover[data-person]){cursor:pointer}
.work-project-access{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;pointer-events:none}
.work-project-access:focus-visible{clip-path:none;left:8%;top:20%;width:auto;height:auto;max-width:84%;padding:16px 22px;background:#15120e;color:#ead0aa;border:1px solid #ead0aa;border-radius:30px;pointer-events:auto}
.work-project{position:fixed;inset:0;width:100%;height:100svh;max-width:none;max-height:none;margin:0;padding:0;border:0;outline:none;background:transparent;color:#fff;overflow:hidden;cursor:auto}
.work-project::backdrop{background:rgba(0,0,0,.35)}
.project-scroll{height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ad9372 #0003}
.project-layout{width:80%;max-width:1760px;margin:0 auto;display:grid;grid-template-columns:42% 44%;gap:14%;padding:7svh 0}
.project-brand{display:none}
.project-story{position:sticky;top:7svh;align-self:start;height:86svh;display:flex;flex-direction:column;justify-content:center;padding-bottom:100px}
.project-copy{min-width:0}
body:not([data-project-menu]) .work-project:has(.project-placeholder) .project-layout{
  grid-template-columns:52% 36%;gap:12%;
}
body:not([data-project-menu]) .work-project:has(.project-placeholder) #project-description{max-width:64ch}
.project-copy h1{margin:0 0 .1em;font-size:clamp(1.5rem,2.625vw,3.75rem);line-height:1;font-weight:800;letter-spacing:-.055em;outline:none;overflow-wrap:anywhere}
body[data-work-project="greatly-club"]:not([data-project-menu]) .project-copy h1{font-size:clamp(1.25rem,2.275vw,3.25rem)}
.project-copy h2{margin:0 0 clamp(24px,4svh,50px);font-size:clamp(1.05rem,1.65vw,2.1rem);line-height:1.15;text-transform:uppercase;letter-spacing:-.025em;font-weight:750}
.project-copy p{margin:0 0 1.15em}
.project-copy p:last-child{margin-bottom:0}
.project-copy ul{margin:0;padding-left:1.2em}
.project-copy li+li{margin-top:.45em}
.project-actions{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0 0}
.project-actions a{
  display:inline-flex;align-items:center;gap:12px;min-height:44px;padding:8px 18px;
  border:1px solid #d5bc96;border-radius:999px;background:#080807da;color:#f7eee2;
  font-size:.875rem;line-height:1.2;text-decoration:none;
}
.project-actions a span{color:#ead0aa}
.project-actions a:is(:hover,:focus-visible){border-color:#ffdfb4;background:#241e16}
.project-gallery{min-width:0;display:flex;flex-direction:column;gap:24px}
.project-placeholder{width:100%;aspect-ratio:39/25;background:#000}
.project-gallery figure{margin:0}
.project-gallery img{display:block;width:100%;height:auto;background:#080807}
.project-film{position:relative;background:#080807;min-width:0}
.project-film video{display:block;width:100%;aspect-ratio:39/25;object-fit:contain;background:#080807}
.project-watch{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:16px 24px;border:1px solid #ead0aa;border-radius:40px;background:#080807c9;color:#fff;font-size:1rem;white-space:nowrap;box-shadow:0 0 28px #0006}
.project-watch:before{content:"";display:inline-block;margin-right:12px;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:9px solid #ead0aa;vertical-align:-1px}
.project-video-error{padding:16px;margin:0;font-size:1rem;line-height:1.5}
@media(prefers-reduced-motion:reduce){.work-frame{transition:none}}
@media(max-width:700px){
  body[data-work-project] .work-frame{filter:blur(10px)}
  .project-layout{width:auto;margin:0 7%;display:block;padding:7svh 0 110px}
  .project-story{position:static;height:auto;padding-bottom:0;margin-bottom:36px}
  .project-copy{max-height:none;overflow:visible}
  .project-copy h1{font-size:clamp(1.5rem,7vw,2.5rem)}
  .project-copy h2{font-size:clamp(1.2rem,5vw,1.7rem);margin-bottom:24px}
  .project-gallery{gap:16px}
}

.project-controls{position:absolute;inset:0;margin:auto;pointer-events:none;width:min(100%,177.7778svh);height:min(100%,56.25vw)}
.project-controls .work-return{visibility:visible;pointer-events:none}
.project-controls .work-return a{pointer-events:auto}
body:not([data-project-menu]) .project-controls{
  width:80%;max-width:1760px;height:100%;
}
body:not([data-project-menu]) .project-controls .work-return{
  left:0;bottom:4%;width:min(27%,330px);height:clamp(44px,6svh,64px);
}
@media(max-height:820px){
  body:not([data-project-menu]) .project-story{
    width:125%;top:4svh;height:88svh;padding-bottom:calc(44px + 4svh);
  }
  body:not([data-project-menu]) .project-copy h2{margin-bottom:clamp(10px,2.2svh,18px)}
  body:not([data-project-menu]) .project-copy p{margin-bottom:.65em}
  body:not([data-project-menu]) .project-copy p:last-child{margin-bottom:0}
}
@media(max-width:700px){.project-controls{width:100%;height:100%}.project-layout{padding-bottom:160px}}

/* The lens is a temporary snapshot in the exact same frame as the Work film. */
body[data-work-project] .scene:after{z-index:3}
.work-project-warp{position:absolute;left:50%;top:50%;width:min(100cqw,177.777778cqh);height:min(100cqh,56.25cqw);transform:translate(-50%,-50%);pointer-events:none;z-index:2}
.work-project[data-transition="lens"] .project-scroll{overflow:hidden}
.work-project[data-transition="lens"]::backdrop{animation:project-backdrop-arrival .94s ease-out both}
.work-project[data-transition] :is(.project-copy h1,.project-copy h2,.project-copy p,.project-gallery>*,#work-back){will-change:transform,opacity}
@keyframes project-backdrop-arrival{from{background:rgba(0,0,0,0)}to{background:rgba(0,0,0,.35)}}
@media(max-width:700px){.work-project-warp{width:max(100cqw,177.777778cqh);height:max(100cqh,56.25cqw)}}
@media(prefers-reduced-motion:reduce){.work-project-warp{display:none}.work-project[data-transition="lens"]::backdrop{animation:none}}

/* Section navigation and copy share the upper panel of the compact layout. */
body[data-project-menu]{
  --section-head-height:clamp(320px,38.5svh,510px);
  --section-head-width:100%;
  --section-scene-top:var(--section-head-height);
  --section-scene-left:0px;
  --section-inset:8%;
  --section-inner-gutter:5px;
  --section-logo-width:clamp(150px,27vw,235px);
  --section-logo-top:max(18px,env(safe-area-inset-top));
  --section-logo-bottom:calc(var(--section-logo-top) + var(--section-logo-width) * 95 / 384);
  --section-copy-top:calc(var(--section-logo-bottom) + 18px);
  --section-nav-height:clamp(46px,5.1svh,58px);
  --section-control-gold:#d5bc96;
  --return-button-size:44px;
  --section-nav-bottom:max(clamp(14px,2.4svh,28px),env(safe-area-inset-bottom));
  --section-copy-bottom:calc(var(--section-nav-height) + var(--section-nav-bottom) + 18px);
}
body[data-project-menu] .experience{
  --project-column-width:min(75%,780px);
  --project-logo-width:var(--compact-logo-width,var(--section-logo-width));
  --project-logo-top:var(--home-logo-box-top,var(--section-logo-top));
  --project-logo-bottom:calc(var(--project-logo-top) + var(--project-logo-width) * 95 / 384);
  --project-brand-gap:clamp(20px,4.2svh,44px);
  --project-copy-top:calc(var(--project-logo-bottom) + var(--project-brand-gap) + 14px);
  --project-title-size:clamp(2rem,5.85vw,3.8rem);
  --project-subtitle-size:clamp(1rem,2.4vw,1.35rem);
  --project-body-size:clamp(.9rem,1.9vw,1rem);
  --project-description-height:clamp(180px,27.5svh,284px);
}
body[data-project-menu]:not([data-route="home"]) .experience{background:#000}
body[data-project-menu]:not([data-route="home"]) :is(.brand,.work-page,.about-page,.level-two-page,.training-page,.contact-page){
  inset:0 auto auto 0;margin:0;width:var(--section-head-width);height:var(--section-head-height);
}
body[data-project-menu]:not([data-route="home"]) .brand-name{
  inset:var(--section-logo-top) auto auto 50%;width:var(--section-logo-width);
  translate:none;transform:translateX(-50%);animation:none;
}
body[data-project-menu]:not([data-route="home"]) :is(.studio-tagline,.about-orbit){display:none}
body[data-project-menu]:not([data-route="home"]) :is(.scene,.lamp-flicker){
  top:var(--section-scene-top);left:var(--section-scene-left);overflow:hidden;
}
body[data-project-menu]:not([data-route="home"]) .scene{--scene-edge-fade:clamp(32px,11cqh,72px)}
body[data-project-menu]:not([data-route="home"]) .scene :is(.scene-poster,.scene-video){object-fit:cover}
body[data-project-menu]:not([data-route="home"]) .lighthouse-frame{width:100%;height:100%}
body[data-project-menu] .lighthouse-frame :is(.phare-poster,#pan-frame),
body[data-project-menu][data-route="level-two"] #route-film{object-position:24% center}
body[data-project-menu] .lighthouse-frame :is(#level-two-film,#robot-loop,#robot-return){object-position:75% center}
/* Follow the camera moves from the visible Home frame to the section layout. */
body[data-project-menu]:is([data-route="training"],[data-route="contact"],[data-route="to-about"],[data-route="about"],[data-route="to-home"]) .scene{
  --camera-progress:var(--camera-framing,0);
  --camera-centered-x:var(--camera-contain-x,max(0px,(100vw - 100svh * 16 / 9) / 2));
  --camera-source-left:var(--camera-start-left,var(--camera-centered-x));
  --camera-source-y:var(--camera-contain-y,max(0px,(100svh - 56.25vw) / 2));
  --camera-source-top:var(--camera-start-top,var(--camera-source-y));
  --camera-target-top:var(--camera-end-top,var(--section-scene-top));
  top:calc(var(--camera-source-top) + (var(--camera-target-top) - var(--camera-source-top)) * var(--camera-progress));
  left:calc(var(--camera-source-left) + (var(--section-scene-left) - var(--camera-source-left)) * var(--camera-progress));
  right:calc(var(--camera-centered-x) * (1 - var(--camera-progress)));
  bottom:calc(var(--camera-source-y) * (1 - var(--camera-progress)));
}
body[data-project-menu][data-route="training"] .scene{--camera-end-top:max(var(--section-scene-top),54svh)}
body[data-project-menu][data-route="training"] .scene > :is(img,#training-film,#training-loop,#training-reverse){
  object-position:calc(50% + 16% * var(--camera-progress)) center;
}
body[data-project-menu]:is([data-route="to-about"],[data-route="about"],[data-route="to-home"]) #route-film{
  object-position:calc(50% - 26% * var(--camera-progress)) center;
}
body[data-project-menu]:is([data-route="training"],[data-route="contact"],[data-route="to-about"],[data-route="about"],[data-route="to-home"],[data-route="level-two"]) .brand .brand-name{
  top:var(--project-logo-top);
  width:var(--project-logo-width);
}
body[data-training-phone][data-route="training"] .brand-name:not([data-home-position]){display:none}
@media(max-width:700px) and (orientation:portrait){
  /* Keep the same anchor through the cut from the return film to the homepage. */
  body[data-training-phone][data-phase="from-training"] .brand .brand-name[data-home-position],
  body[data-training-phone][data-route="home"] .experience > .brand .brand-name{
    inset:var(--home-logo-box-top) auto auto 50%;width:var(--compact-logo-width);
    transform:translateX(-50%);transition:top .45s ease-in-out,width .45s ease-in-out;
  }
}
body[data-project-menu] :is(.work-frame,.work-project-warp){width:max(100cqw,177.777778cqh);height:max(100cqh,56.25cqw)}
body[data-project-menu] :is(.training-page,.contact-page,.level-two-page:before,.about-page:before){background:transparent}
body[data-project-menu] :is(.about-copy,.training-copy,.contact-copy){
  position:absolute;inset:var(--section-copy-top) var(--section-inset) var(--section-copy-bottom);
  width:auto;margin:0;padding:0 var(--section-inner-gutter) 2px;overflow:auto;overscroll-behavior:contain;
  mask-image:none;scrollbar-width:thin;scrollbar-color:#ad9372 transparent;
  pointer-events:auto;font-size:1rem;line-height:1.45;
}
.level-two-copy,body[data-project-menu] .level-two-copy{scrollbar-width:none}
.level-two-copy::-webkit-scrollbar{display:none}
body[data-project-menu] :is(.about-copy,.training-copy){
  display:flex;flex-direction:column;align-items:flex-start;
}
body[data-project-menu] :is(.about-copy,.training-copy) > *{flex:none}
body[data-project-menu] :is(.about-copy,.training-copy,.contact-copy) h1{
  margin:0 0 .4em;font-size:clamp(1.7rem,4.2vw,2.85rem);line-height:1.08;
}
body[data-project-menu] .level-two-copy h1 br{display:none}
body[data-project-menu] :is(.about-copy,.training-copy) p{margin:0 0 .85em}
body[data-project-menu] .training-copy{
  inset:var(--project-copy-top) 0 auto;
  width:var(--project-column-width);margin:0 auto;padding:0 10px 12px;
  max-height:calc(2 * var(--project-title-size) + 56px + var(--project-description-height));
  color:#fff;font-size:var(--project-body-size);text-shadow:0 1px 5px #000b;
}
body[data-project-menu] .training-copy h1{
  margin:0 0 36px;font-size:var(--project-title-size);line-height:1;
  font-weight:800;letter-spacing:-.055em;
}
body[data-project-menu] .training-copy p{margin:0 0 1.15em}
body[data-project-menu] .training-copy p:last-child{margin-bottom:0}
body[data-project-menu] :is(.about-return,.level-two-page .level-two-return,.work-return,.training-return,.contact-return){
  left:calc(var(--section-inset) + var(--section-inner-gutter));right:auto;bottom:var(--section-nav-bottom);translate:none;
  width:min(72%,270px);height:var(--section-nav-height);min-height:0;
}
body[data-project-menu] .level-two-page .level-two-return{width:var(--return-button-size)}
body[data-project-menu] #return-phare{width:var(--return-button-size)}
body[data-project-menu] #return-home{opacity:1}
body[data-project-menu] .portal-back.is-visible{
  inset-inline-end:auto;margin-block:auto;width:var(--return-button-size);height:var(--return-button-size);
  border-width:2px;border-color:var(--section-control-gold);
  grid-template-columns:1fr;background:#000;box-shadow:none;backdrop-filter:none;--icon-shift:0px;
}
body[data-project-menu] .portal-back.is-visible:is(:hover,:focus-visible){border-color:#ffdfb4}
body[data-project-menu] .portal-back::before,
body[data-project-menu] .portal-back::after,
body[data-project-menu] .portal-back .portal-icon::after,
body[data-project-menu] .portal-back-house{display:none}
body[data-project-menu] .portal-back-chevron{display:inline}
body[data-project-menu] .portal-back .portal-icon svg{width:22px;height:22px;stroke:#d0bd9f;stroke-width:1.75;filter:none}
/* Keep the accessible name when the label is visually hidden. */
body[data-project-menu] .portal-back .portal-label{
  position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;
}

/* HOMEPAGE belongs to the lower edge of the film; NEXT stays in the navigation panel. */
body[data-project-menu]:is([data-route="to-about"],[data-route="about"],[data-route="to-home"],[data-route="level-two"]){
  --phare-panel-height:max(var(--section-head-height),54svh);
  --section-scene-top:var(--phare-panel-height);
}
body[data-project-menu] .experience{
  --phare-copy-top:var(--project-copy-top);
  --phare-copy-inset:var(--section-inset);
}
body[data-project-menu]:not([data-route="home"]) :is(.about-page,.level-two-page){
  height:var(--phare-panel-height);overflow:visible;
}
body[data-project-menu] :is(.about-page,.level-two-page) .about-copy{
  inset:var(--phare-copy-top) var(--phare-copy-inset) calc(var(--section-nav-height) + var(--section-nav-bottom) + 12px);
  width:auto;padding:0 var(--phare-copy-gutter,10px) 4px;color:#fff;font-size:var(--project-body-size);
}
body[data-project-menu] :is(.about-page,.level-two-page) .about-copy h1{color:#ead2ae}
body[data-project-menu] .about-page .about-copy{
  top:var(--project-logo-bottom);bottom:calc(var(--section-nav-height) + var(--section-nav-bottom));
  justify-content:safe center;padding-block:12px;
}
body[data-project-menu] .about-page .about-copy p:last-child{margin-bottom:0}
body[data-project-menu] .about-page .phare-nav{inset:0;width:100%;height:100%;display:block}
body[data-project-menu] .about-page .phare-nav .portal{position:absolute;inset:auto}
body[data-project-menu] .about-page #next-scene{
  left:calc(var(--phare-copy-inset) + var(--phare-copy-gutter,10px));bottom:var(--section-nav-bottom);
  width:min(185px,calc(100% - (var(--phare-copy-inset) + var(--phare-copy-gutter,10px)) * 2));height:var(--section-nav-height);
}
body[data-project-menu] :is(.about-page #return-home,.level-two-page .level-two-return){
  left:calc(var(--section-inset) + var(--section-inner-gutter));bottom:var(--section-nav-bottom);
  translate:var(--section-scene-left) calc(100svh - var(--phare-panel-height));
}
body[data-project-menu] .about-page #return-home{margin:0}
body[data-project-menu] :is(.work-page .work-return,.training-page .training-return,.contact-page .contact-return){
  translate:var(--section-scene-left) calc(100svh - var(--section-head-height));
  max-width:calc(100vw - var(--section-scene-left) - var(--section-inset) - var(--section-inner-gutter) - 145px);
}
body[data-project-menu][data-route="home"] .controls{
  inset-inline:max(16px,env(safe-area-inset-left),env(safe-area-inset-right));
  min-height:44px;
}
body[data-project-menu][data-route="home"] .copyright{width:100%;text-align:center}
body[data-project-menu][data-route="home"] .controls:has(#enable-sound:not([hidden])) .copyright{padding-inline:52px}
body[data-project-menu][data-route="home"] #enable-sound{position:absolute;inset-inline-end:0}

/* Center the trigger in the space between the wordmark and the film. */
.project-picker-toggle{display:none}
body[data-project-menu] .work-project-picker{
  --picker-center:calc((var(--project-logo-bottom) + var(--section-head-height)) / 2);
  position:absolute;z-index:6;left:50%;top:calc(var(--picker-center) - var(--section-nav-height) / 2);translate:-50% 0;
  width:min(340px,calc(100% - var(--section-inset) * 2));pointer-events:auto;
}
body[data-project-menu] .work-page:not([data-revealed]) .work-project-picker{visibility:hidden}
body[data-project-menu] .project-picker-toggle{
  display:grid;grid-template-columns:24% 1fr 15%;align-items:center;width:100%;height:var(--section-nav-height);
  padding:0;border:1px solid var(--section-control-gold);border-radius:999px;color:#f7eee2;
  background:linear-gradient(145deg,#191510,#090807 60%,#191510);
  box-shadow:inset 0 0 15px #e1bb7d0d,0 0 20px #dbb78316;
}
body[data-project-menu] .project-picker-toggle .portal-icon{padding:0}
body[data-project-menu] .project-picker-toggle .portal-icon svg{width:26px}
body[data-project-menu] .project-picker-toggle::after{
  content:"";justify-self:center;width:8px;height:8px;border:solid #ead0aa;border-width:0 1px 1px 0;
  transform:translateY(-2px) rotate(45deg);
}
body[data-project-menu] .project-picker-toggle[aria-expanded="true"]::after{transform:translateY(2px) rotate(225deg)}
body[data-project-menu] .project-picker-toggle:is(:focus-visible,:hover,[aria-expanded="true"]){border-color:#ffdfb4}
body[data-project-menu] .work-project-menu{
  display:none;position:absolute;inset:calc(100% + 8px) 0 auto;padding:6px;max-height:min(28rem,calc(100svh - var(--picker-center) - var(--section-nav-height) * 1.5 - var(--section-nav-bottom) - 16px));
  overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ad9372 #16130e;
  background:#110f0d;border-radius:18px;box-shadow:0 10px 24px #0008;
}
body[data-project-menu] .project-picker-toggle[aria-expanded="true"] + .work-project-menu{display:block}
body[data-project-menu] .work-project-menu .work-project-access{
  position:static;display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;height:auto;max-width:none;
  clip-path:none;pointer-events:auto;padding:10px 18px;border:0;border-radius:10px;
  color:var(--gold);text-align:center;text-decoration:none;white-space:normal;overflow-wrap:anywhere;
  font-size:1rem;line-height:1.25;letter-spacing:.045em;
}
body[data-project-menu] .work-project-menu .work-project-access:is(:focus-visible,:hover,:active){
  color:#fff;background:#30261c;outline-offset:-2px;
}
@media(max-height:740px) and (orientation:portrait), (max-height:590px) and (orientation:landscape){
  body[data-project-menu] .project-picker-toggle[aria-expanded="true"] + .work-project-menu{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;overflow:visible;
  }
  body[data-project-menu] .work-project-menu .work-project-access{
    font-size:.875rem;letter-spacing:.015em;line-height:1.15;padding:6px;
  }
}

/* Portrait project layout: wordmark, story and a gallery aligned on the same column. */
body[data-project-menu] .project-scroll{overflow:hidden}
body[data-project-menu] .project-layout{
  width:var(--project-column-width);height:100%;margin:0 auto;padding:0;
  grid-template:auto auto minmax(0,1fr) / minmax(0,1fr);gap:0;
}
body[data-project-menu] .project-brand{
  display:grid;place-items:start center;
  padding:var(--project-logo-top) 0 var(--project-brand-gap);
}
body[data-project-menu] .project-brand img{display:block;width:var(--project-logo-width);max-width:100%;height:auto}
body[data-project-menu] .project-story{
  position:static;display:block;min-width:0;height:auto;margin:0 0 14px;padding:0;
}
body[data-project-menu] .project-copy{max-height:none;overflow:visible}
body[data-project-menu] .project-heading{padding:14px 10px 8px}
body[data-project-menu] .project-actions{padding-inline:10px}
body[data-project-menu] .project-copy h1{font-size:calc(var(--project-title-size) / 2)}
body[data-project-menu] .project-copy h2{margin:0;font-size:var(--project-subtitle-size)}
body[data-project-menu] #project-description{
  margin-top:10px;padding:0 10px;
}
body[data-project-menu] .project-copy :is(p,ul){font-size:var(--project-body-size);line-height:1.45}
body[data-project-menu] .project-gallery{
  overflow:auto;overscroll-behavior:contain;min-height:0;padding:0 0 max(24px,env(safe-area-inset-bottom));
  gap:16px;scrollbar-width:thin;scrollbar-color:#ad9372 transparent;
}
body[data-project-menu] .project-gallery > *{flex:none}
body[data-project-menu] .project-watch{padding:14px 20px;font-size:.875rem;line-height:1.2}
body[data-project-menu] .project-controls{inset:0;width:100%;height:100%;margin:0}
body[data-project-menu] .project-controls .work-return{
  left:max(12px,4.17vw,env(safe-area-inset-left));bottom:max(24px,env(safe-area-inset-bottom));
  width:var(--return-button-size);height:var(--return-button-size);
}
@media(max-width:700px), (max-height:650px){
  body[data-project-menu] .experience{--project-column-width:min(90%,620px)}
  body[data-project-menu] .project-brand{
    padding:12px 52px 8px;align-items:center;
  }
  body[data-project-menu] .project-brand img{width:min(38vw,180px)}
  body[data-project-menu] .project-heading{padding-top:4px}
  body[data-project-menu] .project-copy p{margin-bottom:.65em}
  body[data-project-menu] .project-copy p:last-child{margin-bottom:0}
  body[data-project-menu] .project-actions{margin-top:8px}
  body[data-project-menu] .project-scroll{overflow:auto}
  body[data-project-menu] .project-layout{
    height:auto;padding-bottom:calc(var(--return-button-size) + max(24px,env(safe-area-inset-bottom)));
    grid-template-rows:auto;
  }
  body[data-project-menu] :is(#project-description,.project-gallery){height:auto;overflow:visible}
  body[data-project-menu] .project-controls .work-return{
    top:max(8px,env(safe-area-inset-top));bottom:auto;left:max(8px,env(safe-area-inset-left));
  }
}
@media(max-width:700px){
  body[data-project-menu]{
    --mobile-gutter:max(clamp(16px,5vw,25px),env(safe-area-inset-left),env(safe-area-inset-right));
    --section-head-height:clamp(222px,33.5svh,310px);
    --section-inset:var(--mobile-gutter);--section-inner-gutter:0px;
    --section-logo-width:clamp(160px,51vw,235px);--section-logo-top:max(16px,env(safe-area-inset-top));
    --section-nav-height:clamp(44px,5.6svh,50px);--section-nav-bottom:max(16px,env(safe-area-inset-bottom));
  }
  body[data-project-menu] .experience{
    --home-header-height:var(--section-head-height);
    --home-row-height:var(--section-nav-height);
    --home-row-gap:clamp(10px,2svh,17px);
    --home-menu-gap:clamp(10px,3vw,16px);
    --home-menu-gutter:var(--mobile-gutter);
    --home-menu-foot:8px;
    --compact-logo-width:var(--section-logo-width);
    --project-column-width:calc(100% - var(--mobile-gutter) * 2);
    --project-brand-gap:clamp(20px,4svh,34px);
    --project-title-size:clamp(1.75rem,7.4vw,2.7rem);
    --project-subtitle-size:clamp(1rem,4vw,1.125rem);
    --project-body-size:1rem;
    --phare-copy-gutter:0px;
  }
  body[data-project-menu] .portals .portal{
    grid-template-columns:24px minmax(0,1fr);
    column-gap:5px;padding:0 9px;
    background:linear-gradient(145deg,#19151088,#090807 60%,#19151088);
    --icon-shift:calc(50cqw - 12px);
  }
  body[data-project-menu] .portals .portal-icon{padding-right:4px}
  body[data-project-menu] .portals .portal-icon svg{width:19px}
  body[data-project-menu] .portals .portal-label{font-size:clamp(.75rem,3.35vw,.875rem);letter-spacing:.015em;text-indent:0}
  body[data-project-menu] .entry-wordmark{width:var(--project-logo-width)}
  body[data-project-menu] .controls{
    bottom:var(--section-nav-bottom);right:var(--mobile-gutter);
  }
  body[data-project-menu] .icon-button{width:44px;height:44px}
  body[data-project-menu] .work-project-picker{width:min(340px,var(--project-column-width))}
  body[data-project-menu] .training-copy{padding-inline:0}
  body[data-project-menu] .training-copy h1{margin-bottom:.55em}
  body[data-project-menu] .project-heading{padding:14px 0 0}
  body[data-project-menu] .project-actions{justify-content:center;padding-inline:0}
  body[data-project-menu] #project-description{margin-top:14px;padding:0}
  body[data-project-menu] .project-layout{overflow-wrap:anywhere}
  body[data-project-menu] .project-controls .work-return{
    left:var(--mobile-gutter);bottom:var(--section-nav-bottom);
  }
}
@media(max-width:700px) and (orientation:portrait){
  body[data-project-menu] .work-project{
    --project-frame-edge:calc(var(--site-frame-inset) + 1px);
    --project-return-top:calc(max(var(--project-frame-edge),env(safe-area-inset-top)) + var(--mobile-gutter));
    height:100dvh;
  }
  body[data-project-menu] .work-project[open]::after{position:absolute}
  body[data-project-menu] .project-controls .work-return{
    top:var(--project-return-top);left:calc(var(--project-frame-edge) + var(--mobile-gutter));bottom:auto;
  }
  /* The gallery scrolls between the fixed return button and the lower gold rule. */
  body[data-project-menu] .project-scroll{
    position:absolute;height:auto;inset-inline:var(--project-frame-edge);
    top:calc(var(--project-return-top) + var(--return-button-size) + var(--mobile-gutter));
    bottom:max(calc(var(--project-frame-edge) + 8px),env(safe-area-inset-bottom));
  }
  body[data-project-menu] .project-brand{display:none}
  body[data-project-menu] .project-layout{padding-block:0}
  body[data-project-menu][data-route="contact"]{--section-scene-top:calc(var(--section-head-height) + 32px)}
  body[data-project-menu][data-route="training"] .scene{--camera-end-top:max(355px,58svh)}
  body[data-project-menu] .training-copy{
    max-height:calc(max(355px,58svh) - var(--project-copy-top) - 12px);
  }
  body[data-project-menu]:is([data-route="to-about"],[data-route="about"],[data-route="to-home"],[data-route="level-two"]){
    --phare-panel-height:max(350px,58svh);
  }
}
@media(orientation:landscape) and (max-height:590px){
  body[data-project-menu]{
    --section-head-width:47%;--section-head-height:100svh;--section-scene-top:0px;--section-scene-left:47vw;
    --section-inset:5%;--section-logo-width:130px;--section-logo-top:max(10px,env(safe-area-inset-top));
    --section-nav-height:44px;--section-nav-bottom:max(12px,env(safe-area-inset-bottom));
  }
  body[data-project-menu]:is([data-route="to-about"],[data-route="about"],[data-route="to-home"],[data-route="level-two"]){
    --phare-panel-height:var(--section-head-height);--section-scene-top:0px;
  }
  body[data-project-menu] .experience{
    min-height:0;
    --home-header-height:100svh;
    --home-row-height:44px;
    --home-row-gap:12px;
    --home-menu-gap:clamp(8px,2vw,16px);
    --home-menu-gutter:var(--section-inset);
    --home-menu-foot:clamp(26px,11svh,50px);
    --compact-logo-width:clamp(130px,25vw,220px);
    --home-film-width:calc(100vw - var(--section-scene-left));
    --camera-start-top:0px;
    --camera-start-left:var(--section-scene-left);
    --phare-copy-top:var(--project-copy-top);
  }
  body[data-project-menu][data-route="home"] .experience{--home-film-height:100svh}
  body[data-project-menu][data-route="home"] .interface,
  body[data-project-menu]:is([data-route="home"],[data-route="work"]) .experience > .brand{width:var(--section-head-width)}
  body[data-project-menu][data-route="home"] :is(.scene,.lamp-flicker){
    top:0;left:var(--section-scene-left);
  }
  body[data-project-menu][data-route="home"] .orbits{
    left:calc(100% + var(--home-film-width) / 2);top:50%;
    width:max(var(--home-film-width),177.7778svh);height:max(100svh,calc(var(--home-film-width) * 9 / 16));
  }
  body[data-project-menu] .portals .portal{
    grid-template-columns:22px minmax(0,1fr);column-gap:5px;
    padding:0 8px;--icon-shift:calc(50cqw - 11px);
  }
  body[data-project-menu] .portals .portal-label{font-size:.72rem;letter-spacing:.01em;text-indent:0}
  body[data-project-menu] .portals .portal-icon{padding-right:4px}
  body[data-project-menu] .portals .portal-icon svg{width:18px}
  body[data-project-menu] .controls{
    left:calc(var(--section-scene-left) + 10px);
    bottom:var(--section-nav-bottom);right:max(16px,env(safe-area-inset-right));
  }
  body[data-project-menu] .icon-button{width:44px;height:44px}
  body[data-project-menu] .scene{
    --scene-edge-direction:to right;--scene-edge-fade:clamp(28px,10cqw,60px);
  }
  body[data-project-menu][data-route="training"] .scene{--camera-end-top:0px}
  body[data-project-menu] .training-copy{
    bottom:16px;width:calc(100% - 24px);max-height:none;padding-inline:0;
  }
  body[data-project-menu] .work-project-menu{
    left:calc(50% + 23.5vw + 8px);right:auto;width:calc(53vw - 16px);
    top:calc(50svh - var(--picker-center) + var(--section-nav-height) / 2);
    transform:translateY(-50%);
  }
}
@media(max-width:700px) and (orientation:landscape) and (max-height:590px){
  body[data-project-menu] .portals .portal{
    grid-template-columns:16px minmax(0,1fr);column-gap:3px;
    padding:0 5px;--icon-shift:calc(50cqw - 8px);
  }
  body[data-project-menu] .portals .portal-icon{padding-right:3px}
}

@media(orientation:portrait) and (max-height:730px) and (max-width:440px){
  body[data-project-menu] .project-heading{padding:4px 0}
  body[data-project-menu] .project-copy h2{font-size:1rem}
  body[data-project-menu] #project-description{margin-top:5px}
  body[data-project-menu] .project-copy :is(p,ul){font-size:clamp(.8rem,3.8vw,1rem);line-height:1.28}
  body[data-project-menu] .project-copy p{margin-bottom:.4em}
  body[data-project-menu] .project-actions{margin-top:4px}
}
@media(orientation:landscape) and (max-height:590px){
  body[data-project-menu] .project-story{width:94vw;justify-self:center}
  body[data-project-menu] .project-brand{padding:4px 52px;min-height:49px}
  body[data-project-menu] .project-brand img{width:100px}
  body[data-project-menu] .project-heading{padding:4px 0}
  body[data-project-menu] .project-copy h1{font-size:clamp(1.05rem,2.4vw,1.4rem)}
  body[data-project-menu] .project-copy h2{font-size:1rem}
  body[data-project-menu] #project-description{margin-top:6px;padding:0;columns:2;column-gap:20px}
  body[data-project-menu] .project-copy :is(p,ul){font-size:clamp(.8rem,1.8vw,1rem);line-height:1.3}
  body[data-project-menu] .project-copy p{margin-bottom:.45em}
  body[data-project-menu] .project-actions{justify-content:flex-start;margin-top:4px;padding:0}
  body[data-project-menu] .project-controls .work-return{left:6px;top:3px}
}
@media(orientation:landscape) and (max-width:600px) and (max-height:350px){
  body[data-project-menu] .project-heading{padding-block:0}
  body[data-project-menu] .project-copy :is(p,ul){font-size:.75rem;line-height:1.2}
}

/* Use the project page typography and controls across compact sections. */
@media(min-width:701px) and (min-height:591px){
  body[data-project-menu] .experience{
    --compact-logo-width:min(41vw,400px);
    --section-nav-height:var(--home-row-height,clamp(44px,5.1svh,64px));
    --phare-copy-inset:calc((100% - var(--project-column-width)) / 2);
  }
  body[data-project-menu][data-route="home"] .brand .brand-name{width:var(--compact-logo-width)}
  body[data-project-menu]:not([data-route="home"]) .brand-name{width:var(--compact-logo-width)}
  body[data-project-menu] .experience .portals .portal-label{font-size:.875rem}
  body[data-project-menu] .portals .portal{height:var(--section-nav-height);min-height:0;max-height:none}
}
body[data-project-menu] :is(.about-copy,.training-copy,.contact-copy) h1{
  font-size:var(--project-title-size);line-height:1;font-weight:800;letter-spacing:-.055em;
}
body[data-project-menu] .about-page .about-copy h1{font-size:min(var(--project-title-size),10cqw)}
/* Give the lighthouse copy its full height, including the final line. */
.about-page .about-copy,.level-two-page .level-two-copy{overflow:visible;mask-image:none}
body:not([data-project-menu]) .level-two-copy{
  top:23%;bottom:calc(16.7% + 58px + 12px);align-content:center;
}
body:not([data-project-menu]) .level-two-copy h1{
  font-size:clamp(2rem,min(3.65vw,6.49svh),5rem);margin-bottom:clamp(12px,2svh,26px);
}
@media(max-height:650px) and (min-width:1101px){
  body:not([data-project-menu]) .level-two-page{--copy-width:43%}
  body:not([data-project-menu]) .level-two-copy{padding:0}
  body:not([data-project-menu]) .level-two-copy h1{font-size:clamp(2rem,7.5svh,3rem)}
  body:not([data-project-menu]) .about-page{--phare-column-width:41%}
  body:not([data-project-menu]) .about-page .about-copy{padding-block:5px}
  body:not([data-project-menu]) .about-copy :is(p,h1){margin-block:0 .45em}
}

body[data-project-menu] :is(.about-page,.level-two-page) .about-copy{
  overflow:visible;mask-image:none;padding-block:0;justify-content:center;
}
body[data-project-menu] .level-two-page .level-two-copy{
  top:calc(var(--project-logo-bottom) + 10px);bottom:12px;
}
body[data-project-menu] .about-page .about-copy{top:calc(var(--project-logo-bottom) + 6px);bottom:calc(var(--section-nav-height) + var(--section-nav-bottom) + 8px)}
body[data-project-menu] .about-page .about-copy p{margin-block:0 .45em}
body[data-project-menu] .about-page .about-copy p:last-child{margin:0}
@media(min-height:591px){
  body[data-project-menu]:is([data-route="to-about"],[data-route="about"],[data-route="to-home"]){--phare-panel-height:max(420px,60svh)}
}
@media(max-width:700px) and (orientation:portrait){
  body[data-project-menu]:is([data-route="to-about"],[data-route="about"],[data-route="to-home"]){--phare-panel-height:max(425px,58svh)}
}
@media(orientation:landscape) and (max-height:590px){
  body[data-project-menu]:is([data-route="to-about"],[data-route="about"],[data-route="to-home"],[data-route="level-two"]){
    --section-head-width:62%;--section-scene-left:62vw;
  }
  body[data-project-menu]:is([data-route="to-about"],[data-route="about"],[data-route="to-home"],[data-route="level-two"]) .experience{
    --project-logo-top:max(8px,env(safe-area-inset-top));--compact-logo-width:130px;
    --phare-copy-inset:4%;
  }
  body[data-project-menu] .about-page .about-copy h1{
    font-size:clamp(1.45rem,6.6svh,2.1rem);margin-block:0 .25em;
  }
}
@media(min-width:701px) and (min-height:591px) and (max-height:700px){
  body[data-project-menu]:is([data-route="to-about"],[data-route="about"],[data-route="to-home"],[data-route="level-two"]) .experience{
    --compact-logo-width:min(27vw,220px);--phare-copy-inset:6%;
  }
}
@media(max-width:360px) and (orientation:portrait){
  body[data-project-menu]:is([data-route="to-about"],[data-route="about"],[data-route="to-home"]){--phare-panel-height:max(444px,58svh)}
  body[data-project-menu][data-route="level-two"]{--phare-panel-height:max(370px,58svh)}
}
@media(max-width:640px) and (max-height:590px) and (orientation:landscape){
  body[data-project-menu] .about-page .about-copy{bottom:8px}
  body[data-project-menu] .about-page #next-scene{
    left:calc(100% + 10px);bottom:calc(var(--section-nav-bottom) + var(--section-nav-height) + 10px);
    width:min(125px,calc(100vw - var(--section-head-width) - 20px));
  }
}

body[data-project-menu] .contact-copy{
  inset:var(--project-copy-top) 0 auto;
  width:var(--project-column-width);margin:0 auto;
  padding:0 var(--contact-copy-gutter,10px);
  overflow:visible;text-align:left;text-shadow:0 1px 5px #000b;
}
body[data-project-menu] .contact-copy h1{margin:0}
body[data-project-menu] .contact-copy p{
  max-width:none;margin:.55em 0 .8em;color:#ead2ae;font-size:var(--project-body-size);line-height:1.45;
}
body[data-project-menu] .contact-links{margin:0;gap:clamp(8px,2vw,15px)}
body[data-project-menu] .contact-icon{width:var(--return-button-size);background:#dec7a6;box-shadow:0 0 0 1px #d5bc9633}
body[data-project-menu] .contact-icon:is(:hover,:focus-visible,[data-feedback]){
  background:#dec7a6;box-shadow:0 0 0 1px var(--section-control-gold);
}
body[data-project-menu] .contact-icon:is(:hover,:focus-visible,[data-feedback]) img{filter:none}
body[data-project-menu] .experience :is(.enter,.work-project-access,.project-watch),
body[data-project-menu] :is(#next-scene,.project-picker-toggle) .portal-label{font-size:.875rem}
body[data-project-menu] :is(.enter,.project-watch){
  height:var(--section-nav-height);min-height:0;padding-block:0;
}
@media(max-width:700px), (orientation:landscape) and (max-height:590px){
  body[data-project-menu] .contact-copy{--contact-copy-gutter:0px}
}
@media(orientation:landscape) and (max-height:590px){
  body[data-project-menu] .contact-copy{top:calc(var(--project-logo-bottom) + 10px);width:calc(100% - 24px)}
  body[data-project-menu] .contact-copy h1{font-size:clamp(1.3rem,3.5vw,2rem)}
  body[data-project-menu] .contact-copy p{margin:.45em 0 .6em;font-size:.875rem;line-height:1.3}
  body[data-project-menu] .contact-links{gap:clamp(4px,1vw,10px);flex-wrap:wrap}
  body[data-project-menu] .contact-icon{flex:none}
  body[data-project-menu] .experience{
    --project-title-size:clamp(1.55rem,4.15vw,2.25rem);
    --project-brand-gap:clamp(8px,3svh,22px);
  }
}

/* Size the Formation panel from its copy so every paragraph and the return link fit. */
body[data-project-menu][data-route="training"]{height:auto;overflow-y:auto}
body[data-project-menu][data-route="training"] .experience{
  --training-film-height:clamp(64px,calc(100svh - 600px),45svh);
  --training-gutter:max(16px,5vw,env(safe-area-inset-left),env(safe-area-inset-right));
  height:auto;min-height:100svh;padding-bottom:var(--training-film-height);
}
body[data-project-menu][data-route="training"] .scene{
  --camera-end-top:calc(100% - var(--training-film-height));
}
body[data-project-menu][data-route="training"] .training-page{
  position:relative;inset:auto;width:100%;height:auto;min-height:calc(100svh - var(--training-film-height));
  display:flex;flex-direction:column;justify-content:center;align-items:flex-start;
  padding:calc(var(--project-logo-bottom) + 10px) var(--training-gutter) 8px;
}
body[data-project-menu][data-route="training"] .training-copy{
  position:static;inset:auto;width:100%;max-width:76ch;height:auto;max-height:none;overflow:visible;
  padding:0;margin-inline:auto;display:block;
}
body[data-project-menu][data-route="training"] .training-copy p{margin:0 0 .45em}
body[data-project-menu][data-route="training"] .training-copy p:last-child{margin:0}
body[data-project-menu][data-route="training"] .training-copy h1{margin:.22em 0;font-size:clamp(1.45rem,4.2vw,2.75rem);line-height:1.04}
body[data-project-menu][data-route="training"] .training-copy h1 br{display:none}
body[data-project-menu][data-route="training"] .training-return{
  position:relative;inset:auto;translate:none;width:min(100%,76ch);max-width:none;height:44px;
  margin:8px auto 0;font-size:var(--project-body-size);
}
@media (max-width:700px) and (orientation:portrait){
  body[data-project-menu][data-route="training"] .experience{
    --training-film-height:clamp(96px,13svh,135px);
    --project-logo-top:max(12px,env(safe-area-inset-top));--project-logo-width:clamp(130px,38vw,190px);
    --training-gutter:max(12px,3.8vw,env(safe-area-inset-left),env(safe-area-inset-right));
  }
}
@media (orientation:landscape) and (max-height:590px){
  body[data-project-menu][data-route="training"] .experience{
    --section-scene-left:75vw;--training-gutter:max(12px,env(safe-area-inset-left));padding-bottom:0;
  }
  body[data-project-menu][data-route="training"] .scene{--camera-end-top:0px}
  body[data-project-menu][data-route="training"] .training-page{
    width:var(--section-scene-left);min-height:100svh;padding:10px var(--training-gutter);
  }
  body[data-project-menu][data-route="training"] .training-copy{max-width:none}
  body[data-project-menu][data-route="training"] .training-copy h1{font-size:clamp(1.5rem,3.8vw,2.1rem)}
  body[data-project-menu][data-route="training"] .brand{
    left:var(--section-scene-left);width:calc(100% - var(--section-scene-left));height:100svh;
  }
  body[data-project-menu][data-route="training"] .brand .brand-name{top:12px;width:min(80%,155px)}
  body[data-project-menu][data-route="training"] .training-return{
    position:absolute;inset:auto auto max(12px,env(safe-area-inset-bottom)) calc(100% + 10px);width:44px;margin:0;
  }
}
@media (orientation:portrait) and (max-width:700px) and (max-height:780px),
       (orientation:portrait) and (max-width:350px) and (max-height:900px){
  body[data-project-menu][data-route="training"] .experience{--training-film-height:clamp(64px,12svh,92px)}
  body[data-project-menu][data-route="training"] .training-copy{
    font-size:clamp(.78rem,min(4vw,2.25svh),1rem);line-height:1.32;
  }
  body[data-project-menu][data-route="training"] .training-return{
    position:absolute;inset:auto auto calc(10px - var(--training-film-height)) var(--training-gutter);width:44px;margin:0;
  }
}
@media (orientation:landscape) and (max-width:780px) and (max-height:590px),
       (orientation:landscape) and (max-height:375px){
  body[data-project-menu][data-route="training"] .training-copy{
    font-size:clamp(.75rem,min(2.12vw,3.8svh),1rem);line-height:1.32;
  }
}

@media (orientation:landscape) and (min-height:591px) and (max-height:690px){
  body[data-project-menu][data-route="training"] .experience{
    --compact-logo-width:clamp(130px,24vw,200px);--project-logo-top:max(12px,env(safe-area-inset-top));
  }
}

@media(orientation:portrait){
  body[data-training-phone][data-route="training"] .experience{
    --training-film-inset:calc(var(--site-frame-inset) + 1px);
    --training-film-foot:max(calc(var(--training-film-inset) + 8px),env(safe-area-inset-bottom));
    --training-film-height:min(81vw,39dvh);
    --section-scene-left:var(--training-film-inset);
    height:100dvh;min-height:0;padding:0;
  }
  body[data-training-phone][data-route="training"] .scene{
    --camera-end-top:calc(100% - var(--training-film-height) - var(--training-film-foot));
    --training-home-picture:max(100vw,calc((100svh - var(--camera-source-top)) * 16 / 9));
    --training-cinema-picture:calc((100vw - 2 * var(--training-film-inset)) * 1.96);
    --training-picture-width:calc(var(--training-home-picture) * (1 - var(--camera-progress)) + var(--training-cinema-picture) * var(--camera-progress));
    right:calc(var(--camera-centered-x) * (1 - var(--camera-progress)) + var(--training-film-inset) * var(--camera-progress));
    bottom:calc((100dvh - 100svh) * (1 - var(--camera-progress)) + var(--training-film-foot) * var(--camera-progress));
  }
  /* The visible video is cropped by the moving scene. Feather that edge as it travels. */
  body[data-training-phone][data-route="training"] .scene::after{
    bottom:auto;height:clamp(24px,15%,68px);z-index:1;
    background:linear-gradient(to bottom,#000,#000e 20%,#0008 50%,#0002 80%,transparent);
  }
  /* Match the home film's cover crop, then centre the auditorium screen as the camera moves. */
  body[data-training-phone][data-route="training"] .scene > :is(.scene-poster,#training-film,#training-loop,#training-reverse){
    inset:50% auto auto 50%;width:var(--training-picture-width);height:calc(var(--training-picture-width) * 9 / 16);
    object-fit:cover;object-position:center;
    transform:translate(calc(-50% - 18.2% * var(--camera-progress)),calc(-50% + 4% * var(--camera-progress)));
  }
  body[data-training-phone][data-route="training"] .training-page{
    height:calc(100% - var(--training-film-height) - var(--training-film-foot));min-height:0;
    padding-top:max(var(--mobile-gutter),env(safe-area-inset-top));
  }
  body[data-training-phone][data-route="training"] .training-copy{font-size:1rem;line-height:1.4}
  body[data-training-phone][data-route="training"] .training-copy h1{margin:0 0 .45em}
  body[data-training-phone][data-route="training"] .training-return{
    position:relative;inset:auto;width:44px;margin:12px 0 0;
  }
}
@media(orientation:portrait) and (max-height:610px){
  body[data-training-phone][data-route="training"] .training-page{padding-top:calc(var(--project-logo-top) + 52px)}
  body[data-training-phone][data-route="training"] .training-copy{font-size:.9375rem;line-height:1.32}
  body[data-training-phone][data-route="training"] .training-return{
    position:absolute;inset:var(--project-logo-top) auto auto var(--training-gutter);margin:0;
  }
}
@media(orientation:portrait) and (max-height:510px){
  body[data-training-phone][data-route="training"] .experience{--training-film-height:34dvh}
}

.portrait-notice{
  position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;
  margin:0;border:0;padding:16px;background:var(--ink);color:#ead0aa;text-align:center;
}
.portrait-notice[open]{display:grid;align-content:center;justify-items:center;gap:14px}
.portrait-notice::backdrop{background:var(--ink)}
.portrait-notice svg{width:clamp(54px,20dvh,84px);height:auto}
.portrait-notice h2{margin:0;font-size:clamp(20px,5.6dvh,28px);line-height:1.15;letter-spacing:-.025em}
@media (prefers-reduced-motion:no-preference){
  .portrait-notice[open] .portrait-phone{
    transform-box:fill-box;transform-origin:center;animation:turn-to-portrait 1s ease-in-out both;
  }
  @keyframes turn-to-portrait{from{transform:rotate(-90deg)}to{transform:rotate(0)}}
}
