* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --paper: #F4F3EE;
  --paper-2: #ECEBE4;
  --ink: #0a0a0a;
  --ink-2: #141414;
  --grey-900: #242424;
  --grey-700: #434343;
  --grey-500: #6b6b6b;
  --grey-300: #a2a2a2;
  --grey-200: #c8c6c0;
  --warm: #B1ADA1;
  --accent: #C15F3C;
  --accent-dim: rgba(193, 95, 60, 0.65);
  --line: rgba(10, 10, 10, 0.12);
  --line-strong: rgba(10, 10, 10, 0.9);
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(20,20,20,0.06), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(20,20,20,0.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.pixel {
  font-family: 'Press Start 2P', ui-monospace, monospace;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: never;
}
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.brand {
  font-family: 'Press Start 2P', ui-monospace, monospace;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: never;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.2;
  vertical-align: baseline;
}
.brand .prompt { margin-right: 0.12em; }
p .brand, .quote-block .brand, .sub .brand { font-size: 0.78em; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(244, 243, 239, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.nav-logo {
  font-size: 11px;
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo .dot { width: 8px; height: 8px; background: var(--ink); display: inline-block; }
.nav-links { display: flex; gap: 28px; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.nav-links a { color: var(--grey-700); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.current { color: var(--ink); }
.nav-cta {
  border: 1px solid var(--ink);
  padding: 10px 16px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--ink);
  padding: 6px 8px;
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 14px; height: 14px; display: block; }
.nav-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  padding: 12px 28px 20px;
  flex-direction: column;
  z-index: 20;
}
.nav-drawer a {
  padding: 12px 0;
  font-size: 13px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line);
  color: var(--grey-900);
  transition: color 0.2s ease;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { color: var(--accent); }
.nav.open .nav-drawer { display: flex; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
}

.hero {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.hero-meta {
  display: flex; gap: 16px; align-items: center;
  font-size: 10px; letter-spacing: 0.1em;
  color: var(--grey-500);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-meta .bar { width: 28px; height: 1px; background: var(--grey-500); }

.logo-xl {
  font-size: clamp(22px, 6.8vw, 92px);
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
}
@media (max-width: 560px) {
  .logo-xl { font-size: 22px; letter-spacing: 0; }
  .logo-xl .ai-squeeze .i { margin-left: -0.58em; margin-right: -0.36em; }
}
.logo-xl .prompt { margin-right: 0.12em; }
.ai-squeeze { display: inline; color: var(--accent); }
.ai-squeeze .i { display: inline-block; margin-left: -0.62em; margin-right: -0.40em; color: var(--accent-dim); }
.word-gap { display: inline-block; width: 0.35em; }

.cursor {
  display: inline-block;
  width: 0.55em; height: 0.82em;
  vertical-align: baseline;
  background: currentColor;
  margin-left: 0.14em;
  position: relative; top: -0.08em;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.gp { color: var(--accent); }
.g1 { color: #8e8e8e; }
.g2 { color: #7a7a7a; }
.g3 { color: #666; }
.g4 { color: #525252; }
.g5 { color: #3f3f3f; }
.g6 { color: #2c2c2c; }
.g7 { color: #1c1c1c; }
.g8 { color: var(--ink); }

.hero-tag { margin-top: 26px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tag {
  font-size: 12px; letter-spacing: 0.12em; color: var(--grey-500);
  font-family: 'Press Start 2P', monospace;
  -webkit-font-smoothing: none;
  width: 24ch; white-space: pre;
}
.tag::after {
  content: '█'; display: inline-block; margin-left: 0.1em;
  animation: blink-tag 0.9s steps(1) infinite;
  transform: scaleX(0.55) scaleY(0.92);
  transform-origin: left center;
  color: var(--ink);
}
@keyframes blink-tag { 50% { opacity: 0; } }

.hero-lede {
  margin-top: 32px;
  max-width: 640px;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--grey-900);
  font-weight: 300;
}
.hero-lede strong { font-weight: 500; color: var(--ink); }

.hero-cta-row { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  padding: 14px 22px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn:hover { transform: translateY(-1px); background: var(--grey-900); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arrow { display: inline-block; transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--grey-500);
  margin-bottom: 20px;
}
.eyebrow .num { color: var(--accent); font-weight: 500; }
.eyebrow .bar { width: 20px; height: 1px; background: var(--grey-500); }

.h2 {
  font-size: clamp(26px, 4.2vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 400;
  margin-bottom: 14px;
  max-width: 20ch;
}
.sub { font-size: clamp(14px, 1.3vw, 16px); color: var(--grey-700); max-width: 62ch; line-height: 1.6; }

.what-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.quote-block { border-left: 1px solid var(--ink); padding-left: 24px; max-width: 52ch; }
.quote-block p + p { margin-top: 14px; }
.quote-block p { font-size: clamp(15px, 1.4vw, 17px); line-height: 1.55; color: var(--ink-2); }
@media (max-width: 860px) { .what-grid { grid-template-columns: 1fr; gap: 28px; } }

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  margin-top: 36px;
}
.service {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 26px 24px 30px;
  background: var(--paper);
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}
.service::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10,10,10,0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
@media (hover: hover) { .service:hover::before { opacity: 1; } }
.service .num {
  font-size: 10px; letter-spacing: 0.1em; color: var(--grey-500);
  margin-bottom: 18px;
  font-family: 'Press Start 2P', monospace;
  -webkit-font-smoothing: none;
}
.service h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.005em; margin-bottom: 8px; }
.service p { font-size: 13px; line-height: 1.55; color: var(--grey-700); }
.service ul { margin-top: 14px; list-style: none; font-size: 12px; color: var(--grey-700); }
.service ul li { padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.service ul li::before { content: '↳'; margin-right: 10px; color: var(--grey-500); flex-shrink: 0; }
.service ul li span:last-child { margin-left: auto; color: var(--grey-500); padding-left: 12px; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } }

.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: 28px; }
.work-list { border-top: 1px solid var(--ink); }
.work-row {
  display: grid;
  grid-template-columns: 44px 52px 1.2fr 1fr 140px 36px;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: padding 0.3s ease, background 0.3s ease;
  cursor: pointer;
}
.work-row .thumb {
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  background: var(--paper);
  transition: background 0.25s ease, color 0.25s ease;
}
.work-row .thumb svg { width: 28px; height: 28px; display: block; }
@media (hover: hover) {
  .work-row:hover .thumb { background: var(--ink); color: var(--paper); }
  .work-row:hover { padding-left: 18px; background: linear-gradient(90deg, rgba(10,10,10,0.03), transparent); }
  .work-row:hover .arrow-cell { color: var(--ink); transform: translateX(4px); }
}
.work-row .idx { font-family: 'Press Start 2P', monospace; -webkit-font-smoothing: none; font-size: 10px; color: var(--grey-500); }
.work-row .name { font-size: 18px; font-weight: 500; letter-spacing: -0.005em; color: var(--accent); }
.work-row .desc { font-size: 13px; color: var(--grey-700); }
.work-row .tag-sm { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-500); }
.work-row .arrow-cell { text-align: right; color: var(--grey-500); transition: color 0.2s ease, transform 0.3s ease; }
@media (max-width: 760px) {
  .work-row {
    grid-template-columns: 44px 1fr 28px;
    grid-template-areas:
      "thumb name arrow"
      "thumb desc arrow"
      "thumb tag  arrow";
    gap: 6px 14px; padding: 20px 0;
  }
  .work-row .idx { display: none; }
  .work-row .thumb { grid-area: thumb; align-self: start; width: 40px; height: 40px; }
  .work-row .thumb svg { width: 24px; height: 24px; }
  .work-row .name { grid-area: name; font-size: 17px; }
  .work-row .desc { grid-area: desc; }
  .work-row .tag-sm { grid-area: tag; }
  .work-row .arrow-cell { grid-area: arrow; }
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 36px;
  padding-top: 32px;
  position: relative;
}
.process::before { content: ''; position: absolute; top: 11px; left: 0; right: 0; height: 1px; background: var(--ink); }
.step { position: relative; }
.step::before { content: ''; position: absolute; top: -26px; left: 0; width: 10px; height: 10px; background: var(--accent); }
.step .n { font-family: 'Press Start 2P', monospace; -webkit-font-smoothing: none; font-size: 10px; letter-spacing: 0.1em; color: var(--grey-500); margin-bottom: 12px; }
.step h4 { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--grey-700); line-height: 1.55; }
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); row-gap: 36px; } }
@media (max-width: 520px) {
  .process { grid-template-columns: 1fr; row-gap: 28px; padding-top: 0; }
  .process::before { display: none; }
  .step { padding-top: 18px; border-top: 1px solid var(--ink); }
  .step::before { display: none; }
}

.cta {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--ink) 0%, var(--grey-900) 100%);
  color: var(--paper);
  border-bottom: 1px solid var(--ink);
  text-align: center;
}
.cta .eyebrow { color: var(--grey-300); }
.cta .eyebrow .num { color: var(--paper); }
.cta .eyebrow .bar { background: var(--grey-300); }
.cta h2 { font-size: clamp(28px, 4.8vw, 56px); line-height: 1.1; letter-spacing: -0.01em; font-weight: 400; max-width: 18ch; margin: 0 auto 20px; }
.cta p { color: var(--grey-300); max-width: 48ch; margin: 0 auto 28px; font-size: 15px; line-height: 1.5; }
.cta .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta .btn:hover { background: transparent; color: var(--paper); }
.cta .btn.ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.cta .btn.ghost:hover { background: var(--paper); color: var(--ink); }

footer { padding: 44px 0 26px; background: var(--paper); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.foot-grid h5 { font-family: 'Press Start 2P', monospace; -webkit-font-smoothing: none; font-size: 9px; letter-spacing: 0.1em; color: var(--grey-500); margin-bottom: 12px; }
.foot-grid a, .foot-grid li { font-size: 13px; color: var(--grey-900); padding: 3px 0; display: block; list-style: none; transition: color 0.2s ease; }
.foot-grid a:hover { color: var(--ink); }
.foot-brand .pixel-logo { font-size: 16px; letter-spacing: 0.02em; margin-bottom: 12px; }
.foot-brand p { font-size: 13px; color: var(--grey-700); max-width: 34ch; line-height: 1.55; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; flex-wrap: wrap; gap: 16px; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-500); }
.foot-bottom .pixel { font-size: 9px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.services .reveal:nth-child(1), .process .reveal:nth-child(1), .work-list .reveal:nth-child(1) { transition-delay: 0ms; }
.services .reveal:nth-child(2), .process .reveal:nth-child(2), .work-list .reveal:nth-child(2) { transition-delay: 90ms; }
.services .reveal:nth-child(3), .process .reveal:nth-child(3), .work-list .reveal:nth-child(3) { transition-delay: 180ms; }
.process .reveal:nth-child(4), .work-list .reveal:nth-child(4) { transition-delay: 270ms; }
.work-list .reveal:nth-child(5) { transition-delay: 360ms; }

@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .nav-inner { padding: 14px 0; }
  .nav-cta { display: none; }
  .nav-logo { font-size: 10px; }
  .nav-logo .dot { width: 6px; height: 6px; }
  .hero { padding: 44px 0 40px; }
  .hero-meta { font-size: 8px; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
  .hero-meta .bar { width: 16px; }
  .hero-tag { margin-top: 20px; }
  .hero-lede { margin-top: 24px; font-size: 15px; max-width: 100%; }
  .hero-cta-row { margin-top: 20px; }
  .hero-cta-row .btn { font-size: 10px; padding: 12px 18px; }
  .tag { font-size: 10px; width: 22ch; }
  section { padding: 52px 0; }
  .h2 { font-size: 26px; max-width: 100%; }
  .sub { font-size: 14px; }
  .eyebrow { font-size: 9px; gap: 10px; margin-bottom: 16px; }
  .cta { padding: 60px 0; }
  footer { padding: 32px 0 22px; }
  .foot-grid { gap: 24px; padding-bottom: 22px; }
  .services { margin-top: 26px; }
  .service { padding: 22px 20px 26px; }
  .process { margin-top: 26px; gap: 22px; }
  .work-head { margin-bottom: 20px; gap: 16px; }
}

/* ---------- Case study page (work/*) ---------- */
.case-hero { padding: 80px 0 56px; border-bottom: 1px solid var(--line); }
.case-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Press Start 2P', monospace;
  -webkit-font-smoothing: none;
  font-size: 10px;
  color: var(--grey-500);
  margin-bottom: 28px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.case-back:hover { color: var(--accent); transform: translateX(-2px); }
.case-title {
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  max-width: 18ch;
  margin-bottom: 20px;
  color: var(--accent);
}
.case-lede {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--grey-900);
  max-width: 58ch;
}
.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin: 40px 0 0;
}
.case-meta > div { padding: 16px 0; border-right: 1px solid var(--line); }
.case-meta > div:last-child { border-right: none; }
.case-meta h6 {
  font-family: 'Press Start 2P', monospace;
  -webkit-font-smoothing: none;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--grey-500);
  margin-bottom: 8px;
}
.case-meta p { font-size: 14px; color: var(--ink); }
@media (max-width: 640px) {
  .case-meta { grid-template-columns: repeat(2, 1fr); }
  .case-meta > div { border-right: none; border-bottom: 1px solid var(--line); padding: 14px 0; }
  .case-meta > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .case-meta > div:nth-last-child(-n+2) { border-bottom: none; }
}

.case-section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.case-section h3 {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  max-width: 24ch;
}
.case-body { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; align-items: start; }
.case-body p + p { margin-top: 14px; }
.case-body p { font-size: 15px; line-height: 1.65; color: var(--grey-900); }
@media (max-width: 860px) { .case-body { grid-template-columns: 1fr; gap: 24px; } }

.case-placeholder {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  display: flex; align-items: center; justify-content: center;
  margin-top: 32px;
  position: relative;
  overflow: hidden;
}
.case-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0, transparent 18px, rgba(10,10,10,0.035) 18px, rgba(10,10,10,0.035) 19px);
  pointer-events: none;
}
.case-placeholder .ph-mark {
  font-family: 'Press Start 2P', monospace;
  -webkit-font-smoothing: none;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--grey-500);
  background: var(--paper);
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  position: relative;
  z-index: 1;
}
