/* ============================================================
   RESOLUTION — an exhibition about the Renaissance image after
   reproduction. Institute for Image Studies (fictional).

   The whole design argument is one collision: a typeface descended
   from 16th-century punchcutting (EB Garamond) set against the
   monospace and bitmap faces of the machines that now carry those
   images. Nothing else needs to shout — the plates dither themselves.
   ============================================================ */

/* ---------- 1. tokens ---------- */
:root{
  --paper:    #F4F1E8;
  --paper-2:  #EAE5D8;
  --paper-3:  #DED7C6;
  --ink:      #17150F;
  --ink-72:   rgba(23,21,15,.72);
  --ink-50:   rgba(23,21,15,.50);
  --ink-30:   rgba(23,21,15,.30);
  --hair:     rgba(23,21,15,.20);
  --hair-2:   rgba(23,21,15,.10);
  --rubric:   #A32E1F;      /* the red of a manuscript rubric */
  --rubric-d: #7E2113;

  --pad:  clamp(1.15rem, 3.4vw, 3.5rem);
  --maxw: 1560px;
  --ease:    cubic-bezier(.16,1,.3,1);
  --ease-io: cubic-bezier(.65,.05,.36,1);

  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --bitmap:"Silkscreen", "IBM Plex Mono", monospace;
}

/* ---------- 2. reset ---------- */
*,*::before,*::after{ box-sizing:border-box }
html{ -webkit-text-size-adjust:100% }
body{
  margin:0; background:var(--paper); color:var(--ink);
  font-family:var(--serif); font-size:18px; line-height:1.5;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  overflow-x:clip;
}
img,canvas,svg,video{ display:block; max-width:100% }
a{ color:inherit; text-decoration:none }
button,input,select{ font:inherit; color:inherit }
button{ background:none; border:0; cursor:pointer }
h1,h2,h3,h4,p,figure,blockquote,dd{ margin:0 }
ul,ol{ margin:0; padding:0; list-style:none }
::selection{ background:var(--rubric); color:var(--paper) }
:focus-visible{ outline:2px solid var(--rubric); outline-offset:3px }

/* ---------- 3. type ---------- */
.ser{ font-family:var(--serif) }
.t-mega{ font-size:clamp(3.2rem, 13vw, 12rem); line-height:.84; letter-spacing:-.025em; font-weight:500 }
.t-xl  { font-size:clamp(2.2rem, 6vw, 5rem);   line-height:.96; letter-spacing:-.018em; font-weight:500 }
.t-lg  { font-size:clamp(1.7rem, 3.4vw, 2.9rem); line-height:1.06; letter-spacing:-.012em; font-weight:500 }
.t-md  { font-size:clamp(1.2rem, 1.9vw, 1.6rem); line-height:1.18; font-weight:500 }
.it{ font-style:italic }

.lbl{
  font-family:var(--mono); font-size:.6875rem; font-weight:500;
  text-transform:uppercase; letter-spacing:.17em; color:var(--ink-50);
}
.lbl--r{ color:var(--rubric) }
.num{ font-variant-numeric:tabular-nums; font-feature-settings:"tnum" 1 }
.bmp{ font-family:var(--bitmap); font-size:.625rem; letter-spacing:.04em; line-height:1 }

.lede{ font-size:clamp(1.15rem,1.7vw,1.45rem); line-height:1.46; color:var(--ink-72); max-width:52ch }
.prose{ font-size:1.0625rem; line-height:1.62 }
.prose p{ color:var(--ink-72); max-width:62ch }
.prose p + p{ margin-top:1.05em }
.prose em{ font-style:italic }
.drop::first-letter{
  float:left; font-size:4.4em; line-height:.76; padding:.05em .09em 0 0;
  color:var(--rubric); font-weight:500;
}

/* ---------- 4. layout ---------- */
.wrap{ max-width:var(--maxw); margin-inline:auto; padding-inline:var(--pad) }
.sect{ padding-block:clamp(3rem,7vw,7rem) }
.rule{ height:1px; background:var(--hair); border:0; margin:0 }
.rule--r{ background:var(--rubric); height:2px }
/* a rule made of pixels rather than a line — the concept, in a divider */
.rule--px{
  height:4px; border:0; margin:0;
  background-image:linear-gradient(90deg, var(--ink) 50%, transparent 50%);
  background-size:8px 4px; opacity:.34;
}
.grid{ display:grid; gap:clamp(1rem,2.2vw,2rem) }
.g-12{ grid-template-columns:repeat(12,1fr) }
@media (max-width:900px){
  .g-12{ grid-template-columns:repeat(6,1fr) }
  .g-12 > *{ grid-column:1 / -1 !important }   /* spans are written for 12 tracks */
}

