:root {
  --paper: #f2e7cf;
  --ink: #161510;
  --blue: #1559a6;
  --red: #d53b2c;
  --yellow: #efba27;
  --rose: #d98b91;
  --green: #376e55;
  --line: 2px solid var(--ink);
  --display: "Archivo Black", Impact, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --mono: "DM Mono", monospace;
  --mx: 0;
  --my: 0;
}

* { box-sizing: border-box; }
html {
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--yellow); color: var(--ink); }

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .23;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 86px;
  padding: 0 clamp(22px, 4vw, 64px);
  border-bottom: var(--line);
}
.wordmark {
  width: fit-content;
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: .8;
  text-decoration: none;
  letter-spacing: -.06em;
}
.wordmark b { display: block; color: var(--red); font-weight: inherit; }
nav { display: flex; gap: 38px; }
nav a, .sound-toggle {
  font: 500 .68rem/1 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
}
nav a { position: relative; padding: 12px 0; }
nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}
nav a:hover::after, nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.sound-toggle {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.sound-icon { display: flex; align-items: end; gap: 2px; height: 13px; }
.sound-icon i { display: block; width: 2px; height: 5px; background: currentColor; }
.sound-icon i:nth-child(2) { height: 12px; }
.sound-icon i:nth-child(3) { height: 8px; }
.sound-toggle[aria-pressed="true"] .sound-icon i { animation: sound-wave .55s ease-in-out infinite alternate; }
.sound-toggle[aria-pressed="true"] .sound-icon i:nth-child(2) { animation-delay: -.2s; }
.sound-toggle[aria-pressed="true"] .sound-icon i:nth-child(3) { animation-delay: -.4s; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(500px, 1.08fr);
  min-height: 100svh;
  padding-top: 86px;
  border-bottom: var(--line);
}
.hero-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vh 2vw 10vh clamp(28px, 6vw, 110px);
  border-right: var(--line);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 9vh;
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .17em;
}
.eyebrow::before { content: ""; width: 42px; height: 2px; background: currentColor; }
.eyebrow span { opacity: .45; }
.hero h1 {
  position: relative;
  z-index: 3;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.5rem, 9.2vw, 9.8rem);
  font-weight: 400;
  line-height: .78;
  letter-spacing: -.095em;
  text-transform: uppercase;
}
.hero h1 span { display: block; }
.hero h1 .shift {
  position: relative;
  left: 7vw;
  color: var(--red);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  transform: rotate(-2deg);
}
.intro {
  width: min(390px, 86%);
  margin: 9vh 0 4vh;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.25;
}
.text-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(285px, 90%);
  min-height: 48px;
  border-top: var(--line);
  border-bottom: var(--line);
  font-size: .7rem;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: padding .25s ease, background .25s ease;
}
.text-link:hover, .text-link:focus-visible { padding: 0 12px; background: var(--yellow); }
.text-link span { font-size: 1.2rem; }

