@font-face {
  font-family: Manrope;
  src: url('assets/manrope.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('assets/dm-mono.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f4eee4;
  --ink: #211b19;
  --red: #ff3131;
  --wine: #a91926;
  --rule: #cec2b4;
  --gutter: clamp(1rem, 4.3vw, 5rem);
  --mono: 'DM Mono', monospace;
  font-family: Manrope, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
p, h1, h2, h3 { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
img { display: block; width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 9; top: 1rem; left: 1rem; background: var(--ink); color: var(--paper); padding: .75rem 1rem; transform: translateY(-200%); }
.skip:focus { transform: none; }
.wrap { width: min(100% - 2 * var(--gutter), 100rem); margin-inline: auto; }
.header, .footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  padding-inline: var(--gutter);
  min-height: 4.5rem;
}
.home { font-weight: 800; font-size: clamp(.93rem, 2vw, 1.2rem); letter-spacing: -.055em; white-space: nowrap; }
.header nav { display: flex; align-items: center; gap: clamp(.8rem, 3.3vw, 3rem); }
.header nav a, .footer > a:last-child { font-size: clamp(.79rem, 1.5vw, .96rem); font-weight: 700; white-space: nowrap; }
.header nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
.read-progress { position: fixed; z-index: 6; top: 0; left: 0; right: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.hero { width: calc(100% - 2 * var(--gutter)); margin-inline: auto; }
.poster {
  height: clamp(25rem, 46vw, 48rem);
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background: var(--wine);
}
.stripes { position: absolute; inset: -2% -2%; display: grid; grid-template-columns: repeat(24, 1fr); z-index: -1; }
.stripes span:nth-child(odd) { background: var(--red); }
.poster::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 49%, #35101b55, transparent 63%), linear-gradient(110deg, #7a112300, #6e0a192e);
}
.mark-position { width: min(61%, 48rem); }
.hero-mark { height: auto; filter: drop-shadow(.025em .12em .12em #40060c4d); }
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 6.35rem;
  border-bottom: 1px solid var(--rule);
}
.hero-content p { max-width: 31rem; font-size: clamp(1rem, 1.9vw, 1.35rem); font-weight: 700; letter-spacing: -.035em; }
.pill {
  min-height: 3.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 100vw;
  padding: .6rem 1.15rem;
  font-size: .88rem;
  font-weight: 800;
  white-space: nowrap;
  background: var(--ink);
  color: var(--paper);
  transition: background .2s, color .2s;
}
.pill:hover { background: transparent; color: var(--ink); }
.portfolio { padding-block: clamp(4rem, 9vw, 9rem); }
.portfolio-intro { margin-bottom: clamp(1.8rem, 4vw, 3.5rem); }
.portfolio h2, .company h2 {
  font-size: clamp(3.25rem, 9.2vw, 9rem);
  line-height: .96;
  font-weight: 800;
  letter-spacing: -.083em;
}
.portfolio h2 span { color: #bd242b; }
.brand-index { display: flex; flex-wrap: wrap; gap: .6rem clamp(.8rem, 2vw, 1.6rem); margin-top: 1.5rem; }
.brand-index a { font-size: .91rem; font-weight: 800; border-bottom: 1px solid var(--rule); padding-bottom: .2rem; }
.brand-index a:hover { border-color: currentColor; }
.project {
  display: grid;
  grid-template-columns: 1.21fr 1fr;
  min-height: clamp(24rem, 46vw, 46rem);
  background: #ebe0d0;
  overflow: clip;
  scroll-margin-top: 1.25rem;
}
.project + .project { margin-top: clamp(1rem, 3vw, 3rem); }
.project.project-reverse { grid-template-columns: 1fr 1.21fr; }
.project.core { background: #dce3da; }
.project.socks { background: #f0c9d8; }
.project.ride { background: #d9e4eb; }
.project.console { background: #e7dcea; }
.project-reverse .project-media { grid-column: 2; grid-row: 1; }
.project-reverse .project-copy { grid-column: 1; grid-row: 1; }
.project-media { position: relative; min-width: 0; min-height: 100%; overflow: hidden; isolation: isolate; }
.protein .project-media { background: #e4ddd5; }
.core .project-media { background: #4b4b43; }
.socks .project-media { background: #6b09bc; }
.ride .project-media { background: #384c60; }
.console .project-media { background: #25202b; }
.project-mask { position: absolute; inset: 0; overflow: hidden; }
.project-mask img { height: 100%; object-fit: cover; }
.protein img { object-position: center 47%; }
.core img { object-position: center 55%; }
.socks img { object-position: center 46%; }
.project-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 5.25rem);
}
.label { text-transform: uppercase; font: 400 .82rem/1.4 var(--mono); letter-spacing: .085em; }
.project h3 {
  margin: .8rem 0 1rem;
  font-size: clamp(2.55rem, 6.15vw, 6.65rem);
  line-height: .93;
  letter-spacing: -.08em;
  font-weight: 800;
}
.project-copy > p:not(.label), .company-copy > p:not(.label) { max-width: 24rem; font-size: clamp(1rem, 1.4vw, 1.22rem); line-height: 1.59; }
.project-link { margin-top: 1.45rem; }
.company { background: var(--ink); color: var(--paper); overflow: clip; }
.company-inner { display: grid; grid-template-columns: 1.4fr minmax(0, .7fr); align-items: center; gap: clamp(1rem, 6vw, 6rem); padding-block: clamp(3.8rem, 8.5vw, 9rem); }
.company h2 { font-size: clamp(2.85rem, 6.7vw, 7rem); margin: .85rem 0 1.25rem; }
.company-copy > p:not(.label) { color: #ddd0c5; }
.company-seal { width: min(100%, 28rem); justify-self: center; aspect-ratio: 1; background: #af1f29; transform: rotate(-5deg); }
.company-seal img { height: 100%; }
.footer { min-height: 5.7rem; }
@media (max-width: 850px) {
  .poster { height: clamp(24rem, 61vw, 33rem); }
  .stripes { grid-template-columns: repeat(18, 1fr); }
  .stripes span:nth-child(n+19) { display: none; }
  .mark-position { width: 74%; }
  .project, .project.project-reverse { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .header { min-height: 3.8rem; }
  .hero { width: 100%; }
  .poster { height: clamp(20rem, 100vw, 28rem); }
  .stripes { grid-template-columns: repeat(14, 1fr); }
  .stripes span:nth-child(n+15) { display: none; }
  .mark-position { width: 90%; }
  .hero-content { margin-inline: var(--gutter); align-items: flex-start; flex-direction: column; padding-block: 1rem; }
  .hero-content p { max-width: 20rem; }
  .portfolio-intro { margin-bottom: 1.45rem; }
  .brand-index { margin-top: 1rem; }
  .project, .project.project-reverse { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .project-media, .project-reverse .project-media { grid-column: 1; grid-row: 1; aspect-ratio: 1.14; }
  .project-copy, .project-reverse .project-copy { grid-column: 1; grid-row: 2; }
  .project h3 { font-size: clamp(2.6rem, 13vw, 4.8rem); }
  .company-inner { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
  .company-seal { width: min(62%, 18rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
