:root {
  --ink: #151515;
  --paper: #f4f0e8;
  --coral: #ff4f3d;
  --acid: #d9ff43;
  --blue: #3157ff;
  --line: rgba(21, 21, 21, 0.24);
  --space-s: 12px;
  --space-m: 24px;
  --space-l: 96px;
  --page-pad: var(--space-l);
  --type-display: clamp(64px, 8vw, 124px);
  --type-section: clamp(44px, 6vw, 88px);
  --type-project: clamp(30px, 3.5vw, 52px);
  --type-body: 16px;
  --type-meta: 12px;
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: var(--type-body);
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

button,
a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button {
  appearance: none;
  border: 0;
  padding: 0;
  color: inherit;
  background: none;
  cursor: pointer;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-pad);
  color: var(--ink);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.site-header a {
  pointer-events: auto;
}

.wordmark {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
}

.site-header nav {
  display: flex;
  gap: var(--space-m);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.site-header nav a {
  position: relative;
}

.site-header nav a::after,
.project-link::after,
.contact-grid a::after,
.contact-grid .contact-text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 2px;
  background: currentColor;
  transition: right 180ms ease;
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after,
.project-link:hover::after,
.project-link:focus-visible::after,
.contact-grid a:hover::after,
.contact-grid a:focus-visible::after,
.contact-grid .contact-text:hover::after {
  right: 0;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-height) + var(--space-m)) var(--page-pad) var(--space-m);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
  grid-template-rows: auto 1fr auto;
  gap: var(--space-m);
  background: var(--coral);
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, transparent calc(25% - 1px), rgba(21, 21, 21, 0.12) 25%, transparent calc(25% + 1px)),
    linear-gradient(to right, transparent calc(75% - 1px), rgba(21, 21, 21, 0.12) 75%, transparent calc(75% + 1px)),
    linear-gradient(to bottom, transparent calc(68% - 1px), rgba(21, 21, 21, 0.12) 68%, transparent calc(68% + 1px));
}

.hero-kicker {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  font-family: "Courier New", monospace;
  font-size: var(--type-meta);
  font-weight: 700;
  line-height: 1.3;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: end;
  padding-bottom: var(--space-m);
}

.hero-question {
  margin: 0 0 var(--space-m);
  font-size: var(--type-body);
  font-weight: 800;
  line-height: 1.6;
}

.hero h1 {
  max-width: 970px;
  margin: 0;
  font-size: var(--type-display);
  line-height: 0.9;
  font-weight: 950;
}

.hero h1 span {
  color: var(--paper);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 5px 5px 0 var(--ink);
}

.hero-summary {
  max-width: 670px;
  margin: var(--space-m) 0;
  font-size: var(--type-body);
  line-height: 1.6;
  font-weight: 650;
}

.primary-action {
  width: min(260px, 100%);
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-m);
  color: var(--paper);
  background: var(--ink);
  border: 2px solid var(--ink);
  font-weight: 850;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.primary-action:hover,
.primary-action:focus-visible {
  color: var(--ink);
  background: var(--acid);
  transform: translate(4px, -4px);
  box-shadow: -4px 4px 0 var(--ink);
}

.hero-mark {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: end;
  width: min(31vw, 410px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  background: var(--acid);
  transform: rotate(6deg);
  transition: transform 100ms linear;
}

.hero-mark::before,
.hero-mark::after {
  content: "";
  position: absolute;
  background: var(--ink);
}

.hero-mark::before {
  width: 2px;
  height: calc(100% + 46px);
}

.hero-mark::after {
  width: calc(100% + 46px);
  height: 2px;
}

.mark-word {
  position: absolute;
  font-size: var(--type-project);
  font-weight: 950;
  line-height: 1;
}

.mark-word:first-child {
  top: 13%;
  left: 8%;
}

.mark-word:last-child {
  right: 8%;
  bottom: 13%;
}

.mark-divider {
  width: 38%;
  height: 38%;
  border: 3px solid var(--ink);
  background: var(--blue);
  transform: rotate(45deg);
}

.hero-index {
  grid-column: 1 / -1;
  margin: 0;
  font-family: "Courier New", monospace;
  font-size: var(--type-meta);
  line-height: 1.3;
}

.work-section {
  padding: var(--space-l) var(--page-pad);
  background: var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) 1fr;
  gap: var(--space-m);
  margin-bottom: var(--space-l);
}

.eyebrow {
  margin: 0;
  font-family: "Courier New", monospace;
  font-size: var(--type-meta);
  font-weight: 700;
  line-height: 1.3;
}