/* ---------- 5. chrome ---------- */
.nav{
  position:sticky; top:0; z-index:60;
  display:flex; align-items:baseline; justify-content:space-between; gap:1rem;
  padding:.75rem var(--pad);
  background:var(--paper); border-bottom:1px solid var(--ink);
}
.mark{ display:flex; align-items:baseline; gap:.6rem; view-transition-name:mark }
.mark b{ font-family:var(--serif); font-weight:600; font-size:1.15rem; letter-spacing:.01em }
.mark span{ font-family:var(--mono); font-size:.625rem; text-transform:uppercase; letter-spacing:.16em; color:var(--ink-50) }
.nav__links{ display:flex; gap:clamp(.7rem,1.8vw,1.9rem); align-items:baseline }
.nav__links a{
  font-family:var(--mono); font-size:.6875rem; font-weight:500;
  text-transform:uppercase; letter-spacing:.13em; color:var(--ink-50);
  padding-bottom:.2rem; border-bottom:1px solid transparent;
  transition:color .3s, border-color .3s;
}
.nav__links a:hover{ color:var(--ink); border-color:var(--ink) }
.nav__links a[aria-current="page"]{ color:var(--rubric); border-color:var(--rubric) }
@media (max-width:820px){
  /* the wordmark's subtitle was pushing the last two links off the edge */
  .nav{ padding-inline:1rem }
  .mark span{ display:none }
}
@media (max-width:600px){
  /* only wrap to a second row once one line genuinely cannot hold five links */
  .nav{ flex-wrap:wrap; row-gap:.35rem }
  .nav__links{ gap:.8rem; width:100%; justify-content:space-between }
  .nav__links a{ font-size:.625rem; letter-spacing:.09em }
}

.strip{
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  padding:.4rem var(--pad); background:var(--paper-2); border-bottom:1px solid var(--hair);
}
.strip .lbl{ font-size:.625rem }

/* ---------- 6. plates ---------- */
.plate{ position:relative; background:var(--paper-2); overflow:hidden }
.plate canvas, .plate img{ width:100%; height:auto; display:block }
.plate canvas[data-dither]{ image-rendering:pixelated; image-rendering:crisp-edges }
.plate[data-dithered="true"] > img{ display:none }
.plate__no{
  position:absolute; z-index:3; top:0; left:0;
  background:var(--rubric); color:var(--paper);
  font-family:var(--bitmap); font-size:.625rem; letter-spacing:.03em;
  padding:.42rem .5rem .32rem;
}
/* wall label */
.label{ margin-top:.75rem; display:grid; gap:.28rem }
.label h3{ font-family:var(--serif); font-size:1.0625rem; font-weight:500; line-height:1.2 }
.label h3 em{ font-style:italic }
.label .meta{ font-family:var(--mono); font-size:.75rem; color:var(--ink-50); line-height:1.45 }
.label .tech{ font-family:var(--mono); font-size:.6875rem; color:var(--rubric); letter-spacing:.04em }

/* ---------- 7. the dither bench (the interactive piece) ---------- */
.bench{ display:grid; gap:clamp(1rem,2.4vw,2.2rem) }
@media (min-width:1000px){ .bench{ grid-template-columns:minmax(0,1fr) 20rem } }
.bench__stage{ position:relative; background:var(--paper-2); overflow:hidden; border:1px solid var(--hair) }
.bench__stage canvas{ width:100%; height:auto; image-rendering:pixelated; image-rendering:crisp-edges }
.bench__panel{ display:grid; gap:1.25rem; align-content:start }
.ctrl{ display:grid; gap:.5rem }
.ctrl__top{ display:flex; justify-content:space-between; align-items:baseline; gap:1rem }
.ctrl__val{ font-family:var(--mono); font-size:.75rem; color:var(--rubric) }
input[type="range"]{
  -webkit-appearance:none; appearance:none; width:100%; height:2px;
  background:var(--hair); outline:none; cursor:pointer;
}
input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none;
  width:13px; height:13px; background:var(--rubric); cursor:pointer;
  border:0; border-radius:0;                        /* square handle — a pixel */
}
input[type="range"]::-moz-range-thumb{
  width:13px; height:13px; background:var(--rubric); border:0; border-radius:0; cursor:pointer;
}
.modes{ display:flex; flex-wrap:wrap; gap:.35rem }
.mode{
  font-family:var(--mono); font-size:.625rem; font-weight:500;
  text-transform:uppercase; letter-spacing:.13em;
  padding:.45rem .65rem; border:1px solid var(--hair); color:var(--ink-50);
  transition:border-color .3s, color .3s, background .3s;
}
.mode:hover{ border-color:var(--ink); color:var(--ink) }
.mode[aria-pressed="true"]{ background:var(--rubric); border-color:var(--rubric); color:var(--paper) }

