:root {
  --paper: #f3f0e7;
  --ink: #101713;
  --muted: #667069;
  --line: rgba(16, 23, 19, 0.18);
  --acid: #bdff2f;
  --forest: #174c38;
  --night: #0c120f;
  --white: #fffef9;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.45;
  overflow-x: hidden;
}

a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }

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

.site-head {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  padding: 0 4vw;
  color: var(--white);
  background: rgba(12, 18, 15, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}
.site-head a { text-decoration: none; }
.brand-mark { font-weight: 800; letter-spacing: -0.035em; }
.site-nav { display: flex; gap: 24px; font-size: 13px; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 0.92fr);
  color: var(--white);
  background: var(--night);
  overflow: hidden;
}
.hero-copy {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: 132px 4vw 7vh;
}
.hero-name {
  margin: 0;
  font-size: clamp(64px, 10.7vw, 174px);
  font-weight: 760;
  line-height: 0.78;
  letter-spacing: -0.075em;
  white-space: nowrap;
}
.hero-name span { display: block; }
.hero-thesis {
  max-width: 650px;
  margin: 48px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 28px 0 0;
  color: #b7c2bb;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-action {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
  color: var(--acid);
  font-weight: 750;
  text-decoration: none;
}
.hero-action::after { content: "↓"; font-size: 25px; }

.hero-visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: var(--acid);
}
.hero-visual img {
  position: absolute;
  inset: 0;
  width: 118%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 36% center;
  filter: saturate(0.8) contrast(1.04);
  transform: translate3d(var(--hero-x, 0), var(--hero-y, 0), 0) scale(1.045);
}
.hero-visual::after {
  content: "Independent build · fictional interface data";
  position: absolute;
  right: 22px;
  bottom: 22px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--acid);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manifesto {
  padding: 108px 4vw;
  border-bottom: 1px solid var(--line);
}
.manifesto-inner {
  width: min(1420px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.72fr 1.4fr;
  gap: 8vw;
  align-items: start;
}
.eyebrow {
  margin: 0;
  color: var(--forest);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.manifesto h2 {
  max-width: 940px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 5.8vw, 88px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.05em;
}
.offer-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1420px, 100%);
  margin: 78px auto 0;
  border-top: 1px solid var(--line);
}
.offer-line div { padding: 22px 24px 0 0; }
.offer-line strong { display: block; font-size: clamp(22px, 2vw, 32px); letter-spacing: -0.04em; }
.offer-line span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }

.work { overflow: hidden; }
.case {
  min-height: 84svh;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  border-bottom: 1px solid var(--line);
}
.case:nth-child(even) { grid-template-columns: 1.22fr 0.78fr; }
.case:nth-child(even) .case-copy { order: 2; }
.case:nth-child(even) .case-media { order: 1; }
.case-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 72px 4vw 58px;
}
.case-index {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.case-title { margin-top: 70px; }
.case-title h2 {
  margin: 0;
  font-size: clamp(44px, 5.4vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.065em;
}
.case-title p {
  max-width: 540px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 21px);
}
.case-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 52px;
}
.case-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 50px;
  padding: 0 18px;
  color: var(--white);
  background: var(--ink);
  text-decoration: none;
  font-weight: 760;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}
.case-link::after { content: "↗"; }
.case-link:hover, .case-link:focus-visible { color: var(--ink); background: var(--acid); transform: translateY(-2px); }
.case-note { max-width: 290px; color: var(--muted); font-size: 12px; }

