/* /world -- THE MIND.
 *
 * The canvas is a fixed backdrop. Everything readable sits above it in normal
 * document flow, so the page is complete and scrollable whether or not a
 * single pixel of WebGL ever renders.
 *
 * Colour is the brand's three and nothing else: VOID ground, PAPER type,
 * SIGNAL for one accent. The retired lime and violet that the old room was
 * literally lit with are not in this file and must not come back.
 */

:root{
  --void:#0B0D12;
  --paper:#F7F4EC;
  --signal:#FF4A1C;
  --muted:#8B94A3;
  --line:rgba(247,244,236,.14);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
.wbody{
  background:var(--void);
  color:var(--paper);
  font-family:Archivo,'Helvetica Neue',Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

.skip{
  position:absolute;left:-9999px;top:0;z-index:100;
  background:var(--paper);color:var(--void);padding:.7em 1.1em;font-weight:700;
}
.skip:focus{left:12px;top:12px}

/* ---------------------------------------------------------------- canvas */
#stage,#poster{
  position:fixed;inset:0;width:100vw;height:100vh;display:block;
  z-index:0;pointer-events:none;
}
#stage{pointer-events:auto;cursor:grab}
#stage:active{cursor:grabbing}
#poster{
  object-fit:cover;z-index:1;
  transition:opacity .9s ease-out;
}
/* the still is what a visitor sees until the canvas is genuinely live */
@media (prefers-reduced-motion: reduce){
  #poster{transition:none}
}

#scrim{
  position:fixed;inset:0;z-index:2;pointer-events:none;
  /* v2 adds the vignette: a slow radial darkening toward the frame edge that
     seats the masses in a place instead of floating them on flat black. */
  background:radial-gradient(125% 95% at 62% 42%,
    transparent 50%, rgba(5,7,11,.5) 100%),
  linear-gradient(100deg,
    rgba(11,13,18,.94) 0%, rgba(11,13,18,.78) 26%,
    rgba(11,13,18,.30) 52%, rgba(11,13,18,0) 74%);
}
@media (max-width:760px){
  /* on a phone the reading column is the whole width, so the scrim has to
     come from the bottom instead of the side */
  #scrim{background:linear-gradient(180deg,
    rgba(11,13,18,.55) 0%, rgba(11,13,18,.20) 26%,
    rgba(11,13,18,.86) 62%, rgba(11,13,18,.97) 100%)}
}

/* ------------------------------------------------------------------- top */
.wtop{
  position:fixed;top:0;left:0;right:0;z-index:20;
  display:flex;align-items:center;justify-content:space-between;
  gap:1.4rem;padding:1.05rem clamp(1rem,3.2vw,2.6rem);
  background:linear-gradient(180deg,rgba(11,13,18,.92),rgba(11,13,18,0));
}
.wmark{display:inline-flex;align-items:center;color:var(--paper);
       text-decoration:none;line-height:0}
.wexits{display:flex;align-items:center;gap:clamp(.6rem,1.6vw,1.3rem)}
.wexits a{color:var(--muted);text-decoration:none;font-size:.9rem;font-weight:600}
.wexits a:hover{color:var(--paper)}
.wbook{
  background:var(--signal);color:var(--paper) !important;
  padding:.62em 1.05em;font-weight:700;white-space:nowrap;
}
.wbook:hover{filter:brightness(1.08)}

/* ------------------------------------------------------------------ main */
.wmain{
  position:relative;z-index:10;
  padding:0 clamp(1rem,3.2vw,2.6rem) clamp(3rem,7vw,6rem);
  /* the readable column stays left so the mass is never covered up */
  max-width:min(100%,1500px);
  pointer-events:none;
}
.wmain a,.wmain button,.wareas{pointer-events:auto}

.wintro{
  min-height:74svh;display:flex;flex-direction:column;justify-content:flex-end;
  padding-bottom:clamp(1.1rem,2.4vw,1.8rem);max-width:42ch;
}
.weyebrow{
  margin:0 0 .9rem;font-size:.72rem;font-weight:700;letter-spacing:.16em;
  text-transform:uppercase;color:var(--muted);white-space:nowrap;
}
.wintro h1{
  font-family:Fraunces,"Iowan Old Style",Charter,Georgia,serif;
  font-optical-sizing:auto;
  font-variation-settings:"SOFT" 0,"WONK" 0,"wght" 400;
  margin:0 0 1rem;
  font-size:clamp(40px,5.0vw,68px);line-height:1.04;
  letter-spacing:-.015em;text-transform:none;text-wrap:balance;
}
.wlede{margin:0;color:var(--muted);font-size:clamp(1rem,1.25vw,1.14rem);
       line-height:1.5;max-width:44ch}

