@font-face {
  font-family: "Nimbus Sans";
  src: url("assets/Fonts/NimbusSans-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nimbus Sans";
  src: url("assets/Fonts/NimbusSans-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
:root {
  --ink: #211f1c;
  --apricot: #ffa17c;
  --gutter: clamp(20px, 4.5vw, 72px);
  --control-inset: max(12px, 2.2svh, env(safe-area-inset-bottom));
  --scene-run: min(96svh, 900px);
  --work-overlap: min(32svh, 300px);
  font-family: "Nimbus Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--apricot);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
  scrollbar-color: #7d4e3d var(--apricot);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--apricot); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 2px dashed var(--ink); outline-offset: 4px; }
::selection { background: var(--ink); color: var(--apricot); }
.skip {
  position: fixed; left: 8px; top: 8px; z-index: 30; transform: translateY(-200%);
  padding: 12px 16px; background: var(--ink); color: var(--apricot);
}
.skip:focus { transform: translateY(0); }
.masthead {
  position: absolute; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(13px, 2.5vh, 28px) var(--gutter);
  pointer-events: none;
}
.masthead a, .masthead nav { pointer-events: auto; }
.home-mark { display: grid; place-items: center; width: 44px; height: 44px; }
.home-mark img { width: 100%; height: 100%; }
.masthead nav { display: flex; gap: clamp(21px, 3vw, 44px); }
.masthead nav a, .scroll-cue, .colophon a {
  display: inline-flex; align-items: center; min-height: 44px; gap: .5em;
  text-decoration: none; line-height: 1; font-size: clamp(.875rem, 1.1vw, 1rem);
}
.masthead nav a:hover, .colophon a:hover, .scroll-cue:hover span {
  text-decoration: underline; text-underline-offset: .3em;
}
.hero-story { position: relative; }
.hero-sticky {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100vh; height: 100svh;
  min-height: 400px;
  overflow: clip;
  isolation: isolate;
  --stage-height: min(69svh, 790px);
}
.hero-ensemble { width: 100%; display: flex; flex-direction: column; align-items: center; }
.hero-lettering {
  position: relative; z-index: 2; width: min(76vw, 142svh, 1300px);
  transform: translateY(var(--letter-rise, 0px));
  opacity: var(--letter-opacity, 1);
}
.hero-stage-wrap { width: 100%; margin-top: calc(-.235 * var(--stage-height)); }
.hero-sticky comet-stage .comet-replay {
  position: fixed;
  right: var(--gutter);
  bottom: var(--control-inset);
}
.scroll-cue {
  position: absolute; z-index: 3; left: 50%; bottom: var(--control-inset);
  transform: translateX(-50%); padding-inline: 9px; opacity: var(--cue-opacity, 1);
}
.scroll-cue svg, .colophon svg { height: 16px; width: 13px; fill: none; stroke: currentColor; stroke-width: 1.65; }
.scroll-cue:hover svg { transform: translateY(2px); }
.scroll-cue[hidden] { display: none; }
.js .work-page { position: relative; z-index: 2; }
.colophon {
  width: min(100%, 1472px); margin: 0 auto;
  padding: 0 clamp(20px, 5.4vw, 88px) max(14px, env(safe-area-inset-bottom));
}
.colophon-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-top: 1px solid rgb(33 31 28 / .68); padding-top: 8px; font-size: .875rem;
}
html:not(.js) .work-enquiry { display: none; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .js .hero-sticky { position: sticky; top: 0; }
  .js .hero-story::after { content: ""; display: block; height: var(--scene-run); }
  .js .work-page { margin-top: calc(-1 * var(--work-overlap)); }
}
@media (max-width: 650px) and (orientation: portrait) {
  .hero-sticky { --stage-height: min(51svh, 119vw, 500px); }
  .hero-lettering { width: 89vw; }
  .hero-stage-wrap { margin-top: calc(-.24 * var(--stage-height)); }
  .masthead { padding-top: max(14px, env(safe-area-inset-top)); }
}
@media (max-height: 465px) and (orientation: landscape) {
  .hero-sticky { min-height: 280px; --stage-height: 62svh; }
  .hero-lettering { width: min(61vw, 112svh); }
  .masthead { padding-block: 4px; }
  :root { --control-inset: 2px; }
}

.hero-stage-wrap:has(comet-stage:is([data-play], [data-phase="intro"], [data-phase="scroll"])) { position: relative; z-index: 4; pointer-events: none; }
.carry-hint {
  position: absolute; z-index: 5; left: 50%; bottom: var(--control-inset);
  transform: translateX(-50%); display: grid; align-items: center;
  min-height: 44px; white-space: nowrap; font-size: .875rem;
  pointer-events: none;
}
.hero-sticky:has(comet-stage[data-phase="held"]) .scroll-cue { visibility: hidden; }