/* ---------- 8. the wipe (original ↔ reproduction) ---------- */
.wipe{ position:relative; overflow:hidden; background:var(--paper-2); cursor:ew-resize; touch-action:none }
.wipe img, .wipe canvas{ display:block; width:100%; height:auto }
.wipe__top{ position:absolute; inset:0; overflow:hidden }
.wipe__top canvas, .wipe__top img{ position:absolute; inset:0; width:100%; height:100% }
.wipe__bar{
  position:absolute; top:0; bottom:0; width:2px; background:var(--rubric);
  z-index:4; pointer-events:none; transform:translateX(-50%);
}
.wipe__bar::after{
  content:""; position:absolute; top:50%; left:50%;
  width:26px; height:26px; margin:-13px 0 0 -13px;
  background:var(--rubric);
  clip-path:polygon(0 50%,38% 22%,38% 78%,100% 50%,62% 22%,62% 78%);
}
.wipe__tag{
  position:absolute; z-index:5; bottom:.6rem; font-family:var(--mono); font-size:.625rem;
  text-transform:uppercase; letter-spacing:.14em; color:var(--paper);
  background:rgba(23,21,15,.72); padding:.25rem .5rem;
}
.wipe__tag--l{ left:.6rem } .wipe__tag--r{ right:.6rem }

/* ---------- 9. rooms ---------- */
.room{ padding-block:clamp(3rem,7vw,6.5rem) }
.room__head{ display:grid; gap:1rem; margin-bottom:clamp(1.8rem,3.5vw,3rem) }
.room__no{
  font-family:var(--serif); font-size:clamp(3.4rem,10vw,8rem); line-height:.8;
  color:var(--rubric); font-weight:500; letter-spacing:-.03em;
}
.room__ttl{ font-family:var(--serif); font-size:clamp(1.8rem,4vw,3.2rem); line-height:1.02; font-weight:500 }
.room__txt{ max-width:56ch; color:var(--ink-72); font-size:1.0625rem; line-height:1.58 }
.plates{ display:grid; gap:clamp(1.2rem,2.6vw,2.6rem); grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)) }

/* ---------- 10. catalogue table ---------- */
.cat{ border-top:1px solid var(--ink) }
.cat__row{
  display:grid; align-items:baseline; gap:1rem;
  grid-template-columns:4rem 5rem minmax(0,1fr) 11rem 8rem;
  padding-block:.8rem; border-bottom:1px solid var(--hair-2);
  transition:background .3s var(--ease), padding-inline .35s var(--ease);
}
.cat__row:hover{ background:var(--paper-2); padding-inline:.6rem }
.cat__row[hidden]{ display:none }
.cat__no{ font-family:var(--bitmap); font-size:.625rem; color:var(--rubric) }
.cat__thumb{ width:44px; height:56px; object-fit:cover; background:var(--paper-3); image-rendering:pixelated }
.cat__ttl{ font-size:1.0625rem; font-weight:500 }
.cat__ttl em{ font-style:italic }
.cat__meta{ font-family:var(--mono); font-size:.7rem; color:var(--ink-50) }
@media (max-width:900px){
  .cat__row{ grid-template-columns:3rem 3.2rem minmax(0,1fr); row-gap:.2rem }
  .cat__meta{ grid-column:3 }
}