/* ----------------------------------------------------------------- areas */
.wareas{margin:0 0 1.4rem}
.wareas ul{list-style:none;margin:0;padding:0;
           display:flex;flex-wrap:wrap;gap:.5rem .55rem}
.wareas a{
  display:flex;flex-direction:column;gap:.16rem;
  padding:.72rem 1.05rem;min-width:8.6rem;
  border:1px solid var(--line);text-decoration:none;color:var(--paper);
  background:rgba(11,13,18,.88);
  transition:border-color .22s ease-out,background .22s ease-out,
             transform .22s cubic-bezier(.22,1,.36,1);
}
.wareas a b{font-family:Archivo,"Helvetica Neue",Arial,sans-serif;
            font-weight:600;font-size:1.02rem;letter-spacing:.06em;
            text-transform:uppercase}
.wareas a i{font-style:normal;font-size:.78rem;color:var(--muted)}
.wareas a:hover,.wareas a:focus-visible{
  border-color:var(--signal);background:rgba(11,13,18,.96);
  transform:translateY(-2px);
}
.wareas a:focus-visible{outline:2px solid var(--signal);outline-offset:2px}
@media (prefers-reduced-motion: reduce){
  .wareas a{transition:none}
  .wareas a:hover,.wareas a:focus-visible{transform:none}
}

.wsay{
  margin:0 0 clamp(2.4rem,7vw,5rem);color:var(--muted);
  font-size:.92rem;min-height:1.5em;max-width:52ch;
}

/* ----------------------------------------------------------------- shelf */
.wshelf{
  border-top:1px solid var(--line);padding-top:2rem;
  background:linear-gradient(180deg,rgba(11,13,18,.86),rgba(11,13,18,.96));
  pointer-events:auto;
}
.wshelf h2{
  font-family:Fraunces,"Iowan Old Style",Charter,Georgia,serif;
  font-optical-sizing:auto;
  font-variation-settings:"SOFT" 0,"WONK" 0,"wght" 400;
  text-transform:none;
  font-size:clamp(28px,3.0vw,42px);margin:0 0 1.2rem;line-height:1.08;
  letter-spacing:-.010em;
}
.wshelf .shelf{list-style:none;margin:0 0 1.4rem;padding:0;
  display:grid;gap:.4rem .9rem;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr))}
.wshelf .shelf a{color:var(--paper);text-decoration:none;font-size:.94rem;
  border-bottom:1px solid transparent;padding:.24rem 0;display:inline-block}
.wshelf .shelf a:hover{border-bottom-color:var(--signal)}
.wshelf p{color:var(--muted);font-size:.94rem;line-height:1.55;max-width:66ch}
.wshelf p a{color:var(--paper)}

.wout{
  margin:2.2rem 0 0;color:var(--muted);font-size:.94rem;
  border-top:1px solid var(--line);padding-top:1.4rem;pointer-events:auto;
}
.wout a{color:var(--paper)}

/* --------------------------------------------------------------- toggle */
/* the [ FLAT | 3D ] control is shared markup with the flat page */
.wtog{display:inline-flex;border:1px solid var(--line)}
.wtog a{
  padding:.5em .85em;font-size:.78rem;font-weight:700;letter-spacing:.1em;
  text-decoration:none;color:var(--muted);text-transform:uppercase;
}
.wtog a[aria-current="true"],.wtog a.on{background:var(--paper);color:var(--void)}

@media (max-width:640px){
  .wtop{padding:.8rem 1rem;gap:.6rem}
  .wexits a{font-size:.8rem}
  .wareas a{min-width:7.4rem;padding:.6rem .8rem}
}

/* ----------------------------------------------------------------- facts */
.wfacts{
  border-top:1px solid var(--line);padding-top:2rem;margin-bottom:2.6rem;
  background:linear-gradient(180deg,rgba(11,13,18,.86),rgba(11,13,18,.94));
  pointer-events:auto;
}
.wfacts h2{
  font-family:Fraunces,"Iowan Old Style",Charter,Georgia,serif;
  font-optical-sizing:auto;
  font-variation-settings:"SOFT" 0,"WONK" 0,"wght" 400;
  text-transform:none;
  font-size:clamp(28px,3.0vw,42px);margin:0 0 1.1rem;line-height:1.08;
  letter-spacing:-.010em;
}
.wfacts p{color:var(--muted);font-size:.98rem;line-height:1.6;max-width:66ch;
          margin:0 0 1rem}
.wfacts b{color:var(--paper);font-weight:700}
.wnote{
  border-left:0;font-size:.9rem !important;color:var(--muted);
  opacity:.92;max-width:66ch;
}
