@font-face {
  font-family: Fraunces;
  src: url("fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Fraunces;
  src: url("fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: Outfit;
  src: url("fonts/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Silkscreen;
  src: url("fonts/silkscreen-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0e1012;
  --card: #171b1f;
  --card-hot: #22282d;
  --text: #f2ece3;
  --body: #d9d3c8;
  --muted: #b7b1a6;
  --line: rgba(242, 236, 227, 0.14);
  --ember: #d8924a;
  --ember-ink: #1a120c;
  --moss: #8eae78;
  --serif: Fraunces, "Iowan Old Style", Palatino, serif;
  --sans: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  --pixel: Silkscreen, "Courier New", monospace;
  --wrap: 1080px;
  --header: 4.5rem;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 0.75rem);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    url("assets/noise.png"),
    radial-gradient(880px 460px at 92% -40px, rgba(216, 146, 74, 0.16), transparent 58%);
  background-repeat: repeat, no-repeat;
  color: var(--body);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 430;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--ember);
  z-index: 30;
}

img {
  max-width: 100%;
  height: auto;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

::selection {
  background: var(--ember);
  color: var(--ember-ink);
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0.4rem;
  transform: translateY(-150%);
  z-index: 40;
  background: var(--ember);
  color: var(--ember-ink);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 16, 18, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap,
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  min-height: var(--header);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand svg {
  color: var(--ember);
  flex: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.98rem;
}

.nav a:hover {
  color: var(--text);
}

.hero {
  padding: clamp(2.75rem, 6vw, 5.25rem) 0 clamp(1.5rem, 4vw, 3rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(1.75rem, 4vw, 4.5rem);
  align-items: center;
}

.eyebrow,
.kicker,
.pixel {
  font-family: var(--pixel);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0;
}

h1,
h2,
.codex .name {
  font-family: var(--serif);
  font-weight: 560;
  font-variation-settings: "SOFT" 30, "opsz" 72;
  letter-spacing: -0.03em;
  color: var(--text);
}

h1 {
  margin: 0.7rem 0 1rem;
  font-size: clamp(3.4rem, 9vw, 6.6rem);
  line-height: 0.88;
}

.lede {
  margin: 0;
  max-width: 38rem;
  font-size: 1.15rem;
  color: var(--body);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.stores li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
}

.stores span {
  color: var(--muted);
}

.pip {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 4px rgba(216, 146, 74, 0.15);
}

.pip-empty {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--muted);
}

.phone {
  margin: 0;
  padding: 0.55rem;
  background: #070808;
  border: 1px solid var(--line);
  border-radius: 1.7rem;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.phone img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 20;
  object-fit: cover;
  border-radius: 1.2rem;
  background: #000;
}

.phone figcaption,
.shot figcaption,
.poster figcaption {
  margin-top: 0.75rem;
  font-family: var(--pixel);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.hero-phone {
  max-width: 280px;
}

.codex {
  list-style: none;
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.codex a {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  gap: 0.35rem 1rem;
  align-items: center;
  padding: 0.95rem 0.85rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
}

.codex a:hover,
.codex a:focus-visible {
  background: var(--card);
}

.codex .is-current a {
  background: var(--card-hot);
}

.codex .num,
.codex .state {
  font-family: var(--pixel);
  font-size: 0.72rem;
  color: var(--muted);
}

.codex .is-current .name,
.codex a:hover .name {
  color: var(--ember);
}

.codex .name {
  display: block;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  line-height: 1.05;
}

.codex .kind {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-style: normal;
  font-size: 0.95rem;
}

.section-note {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
}

.project,
.studio {
  padding: clamp(2.6rem, 6vw, 4.75rem) 0;
  border-top: 1px solid var(--line);
}

.project-copy h2 {
  margin: 0.45rem 0 0.35rem;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 0.95;
}

.working-note {
  margin: 0 0 1rem;
  color: var(--muted);
}

.project-copy > p,
.studio-copy > p {
  max-width: 40rem;
}

.pull {
  margin: 1.6rem 0 1.4rem;
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 2px solid var(--ember);
  max-width: 36rem;
}

.pull p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 480;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  line-height: 1.35;
  color: var(--text);
}

.pull footer {
  margin-top: 0.55rem;
  font-family: var(--pixel);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts {
  margin: 1.5rem 0 0;
  max-width: 40rem;
}

.facts div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.35rem 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.facts dt {
  margin: 0;
  padding-top: 0.2rem;
  font-family: var(--pixel);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ember);
}

.facts dd {
  margin: 0;
}

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(320px, 34%);
  grid-template-areas:
    "intro shots"
    "facts shots";
  column-gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.showcase > * {
  min-width: 0;
}

.showcase .project-copy,
.tower-intro {
  grid-area: intro;
}

.showcase .facts {
  grid-area: facts;
}

.showcase .gallery {
  grid-area: shots;
  position: sticky;
  top: calc(var(--header) + 1.25rem);
  margin-top: 0.35rem;
}

.showcase .shot {
  flex-basis: 86%;
}

.gallery {
  margin-top: 2rem;
}

.gallery-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 0.9rem;
}

.gallery-nav {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.js .gallery-nav {
  display: flex;
}

.counter {
  font-family: var(--pixel);
  font-size: 0.72rem;
  color: var(--muted);
  min-width: 3.2rem;
  text-align: right;
}

.pixel-btn {
  appearance: none;
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(216, 146, 74, 0.55);
  background: transparent;
  color: var(--ember);
  font-family: var(--pixel);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pixel-btn:hover {
  background: rgba(216, 146, 74, 0.12);
}

.pixel-btn:disabled {
  opacity: 0.35;
  cursor: default;
  background: transparent;
}

.pixel-btn.fill {
  background: var(--ember);
  border-color: var(--ember);
  color: var(--ember-ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  padding-inline: 1.25rem;
}

.pixel-btn.fill:hover {
  background: #e3a45f;
}

.gallery-scroller {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.15rem;
  padding-bottom: 0.4rem;
  scrollbar-color: #3a342c transparent;
}

.shot {
  flex: 0 0 min(270px, 74vw);
  margin: 0;
  scroll-snap-align: start;
}

.shot button {
  display: block;
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 1.55rem;
  background: #070808;
  cursor: zoom-in;
  color: inherit;
}

.shot button:hover {
  border-color: rgba(216, 146, 74, 0.55);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.15rem;
  background: #000;
}

.project-split,
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.project.reverse .project-copy {
  order: 2;
}

.poster {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  overflow: hidden;
  background: #14181b;
}

.poster img {
  display: block;
  width: 100%;
  height: auto;
}

.poster figcaption {
  padding: 0 1rem 1rem;
}

.studio {
  scroll-margin-top: calc(var(--header) + 0.75rem);
}

.studio-copy h2 {
  margin: 0.4rem 0 0.8rem;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 0.95;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.sheet {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 0.35rem 1.15rem;
}

.sheet div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.sheet div:last-child {
  border-bottom: 0;
}

.sheet dt {
  margin: 0;
  padding-top: 0.15rem;
  font-family: var(--pixel);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.sheet dd {
  margin: 0;
  color: var(--text);
}

.sheet a {
  color: var(--ember);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-row {
  min-height: 4.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-row p {
  margin: 0;
}

.footer-row a {
  color: var(--muted);
}

.footer-row a:hover {
  color: var(--text);
}

.page {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 5rem;
}

.page-narrow {
  max-width: 40rem;
}

.page h1 {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  margin-bottom: 1rem;
}

.page p,
.page li {
  font-size: 1.08rem;
}

.page a {
  color: var(--ember);
}

#lightbox {
  width: fit-content;
  max-width: calc(100vw - 1.5rem);
  max-height: calc(100vh - 1.5rem);
  margin: auto;
  padding: 0.25rem;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: auto;
}

#lightbox::backdrop {
  background: rgba(6, 7, 8, 0.86);
}

.lightbox-frame {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
}

.lightbox-close {
  justify-self: end;
}

#lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(440px, 92vw);
  max-height: 78vh;
  border-radius: 1.1rem;
  background: #000;
}

#lightbox p {
  margin: 0;
  max-width: 36rem;
  text-align: center;
  font-family: var(--pixel);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero-grid,
  .project-split,
  .studio-grid,
  .showcase {
    grid-template-columns: 1fr;
  }

  .showcase {
    grid-template-areas:
      "intro"
      "shots"
      "facts";
  }

  .showcase .gallery {
    position: static;
    margin-top: 1.75rem;
  }

  .showcase .shot {
    flex-basis: min(270px, 74vw);
  }

  .hero-phone {
    margin-inline: auto;
  }

  .project.reverse .project-copy,
  .project.reverse .poster {
    order: 0;
  }

  .studio-grid .sheet {
    order: 2;
  }
}

@media (max-width: 640px) {
  .codex a {
    grid-template-columns: 2.2rem minmax(0, 1fr);
  }

  .codex .state {
    display: none;
  }

  .facts div,
  .sheet div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .site-header .wrap {
    flex-wrap: wrap;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .footer-row {
    flex-wrap: wrap;
    padding: 1rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  body {
    background: #fff;
    color: #161616;
  }

  body::before,
  .skip,
  .gallery-nav,
  .site-header {
    display: none;
  }

  a {
    color: inherit;
  }
}
