:root {
  --bg: #070707;
  --ink: #f3f0e8;
  --muted: #9c978f;
  --line: rgba(243, 240, 232, 0.16);
  --bone: #e6e0d4;
  --bone-ink: #141414;
  --accent: #ff3b1f;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header: 4.75rem;
  --wrap: min(1320px, calc(100% - 8vw));
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.nav-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Instrument Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }

a { color: inherit; }

button, input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

img, svg { display: block; max-width: 100%; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--ink);
  color: var(--bone-ink);
  padding: 0.5rem 0.8rem;
  text-decoration: none;
}

.skip:focus { top: 1rem; }

.wrap { width: var(--wrap); margin-inline: auto; }

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Loader */

.loader {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: end start;
  padding: 0 0 0 4vw;
  background: var(--bg);
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}

.loader.is-gone { transform: translateY(-101%); }

.loader-word {
  width: max-content;
  max-width: calc(100% - 8vw);
  margin: 0 4vw 6vh;
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  font-size: 8vw;
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  white-space: nowrap;
  clip-path: inset(100% 0 0 0);
}

html.motion.is-ready .loader-word {
  animation: reveal 0.85s var(--ease) forwards;
}

@keyframes reveal {
  to { clip-path: inset(0); }
}

html.motion .reveal {
  opacity: 0;
  transform: translate3d(0, 1.15rem, 0);
}

html.motion .reveal.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}

/* Chrome */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header);
  padding: 0 4vw;
  mix-blend-mode: difference;
  color: #fff;
}

.brand {
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.top-nav { display: flex; gap: 1.75rem; }

.top-nav a {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.45;
}

.top-nav a:hover,
.top-nav a[aria-current="true"] { opacity: 1; }

.menu-btn {
  display: none;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.menu-close { display: none; }

.menu-btn[aria-expanded="true"] .menu-open { display: none; }
.menu-btn[aria-expanded="true"] .menu-close { display: inline; }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.15rem;
  padding: 12vh 6vw 8vh;
  background: var(--bg);
  transform: translateY(-101%);
  visibility: hidden;
  transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1), visibility 0.7s;
}

.nav-overlay.is-open {
  transform: none;
  visibility: visible;
}

.nav-overlay a {
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  font-size: 15vw;
  line-height: 0.84;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-decoration: none;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
}

.cursor.is-on { opacity: 1; }
.cursor.is-hidden { opacity: 0; }

.cursor span {
  display: block;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: #fff;
  transition:
    width 0.45s var(--ease),
    height 0.45s var(--ease),
    margin 0.45s var(--ease),
    background 0.45s var(--ease),
    border-color 0.45s var(--ease);
}

.cursor.is-hot span {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  background: transparent;
  border-color: #fff;
}

html.has-cursor,
html.has-cursor a,
html.has-cursor button { cursor: none; }

html.has-cursor input,
html.has-cursor textarea,
html.has-cursor select { cursor: text; }

/* Film */

.stage-pin { position: relative; }

.stage-track { display: flex; flex-direction: column; }

.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: calc(var(--header) + 0.5rem) 4vw 0;
  overflow: hidden;
  background: var(--bg);
}

