:root {
  --bg: #1e2220;
  --surface: #111715;
  --ink: #f1f0ea;
  --muted: #a9ada8;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #bfc9a1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "DM Sans", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

.parallax {
  --move-x: 0px;
  --move-y: 0px;
  --image-zoom: 1.08;
  --image-tilt: 0deg;
  transform: translate3d(var(--move-x), var(--move-y), 0) scale(var(--image-zoom)) rotate(var(--image-tilt));
  transform-origin: center;
  transition: filter 500ms ease;
  backface-visibility: hidden;
}

.site-shell {
  width: 100%;
  margin: 0;
  padding: 0;
}

.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 30;
  width: calc(100% - 36px);
  height: 52px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(13, 18, 16, 0.72);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
  font-size: 11px;
  text-transform: uppercase;
}

.wordmark {
  font-family: Italiana, Georgia, serif;
  font-size: 16px;
}

.topbar nav {
  display: flex;
  gap: 28px;
}

.topbar nav a,
.contact-link {
  color: #d9dbd5;
  transition: color 180ms ease;
}

.topbar nav a:hover,
.contact-link:hover {
  color: white;
}

.contact-link {
  justify-self: end;
}

.editorial-section {
  position: relative;
  min-height: 100vh;
  margin: 0;
  border-radius: 0;
  background: var(--surface);
  overflow: hidden;
}

.hero {
  height: 100vh;
  min-height: 680px;
}

.hero-image,
.closing-image,
.principles-bg {
  position: absolute;
  inset: -8% 0;
  height: 116%;
  object-fit: cover;
  filter: saturate(0.68) contrast(1.06);
  will-change: transform;
}

.hero-shade,
.principles-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 9, 7, 0.24), rgba(4, 9, 7, 0.22) 42%, rgba(4, 9, 7, 0.86));
}

.kicker,
.section-label {
  font-size: 11px;
  text-transform: uppercase;
  color: #c7cbc4;
}

.hero .kicker {
  position: absolute;
  top: 112px;
  left: 28px;
}

.hero h1 {
  position: absolute;
  left: 24px;
  bottom: 68px;
  margin: 0;
  font-family: Italiana, Georgia, serif;
  font-size: clamp(118px, 19vw, 276px);
  line-height: 0.7;
  font-weight: 400;
}

.hero-note {
  position: absolute;
  right: 44px;
  bottom: 78px;
  width: 230px;
  font-size: 11px;
}

.hero-note span {
  display: block;
  margin-bottom: 10px;
  font-family: Italiana, Georgia, serif;
  font-size: 20px;
}

.hero-note p,
.portfolio-copy,
.manifesto-copy {
  margin: 0;
  line-height: 1.5;
  color: #d1d4cd;
}

.hero-button,
.small-button {
  position: absolute;
  right: 44px;
  bottom: 28px;
  min-height: 30px;
  padding: 8px 14px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #111715;
  background: #f0f0eb;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
}

.intro {
  min-height: 860px;
  padding: 72px 30px;
}

.intro .section-label {
  position: absolute;
  left: 28px;
  top: 70px;
}

.intro-copy {
  position: absolute;
  top: 70px;
  right: 44px;
  width: 280px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.crop-window {
  position: absolute;
  top: 0;
  left: 34%;
  width: 34%;
  height: 210px;
  overflow: hidden;
}

.crop-window,
.project,
.manifesto-media {
  isolation: isolate;
}

.crop-window::after,
.project::after,
.manifesto-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 38%, rgba(0, 0, 0, 0.14));
  opacity: 0.45;
  transition: opacity 400ms ease;
}

.crop-window:hover::after,
.project:hover::after,
.manifesto-media:hover::after {
  opacity: 0;
}

.crop-window:hover .parallax,
.project:hover .parallax,
.manifesto-media:hover .parallax {
  filter: saturate(1.04) contrast(1.04);
}

.crop-window img,
.project img,
.manifesto-media img {
  height: 120%;
  object-fit: cover;
  will-change: transform;
}

.intro-title {
  position: absolute;
  left: 28px;
  bottom: 34px;
  margin: 0;
  font-family: Italiana, Georgia, serif;
  font-size: clamp(58px, 9vw, 130px);
  line-height: 0.82;
  font-weight: 400;
}

.metrics {
  min-height: 760px;
  padding: 64px 34px;
}

.metric {
  position: absolute;
  width: 240px;
}

.metric:nth-child(1) {
  left: 48%;
  top: 16%;
}

.metric:nth-child(2) {
  left: 6%;
  top: 44%;
}

.metric:nth-child(3) {
  right: 7%;
  top: 25%;
}

.metric:nth-child(4) {
  left: 38%;
  bottom: 10%;
}

.metric strong {
  display: block;
  font-family: Italiana, Georgia, serif;
  font-size: clamp(70px, 9vw, 128px);
  line-height: 0.82;
  font-weight: 400;
}

.metric small {
  font-size: 20%;
}