.section-heading h2,
.about-intro h2,
.contact-section h2 {
  margin: 0;
  font-size: var(--type-section);
  line-height: 0.95;
  font-weight: 950;
}

.work-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: var(--space-l);
  align-items: start;
}

.project-list {
  border-top: 2px solid var(--ink);
}

.project-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-m);
  padding: var(--space-m) 0;
  border-bottom: 2px solid var(--ink);
  cursor: pointer;
  transition: padding 180ms ease, background-color 180ms ease;
}

.project-item:focus-visible {
  padding-left: var(--space-m);
  padding-right: var(--space-m);
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.project-item.is-active {
  padding-left: var(--space-m);
  padding-right: var(--space-m);
  background: var(--acid);
}

.project-number {
  padding-top: var(--space-s);
  font-family: "Courier New", monospace;
  font-size: var(--type-meta);
  font-weight: 700;
  line-height: 1.3;
}

.project-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
}

.project-title-row h3 {
  margin: 0;
  font-size: var(--type-project);
  line-height: 1;
  font-weight: 950;
}

.project-title-row span {
  font-size: 24px;
  transform: translate(-8px, 8px);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.project-item.is-active .project-title-row span {
  opacity: 1;
  transform: translate(0, 0);
}

.project-main > p {
  max-width: 630px;
  margin: var(--space-s) 0;
  font-size: var(--type-body);
  line-height: 1.6;
  font-weight: 600;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin: 0 0 var(--space-s);
  padding: 0;
  list-style: none;
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.project-tags li::before {
  content: "+ ";
}

.project-link {
  position: relative;
  display: inline-block;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.5;
}

.project-stage {
  position: sticky;
  top: calc(var(--header-height) + 26px);
}

.stage-meta {
  display: flex;
  justify-content: space-between;
  gap: var(--space-s);
  padding-bottom: var(--space-s);
  border-bottom: 2px solid var(--ink);
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.stage-canvas {
  position: relative;
  aspect-ratio: 4 / 5;
  margin-top: var(--space-s);
  overflow: hidden;
  background: var(--coral);
  border: 2px solid var(--ink);
}

.image-stack {
  position: absolute;
  inset: 0;
}

.stage-image {
  position: absolute;
  object-fit: cover;
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  transition: opacity 180ms ease, transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stage-image-main {
  width: 52%;
  height: 76%;
  left: 9%;
  top: 10%;
  object-position: top center;
  transform: rotate(-4deg);
}

.stage-image-secondary {
  width: 47%;
  height: 67%;
  right: 6%;
  bottom: 7%;
  object-position: top center;
  transform: rotate(5deg);
}

.stage-canvas:hover .stage-image-main {
  transform: rotate(-7deg) translate(-5px, -5px);
}

.stage-canvas:hover .stage-image-secondary {
  transform: rotate(8deg) translate(6px, 4px);
}

.stage-stamp {
  position: absolute;
  z-index: 3;
  right: 4%;
  top: 4%;
  width: 82px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--blue);
  border: 2px solid var(--ink);
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 900;
  transform: rotate(8deg);
}

.stage-qr {
  position: absolute;
  z-index: 4;
  left: 4%;
  bottom: 4%;
  width: 92px;
  padding: 6px 6px 8px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-5deg);
  transition: transform 160ms ease, background-color 160ms ease;
}

.stage-qr:hover,
.stage-qr:focus-visible {
  background: var(--acid);
  transform: rotate(-2deg) translateY(-3px);
  outline: none;
}

.stage-qr img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--ink);
}

.stage-qr span {
  display: block;
  margin-top: 5px;
  font-family: "Courier New", monospace;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.stage-caption {
  margin: var(--space-m) 0 0;
  font-size: var(--type-body);
  line-height: 1.6;
  font-weight: 600;
}

.stage-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-s);
  margin-top: var(--space-m);
}

.stage-control {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  padding: 0 var(--space-s);
  color: var(--paper);
  background: var(--ink);
  border: 2px solid var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.3;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.stage-control:hover,
.stage-control:focus-visible {
  color: var(--ink);
  background: var(--acid);
  transform: translate(3px, -3px);
  box-shadow: -3px 3px 0 var(--ink);
  outline: none;
}

.about-section {
  padding: var(--space-l) var(--page-pad);
  color: var(--paper);
  background: var(--ink);
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) 1fr;
  gap: var(--space-m);
}

.about-intro .eyebrow {
  grid-row: span 2;
}

.about-intro > p:last-child {
  max-width: 840px;
  margin: var(--space-m) 0 0;
  font-size: var(--type-body);
  line-height: 1.6;
  font-weight: 600;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-s);
  margin-top: var(--space-l);
}

