:root {
  --paper: #f2efe5;
  --ink: #151515;
  --muted: #65645f;
  --line: #b8b5aa;
  --acid: #b9f53d;
  --coral: #ff6b4a;
  --white: #fffef8;
  --page-padding: clamp(20px, 5vw, 76px);
  --max-width: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: linear-gradient(rgba(21, 21, 21, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 21, 21, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
footer {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 24px var(--page-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  min-height: 84px;
  border-bottom: 1px solid var(--line);
}

.monogram {
  font-size: 24px;
  font-weight: 700;
}

.monogram span {
  color: var(--coral);
}

nav {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
}

.header-actions {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
}

nav a,
.header-link,
footer a {
  font-family: "DM Mono", monospace;
  font-size: 13px;
  text-transform: uppercase;
}

nav a,
.header-link,
footer a,
.project-meta a {
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

nav a:hover,
.header-link:hover,
footer a:hover,
.project-meta a:hover {
  text-decoration-line: underline;
}

main {
  overflow: clip;
}

.hero,
.section {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding-inline: var(--page-padding);
}

.hero {
  min-height: calc(100vh - 84px);
  min-height: calc(100svh - 84px);
  padding-block: clamp(54px, 8vh, 110px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: clamp(50px, 8vw, 120px);
}

.eyebrow,
.section-label,
.project-type,
.role-number,
.portrait-index,
.principle-list article > span {
  font-family: "DM Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
}

.eyebrow > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
}

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

h1 {
  max-width: 880px;
  margin-bottom: 28px;
  font-size: clamp(54px, 8vw, 118px);
  line-height: 0.9;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-intro {
  max-width: 670px;
  margin-bottom: 36px;
  font-size: clamp(18px, 1.8vw, 25px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.music-split {
  position: relative;
  display: flex;
}

.music-split > .button {
  border-right: 0;
}

.music-split details {
  position: relative;
}

.music-split summary {
  width: 50px;
  height: 50px;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 20px;
  list-style: none;
}

.music-split summary::-webkit-details-marker {
  display: none;
}

.music-split details[open] summary {
  background: var(--acid);
}

.music-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  width: max-content;
  min-width: 230px;
  max-height: min(480px, 70vh);
  padding: 8px;
  border: 1px solid var(--ink);
  overflow-y: auto;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
}

.music-menu a {
  padding: 10px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.music-menu a:hover {
  background: var(--acid);
}

.button {
  min-height: 50px;
  padding: 13px 18px;
  border: 1px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-family: "DM Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translate(-3px, -3px);
  box-shadow: 4px 4px 0 var(--ink);
}

.button-primary {
  background: var(--acid);
}

.button-secondary {
  background: transparent;
}

.portrait-wrap {
  position: relative;
  padding: 14px;
  border: 1px solid var(--ink);
  background: var(--acid);
  translate: 0 var(--parallax-y, 0);
  will-change: translate;
}

.portrait-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.portrait-index {
  margin-bottom: 10px;
}

.portrait-note {
  margin: 14px 0 0;
  font-family: "DM Mono", monospace;
  font-size: 13px;
}

.ticker {
  border-block: 1px solid var(--ink);
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  white-space: nowrap;
}

.ticker div {
  width: max-content;
  padding: 13px 0;
  font-family: "DM Mono", monospace;
  font-size: 13px;
  animation: ticker 24s linear infinite;
}

.ticker span {
  padding: 0 24px;
  color: var(--acid);
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

.scroll-story {
  position: relative;
  height: 400vh;
  background: var(--ink);
  color: var(--paper);
}

.scroll-story-stage {
  position: sticky;
  top: 0;
  width: min(100%, var(--max-width));
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) var(--page-padding);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(40px, 8vw, 120px);
  overflow: hidden;
}

.scroll-story-copy {
  position: relative;
  z-index: 2;
}

.scroll-story-copy .section-label {
  margin-bottom: 30px;
  color: var(--acid);
}

.scroll-story h2 {
  position: relative;
  height: clamp(80px, 9vw, 130px);
  margin: 0;
  font-size: clamp(70px, 11vw, 158px);
  line-height: 0.82;
  letter-spacing: 0;
}

.story-word {
  position: absolute;
  inset: 0 auto auto 0;
  opacity: 0;
  transform: translateY(55%) rotate(2deg);
  transition: opacity 420ms ease, transform 650ms cubic-bezier(.2,.7,.2,1);
  white-space: nowrap;
}

.story-word.is-active {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

.story-notes {
  position: relative;
  width: min(100%, 590px);
  min-height: 96px;
  margin-top: 44px;
}

.story-note {
  position: absolute;
  inset: 0;
  margin: 0;
  color: #aaa89f;
  font-size: clamp(18px, 1.7vw, 24px);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 350ms ease, transform 500ms cubic-bezier(.2,.7,.2,1);
}

.story-note.is-active {
  opacity: 1;
  transform: translateY(0);
}

.story-portrait {
  position: relative;
  width: min(35vw, 470px);
  aspect-ratio: 1;
  justify-self: end;
  isolation: isolate;
  transform: scale(var(--story-scale, .78)) rotate(var(--story-rotate, -4deg));
  transition: transform 100ms linear;
}

.story-portrait::before {
  content: "";
  position: absolute;
  inset: 4%;
  z-index: -1;
  background: var(--acid);
  transform: rotate(7deg);
}

.story-portrait img {
  width: 100%;
  height: 100%;
  border: 1px solid var(--paper);
  object-fit: cover;
}

.story-orbit {
  position: absolute;
  z-index: -2;
  border: 1px solid rgba(242, 239, 229, .35);
  border-radius: 50%;
}

.story-orbit-one {
  inset: -16%;
  transform: rotate(18deg) scaleX(.78);
}

.story-orbit-two {
  inset: -31%;
  border-color: rgba(185, 245, 61, .35);
  transform: rotate(-22deg) scaleY(.72);
}

.story-index {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  background: var(--ink);
  color: var(--paper);
  font-family: "DM Mono", monospace;
  font-size: 12px;
}

.story-index b {
  color: var(--acid);
  font-weight: 500;
}

.story-progress {
  position: absolute;
  right: var(--page-padding);
  bottom: 34px;
  left: var(--page-padding);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.story-progress span {
  height: 2px;
  background: rgba(242, 239, 229, .22);
  transition: background-color 300ms ease;
}

.story-progress span.is-active {
  background: var(--acid);
}

.section {
  padding-block: clamp(88px, 12vw, 170px);
  border-bottom: 1px solid var(--line);
}

.about .section-label {
  margin-bottom: 34px;
}

.about-content h2,
.section-heading h2,
.connect h2 {
  margin-bottom: 36px;
  font-size: clamp(40px, 6vw, 82px);
  line-height: 1;
  letter-spacing: 0;
}

.about-content > p {
  max-width: 770px;
  margin-bottom: 70px;
  font-size: clamp(20px, 2.5vw, 34px);
  line-height: 1.35;
}

.roles {
  border-top: 1px solid var(--ink);
}

.role {
  min-height: 104px;
  padding: 22px 10px;
  border-bottom: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  transition: background-color 180ms ease, padding-inline 180ms ease;
}

.role:hover {
  padding-inline: 20px;
  background: var(--acid);
}

.role strong,
.role small {
  display: block;
}

.role strong {
  margin-bottom: 3px;
  font-size: 23px;
}

.role small {
  color: var(--muted);
  font-size: 15px;
}

.role-arrow {
  font-size: 24px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(140px, 0.32fr) minmax(0, 1fr);
  column-gap: clamp(30px, 8vw, 120px);
  margin-bottom: 70px;
}

.section-heading h2 {
  margin-bottom: 20px;
}

.section-heading > p {
  grid-column: 2;
  max-width: 660px;
  color: var(--muted);
  font-size: 19px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(38px, 6vw, 80px) 26px;
}

.project-wide {
  grid-column: 1 / -1;
}

.project-visual {
  min-height: 0;
  aspect-ratio: 2.5 / 1;
  border: 1px solid var(--ink);
  display: block;
  overflow: hidden;
  background: var(--white);
  translate: 0 var(--parallax-y, 0);
  will-change: translate;
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(.2,.7,.2,1);
}

.project-visual-contain img {
  padding: clamp(22px, 4vw, 54px);
  object-fit: contain;
}

.project-visual:hover img {
  transform: scale(1.025);
}

.project-meta {
  padding-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 26px;
  align-items: start;
}

.project:not(.project-wide) .project-meta {
  grid-template-columns: 1fr auto;
}

.project:not(.project-wide) .project-story {
  grid-column: 1 / -1;
  grid-row: 2;
}

.project:not(.project-wide) .project-meta > a {
  grid-column: 2;
  grid-row: 1;
}

.project-type {
  margin-bottom: 8px;
  color: var(--muted);
}

.project h3 {
  margin-bottom: 0;
  font-size: clamp(24px, 2.4vw, 34px);
}

.project-story {
  margin: 4px 0 0;
}

.project-story > div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
}

.project-story dt {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.project-story dd {
  margin: 0;
  color: var(--muted);
}

.project-meta > a {
  font-family: "DM Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  white-space: nowrap;
}

.music {
  background: #f4b942;
}

.music-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--ink);
}

.music-panel {
  min-height: 420px;
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.music-panel + .music-panel {
  border-left: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.music-number {
  font-family: "DM Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.music-panel h3 {
  margin: auto 0 20px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
}

.music-panel p {
  max-width: 560px;
  margin-bottom: 34px;
  font-size: 18px;
}

.music-panel + .music-panel .button-secondary {
  border-color: var(--paper);
  color: var(--paper);
}

.music-panel + .music-panel .button-secondary:hover {
  box-shadow: 4px 4px 0 var(--paper);
}

.connect {
  background: var(--ink);
  color: var(--paper);
}

.connect .eyebrow > span {
  background: var(--acid);
}

.connect h2 {
  max-width: 960px;
}

.connect-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.connect-row p {
  max-width: 620px;
  margin-bottom: 0;
  color: #aaa89f;
  font-size: 20px;
}

.connect-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.connect .button {
  flex: 0 0 auto;
  color: var(--ink);
}

.connect .button-secondary {
  border-color: var(--paper);
  color: var(--paper);
}

.connect .button-secondary:hover {
  box-shadow: 4px 4px 0 var(--paper);
}

footer {
  min-height: 120px;
  gap: 30px;
}

footer p {
  margin: 0;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
}

footer div {
  display: flex;
  gap: 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.7,.2,1);
}

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

@media (max-width: 900px) {
  .site-header nav {
    display: none;
  }

  .scroll-story-stage {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr);
  }

  .story-portrait {
    width: min(38vw, 360px);
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 780px;
  }

  .portrait-wrap {
    width: min(72vw, 460px);
    margin-left: auto;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading .section-label {
    margin-bottom: 34px;
  }

  .section-heading > p {
    grid-column: 1;
  }

  .project-meta {
    grid-template-columns: 1fr auto;
  }

  .project-meta > p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .project-meta > a {
    grid-column: 2;
    grid-row: 1;
  }

}

@media (max-width: 640px) {
  .scroll-story {
    height: auto;
  }

  .scroll-story-stage {
    position: relative;
    min-height: auto;
    padding-block: 88px;
    grid-template-columns: 1fr;
  }

  .scroll-story h2 {
    height: auto;
    font-size: 56px;
  }

  .story-word {
    position: static;
    display: block;
    opacity: 1;
    transform: none;
  }

  .story-notes,
  .story-portrait,
  .story-progress {
    display: none;
  }

  .portrait-wrap,
  .project-visual {
    translate: none;
  }

  .site-header {
    min-height: 72px;
    padding-block: 18px;
  }

  .site-header nav {
    display: flex;
    gap: 16px;
  }

  nav a {
    font-size: 11px;
  }

  .header-actions .header-link:not(.header-sponsor) {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-block: 68px 80px;
    gap: 64px;
  }

  h1 {
    font-size: clamp(52px, 17vw, 78px);
  }

  .hero-intro {
    font-size: 18px;
  }

  .music-split {
    width: 100%;
  }

  .music-split > .button {
    flex: 1;
  }

  .music-menu {
    right: -1px;
  }

  .portrait-wrap {
    width: calc(100% - 16px);
  }

  .section {
    padding-block: 88px;
  }

  .about-content h2,
  .section-heading h2,
  .connect h2 {
    font-size: 42px;
  }

  .about-content > p {
    margin-bottom: 52px;
    font-size: 21px;
  }

  .role {
    grid-template-columns: 42px 1fr auto;
  }

  .role strong {
    font-size: 19px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-wide {
    grid-column: auto;
  }

  .project-meta,
  .project:not(.project-wide) .project-meta {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .project-story,
  .project-meta > a,
  .project:not(.project-wide) .project-story,
  .project:not(.project-wide) .project-meta > a {
    grid-column: 1;
    grid-row: auto;
  }

  .project-story > div {
    grid-template-columns: 72px 1fr;
    gap: 12px;
  }

  .music-grid {
    grid-template-columns: 1fr;
  }

  .music-panel {
    min-height: 380px;
  }

  .music-panel + .music-panel {
    border-top: 1px solid var(--paper);
    border-left: 0;
  }

  .connect-row {
    align-items: stretch;
    flex-direction: column;
  }

  .connect-actions {
    width: 100%;
    flex-direction: column;
  }

  .connect .button {
    width: 100%;
  }

  footer {
    padding-block: 28px;
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .scroll-story {
    height: auto;
  }

  .scroll-story-stage {
    position: relative;
    min-height: 100vh;
  }

  .story-progress {
    display: none;
  }

  .portrait-wrap,
  .project-visual,
  .story-portrait {
    translate: none;
    transform: none;
  }

  .story-word,
  .story-note {
    position: static;
    display: block;
    opacity: 1;
    transform: none;
  }
}
