@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #0e0e0e;
  --ink-2: #141414;
  --paper: #f3efe6;
  --paper-soft: #d9d4c8;
  --muted: #8c877c;
  --acid: #c9ff3f;
  --line: rgba(243, 239, 230, 0.14);
  --line-strong: rgba(243, 239, 230, 0.28);
  --display: "Outfit", system-ui, sans-serif;
  --text: "Manrope", system-ui, sans-serif;
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 72px);
}

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

html { -webkit-text-size-adjust: 100%; }

html, body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
}

body {
  font-family: var(--text);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; }

/* focus */
:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--acid);
  color: #0a0a0a;
  padding: 10px 14px;
  font-family: var(--display);
  font-weight: 600;
  z-index: 50;
  text-decoration: none;
  transition: top .18s ease;
}
.skip:focus { top: 12px; }

/* masthead */
.masthead {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 28px var(--gutter) 0;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 5;
}
.masthead__mark {
  margin: 0;
  font-weight: 600;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.masthead__mark:hover { border-color: var(--paper); }
.masthead__nav { display: flex; gap: 22px; }
.masthead__nav a {
  text-decoration: none;
  color: var(--paper-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.masthead__nav a:hover { color: var(--paper); border-color: var(--paper); }
.masthead__nav a[aria-current="page"] {
  color: var(--acid);
  border-color: var(--acid);
}

/* kicker */
.kicker {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--acid);
  margin: 0 0 20px;
}

/* rule */
.rule {
  display: block;
  height: 2px;
  background: var(--acid);
  margin: 0 var(--gutter);
  width: calc(100% - var(--gutter) * 2);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: opacity .1s linear;
  will-change: transform, opacity;
}
.rule--full { margin-top: clamp(40px, 8vw, 96px); }
.js-reveal-armed .rule {
  transition: opacity .3s ease, transform .3s ease;
}

/* hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(120px, 18vh, 220px) 0 clamp(56px, 9vh, 110px);
  overflow: hidden;
}

.hero__layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__clip {
  position: absolute;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: var(--ink);
  mix-blend-mode: screen;
  will-change: transform;
}
.hero__clip--cobalt {
  top: -6%;
  right: -10%;
  width: clamp(240px, 44vw, 640px);
  height: clamp(280px, 62vh, 780px);
  background-image: url("assets/cobalt.png");
  background-position: 40% 40%;
  clip-path: polygon(18% 0, 100% 6%, 88% 100%, 0 88%);
  opacity: 0.72;
}
.hero__clip--silk {
  bottom: -14%;
  left: -8%;
  width: clamp(220px, 40vw, 560px);
  height: clamp(240px, 52vh, 640px);
  background-image: url("assets/silk.png");
  background-position: 60% 55%;
  clip-path: polygon(0 12%, 82% 0, 100% 74%, 16% 100%);
  opacity: 0.42;
  mix-blend-mode: lighten;
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter);
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
}

.hero__title {
  font-size: clamp(52px, 15vw, 190px);
  line-height: 0.92;
  font-weight: 450;
  letter-spacing: -0.04em;
  color: var(--paper);
  margin: 0 0 clamp(20px, 3vw, 40px);
}

.hero__lede {
  max-width: 46ch;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.5;
  color: var(--paper-soft);
  margin: 0;
}

/* peak */
.peak {
  position: relative;
  padding: 0;
  min-height: 240svh;
}
.peak__pin {
  position: sticky;
  top: 0;
  height: auto;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  align-content: stretch;
}

.peak__stage {
  position: relative;
  min-height: 62svh;
  margin: clamp(24px, 5vw, 56px) var(--gutter) 0;
  overflow: hidden;
  background: #060606;
  isolation: isolate;
}

.peak__frame {
  position: absolute;
  inset: 0;
  margin: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity .35s linear, transform .8s ease;
  will-change: opacity, transform;
}
.peak__frame--cobalt { background-image: url("assets/cobalt.png"); background-position: 45% 35%; }
.peak__frame--silk   { background-image: url("assets/silk.png");   background-position: 55% 50%; }
.peak__frame--mono   { background-image: url("assets/mono.png");   background-position: 50% 55%; }

/* state classes toggled by JS */
.peak__frame.is-on   { opacity: 1; }
.peak__frame.is-dim  { opacity: 0; }
.peak__frame.is-next { opacity: 0.35; }

.peak__caption {
  padding: clamp(24px, 4vw, 44px) var(--gutter) clamp(36px, 6vw, 72px);
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  display: grid;
  gap: clamp(10px, 1.4vw, 18px);
}
.peak__title {
  font-size: clamp(34px, 6.2vw, 74px);
  line-height: 1;
  font-weight: 450;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.peak__note {
  max-width: 48ch;
  color: var(--paper-soft);
  font-size: clamp(14px, 1.2vw, 16px);
  margin: 0;
}
.peak__fallback {
  padding: 20px var(--gutter);
  color: var(--paper-soft);
}
.peak__fallback a { color: var(--acid); }

/* prose */
.prose { padding: clamp(64px, 11vw, 140px) var(--gutter); }
.prose__inner { max-width: var(--maxw); margin: 0 auto; }
.prose__title {
  font-size: clamp(40px, 8vw, 104px);
  line-height: 0.98;
  font-weight: 450;
  letter-spacing: -0.035em;
  margin: 0 0 clamp(20px, 3vw, 32px);
  max-width: 14ch;
}
.prose__lead {
  max-width: 56ch;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.45;
  color: var(--paper-soft);
  margin: 0 0 clamp(36px, 6vw, 72px);
}
.prose__grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .prose__grid { grid-template-columns: repeat(3, 1fr); }
  .prose__block + .prose__block {
    border-left: 1px solid var(--line);
    padding-left: clamp(20px, 3vw, 40px);
  }
}
.prose__block h3 {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 550;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.prose__block p {
  margin: 0;
  color: var(--paper-soft);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.6;
}

/* nota */
.nota { padding: clamp(64px, 11vw, 140px) var(--gutter) clamp(40px, 8vw, 96px); }
.nota__inner { max-width: var(--maxw); margin: 0 auto; }
.nota__title {
  font-size: clamp(40px, 8vw, 104px);
  line-height: 0.98;
  font-weight: 450;
  letter-spacing: -0.035em;
  margin: 0 0 clamp(20px, 3vw, 32px);
  max-width: 14ch;
}
.nota__body {
  max-width: 52ch;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--paper-soft);
  margin: 0 0 clamp(28px, 4vw, 48px);
}
.nota__credit {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.nota__credit span { color: var(--acid); font-size: 16px; }

/* footer */
.site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-foot p { margin: 0; }
.site-foot__nav { display: flex; gap: 22px; }
.site-foot a {
  color: var(--paper-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}
.site-foot a:hover { color: var(--acid); border-color: var(--acid); }

/* mobile composition */
@media (max-width: 640px) {
  .masthead { padding-top: 20px; font-size: 12px; gap: 12px; flex-wrap: wrap; }
  .masthead__nav { gap: 14px; font-size: 11px; letter-spacing: 0.1em; }
  .hero { padding-top: 140px; min-height: auto; padding-bottom: 48px; }
  .hero__title { font-size: clamp(48px, 17vw, 96px); line-height: 0.94; }
  .hero__clip--cobalt { width: 74vw; height: 40vh; top: -2%; right: -22%; }
  .hero__clip--silk { width: 66vw; height: 32vh; bottom: 6%; left: -18%; }
  .peak__pin { min-height: 88svh; grid-template-rows: 1fr auto; }
  .peak__stage { min-height: 46svh; margin-top: 12px; }
  .peak__title { font-size: clamp(30px, 8.4vw, 48px); }
  .site-foot { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
  .hero__clip, .peak__frame { transition: none; }
  .peak { min-height: auto; }
  .peak__pin { position: static; min-height: 0; }
  .peak__stage {
    min-height: 46svh;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .peak__frame { position: relative; inset: auto; opacity: 1; transform: none; }
  .peak__frame--cobalt { grid-column: 1; }
  .peak__frame--silk { grid-column: 2; }
  .peak__frame--mono { grid-column: 3; }
  .rule { opacity: 1; transform: none; }
}

/* no-js: show everything statically and stacked */
.no-js .rule { opacity: 1; transform: none; }
.no-js .peak { min-height: auto; }
.no-js .peak__pin { position: static; min-height: 0; }
.no-js .peak__stage {
  min-height: 46svh;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.no-js .peak__frame { position: relative; inset: auto; opacity: 1; transform: none; min-height: 46svh; }