.portrait-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  background: var(--yellow);
}
.portrait {
  position: relative;
  width: min(80%, 620px);
  aspect-ratio: .9;
  transform: translate(calc(var(--mx) * 10px), calc(var(--my) * 7px));
  transition: transform .15s ease-out;
}
.shape { position: absolute; display: block; border: var(--line); }
.sun { top: 4%; right: 2%; width: 30%; aspect-ratio: 1; border-radius: 50%; background: var(--paper); }
.blue-field { top: 8%; left: 1%; width: 42%; height: 36%; background: var(--blue); clip-path: polygon(0 6%, 100% 0, 77% 100%, 10% 85%); }
.red-field { right: -7%; bottom: 2%; width: 52%; height: 35%; background: var(--red); clip-path: polygon(18% 0, 100% 16%, 87% 100%, 0 82%); }
.face-main { top: 14%; left: 22%; width: 54%; height: 65%; border-radius: 48% 42% 46% 40% / 37% 45% 53% 60%; background: var(--rose); transform: rotate(4deg); }
.face-side { z-index: 2; top: 18%; left: 46%; width: 33%; height: 54%; background: #e6cda8; clip-path: polygon(15% 0, 100% 18%, 78% 100%, 0 83%, 18% 51%); transform: rotate(-4deg); }
.hair { z-index: 3; top: 9%; left: 22%; width: 52%; height: 25%; background: var(--ink); clip-path: polygon(0 64%, 8% 16%, 38% 0, 100% 21%, 76% 75%, 49% 50%, 28% 100%); }
.eye { z-index: 5; width: 16%; height: 9%; border-radius: 50%; background: var(--paper); }
.eye i { position: absolute; top: 17%; left: 40%; width: 27%; aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 50%; background: var(--blue); transform: translate(calc(var(--mx) * 5px), calc(var(--my) * 4px)); }
.eye-left { top: 36%; left: 30%; transform: rotate(10deg); }
.eye-right { top: 32%; left: 58%; transform: rotate(-13deg); }
.nose { z-index: 6; top: 38%; left: 46%; width: 12%; height: 29%; border-width: 0 0 3px 3px; background: transparent; transform: skew(-12deg) rotate(5deg); }
.mouth { z-index: 6; top: 65%; left: 39%; width: 29%; height: 7%; border-radius: 50%; border-width: 0 0 3px; background: transparent; transform: rotate(-6deg); }
.ear { top: 43%; left: 15%; width: 16%; height: 20%; border-radius: 48%; background: var(--green); transform: rotate(-18deg); }
.neck { z-index: 1; bottom: 3%; left: 39%; width: 25%; height: 30%; background: #e6cda8; transform: rotate(8deg); }
.shoulder { bottom: -11%; left: 14%; width: 67%; height: 28%; border-radius: 55% 55% 0 0; background: var(--blue); transform: rotate(-5deg); }
.scribble { position: absolute; inset: 0; z-index: 7; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.scribble path { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 900; animation: draw 1.8s .4s both; }
.portrait-tag { position: absolute; right: -8%; top: 58%; z-index: 8; padding: 10px 14px; border: var(--line); background: var(--paper); font: 500 .62rem/1.25 var(--mono); letter-spacing: .15em; transform: rotate(7deg); }
.art-note { position: absolute; right: clamp(20px, 3vw, 50px); bottom: 28px; margin: 0; font: 500 .62rem/1.5 var(--mono); letter-spacing: .08em; text-align: right; text-transform: uppercase; }
.art-note span { opacity: .6; font-weight: 300; text-transform: none; letter-spacing: 0; }
.hero-index { position: absolute; right: 0; bottom: 0; z-index: 6; display: flex; transform: rotate(-90deg) translateX(100%); transform-origin: bottom right; }
.hero-index span { padding: 7px 16px; border-left: var(--line); background: var(--paper); font-size: .55rem; letter-spacing: .14em; }

.manifesto {
  position: relative;
  display: grid;
  grid-template-columns: .22fr 1.3fr .8fr;
  gap: 7vw;
  min-height: 78vh;
  padding: 13vh clamp(28px, 6vw, 110px);
  overflow: hidden;
  background: var(--blue);
  color: var(--paper);
  border-bottom: var(--line);
}
.section-number { font: 400 clamp(5rem, 12vw, 12rem)/.8 var(--serif); opacity: .2; }
.manifesto-copy { align-self: center; position: relative; z-index: 2; }
.eyebrow.light { margin-bottom: 6vh; }
.manifesto h2, .fragments h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.3rem, 6.5vw, 7rem);
  font-weight: 400;
  line-height: .91;
  letter-spacing: -.07em;
  text-transform: uppercase;
}
.manifesto h2 em { color: var(--yellow); font-family: var(--serif); font-weight: 300; text-transform: none; }
.manifesto-body { align-self: end; position: relative; z-index: 2; padding-bottom: 7vh; }
.manifesto-body p { margin: 0 0 5vh; font-family: var(--serif); font-size: clamp(1.5rem, 2.3vw, 2.3rem); line-height: 1.2; }
.manifesto-body .small { margin: 0; font-family: var(--mono); font-size: .75rem; line-height: 1.7; opacity: .72; }
.abstract-mark span { position: absolute; display: block; border: 2px solid rgba(242,231,207,.7); }
.abstract-mark span:nth-child(1) { right: -5vw; top: -7vw; width: 26vw; aspect-ratio: 1; border-radius: 50%; }
.abstract-mark span:nth-child(2) { left: 4vw; bottom: -9vw; width: 20vw; aspect-ratio: 1; background: var(--red); clip-path: polygon(50% 0, 100% 100%, 0 75%); transform: rotate(-14deg); }
.abstract-mark span:nth-child(3) { right: 28%; top: 8%; width: 5vw; height: 19vw; background: var(--yellow); transform: rotate(47deg); }

.fragments { display: grid; grid-template-columns: .72fr 1.28fr; border-bottom: var(--line); }
.fragments-heading { padding: 13vh clamp(28px, 6vw, 110px); border-right: var(--line); }
.fragments-heading .eyebrow { margin-bottom: 14vh; }
.fragments h2 i { font-family: var(--serif); font-weight: 300; color: var(--red); text-transform: none; }
.fragment-list { display: flex; flex-direction: column; }
.fragment {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  align-items: center;
  gap: 4vw;
  min-height: 32vh;
  padding: 5vh clamp(35px, 5vw, 80px);
  overflow: hidden;
  border-bottom: var(--line);
}
.fragment:last-child { border-bottom: 0; }
.fragment-no { align-self: start; font: italic 2rem/1 var(--serif); color: var(--red); }
.fragment h3 { position: relative; z-index: 2; margin: 0; font: 400 clamp(2.7rem, 5vw, 5rem)/1 var(--display); letter-spacing: -.06em; text-transform: uppercase; }
.fragment p { position: relative; z-index: 2; max-width: 310px; font: 300 .75rem/1.7 var(--mono); }
.fragment-shape { position: absolute; opacity: 0; transform: scale(.65) rotate(-20deg); transition: opacity .25s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
.fragment:hover .fragment-shape { opacity: .9; transform: scale(1) rotate(0); }
.shape-one { right: 5%; width: 140px; aspect-ratio: 1; border-radius: 50%; background: var(--yellow); border: var(--line); }
.shape-two { right: 9%; width: 120px; height: 180px; background: var(--blue); clip-path: polygon(50% 0, 100% 100%, 0 82%); }
.shape-three { right: 4%; width: 170px; height: 100px; background: var(--rose); border: var(--line); transform-origin: center; }

footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  align-items: end;
  gap: 5vw;
  min-height: 43vh;
  padding: 10vh clamp(28px, 6vw, 110px) 6vh;
  background: var(--ink);
  color: var(--paper);
}
.footer-mark { margin: 0; font: 400 clamp(3.5rem, 8vw, 8rem)/.8 var(--display); letter-spacing: -.08em; }
.footer-mark span { color: var(--red); }
footer > p:not(.footer-mark) { margin: 0; font-size: .68rem; line-height: 1.6; letter-spacing: .08em; text-transform: uppercase; }
footer a { min-height: 44px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; text-underline-offset: 5px; }
.copyright { opacity: .5; }

@keyframes draw { from { stroke-dashoffset: 900; } to { stroke-dashoffset: 0; } }
@keyframes sound-wave { to { height: 2px; } }

@media (max-width: 950px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { min-height: 80svh; border-right: 0; border-bottom: var(--line); }
  .portrait-wrap { min-height: 80svh; }
  .hero h1 .shift { left: 10vw; }
  .manifesto { grid-template-columns: .3fr 1.5fr; }
  .manifesto-body { grid-column: 2; max-width: 530px; }
  .fragments { grid-template-columns: 1fr; }
  .fragments-heading { border-right: 0; border-bottom: var(--line); }
  .fragment { min-height: 260px; }
  footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .site-header { min-height: 72px; padding: 0 20px; }
  .sound-label { display: none; }
  .hero { padding-top: 72px; }
  .hero-copy { min-height: 74svh; padding: 9vh 24px 8vh; }
  .eyebrow { margin-bottom: 7vh; }
  .hero h1 { font-size: clamp(3.1rem, 15.7vw, 4rem); }
  .hero h1 .shift { left: 0; -webkit-text-stroke-width: 1px; }
  .intro { margin: 7vh 0 3vh; font-size: 1.25rem; }
  .portrait-wrap { min-height: 70svh; }
  .portrait { width: 94%; }
  .art-note { right: 18px; bottom: 16px; }
  .art-note span { display: none; }
  .portrait-tag { right: 2%; }
  .hero-index { display: none; }
  .manifesto { grid-template-columns: 1fr; gap: 5vh; min-height: auto; padding: 10vh 24px; }
  .section-number { position: absolute; right: 10px; top: 9vh; }
  .manifesto-body { grid-column: 1; padding: 0; }
  .manifesto-body p { max-width: 88%; }
  .abstract-mark span:nth-child(3) { width: 10vw; height: 44vw; right: 2%; top: 39%; }
  .fragments-heading { padding: 10vh 24px; }
  .fragments-heading .eyebrow { margin-bottom: 9vh; }
  .fragment { grid-template-columns: 40px 1fr; gap: 20px; min-height: 240px; padding: 42px 24px; }
  .fragment p { grid-column: 2; margin: 0; max-width: 82%; }
  .fragment-shape { opacity: .35; }
  .shape-one, .shape-two, .shape-three { right: -8%; }
  footer { grid-template-columns: 1fr 1fr; min-height: 55vh; padding: 9vh 24px 5vh; }
  .footer-mark {
    grid-column: 1 / -1;
    font-size: clamp(3.25rem, 15vw, 4.2rem);
    white-space: normal;
  }
  .footer-mark span { display: block; margin-left: 15vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .portrait { transform: none; }
}