.panel-bone { background: var(--bone); color: var(--bone-ink); }
.panel-bone .eyebrow,
.panel-bone .panel-copy { color: #5a554c; }

.slate {
  display: none;
  position: absolute;
  top: calc(var(--header) + 0.15rem);
  right: 4vw;
  z-index: 3;
  margin: 0;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  mix-blend-mode: difference;
  pointer-events: none;
}

html.is-film .stage { height: calc(var(--n) * var(--vh, 100svh)); }

html.is-film .stage,
html.is-film .stage-pin { touch-action: pan-y; }

html.is-film .stage-pin {
  position: sticky;
  top: 0;
  height: var(--vh, 100svh);
  overflow: hidden;
}

html.is-film .stage-track {
  flex-direction: row;
  width: calc(var(--n) * 100%);
  height: 100%;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
}

html.is-film .panel {
  width: calc(100% / var(--n));
  min-width: 0;
  height: 100%;
  min-height: 0;
  flex: none;
}

html.is-film .slate { display: block; }

.panel h1 {
  max-width: 16em;
  margin-top: 9vh;
  font-size: clamp(1.65rem, 2.15vw, 2.2rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.panel h1 em {
  font-family: "Newsreader", "Instrument Sans", serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.hero-sub {
  max-width: 34rem;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.45;
}

.panel-hero .panel-word { margin-top: auto; }

.hero-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  margin-top: 2.25rem;
}

.hero-jump a {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.55;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  padding-bottom: 0.15rem;
  transition: opacity 0.4s var(--ease), background-size 0.45s var(--ease);
}

.hero-jump a:hover {
  opacity: 1;
  background-size: 100% 1px;
}

.panel-copy {
  max-width: 26rem;
  margin-top: 6vh;
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  line-height: 1.35;
}

.panel-word {
  position: relative;
  z-index: 1;
  width: max-content;
  max-width: 100%;
  margin: auto 0 1.15rem;
  padding-top: 0.12em;
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  font-size: 8vw;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nodes {
  position: absolute;
  right: 7vw;
  top: 20vh;
  display: grid;
  grid-template-columns: repeat(3, 4.25rem);
  gap: 0.65rem;
}

.nodes span {
  aspect-ratio: 1;
  border: 1px solid currentColor;
  opacity: 0.4;
}

.nodes .is-hot {
  background: var(--accent);
  border-color: var(--accent);
  opacity: 1;
}

.panel-desk::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(243, 240, 232, 0.22);
  pointer-events: none;
}

/* Later chapters */

.manifest { padding: 18vh 0 14vh; }

.manifest h2,
.services-head h2,
.quiet h2 {
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.manifest h2 {
  max-width: 11em;
  margin-top: 0.8rem;
  font-size: clamp(2.8rem, 6.4vw, 6.6rem);
}

.manifest-lead {
  max-width: 36rem;
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem 5rem;
  margin-top: 12vh;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.split h3 {
  margin: 0.85rem 0 1rem;
  font-size: clamp(1.7rem, 2.4vw, 2.45rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.split p:last-child { max-width: 36rem; color: var(--muted); }

.services { padding: 8vh 0 12vh; }

.services-head {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem 3rem;
  align-items: end;
  margin-bottom: 3.5rem;
}

.services-head h2 {
  max-width: 10em;
  margin-top: 0.7rem;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
}

.services-head > p { color: var(--muted); margin-bottom: 0.4rem; }

.rows { border-bottom: 1px solid var(--line); }

.row {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.5rem 1rem;
  padding: 1.35rem 0 1.2rem;
  border-top: 1px solid var(--line);
}

.row::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -1.25rem;
  background: var(--bone);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.55s var(--ease);
}

.row-no {
  padding-top: 0.45rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.row h3 {
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 4.6vw, 4.6rem);
  line-height: 0.86;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.row p {
  max-width: 38rem;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  color: #3f3c37;
  opacity: 0;
  transition: max-height 0.55s var(--ease), opacity 0.4s var(--ease), margin 0.45s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .row:hover { color: var(--bone-ink); }
  .row:hover::before { transform: scaleX(1); }
  .row:hover .row-no { color: #6a655c; }
  .row:hover p {
    max-height: 8rem;
    margin-top: 0.85rem;
    opacity: 1;
  }
}

.quiet {
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding: calc(var(--header) + 2rem) 0 12vh;
}

.quiet h2 {
  max-width: 10em;
  margin-top: 1rem;
  font-size: clamp(3rem, 7vw, 7.2rem);
}

.quiet-copy {
  max-width: 34rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.contact { padding: 18vh 0 16vh; }

.contact h2 {
  max-width: 12em;
  margin-top: 0.8rem;
  font-weight: 500;
  font-size: clamp(2.8rem, 6.4vw, 6.6rem);
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.contact h2 em {
  font-family: "Newsreader", "Instrument Sans", serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.contact-lead {
  max-width: 28rem;
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.phones { margin-top: 2.6rem; }

.phone-label {
  margin: 2.2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.phones .phone-label:first-child { margin-top: 0; }

.phone {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: 0.4rem;
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-decoration: underline;
  text-decoration-thickness: 0.045em;
  text-underline-offset: 0.12em;
  white-space: nowrap;
}

.phone:hover { color: var(--accent); }

.site-footer { overflow: hidden; padding-top: 6vh; }

.foot-bar {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  align-items: baseline;
  padding-bottom: 5vh;
  color: var(--muted);
  font-size: 0.95rem;
}

.foot-phones { display: grid; gap: 0.35rem; }

.foot-bar a { color: var(--ink); }
.foot-phones a {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  text-decoration: none;
}
.foot-phones span { color: var(--muted); font-size: 0.82rem; }
.foot-no {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.foot-bar a:hover .foot-no { color: var(--accent); }
.foot-bar p { margin: 0; max-width: 22rem; }

.foot-word {
  width: max-content;
  max-width: calc(100% - 8vw);
  margin: 0 4vw 0.35rem;
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  font-size: 8vw;
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (hover: none), (max-width: 899px) {
  .row p {
    max-height: none;
    margin-top: 0.65rem;
    opacity: 1;
    color: var(--muted);
  }
}

@media (max-width: 899px) {
  .top-nav { display: none; }
  .menu-btn { display: inline; }

  .panel h1 { margin-top: 4vh; font-size: 1.7rem; }
  .panel-copy { margin-top: 1.6rem; font-size: 1.05rem; }
  .panel-word { margin-bottom: 0.85rem; }
  .hero-jump { margin-top: 1.4rem; gap: 0.7rem 1rem; }

  .nodes { display: none; }

  .split,
  .services-head { grid-template-columns: 1fr; }

  .nav-overlay a { font-size: 16vw; }
  .foot-bar { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loader { display: none; }
  .row::before,
  .row p,
  .nav-overlay,
  .submit,
  .cursor span,
  .reveal { transition: none; }
  .reveal { opacity: 1; transform: none; }
}