/* ---------- 11. bits ---------- */
.chip{
  display:inline-flex; align-items:center; gap:.4rem;
  font-family:var(--mono); font-size:.625rem; font-weight:600;
  text-transform:uppercase; letter-spacing:.15em;
  padding:.38rem .65rem; background:var(--rubric); color:var(--paper);
}
.chip--ghost{ background:none; color:var(--ink-50); border:1px solid var(--hair) }
.chip--ghost:hover{ color:var(--ink); border-color:var(--ink) }
.chip--ghost[aria-pressed="true"]{ background:var(--rubric); border-color:var(--rubric); color:var(--paper) }
.btn{
  display:inline-flex; align-items:center; gap:.6rem;
  font-family:var(--mono); font-size:.6875rem; font-weight:500;
  text-transform:uppercase; letter-spacing:.15em;
  padding:.8rem 1.25rem; border:1px solid var(--ink); color:var(--ink);
  transition:background .32s var(--ease), color .32s var(--ease);
}
.btn:hover{ background:var(--ink); color:var(--paper) }
.btn--r{ border-color:var(--rubric); color:var(--rubric) }
.btn--r:hover{ background:var(--rubric); color:var(--paper) }
.pull{
  margin:2.2rem 0; padding-left:1.4rem; border-left:3px solid var(--rubric);
  font-family:var(--serif); font-style:italic;
  font-size:clamp(1.35rem,2.5vw,2rem); line-height:1.24; max-width:30ch; color:var(--ink);
}
.pull cite{
  display:block; margin-top:.85rem; font-family:var(--mono); font-style:normal;
  font-size:.6875rem; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-50);
}
.spec{ display:grid; gap:1.1rem; align-content:start }
.spec dt{ margin-bottom:.2rem }
.spec dd{ font-family:var(--mono); font-size:.85rem }
.facts{ border-top:1px solid var(--hair) }
.facts div{ display:grid; grid-template-columns:10rem minmax(0,1fr); gap:1rem;
  padding-block:.7rem; border-bottom:1px solid var(--hair-2) }
.facts dd{ font-family:var(--mono); font-size:.85rem; color:var(--ink-72) }
@media (max-width:640px){ .facts div{ grid-template-columns:1fr; gap:.15rem } }
.foot{ border-top:1px solid var(--ink); padding-block:clamp(2.2rem,4.5vw,4rem) 3.5rem }
.foot__grid{ display:flex; flex-wrap:wrap; gap:1.5rem 3rem; justify-content:space-between; align-items:flex-end }

/* ---------- 12. reveals (gated on html.js) ---------- */
html.js [data-rv]{ opacity:0; transform:translateY(16px); transition:opacity .8s var(--ease), transform .8s var(--ease) }
html.js [data-rv][data-in="true"]{ opacity:1; transform:none }
[data-rv-d="1"]{ transition-delay:.07s } [data-rv-d="2"]{ transition-delay:.14s }
[data-rv-d="3"]{ transition-delay:.21s } [data-rv-d="4"]{ transition-delay:.28s }
@media (prefers-reduced-motion:reduce){
  html.js [data-rv], html.js [data-rv][data-in="true"]{ opacity:1; transform:none; transition:none }
}

/* ---------- 13. view transitions ---------- */
@view-transition{ navigation:auto }
::view-transition-old(root){ animation:vt-o .28s var(--ease-io) both }
::view-transition-new(root){ animation:vt-i .4s var(--ease) both }
@keyframes vt-o{ to{ opacity:0 } }
@keyframes vt-i{ from{ opacity:0 } }
@media (prefers-reduced-motion:reduce){
  ::view-transition-old(root),::view-transition-new(root){ animation:none }
}

/* ---------- 14. plate items ---------- */
.plate-item{ margin:0 }
.plate-item .plate{ border:1px solid var(--hair) }
.wipe{ border:1px solid var(--hair) }

/* ============================================================
   15. THE RESOLVE — the pinned hero
   ============================================================ */
.resolve{ position:relative; background:var(--ink); color:var(--paper) }
.resolve__track{ height:var(--resolve-h, 460vh) }
.resolve__pin{ position:sticky; top:0; height:100vh; overflow:hidden; display:grid; place-items:center }

