:root {
  --bg: #000;
  --fg: #f7f7f7;
  --muted: #a8a8a8;
  --panel: #141414;
  --ink: #f3f3f3;
  --line: rgba(255, 255, 255, .16);
  --max: 1120px;
  --pad: clamp(1.2rem, 3vw, 3rem);
  --hero-scale: 1;
  --hero-opacity: 1;
  --hex-1-opacity: 0;
  --hex-2-opacity: 0;
  --hex-3-opacity: 0;
  --triangle-opacity: 0;
  --featured-image-scale: 4;
  --featured-image-opacity: 0;
  --work-intro-opacity: 1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

h1, h2 {
  font-family: "Bricolage Grotesque", Inter, ui-sans-serif, system-ui, sans-serif;
}

.hero-text,
.work-copy p:not(.eyebrow),
.contact-section h2 {
  font-family: "Newsreader", Georgia, serif;
}

@media (min-width: 781px) {
  p:not(.eyebrow) {
    font-size: clamp(1.2rem, 1.35vw, 1.5rem);
    line-height: 1.45;
  }
}

a {
  color: inherit;
  text-decoration: none;
  font-family: "Newsreader", Georgia, serif;
}
img { max-width: 100%; display: block; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem var(--pad);
  pointer-events: none;
}

.brand-small {
  width: clamp(120px, 16vw, 220px);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: auto;
}

.site-header.is-scrolled .brand-small {
  opacity: .92;
  transform: translateY(0);
}

.menu-button {
  pointer-events: auto;
  width: 48px;
  height: 42px;
  border: 0;
  background: transparent;
  position: relative;
  cursor: pointer;
}

.menu-icon,
.close-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  transition: opacity .24s ease;
}

.menu-icon {
  gap: 5px;
  opacity: 1;
}

.close-icon {
  opacity: 0;
}

.menu-icon span,
.close-icon span {
  display: block;
  width: 30px;
  height: 2px;
  background: var(--fg);
  transition: opacity .24s ease;
}

.close-icon span {
  grid-area: 1 / 1;
}

.close-icon span:nth-child(1) { transform: rotate(45deg); }
.close-icon span:nth-child(2) { transform: rotate(-45deg); }

.menu-button.is-open .menu-icon { opacity: 0; }
.menu-button.is-open .close-icon { opacity: 1; }

.menu-panel {
  position: absolute;
  top: 4.4rem;
  right: var(--pad);
  width: min(280px, calc(100vw - 2rem));
  padding: 1.2rem;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 0;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
  display: grid;
  gap: .25rem;
  opacity: 0;
  transform: translateY(-12px) scale(.96);
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  pointer-events: auto;
}

.menu-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.menu-panel a {
  padding: .9rem 1rem;
  font-size: 1.05rem;
  font-family: "Bricolage Grotesque", Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.6rem;
}

.menu-panel a:hover { background: rgba(255,255,255,.06); }

.hero {
  min-height: 158svh;
  position: relative;
  padding: var(--pad);
  z-index: 0;
}

.hero-logo,
.hero-text {
  position: sticky;
  left: 50%;
  text-align: center;
}

.hero-logo {
  top: 50vh;
  width: min(76vw, 760px);
  filter: drop-shadow(0 0 28px rgba(255,255,255,.08));
  transform: translate(-50%, -50%) scale(var(--hero-scale));
  transform-origin: center center;
  will-change: transform;
  opacity: var(--hero-opacity);
  z-index: 0;
}

.hero-text {
  top: calc(50vh + min(38vw, 380px));
  max-width: 32rem;
  color: var(--muted);
  letter-spacing: .04em;
  transform: translateX(-50%);
  z-index: 1;
}

.work-section,
.contact-section {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.work-section {
  margin-top: -34svh;
  padding: 9rem 0 5rem;
}

.work-intro {
  min-height: 105vh;
  position: relative;
  opacity: var(--work-intro-opacity);
}

.section-heading {
  position: sticky;
  top: 50vh;
  transform: translateY(-50%);
  margin-bottom: 0;
}

.section-heading-line {
  width: 100%;
  height: 1px;
  margin: 2.25rem 0 1.5rem;
  background: var(--line);
}

.section-heading-hexagons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(.65rem, 1.4vw, 1.1rem);
  min-height: clamp(52px, 7vw, 82px);
}