.metric p {
  width: 150px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.portfolio {
  min-height: 920px;
  padding: 50px 28px;
}

.portfolio-heading {
  position: absolute;
  top: 52px;
  left: 24%;
  z-index: 4;
  width: 58%;
  text-align: center;
}

.portfolio-heading h2,
.manifesto h2,
.closing h2 {
  margin: 14px 0 0;
  font-family: Italiana, Georgia, serif;
  font-size: clamp(52px, 7vw, 100px);
  line-height: 0.86;
  font-weight: 400;
}

.project {
  position: absolute;
  margin: 0;
}

.project img {
  height: 100%;
}

.project-left {
  left: 0;
  top: 170px;
  width: 22%;
  height: 480px;
}

.project-center {
  left: 34%;
  top: 255px;
  width: 32%;
  height: 430px;
}

.project-right {
  right: 0;
  top: 170px;
  width: 22%;
  height: 480px;
}

.project figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 9px;
}

.portfolio-copy {
  position: absolute;
  left: 36%;
  bottom: 64px;
  width: 250px;
  font-size: 11px;
}

.portfolio .small-button {
  right: 34%;
  bottom: 58px;
}

.manifesto {
  min-height: 850px;
  padding: 52px 30px;
}

.manifesto .section-label {
  position: absolute;
  right: 40px;
  top: 54px;
}

.manifesto h2 {
  position: absolute;
  left: 35%;
  top: 145px;
  z-index: 3;
  white-space: nowrap;
}

.manifesto-media {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 54%;
  height: 540px;
  overflow: hidden;
}

.manifesto-copy {
  position: absolute;
  right: 58px;
  bottom: 110px;
  width: 260px;
  font-size: 12px;
}

.principles {
  min-height: 840px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 1px;
  padding: 50px 24px;
}

.principles-shade {
  background: rgba(10, 14, 12, 0.55);
}

.principle {
  position: relative;
  z-index: 2;
  min-height: 390px;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(14, 20, 17, 0.54);
  backdrop-filter: blur(8px);
}

.principle span {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #d7dad4;
  font-size: 10px;
}

.principle h3 {
  margin: 0 0 16px;
  font-family: Italiana, Georgia, serif;
  font-size: 25px;
  font-weight: 400;
}

.principle p {
  margin: 0;
  color: #c5c9c1;
  font-size: 11px;
  line-height: 1.5;
}

.closing {
  height: 100vh;
  min-height: 680px;
}

.closing .section-label {
  position: absolute;
  top: 92px;
  right: 36px;
  z-index: 3;
}

.closing h2 {
  position: absolute;
  left: 28px;
  bottom: 50px;
  z-index: 3;
  font-size: clamp(76px, 13vw, 188px);
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(8px);
  transition:
    opacity 900ms ease,
    transform 1100ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 900ms ease;
}

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

@media (max-width: 800px) {
  .site-shell {
    width: 100%;
    padding: 0;
  }

  .topbar {
    top: 12px;
    width: calc(100% - 24px);
  }

  .topbar nav {
    display: none;
  }

  .editorial-section {
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  .hero {
    height: 100vh;
  }

  .hero h1 {
    left: 16px;
    bottom: 140px;
    font-size: clamp(82px, 29vw, 132px);
  }

  .hero-note {
    left: 18px;
    right: auto;
    bottom: 70px;
    width: 230px;
  }

  .hero-button {
    right: 18px;
    bottom: 26px;
  }

  .intro-copy {
    top: 120px;
    right: 20px;
    width: 220px;
  }

  .crop-window {
    top: 250px;
    left: 40%;
    width: 60%;
    height: 190px;
  }

  .intro-title {
    left: 18px;
    font-size: 16vw;
  }

  .metric {
    width: 45%;
  }

  .metric:nth-child(1) {
    left: 48%;
    top: 18%;
  }

  .metric:nth-child(2) {
    left: 6%;
    top: 40%;
  }

  .metric:nth-child(3) {
    right: 4%;
    top: 56%;
  }

  .metric:nth-child(4) {
    left: 18%;
    bottom: 8%;
  }

  .portfolio-heading {
    left: 16px;
    width: calc(100% - 32px);
  }

  .project-left {
    top: 220px;
    width: 27%;
    height: 370px;
  }

  .project-center {
    left: 28%;
    top: 270px;
    width: 44%;
    height: 390px;
  }

  .project-right {
    top: 220px;
    width: 27%;
    height: 370px;
  }

  .portfolio-copy {
    left: 18px;
    bottom: 76px;
  }

  .manifesto h2 {
    left: 18px;
    top: 120px;
    white-space: normal;
  }

  .manifesto-media {
    width: 72%;
    height: 430px;
  }

  .manifesto-copy {
    right: 18px;
    bottom: 60px;
    width: 210px;
  }

  .principles {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 90px 18px 30px;
  }

  .principle {
    min-height: 190px;
  }

  .closing h2 {
    left: 18px;
    font-size: 17vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .parallax {
    transform: none !important;
  }
}