.capability {
  min-height: 310px;
  padding: var(--space-m);
  display: flex;
  flex-direction: column;
  border: 2px solid var(--paper);
}

.capability-yellow {
  color: var(--ink);
  background: var(--acid);
}

.capability-blue {
  color: var(--paper);
  background: var(--blue);
}

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

.capability-index {
  margin: 0;
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.capability h3 {
  margin: auto 0 var(--space-m);
  font-size: var(--type-project);
  line-height: 1;
}

.capability > p:last-child {
  margin: 0;
  font-size: var(--type-body);
  line-height: 1.6;
  font-weight: 600;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: var(--space-s);
  border-top: 2px solid var(--paper);
  border-left: 2px solid var(--paper);
}

.fact {
  min-height: 190px;
  padding: var(--space-m);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 2px solid var(--paper);
  border-bottom: 2px solid var(--paper);
}

.fact strong {
  font-size: clamp(42px, 6vw, 86px);
  line-height: 1;
}

.fact span {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.contact-section {
  padding: var(--space-l) var(--page-pad);
  background: var(--acid);
  border-bottom: 2px solid var(--ink);
}

.contact-section h2 {
  max-width: 1100px;
  margin-top: var(--space-m);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-m);
  margin-top: var(--space-l);
  padding-top: var(--space-m);
  border-top: 2px solid var(--ink);
}

.contact-label {
  margin: 0 0 var(--space-s);
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.contact-grid a,
.contact-grid .contact-text {
  position: relative;
  display: inline-block;
  font-size: var(--type-body);
  font-weight: 900;
  line-height: 1.5;
}

.closing {
  min-height: 76svh;
  padding: var(--space-l) var(--page-pad) var(--space-m);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--paper);
  background: var(--blue);
  overflow: hidden;
}

.closing > p {
  margin: 0;
  font-size: var(--type-display);
  line-height: 0.9;
  font-weight: 950;
  white-space: nowrap;
}

.closing > p:nth-child(2) {
  align-self: flex-end;
  color: var(--acid);
}

.closing-meta {
  margin-top: auto;
  padding-top: var(--space-l);
  display: flex;
  justify-content: space-between;
  gap: var(--space-m);
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

@media (max-width: 920px) {
  :root {
    --page-pad: var(--space-m);
  }

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

  .hero-copy {
    align-self: start;
    padding-top: var(--space-l);
  }

  .hero-mark {
    position: absolute;
    right: -8vw;
    bottom: 7vh;
    width: 42vw;
    opacity: 0.95;
  }

  .hero-index {
    align-self: end;
  }

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

  .about-intro .eyebrow {
    grid-row: auto;
  }

  .work-layout {
    grid-template-columns: 1fr;
  }

  .project-stage {
    position: relative;
    top: 0;
    grid-row: 1;
    max-width: 640px;
    margin: 0 auto var(--space-m);
  }

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

  .capability {
    min-height: 260px;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-m);
  }
}

@media (max-width: 600px) {
  :root {
    --header-height: 64px;
    --type-display: 52px;
    --type-section: 44px;
    --type-project: 31px;
  }

  .site-header nav {
    gap: var(--space-s);
    font-size: 12px;
  }

.hero {
    min-height: 820px;
    padding-top: calc(var(--header-height) + var(--space-m));
  }

  .hero-kicker span:last-child {
    display: none;
  }

  .hero-copy {
    padding-top: var(--space-l);
  }

  .hero h1 span {
    -webkit-text-stroke-width: 1px;
    text-shadow: 3px 3px 0 var(--ink);
  }

  .hero-summary {
    max-width: 88%;
    font-size: var(--type-body);
  }

  .hero-mark {
    width: 190px;
    right: -62px;
    bottom: 30px;
  }

  .mark-word {
    font-size: 28px;
  }

  .section-heading h2,
  .about-intro h2,
  .contact-section h2 {
    font-size: var(--type-section);
  }

.project-item {
    grid-template-columns: 34px 1fr;
    gap: var(--space-s);
  }

  .project-item:focus-visible {
    padding-left: var(--space-s);
    padding-right: var(--space-s);
  }

  .project-item.is-active {
    padding-left: var(--space-s);
    padding-right: var(--space-s);
  }

  .stage-canvas {
    aspect-ratio: 1 / 1.12;
  }

  .stage-stamp {
    width: 62px;
  }

  .stage-qr {
    width: 74px;
    padding: 4px 4px 6px;
  }

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

.fact {
    min-height: 140px;
    padding: var(--space-s);
  }

  .closing {
    min-height: 520px;
  }

.closing > p {
    font-size: var(--type-display);
  }

  .closing-meta {
    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;
  }
}