.case-media {
  position: relative;
  min-height: 640px;
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 76px);
  background: var(--forest);
  overflow: hidden;
}
.case-media.paper { background: #e9e6da; }
.case-media.acid { background: var(--acid); }
.case-media.dark { background: var(--night); }
.case-media img {
  position: relative;
  z-index: 2;
  width: min(1040px, 100%);
  box-shadow: 0 45px 100px rgba(0, 0, 0, 0.28);
  transform: translate3d(0, var(--depth-y, 0), 0);
  transition: transform 120ms linear;
}
.case-media .portrait { width: min(520px, 72%); }
.case-media::before {
  content: "";
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  transform: translate(42%, -24%);
}

.prototype-shell {
  position: relative;
  z-index: 2;
  width: min(1040px, 100%);
  min-height: 570px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 45px 100px rgba(0, 0, 0, 0.25);
  transform: translate3d(0, var(--depth-y, 0), 0);
}
.prototype-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 58px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.prototype-top strong { letter-spacing: -0.02em; }
.prototype-body { padding: 34px; }
.prototype-kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.prototype-kpi div { padding: 20px 20px 20px 0; }
.prototype-kpi strong { display: block; font-size: 36px; letter-spacing: -0.06em; }
.prototype-kpi span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.prototype-list { margin-top: 38px; }
.prototype-row {
  display: grid;
  grid-template-columns: 34px 1.35fr 0.6fr 0.55fr;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.prototype-row b { font-size: 14px; }
.status { width: fit-content; padding: 5px 8px; background: #e7eadf; font-size: 10px; text-transform: uppercase; }
.status.live { color: var(--ink); background: var(--acid); }
.status.review { color: var(--white); background: var(--forest); }
.prototype-source {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 38px;
}
.source-stack { border-top: 1px solid var(--line); }
.source-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.source-item strong { display: block; }
.source-item span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.score-note { max-width: 260px; margin: 24px auto 0; color: var(--muted); font-size: 11px; text-align: center; }
.qa-ring {
  display: grid;
  place-items: center;
  align-self: center;
  width: min(220px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 24px solid #e2e6da;
  border-top-color: var(--acid);
  border-right-color: var(--forest);
  border-radius: 50%;
  text-align: center;
}
.qa-ring strong { font-size: 48px; letter-spacing: -0.07em; }
.qa-ring span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.experiment-detail, .decision-log { margin-top: 52px; border-top: 1px solid var(--line); }
.detail-head { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.detail-grid div { min-height: 132px; padding: 20px 24px 20px 0; border-bottom: 1px solid var(--line); }
.detail-grid div:not(:nth-child(3n + 1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.detail-grid span { display: block; color: var(--muted); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.detail-grid strong { display: block; margin-top: 12px; font-size: 14px; line-height: 1.35; }
.log-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.log-row span, .log-row em { color: var(--muted); font-size: 11px; font-style: normal; text-transform: uppercase; }

.closing {
  min-height: 76svh;
  display: grid;
  align-content: space-between;
  padding: 84px 4vw 42px;
  color: var(--white);
  background: var(--night);
}
.closing h2 {
  max-width: 1120px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(54px, 8.2vw, 126px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.065em;
}
.closing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  align-items: end;
  margin-top: 78px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.closing-grid p { max-width: 650px; margin: 0; color: #b7c2bb; font-size: 18px; }
.contact-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.contact-actions a, .contact-actions button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  color: var(--ink);
  background: var(--acid);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 780;
}
.contact-actions button { color: var(--white); background: transparent; border: 1px solid rgba(255, 255, 255, 0.35); }
.legal-foot { margin-top: 80px; color: #78827c; font-size: 11px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.visible { opacity: 1; transform: none; }
.hero-copy > * { animation: rise 720ms both; }
.hero-copy > :nth-child(2) { animation-delay: 100ms; }
.hero-copy > :nth-child(3) { animation-delay: 190ms; }
.hero-copy > :nth-child(4) { animation-delay: 280ms; }
.hero-visual { animation: reveal-plane 900ms 120ms both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes reveal-plane { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }

.prototype-page { background: var(--white); }
.prototype-page .site-head { position: fixed; color: var(--ink); background: rgba(255, 254, 249, 0.9); backdrop-filter: blur(18px); border-bottom-color: var(--line); }
.prototype-page .site-nav a:last-child { color: var(--forest); font-weight: 750; }
.prototype-hero {
  min-height: 64svh;
  display: grid;
  align-content: end;
  padding: 140px 4vw 64px;
  border-bottom: 1px solid var(--line);
}
.prototype-hero .eyebrow { margin-bottom: 24px; }
.prototype-hero h1 { max-width: 1200px; margin: 0; font-size: clamp(62px, 10vw, 158px); line-height: 0.8; letter-spacing: -0.075em; }
.prototype-hero p { max-width: 680px; margin: 48px 0 0; color: var(--muted); font-size: 20px; }
.full-prototype { padding: 84px 4vw; background: var(--paper); }
.full-prototype .prototype-shell { width: min(1380px, 100%); margin: 0 auto; min-height: 720px; box-shadow: 0 35px 90px rgba(16, 23, 19, 0.14); }
.full-prototype .prototype-body { padding: clamp(28px, 5vw, 74px); }
.prototype-explain { padding: 100px 4vw; }
.prototype-explain-inner { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 8vw; }
.prototype-explain h2 { margin: 0; font-family: var(--serif); font-size: clamp(42px, 5.4vw, 78px); font-weight: 400; line-height: 0.98; letter-spacing: -0.05em; }
.prototype-explain p { margin: 0; color: var(--muted); font-size: 18px; }
.visual-exhibit { display: grid; place-items: center; }
.visual-exhibit img { width: min(1380px, 100%); box-shadow: 0 35px 90px rgba(16, 23, 19, 0.16); }
.mobile-exhibit { min-height: 84svh; display: grid; grid-template-columns: 1fr 0.72fr; gap: 8vw; align-items: center; padding: 100px 8vw; color: var(--white); background: var(--night); }
.mobile-exhibit h2 { max-width: 760px; margin: 28px 0; font-family: var(--serif); font-size: clamp(46px, 6.4vw, 92px); font-weight: 400; line-height: 0.94; letter-spacing: -0.055em; }
.mobile-exhibit p { max-width: 600px; color: #b7c2bb; }
.mobile-exhibit img { width: min(390px, 100%); margin: 0 auto; box-shadow: 0 35px 80px rgba(0, 0, 0, 0.36); }

@media (max-width: 900px) {
  .site-head { padding: 0 20px; }
  .site-nav a:first-child { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { min-height: 72svh; padding: 124px 20px 56px; }
  .hero-name { font-size: 19vw; white-space: normal; }
  .hero-thesis { margin-top: 36px; }
  .hero-visual { min-height: 54svh; }
  .manifesto { padding: 76px 20px; }
  .manifesto-inner, .closing-grid, .prototype-explain-inner { grid-template-columns: 1fr; }
  .manifesto-inner { gap: 28px; }
  .offer-line { grid-template-columns: 1fr 1fr; margin-top: 56px; }
  .offer-line div { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .case, .case:nth-child(even) { grid-template-columns: 1fr; min-height: auto; }
  .case:nth-child(even) .case-copy, .case:nth-child(even) .case-media { order: initial; }
  .case-copy { min-height: 620px; padding: 56px 20px 42px; }
  .case-title { margin-top: 46px; }
  .case-media { min-height: 500px; padding: 28px 20px; }
  .prototype-shell { min-height: 500px; }
  .prototype-body { padding: 24px; }
  .prototype-row { grid-template-columns: 28px 1fr; }
  .prototype-row > :nth-child(n+3) { display: none; }
  .prototype-source { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid div, .detail-grid div:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .log-row { grid-template-columns: 54px 1fr; }
  .log-row em { grid-column: 2; }
  .mobile-exhibit { grid-template-columns: 1fr; padding: 76px 20px; }
  .closing { padding: 72px 20px 34px; }
  .contact-actions { justify-content: flex-start; }
  .prototype-hero, .full-prototype, .prototype-explain { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 540px) {
  .site-nav { gap: 14px; font-size: 12px; }
  .hero-copy { min-height: 76svh; }
  .hero-name { font-size: 20.5vw; }
  .hero-thesis { font-size: 27px; }
  .offer-line { grid-template-columns: 1fr; }
  .case-copy { min-height: 560px; }
  .case-media { min-height: 420px; }
  .case-media .portrait { width: 84%; }
  .prototype-kpi { grid-template-columns: 1fr; }
  .prototype-kpi div { border-bottom: 1px solid var(--line); }
  .closing h2 { font-size: 16vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-visual img, .case-media img, .prototype-shell { transform: none !important; }
}
