@font-face{font-family:Suisse;src:url("assets/suisse-regular.woff") format("woff");font-weight:400;font-display:swap}
:root{color-scheme:dark;--inset:clamp(24px,2.5vw,64px);--type:clamp(16px,1.041667vw,24px);--tile:max(38.430745vw,285px);--edge:min(18.75vw,52vh);background:#000;font-family:Suisse,"Helvetica Neue",Arial,sans-serif}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#000;color:#fff}
.header{position:fixed;z-index:5;inset:var(--inset) var(--inset) auto;display:flex;justify-content:center;pointer-events:none;font-size:var(--type);line-height:1.2;letter-spacing:-.02em}
.brand{position:relative;opacity:0;white-space:nowrap;pointer-events:auto}
.short-mark{position:absolute;top:0;left:50%;transform:translateX(-50%);opacity:0;pointer-events:none}
.short-mark>span,.full-mark,.nav-words{display:inline-block}
.brand{--inactive-word:rgb(255 255 255 / 50%)}
.nav-words,.brand a{color:var(--inactive-word)}
.brand a{text-decoration:none}
.brand a[aria-current],.brand a:focus-visible{color:#fff}
@media(hover:hover){.brand a:hover{color:#fff}}
.brand a:focus-visible{outline:1px solid #aaa;outline-offset:4px}

.page{position:fixed;inset:0;visibility:hidden}
body[data-page="system"] #system{visibility:visible;transition-delay:0s}
.home-page{top:auto;height:min(100%,calc(var(--tile) + 40px));overflow:hidden;pointer-events:none;visibility:visible}
/* The artwork fades beneath the persistent edge filters, including when a switch is reversed. */
.hero{
  opacity:0;filter:blur(var(--artworkBlurPx,6px));
  transition:opacity var(--artworkFadeMs,300ms) ease-in-out,filter var(--artworkFadeMs,300ms) ease-in-out;
}
body[data-page="carrott"] .hero{opacity:1;filter:none}
.system-page{
  --nav-clearance:calc(var(--inset) + 2.2em);
  inset:var(--nav-clearance) 0 0;display:flex;flex-direction:column;
  padding:0 var(--inset) var(--nav-clearance);overflow-y:auto;
  font-size:var(--type);line-height:1.2;letter-spacing:-.02em;
  transition:visibility 0s linear var(--textOutMs,280ms);
}
.system-copy{flex:none;width:min(100%,24em);margin:auto;display:grid;gap:2em}
.system-copy p{
  margin:0;text-box:trim-both cap alphabetic;
  opacity:0;filter:blur(var(--textBlurPx,4px));transform:translateY(var(--textRisePx,8px));
  transition-property:opacity,filter,transform;
  transition-duration:var(--textOutMs,280ms);transition-timing-function:ease-in-out;
}
body[data-page="system"] .system-copy p{
  opacity:1;filter:none;transform:none;
  transition-duration:var(--textInMs,360ms);
  transition-timing-function:ease-out,ease-out,cubic-bezier(.22,.61,.3,1);
  transition-delay:calc(var(--textDelayMs,100ms) + var(--paragraph-index,0) * var(--paragraphStaggerMs,40ms));
}
.system-copy p span{color:#808080}
@media(prefers-reduced-motion:reduce){.page,.hero,.system-copy p,body[data-page="system"] .system-copy p{transition:none}}
.hero,.strip{position:absolute;inset:0}
/* Only the image layer fades. The sibling edge filters keep sampling the same surface. */
.strip{overflow:hidden;opacity:0;will-change:opacity}
.tile{position:absolute;bottom:0;left:0;width:var(--tile);height:var(--tile);transform-origin:50% 50%;will-change:transform}
.tile img{display:block;width:100%;height:100%;transform-origin:center;user-select:none}
.edge{position:absolute;bottom:0;width:var(--edge);height:min(100%,calc(var(--tile) + 40px));pointer-events:none}.edge.left{left:0}.edge.right{right:0}.edge>i{position:absolute;inset:0;display:block}
@media(max-width:650px){:root{--inset:20px;--edge:17vw;--type:16px}}
@media(max-width:650px) and (orientation:portrait){
  :root{
    --type:14px;
    --tile:38.430745vh;--tile:38.430745dvh;
    --edge:100px;
    --nav-bottom:max(24px,env(safe-area-inset-bottom));
  }
  .header{inset:auto 0 var(--nav-bottom)}
  .brand a{position:relative}
  .brand a::before{content:"";position:absolute;inset:-14px 0}
  /* The strip and its edge masks share one rotated coordinate system.
     The tiles still travel along their original local X axis. */
  .home-page{
    inset:0 auto auto 100%;width:100vh;width:100dvh;height:100vw;
    transform-origin:top left;transform:rotate(90deg);
  }
  .edge{height:100%}
  .system-page{
    --nav-clearance:max(calc(var(--nav-bottom) + 1.2em + 16px),env(safe-area-inset-top));
    inset:var(--nav-clearance) 0;padding:0 clamp(24px,12.22vw,48px);
  }
  .system-copy{width:min(100%,32em);gap:24px}
  body:not([data-debug]) #open-dials{display:none}
}

#open-dials{position:fixed;z-index:8;right:14px;bottom:14px;border:1px solid #ffffff28;border-radius:20px;background:#111;color:#dedddc;padding:7px 12px;font:12px/1.2 system-ui,sans-serif;cursor:pointer}
#open-dials[hidden]{display:none}
#open-dials:focus-visible{outline:1px solid white;outline-offset:3px}
.edge.left>i{right:auto;left:0}.edge.right>i{left:auto;right:0}