.heading-hexagon {
  width: clamp(42px, 6.4vw, 74px);
  opacity: 0;
  transform: scale(.97);
  transition: opacity .12s linear, transform .12s linear;
  will-change: opacity;
}

.heading-hexagon:nth-child(1) {
  opacity: var(--hex-1-opacity);
  transform: scale(calc(.97 + var(--hex-1-opacity) * .03));
}

.heading-hexagon:nth-child(2) {
  opacity: var(--hex-2-opacity);
  transform: scale(calc(.97 + var(--hex-2-opacity) * .03));
}

.heading-hexagon:nth-child(3) {
  opacity: var(--hex-3-opacity);
  transform: scale(calc(.97 + var(--hex-3-opacity) * .03));
}

.heading-triangle {
  width: clamp(42px, 6.4vw, 74px);
  margin-left: auto;
  opacity: var(--triangle-opacity);
  transform: scale(calc(.96 + var(--triangle-opacity) * .04));
  transition: opacity .08s linear, transform .08s linear;
  will-change: opacity, transform;
}

.eyebrow {
  margin: 0 0 .6rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 1.3rem;
}

h1, h2, p { margin-top: 0; }
h1 {
  font-size: clamp(2.2rem, 7vw, 6rem);
  line-height: .95;
  letter-spacing: -.06em;
  font-weight: 500;
}

h2 {
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 500;
  margin-bottom: 2.3rem;
}

.work-card {
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  align-items: center;
  gap: clamp(1.4rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
  padding: clamp(3rem, 8vw, 7rem) 0;
}

.work-card.reverse .image-placeholder { order: 2; }

.featured-work {
  grid-template-columns: 1fr;
  align-items: start;
  min-height: 185vh;
  margin-top: -52svh;
}

.featured-work .image-placeholder {
  width: 100vw;
  min-height: 100svh;
  margin-inline: calc(50% - 50vw);
  background: transparent;
  box-shadow: none;
  position: sticky;
  top: 50vh;
  display: grid;
  align-items: center;
  transform: translateY(-50%);
  overflow: hidden;
}

.featured-work .image-placeholder img {
  width: 100vw;
  height: auto;
  max-width: 100vw;
  max-height: 100vh;
  opacity: var(--featured-image-opacity);
  transform: scale(var(--featured-image-scale));
  transform-origin: center center;
  will-change: transform, opacity;
}

.featured-work .work-copy {
  max-width: none;
  position: relative;
  z-index: 2;
  margin-top: 1rem;
}

.featured-work.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.image-placeholder {
  min-height: clamp(320px, 56vw, 680px);
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
  border-radius: 2px;
  box-shadow: 0 40px 120px rgba(255,255,255,.06);
}

.image-placeholder.tall { min-height: clamp(420px, 64vw, 820px); }
.image-placeholder span { color: #777; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }

.work-copy { max-width: 26rem; color: #e9e9e9; }
.work-copy p:not(.eyebrow) { color: var(--muted); }
code { color: #fff; }

.contact-section {
  min-height: 62vh;
  display: grid;
  align-content: center;
  border-top: 1px solid var(--line);
  padding: 6rem 0;
}

.contact-section a {
  width: fit-content;
  color: var(--fg);
  border-bottom: 1px solid currentColor;
  font-size: clamp(1.2rem, 3vw, 2rem);
}

.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 780px) {
  .work-intro {
    min-height: 105vh;
  }

  .featured-work {
    min-height: 155vh;
    margin-top: -34svh;
  }

  .section-heading-line {
    margin: 1.8rem 0 1.25rem;
  }

  .section-heading-hexagons {
    gap: .55rem;
    min-height: 52px;
  }

  .heading-hexagon {
    width: clamp(34px, 12vw, 56px);
  }

  .heading-triangle {
    width: clamp(34px, 12vw, 56px);
  }

  .featured-work .image-placeholder {
    min-height: 86svh;
  }

  .work-card,
  .work-card.reverse {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .work-card.reverse .image-placeholder { order: 0; }
  .brand-small { display: none; }
  .hero-logo {
    position: fixed;
    top: 50vh;
    left: 0;
    right: 0;
    margin-inline: auto;
    width: 88vw;
    transform: translateY(-50%) scale(var(--hero-scale));
  }

  .work-section { margin-top: -18svh; }
}