/* the golden-section construction, behind everything */
.construct{
  position:absolute; z-index:1; left:50%; top:50%;
  width:min(150vw, 1900px); height:auto; transform:translate(-50%,-50%);
  opacity:.9; pointer-events:none;
}
.construct rect, .construct circle, .construct path{ fill:none; vector-effect:non-scaling-stroke }
.construct .c-outer{ stroke:rgba(244,241,232,.52); stroke-width:1 }
.construct .c-sq{ stroke:rgba(244,241,232,.30); stroke-width:1 }
.construct .c-spiral{ stroke:var(--rubric); stroke-width:1.7 }
.construct .c-circ, .construct .c-sqv{ stroke:rgba(244,241,232,.40); stroke-width:1 }
.construct .c-diag{ stroke:rgba(244,241,232,.20); stroke-width:1 }

/* the framed panel */
.resolve__frame{
  position:relative; z-index:2;
  width:min(46vw, 40vh * 0.79, 430px); aspect-ratio:1400/1780;
  background:var(--ink); outline:1px solid rgba(244,241,232,.5); outline-offset:12px;
}
.resolve__frame canvas{
  width:100%; height:100%; display:block;
  image-rendering:pixelated; image-rendering:crisp-edges;
}
.resolve__src{ display:none }
@media (max-width:820px){ .resolve__frame{ width:min(66vw, 46vh * 0.79, 340px) } }

/* title, set over the plate */
.resolve__title{
  position:absolute; z-index:3; left:var(--pad); right:var(--pad); top:clamp(4rem,11vh,9rem);
  text-align:center; pointer-events:none;
  font-family:var(--serif); font-weight:500; color:var(--paper);
  font-size:clamp(3rem,12vw,11rem); line-height:.86; letter-spacing:-.03em;
  mix-blend-mode:difference;
}
.resolve__sub{
  position:absolute; z-index:3; left:var(--pad); right:var(--pad);
  top:clamp(9.5rem,25vh,20rem); text-align:center; pointer-events:none;
}

/* the instrument panel */
.resolve__hud{
  position:absolute; z-index:4; inset:auto var(--pad) clamp(1rem,3vh,2.2rem) var(--pad);
  display:flex; align-items:flex-end; justify-content:space-between; gap:.9rem 1rem; flex-wrap:wrap;
}
/* on a narrow stage the panel would wrap into the plate — drop the two
   readouts that are constant anyway */
@media (max-width:1000px){
  .resolve__hud .hud__cell:nth-child(3),
  .resolve__hud .hud__cell:nth-child(4){ display:none }
}
.hud{ display:flex; gap:clamp(.9rem,2.4vw,2.4rem); align-items:flex-end; flex-wrap:wrap }
.hud__cell{ display:grid; gap:.3rem }
.hud__k{
  font-family:var(--mono); font-size:.5625rem; font-weight:500;
  text-transform:uppercase; letter-spacing:.18em; color:rgba(244,241,232,.42);
}
.hud__v{ font-family:var(--bitmap); font-size:.95rem; color:var(--paper); line-height:1 }
.hud__v--r{ color:var(--rubric) }
.hud__bar{ width:clamp(70px,14vw,190px); height:2px; background:rgba(244,241,232,.2); position:relative; overflow:hidden }
.hud__bar i{ position:absolute; inset:0 100% 0 0; background:var(--rubric); transition:right .1s linear }
.hud__modes{ display:flex; gap:.3rem; flex-wrap:wrap }
.hud__mode{
  font-family:var(--mono); font-size:.5625rem; font-weight:500;
  text-transform:uppercase; letter-spacing:.13em;
  padding:.35rem .55rem; border:1px solid rgba(244,241,232,.25); color:rgba(244,241,232,.6);
  transition:border-color .3s, color .3s, background .3s;
}
.hud__mode:hover{ border-color:var(--paper); color:var(--paper) }
.hud__mode[aria-pressed="true"]{ background:var(--rubric); border-color:var(--rubric); color:var(--paper) }
.resolve__cue{
  position:absolute; z-index:4; left:50%; transform:translateX(-50%);
  bottom:clamp(8rem,18vh,12rem); display:grid; gap:.45rem; justify-items:center;
  transition:opacity .5s var(--ease);
}
.resolve[data-progress]:not([data-progress="0.000"]) .resolve__cue{ opacity:0 }
.resolve__cue i{
  width:1px; height:30px; background:linear-gradient(rgba(244,241,232,.55), transparent);
  animation:cue 2.2s cubic-bezier(.65,.05,.36,1) infinite;
}
@keyframes cue{ 0%{transform:scaleY(0);transform-origin:top} 55%{transform:scaleY(1);transform-origin:top}
                56%{transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }
.resolve .lbl{ color:rgba(244,241,232,.45) }
@media (prefers-reduced-motion:reduce){
  .resolve__track{ height:100vh !important } .resolve__cue i{ animation:none }
}

/* ============================================================
   16. THE SWARM
   ============================================================ */
.swarm{ position:relative; height:var(--swarm-h, 300vh) }
.swarm__pin{ position:sticky; top:0; height:100vh; overflow:hidden }
.swarm__stage{ position:absolute; inset:0 }
.swarm__item{
  position:absolute; margin:0; width:clamp(74px, 9.5vw, 148px);
  will-change:transform; transition:filter .4s var(--ease);
}
.swarm__item .plate{ border:1px solid var(--hair); background:var(--paper-2) }
.swarm__item .swarm__lab{
  position:absolute; left:50%; top:calc(100% + .5rem); transform:translateX(-50%);
  width:max-content; max-width:20ch; text-align:center;
  opacity:0; transition:opacity .3s var(--ease); pointer-events:none;
}
.swarm__item[data-on="true"]{ z-index:99 !important }
.swarm__item[data-on="true"] .swarm__lab{ opacity:1 }
.swarm__item[data-on="true"] .plate{ outline:2px solid var(--rubric); outline-offset:3px }
.swarm[data-focus="true"] .swarm__item:not([data-on="true"]){ filter:opacity(.42) }
.swarm__head{
  position:absolute; z-index:100; left:var(--pad); right:var(--pad); top:clamp(3.4rem,9vh,6rem);
  text-align:center; pointer-events:none;
}

/* ============================================================
   17. THE COLD OPEN
   Everything in the hero arrives in sequence rather than all at once.
   Gated on html.js so a visitor without JavaScript — where nothing
   would ever set these flags — sees the whole hero immediately.
   ============================================================ */
html.js .resolve__frame{
  opacity:0; transform:scale(.955);
  transition:opacity 1s var(--ease), transform 1.5s var(--ease);
}
html.js .resolve[data-show-panel="on"] .resolve__frame{ opacity:1; transform:none }

html.js .resolve__title{
  opacity:0; transform:translateY(22px);
  transition:opacity 1.1s var(--ease), transform 1.3s var(--ease);
}
html.js .resolve[data-show-title="on"] .resolve__title{ opacity:1; transform:none }

html.js .resolve__sub{ opacity:0; transition:opacity .9s var(--ease) .2s }
html.js .resolve[data-show-title="on"] .resolve__sub{ opacity:1 }

html.js .resolve__hud{
  opacity:0; transform:translateY(14px);
  transition:opacity .85s var(--ease), transform 1s var(--ease);
}
html.js .resolve[data-show-hud="on"] .resolve__hud{ opacity:1; transform:none }

html.js .resolve__cue{ opacity:0 }
html.js .resolve[data-show-cue="on"] .resolve__cue{ opacity:1 }
/* …and it goes again the moment they actually scroll */
html.js .resolve[data-show-cue="on"][data-progress]:not([data-progress="0.000"]) .resolve__cue{ opacity:0 }

/* the construction is the first thing on screen, so give it the stage alone */
html.js .resolve[data-intro="run"] .construct{ opacity:1 }

/* ---------- chrome held back until the visitor scrolls ---------- */
/* On the homepage the nav is fixed rather than sticky: a sticky element still
   occupies space in flow, so hiding it would have left a band of empty paper
   above the title sequence. Fixed takes it out of flow entirely, and there is
   no layout shift when it arrives. */
html[data-home] .nav{ position:fixed; inset:0 0 auto 0 }
.nav{ transition:transform .75s var(--ease), opacity .5s var(--ease) }
html[data-chrome="off"] .nav{ transform:translateY(-101%); opacity:0; pointer-events:none }
@media (prefers-reduced-motion:reduce){
  html.js .resolve__frame, html.js .resolve__title,
  html.js .resolve__sub, html.js .resolve__hud, html.js .resolve__cue{
    opacity:1; transform:none; transition:none;
  }
  html[data-chrome="off"] .nav{ transform:none; opacity:1; pointer-events:auto }
}
