:root {
  --black: #000;
  --ink: #0d0d0d;
  --graphite: #161616;
  --paper: #eae7e0;
  --paper-ink: #11110f;
  --smoke: #aaa79f;
  --muted: #77746d;
  --acid: #d7f343;
  --line: rgba(255,255,255,.16);
  --line-dark: rgba(0,0,0,.18);
  --display: "Bebas Neue", Impact, sans-serif;
  --sans: "Archivo", Arial, sans-serif;
  --mono: "Space Mono", monospace;
  --pad: clamp(20px, 4vw, 64px);
  --max: 1440px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--black); }
body {
  background: var(--black);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
::selection { background: var(--acid); color: var(--black); }
img { display: block; width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
.shell { max-width: var(--max); margin: 0 auto; }
.section { padding: clamp(84px, 10vw, 156px) var(--pad); }
.paper { background: var(--paper); color: var(--paper-ink); }
.acid { color: var(--acid); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 18px/1.4 var(--mono);
  letter-spacing: .075em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.eyebrow.acid { color: var(--acid); }
.eyebrow.center { justify-content: center; }
.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .84;
  letter-spacing: .002em;
}
.lede { font-size: clamp(22px, 1.9vw, 31px); line-height: 1.45; letter-spacing: -.02em; }
.body-copy { max-width: 60ch; color: #c6c3bd; font-size: clamp(19px, 1.35vw, 22px); line-height: 1.62; }
.paper .body-copy { color: #3c3a36; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
  align-items: end;
  gap: 48px;
  margin-bottom: clamp(44px, 6vw, 84px);
}
.section-title { font-size: clamp(60px, 9vw, 144px); margin-top: 18px; }
.rule { height: 1px; background: var(--line); }
.paper .rule { background: var(--line-dark); }

.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 10000; background: var(--acid); }
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--pad);
  color: white;
  mix-blend-mode: difference;
  font: 700 16px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nav-brand { font-family: var(--sans); font-size: 18px; letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--acid); }

.hero {
  position: relative;
  min-height: 100svh;
  padding: 96px var(--pad) 40px;
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(300px, .68fr);
  align-items: end;
  gap: clamp(26px, 4vw, 64px);
  width: 100%;
}
.hero-copy { position: relative; z-index: 3; padding-bottom: 2vh; }
.hero h1 { font-size: clamp(78px, 9.5vw, 150px); max-width: none; margin: 24px 0 34px; }
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 .marker {
  color: var(--acid);
  width: auto;
  max-width: none;
  padding: 0;
  background: transparent;
  transform: none;
}
.hero-bottom { display: grid; grid-template-columns: minmax(250px, 520px) auto; gap: 26px; align-items: end; }
.hero-bottom p { color: #cecbc4; font-size: clamp(20px, 1.45vw, 24px); line-height: 1.55; max-width: 48ch; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 25px;
  border: 1px solid var(--line);
  text-decoration: none;
  font: 700 18px/1 var(--mono);
  letter-spacing: .055em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--acid); color: var(--black); border-color: var(--acid); }
.button-secondary { background: rgba(0,0,0,.25); color: white; }
.button .arrow { font-size: 16px; }
.hero-photo {
  position: relative;
  height: min(76svh, 900px);
  min-height: 540px;
  overflow: hidden;
  background: #ddd;
  border: 1px solid var(--line);
}
.hero-photo img { height: 100%; object-fit: cover; object-position: center 43%; filter: grayscale(1) contrast(1.18); }
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.82));
}
.hero-photo .scan {
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: .22;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,.3) 3px 4px);
}
.photo-meta {
  position: absolute;
  z-index: 4;
  inset: auto 18px 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  font: 700 16px/1.5 var(--mono);
  letter-spacing: .055em;
  text-transform: uppercase;
}
.ticks { position: absolute; inset: 14px; z-index: 6; pointer-events: none; }
.ticks i { position: absolute; width: 13px; height: 13px; border: 1px solid var(--acid); }
.ticks i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.ticks i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.ticks i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.ticks i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hero-index {
  position: absolute;
  z-index: 2;
  top: 116px;
  right: 1.5vw;
  writing-mode: vertical-rl;
  font: 700 15px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.marquee {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  overflow: hidden;
  padding: 18px 0 18px var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee-label {
  padding-right: clamp(28px, 3vw, 48px);
  border-right: 1px solid var(--line);
  color: var(--acid);
  font: 700 15px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-window {
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-set {
  display: flex;
  align-items: center;
  gap: clamp(44px, 5vw, 80px);
  padding-right: clamp(44px, 5vw, 80px);
}
.marquee-set img {
  flex: none;
  width: auto;
  height: clamp(30px, 2.7vw, 42px);
  max-width: 180px;
  object-fit: contain;
  opacity: .82;
  filter: grayscale(1) contrast(7) brightness(.8);
  mix-blend-mode: screen;
}
@keyframes marquee { to { transform: translateX(-50%); } }

.thesis-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.thesis-title { font-size: clamp(70px, 10vw, 160px); }
.thesis-copy { padding-top: 18px; }
.thesis-copy .lede { max-width: 26ch; }
.failure-list { margin-top: 48px; border-top: 1px solid var(--line-dark); }
.failure {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-dark);
}
.failure b { font: 700 16px/1.5 var(--mono); color: #74716b; }
.failure p { font-size: 21px; line-height: 1.5; font-weight: 650; letter-spacing: -.02em; }
.manifesto {
  margin-top: clamp(70px, 9vw, 130px);
  border: 1px solid var(--line-dark);
  padding: clamp(24px, 5vw, 70px);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: end;
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  content: "RBY";
  position: absolute;
  right: -18px;
  bottom: -56px;
  color: rgba(0,0,0,.05);
  font: 400 clamp(180px, 28vw, 430px)/.8 var(--display);
}
.manifesto-quote { position: relative; z-index: 2; font-size: clamp(48px, 7vw, 108px); }
.manifesto .body-copy { position: relative; z-index: 2; }

.services { background: var(--black); }
.service-stack { border-top: 1px solid var(--line); }
.service {
  display: grid;
  grid-template-columns: 74px minmax(220px, .8fr) minmax(280px, 1.15fr) 34px;
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
  padding: clamp(34px, 5vw, 68px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: color .25s ease, padding .25s ease;
}
.service::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--acid);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .3s ease;
}
.service:hover { color: var(--black); padding-left: 18px; padding-right: 18px; }
.service:hover::after { transform: scaleY(1); }
.service > * { position: relative; z-index: 2; }
.service-no { font: 700 18px/1 var(--mono); color: var(--acid); padding-top: 8px; }
.service:hover .service-no, .service:hover .service-label { color: var(--black); }
.service-name { font-size: clamp(50px, 6vw, 96px); }
.service-label { margin-top: 12px; color: var(--acid); }
.service-content h3 { font-size: clamp(25px, 2.2vw, 34px); line-height: 1.28; letter-spacing: -.03em; max-width: 34ch; }
.service-content p { margin-top: 18px; color: #aaa79f; font-size: 20px; line-height: 1.6; max-width: 58ch; }
.service:hover .service-content p { color: rgba(0,0,0,.72); }
.service-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.tag {
  border: 1px solid var(--line);
  padding: 10px 13px;
  font: 700 16px/1.2 var(--mono);
  letter-spacing: .045em;
  text-transform: uppercase;
}
.service:hover .tag { border-color: rgba(0,0,0,.24); }
.service-arrow { font-size: 27px; line-height: 1; padding-top: 5px; }
.service-link { position: absolute; inset: 0; z-index: 4; }

.brain { overflow: hidden; }
.brain-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.brain-step {
  min-height: 340px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.brain-step::before {
  content: attr(data-step);
  position: absolute;
  right: -8px;
  bottom: -26px;
  color: rgba(255,255,255,.055);
  font: 400 140px/1 var(--display);
}
.brain-step:nth-child(3) { background: var(--acid); color: var(--black); }
.brain-step:nth-child(3)::before { color: rgba(0,0,0,.09); }
.brain-step .mini { font: 700 16px/1.45 var(--mono); letter-spacing: .035em; text-transform: uppercase; color: var(--smoke); }
.brain-step:nth-child(3) .mini { color: rgba(0,0,0,.55); }
.brain-step h3 { font-size: clamp(28px, 3vw, 46px); position: relative; z-index: 2; margin-bottom: 18px; }
.brain-step p { font-size: 20px; line-height: 1.55; color: #aaa79f; max-width: 25ch; position: relative; z-index: 2; }
.brain-step:nth-child(3) p { color: rgba(0,0,0,.72); }
.loop-line {
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px solid var(--acid);
  color: var(--acid);
  font: 700 16px/1.5 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.proof {
  min-height: 430px;
  padding: clamp(24px, 3vw, 42px);
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.proof-no { font: 700 16px/1 var(--mono); color: #77736d; }
.proof h3 { font-size: clamp(38px, 4vw, 66px); margin-top: 30px; }
.proof p { color: #4e4b46; font-size: 20px; line-height: 1.55; max-width: 32ch; margin-top: auto; padding-top: 32px; }

.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; min-height: 760px; }
.about-image { position: relative; overflow: hidden; min-height: 640px; background: #d8d3c9; }
.about-image img { height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.2); }
.about-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.58)); }
.about-caption { position: absolute; z-index: 3; left: 20px; bottom: 18px; font: 700 16px/1.55 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.about-copy {
  padding: clamp(60px, 8vw, 120px) var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--graphite);
}
.about-title { font-size: clamp(64px, 9vw, 144px); margin: 22px 0 40px; }
.about-copy .lede { max-width: 29ch; }
.about-copy .body-copy { margin-top: 24px; }
.handnote {
  align-self: flex-end;
  max-width: 430px;
  margin-top: 70px;
  padding: 22px;
  background: var(--acid);
  color: var(--black);
  transform: rotate(-2deg);
  font: 700 clamp(19px, 2vw, 28px)/1.2 var(--mono);
  letter-spacing: -.04em;
}

.fit-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-dark); }
.fit-col { padding: clamp(26px, 4vw, 58px); }
.fit-col + .fit-col { border-left: 1px solid var(--line-dark); }
.fit-col h3 { font-size: clamp(46px, 5vw, 76px); margin: 14px 0 34px; }
.fit-list { list-style: none; }
.fit-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line-dark);
}
.fit-list li::before { content: "+"; font: 700 15px/1.55 var(--mono); }
.fit-col.no .fit-list li::before { content: "—"; color: #87837c; }

.contact { position: relative; overflow: hidden; text-align: center; }
.contact::before {
  content: "LET'S BUILD";
  position: absolute;
  inset: auto 0 -4vw;
  color: rgba(255,255,255,.045);
  font: 400 23vw/.7 var(--display);
  white-space: nowrap;
}
.contact-inner { position: relative; z-index: 2; max-width: 1050px; margin: 0 auto; }
.contact-title { font-size: clamp(76px, 13vw, 210px); margin: 24px auto 30px; }
.contact .lede { max-width: 34ch; margin: 0 auto; color: #c4c1ba; }
.route-picker { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 38px 0 22px; }
.route {
  cursor: pointer;
  border: 1px solid var(--line);
  background: transparent;
  color: white;
  min-height: 58px;
  padding: 14px 20px;
  font: 700 18px/1 var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.route.active, .route:hover { background: var(--acid); color: var(--black); border-color: var(--acid); }
.contact-button { min-width: min(100%, 420px); min-height: 70px; margin-top: 12px; }
.contact-note { margin-top: 22px; color: var(--muted); font: 400 16px/1.55 var(--mono); text-transform: uppercase; letter-spacing: .035em; }
.route-note { max-width: 50ch; margin: 0 auto 28px; color: #c4c1ba; font-size: clamp(17px, 1.25vw, 20px); line-height: 1.55; min-height: 4.6em; }
.contact-alt { margin-top: 30px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.contact-alt a, .footer a { color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.contact-alt a:hover, .footer a:hover { color: var(--acid); }
.footer {
  padding: 22px var(--pad);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #8d8a83;
  font: 700 16px/1.5 var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible, .static .reveal { opacity: 1; transform: none; }

/* ---- Added for the multi-page site ---- */
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }
.paper :focus-visible { outline-color: var(--black); }
.section.tight { padding-top: clamp(48px, 6vw, 84px); padding-bottom: clamp(48px, 6vw, 84px); }
.paper .tag { border-color: var(--line-dark); }

/* Nav: toggle, current page, mobile panel */
.nav-toggle {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  cursor: pointer;
  font: 700 14px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nav a[aria-current="page"] {
  color: var(--acid);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

/* Compact page header (hero without photo) */
.hero-compact { min-height: auto; padding-top: 150px; padding-bottom: clamp(56px, 7vw, 100px); }
.hero-compact .hero-grid { grid-template-columns: 1fr; }
.hero-compact .lede { max-width: 34ch; color: #cecbc4; }

/* Home: proof strip */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}
.stat {
  padding: clamp(24px, 3vw, 44px);
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.stat-num { font-size: clamp(52px, 5.6vw, 96px); }
.stat-cap {
  margin-top: 14px;
  color: #4e4b46;
  font: 700 16px/1.45 var(--mono);
  letter-spacing: .045em;
  text-transform: uppercase;
}

/* Home: four doors */
.door-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}
.door {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: clamp(26px, 3.5vw, 52px);
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
  text-decoration: none;
}
.door::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--acid);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .3s ease;
}
.door:hover::after, .door:focus-visible::after { transform: scaleY(1); }
.door > * { position: relative; z-index: 2; }
.door-no { font: 700 18px/1 var(--mono); color: #74716b; }
.door:hover .door-no, .door:focus-visible .door-no { color: var(--black); }
.door-name { font-size: clamp(50px, 6vw, 96px); margin-top: 26px; }
.door-tagline { margin-top: 14px; font-size: clamp(25px, 2.2vw, 34px); line-height: 1.28; letter-spacing: -.03em; }
.door-text { margin-top: 14px; color: #4e4b46; font-size: 20px; line-height: 1.55; max-width: 40ch; }
.door:hover .door-text, .door:focus-visible .door-text { color: rgba(0,0,0,.72); }
.door-link { margin-top: auto; padding-top: 30px; font: 700 16px/1.2 var(--mono); letter-spacing: .055em; text-transform: uppercase; }

/* Closing CTA band */
.cta-band .shell {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}
.cta-title { font-size: clamp(52px, 7vw, 112px); }
.cta-band .lede { margin-top: 22px; max-width: 34ch; }
.cta-band .actions { margin-top: 0; }
.cta-alt { grid-column: 1 / -1; color: var(--muted); font-size: 16px; line-height: 1.6; }
.cta-alt a { color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.cta-alt a:hover { color: var(--acid); }
.paper .cta-alt { color: #4e4b46; }
.paper .cta-alt a:hover { color: var(--black); }

/* Work page */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px, 4vw, 56px); }
.filters:empty { display: none; }
.filter {
  cursor: pointer;
  min-height: 50px;
  padding: 12px 18px;
  background: transparent;
  color: var(--paper-ink);
  border: 1px solid var(--line-dark);
  font: 700 16px/1 var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.filter:hover { background: var(--acid); border-color: var(--acid); color: var(--black); }
.filter[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: var(--acid); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(28px, 3.5vw, 52px) clamp(18px, 2.5vw, 32px);
  align-items: start;
}
.work-media { position: relative; width: 100%; overflow: hidden; background: var(--black); border: 1px solid var(--line-dark); }
.work-media.r-9-16 { aspect-ratio: 9 / 16; }
.work-media.r-4-5 { aspect-ratio: 4 / 5; }
.work-media img, .work-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-media.placeholder {
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--ink);
  border: 1px dashed var(--muted);
  color: var(--smoke);
  text-align: center;
  font: 700 15px/1.4 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.work-brand { margin-top: 14px; color: #74716b; font: 700 14px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.work-title { margin-top: 6px; font-size: 21px; line-height: 1.3; font-weight: 650; letter-spacing: -.02em; }
.work-line { margin-top: 8px; color: #3c3a36; font-size: 17px; line-height: 1.5; }
.work-line-label { display: block; color: #74716b; font: 700 13px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.work-empty { color: #4e4b46; font: 700 16px/1.5 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.paper noscript .body-copy a { color: inherit; }

/* AI page: repo cards */
.repo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.repo {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 210px;
  padding: clamp(22px, 2.5vw, 32px);
  border: 1px solid var(--line);
  overflow: hidden;
  text-decoration: none;
}
.repo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--acid);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .3s ease;
}
.repo:hover::after, .repo:focus-visible::after { transform: scaleY(1); }
.repo > * { position: relative; z-index: 2; }
.repo-name { color: var(--acid); font: 700 18px/1.3 var(--mono); letter-spacing: .02em; overflow-wrap: anywhere; }
.repo-desc { color: #aaa79f; font-size: 18px; line-height: 1.55; }
.repo-arrow { margin-top: auto; font-size: 24px; line-height: 1; }
.repo:hover .repo-name, .repo:hover .repo-desc, .repo:focus-visible .repo-name, .repo:focus-visible .repo-desc { color: var(--black); }
.repo-actions { margin-top: clamp(32px, 4vw, 52px); }

/* Resources page */
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.res-card { display: flex; flex-direction: column; gap: 16px; min-height: 340px; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line-dark); }
.res-meta { display: flex; align-items: center; gap: 12px; }
.badge { padding: 7px 11px; border: 1px solid var(--black); font: 700 14px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.badge-free { background: var(--acid); color: var(--black); }
.badge-paid { background: var(--black); color: var(--paper); }
.res-format { color: #74716b; font: 700 14px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.res-title { font-size: clamp(38px, 3.4vw, 54px); line-height: .9; }
.res-desc { color: #4e4b46; font-size: 19px; line-height: 1.55; }
.res-price { font: 700 18px/1.3 var(--mono); letter-spacing: .04em; }
.res-action { margin-top: auto; align-self: flex-start; }
.button:disabled { cursor: not-allowed; background: transparent; color: var(--muted); border: 1px dashed var(--muted); }
.button:disabled:hover { transform: none; }

.hero h1.h1-long { font-size: clamp(54px, 7vw, 112px); }

@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .hero-bottom { grid-template-columns: 1fr; }
  .brain-map { grid-template-columns: repeat(3, 1fr); }
  .brain-step:nth-child(4), .brain-step:nth-child(5) { grid-column: span 1; }
  .service { grid-template-columns: 50px .85fr 1.15fr 30px; }
}
@media (max-width: 800px) {
  body { font-size: 19px; }
  .nav { font-size: 14px; }
  .eyebrow { font-size: 16px; line-height: 1.45; letter-spacing: .055em; }
  .eyebrow::before { width: 26px; }
  .button { min-height: 58px; font-size: 15px; }
  .photo-meta { font-size: 14px; }
  .service-no { font-size: 15px; }
  .tag { font-size: 14px; line-height: 1.25; }
  .brain-step .mini { font-size: 14px; }
  .brain-step p { font-size: 18px; }
  .proof-no, .about-caption, .contact-note, .footer { font-size: 14px; }
  .route { min-height: 54px; font-size: 15px; }
  .hero { min-height: auto; padding-top: 108px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { order: 1; }
  .hero-photo { order: 2; height: 68svh; min-height: 500px; }
  .hero h1 { font-size: clamp(64px, 18vw, 110px); }
  .hero-index { display: none; }
  .marquee { grid-template-columns: 1fr; gap: 16px; padding: 16px 0 18px; }
  .marquee-label { padding: 0 var(--pad); border-right: 0; font-size: 13px; }
  .marquee-set img { height: 30px; }
  .section-head, .thesis-grid, .manifesto, .about-grid { grid-template-columns: 1fr; }
  .section-head { gap: 24px; }
  .manifesto { gap: 28px; }
  .service { grid-template-columns: 38px 1fr 28px; }
  .service-content { grid-column: 2 / -1; }
  .brain-map { grid-template-columns: 1fr 1fr; }
  .brain-step { min-height: 240px; }
  .brain-step:nth-child(5) { grid-column: 1 / -1; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof { min-height: 240px; }
  .about-copy { min-height: 680px; }
  .fit-grid { grid-template-columns: 1fr; }
  .fit-col + .fit-col { border-left: 0; border-top: 1px solid var(--line-dark); }
}
@media (max-width: 540px) {
  :root { --pad: 18px; }
  .nav { padding-top: 15px; }
  .nav-cta { font-size: 13px; }
  .eyebrow { font-size: 16px; }
  .hero h1 { margin-top: 20px; }
  .hero-photo { min-height: 450px; height: 61svh; }
  .actions { display: grid; }
  .button { width: 100%; }
  .section { padding-top: 78px; padding-bottom: 78px; }
  .section-title, .thesis-title, .about-title { font-size: clamp(58px, 19vw, 95px); }
  .service { grid-template-columns: 30px 1fr 22px; gap: 14px; }
  .service:hover { padding-left: 8px; padding-right: 8px; }
  .service-name { font-size: 50px; }
  .brain-map { grid-template-columns: 1fr; }
  .brain-step:nth-child(5) { grid-column: auto; }
  .loop-line { display: block; }
  .loop-line span:last-child { display: block; margin-top: 8px; }
  .about-image { min-height: 520px; }
  .about-copy { min-height: 0; }
  .footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button, .service, .service::after { transition: none; }
}

/* ---- Added for the multi-page site: responsive ---- */
@media (max-width: 1000px) {
  .nav { gap: 12px; flex-wrap: wrap; }
  .nav-links { flex-wrap: wrap; gap: 8px 18px; width: 100%; }
  .js .nav { flex-wrap: nowrap; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--pad) 24px;
    background: var(--black);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    max-height: calc(100svh - 70px);
    overflow-y: auto;
  }
  .js .nav.open { mix-blend-mode: normal; background: var(--black); }
  .js .nav.open .nav-links { display: flex; }
  .js .nav-links a { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .js .nav-links .nav-cta {
    margin-top: 20px;
    padding: 18px 16px;
    border: 1px solid var(--acid);
    color: var(--acid);
    text-align: center;
    font-size: 15px;
  }
}
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 span { white-space: normal; }
  .hero h1.h1-long { font-size: clamp(40px, 13vw, 80px); }
  .hero-compact { padding-top: 108px; }
  .stats, .door-grid { grid-template-columns: 1fr; }
  .stat-cap { font-size: 14px; }
  .door { min-height: 0; }
  .door-link { padding-top: 24px; }
  .cta-band .shell { grid-template-columns: 1fr; align-items: start; }
  .filter { min-height: 46px; font-size: 14px; }
}
@media (max-width: 540px) {
  .repo-grid, .res-grid { grid-template-columns: 1fr; }
  .res-action { align-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .door::after, .repo::after { transition: none; }
}

/* AI page: plain-language revamp */
.brain-plain { margin-top: 24px; }
.list-label { margin-top: 44px; }
.list-label + .failure-list { margin-top: 16px; }
.brain-inside { margin-top: clamp(60px, 8vw, 110px); }
.failure-list.steps { margin-top: 0; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.tool { display: flex; flex-direction: column; gap: 16px; min-height: 220px; padding: clamp(22px, 2.5vw, 32px); border: 1px solid var(--line); }
.tool-name { font: 400 clamp(34px, 3vw, 46px)/1 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.tool p { color: #aaa79f; font-size: 19px; line-height: 1.55; }
.tool-ask { border-color: var(--acid); }
.tool-ask .tool-name { color: var(--acid); }

/* AI page: pulsating company brain */
.brain-visual { background: var(--black); padding-top: 0; }
.brain-stage { position: relative; height: clamp(520px, 56vw, 780px); margin-top: clamp(20px, 3vw, 40px); }
.brain-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.brain-core-label {
  position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%);
  font: 700 14px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--smoke); white-space: nowrap;
}
.brain-apps { list-style: none; margin: 0; padding: 0; }
.brain-apps li {
  position: absolute; transform: translate(-50%, -50%);
  padding: 10px 14px; border: 1px solid var(--line); background: var(--black);
  font: 700 15px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: #eae7e0;
  transition: border-color .4s ease, color .4s ease;
}
.brain-apps li.lit { border-color: var(--acid); color: var(--acid); }
.brain-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); padding-top: clamp(28px, 4vw, 48px); }
.brain-point .mini { font: 700 16px/1 var(--mono); color: var(--acid); }
.brain-point h3 { font-size: clamp(40px, 3.6vw, 60px); margin-top: 18px; }
.brain-point p { margin-top: 16px; color: #aaa79f; font-size: 20px; line-height: 1.55; max-width: 34ch; }
.brain-models { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: clamp(40px, 5vw, 64px); }
.brain-models-label { font: 700 15px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--acid); }
.brain-models ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.brain-models li { padding: 10px 14px; border: 1px solid var(--line); font: 700 15px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.brain-models li.next { border-style: dashed; color: var(--smoke); }
@media (max-width: 800px) {
  .brain-stage { height: auto; }
  .brain-canvas { position: relative; height: auto; aspect-ratio: 1 / 1; }
  .brain-core-label { position: static; transform: none; text-align: center; margin-top: 4px; }
  .brain-apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
  .brain-apps li { position: static; transform: none; font-size: 13px; padding: 9px 11px; }
  .brain-points { grid-template-columns: 1fr; }
}

/* AI page: brain inside the hero */
.hero-brain { padding-top: 120px; padding-bottom: clamp(32px, 4vw, 56px); }
.hero-brain .hero-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(20px, 3vw, 48px); }
.hero-brain .hero-bottom { grid-template-columns: 1fr; }
.hero-brain .hero-bottom p { max-width: 36ch; }
.hero-brain .brain-stage { margin-top: 0; height: clamp(480px, 46vw, 660px); }
.brain-visual { padding-top: clamp(24px, 3vw, 48px); }
.brain-intro .lede { margin-top: 20px; max-width: 46ch; }
.brain-visual .brain-points { margin-top: clamp(32px, 4vw, 56px); }
@media (max-width: 1000px) {
  .hero-brain .hero-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 800px) {
  .hero-brain { padding-top: 108px; }
  .hero-brain .brain-stage { height: auto; }
}
.hero-brain h1.display { font-size: clamp(56px, 6.4vw, 104px); }
.hero-brain .hero-copy { order: 0; }
.hero-brain .brain-stage { order: 1; }
/* Brain label: clear space under the app ring */
.brain-core-label { bottom: 0; }
.hero-brain .brain-stage { height: clamp(520px, 48vw, 700px); }
@media (max-width: 800px) {
  .brain-core-label { margin-top: 20px; }
}

/* Compact skills list (AI + Resources) */
.skills { padding-top: clamp(64px, 7vw, 104px); padding-bottom: clamp(64px, 7vw, 104px); }
.skills-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(28px, 3vw, 40px); }
.skills-title { font-size: clamp(44px, 5vw, 80px); margin-top: 16px; }
.skills-head .body-copy { max-width: 40ch; }
.skill-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 80px); border-top: 1px solid var(--line); }
.skill-row { display: grid; grid-template-columns: minmax(0, 15ch) minmax(0, 1fr) 20px; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .2s ease; }
.skill-name { font: 700 15px/1.4 var(--mono); letter-spacing: .02em; color: var(--acid); overflow-wrap: anywhere; }
.skill-desc { color: #aaa79f; font-size: 17px; line-height: 1.45; }
.skill-arrow { color: var(--smoke); font-size: 18px; text-align: right; }
.skill-row:hover .skill-desc, .skill-row:hover .skill-arrow, .skill-row:focus-visible .skill-desc { color: #fff; }
.skill-row:hover { padding-left: 8px; }
.skills-actions { margin-top: clamp(28px, 3vw, 40px); }
@media (max-width: 900px) {
  .skills-head { grid-template-columns: 1fr; }
  .skill-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .skill-row { grid-template-columns: minmax(0, 1fr) 20px; gap: 4px 12px; padding: 14px 0; }
  .skill-name { grid-column: 1; }
  .skill-desc { grid-column: 1; grid-row: 2; font-size: 16px; }
  .skill-arrow { grid-column: 2; grid-row: 1; }
  .footer a, .contact-alt a { display: inline-block; padding: 7px 0; }
}

/* ===== Design QA round, 15 Nov ===== */
/* Nav: solid bar, so page content never shows through it */
.nav { mix-blend-mode: normal; background: var(--black); border-bottom: 1px solid var(--line); padding-top: 14px; padding-bottom: 14px; }
/* Type: balanced headings, no orphan words */
h1, h2, h3, .display { text-wrap: balance; }
p, li { text-wrap: pretty; }
.section-title { font-size: clamp(56px, 7.4vw, 112px); }
.contact-title { font-size: clamp(64px, 9vw, 132px); }
.cta-title { font-size: clamp(48px, 6vw, 96px); }
/* Section intro: paragraph sits under its heading, same left edge */
.section-head { grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.section-head .body-copy { max-width: 58ch; }
.skills-head { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 16px; }
.skills-head .body-copy { max-width: 58ch; }
/* Call-to-action band: button directly under the heading */
.cta-band .shell { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.cta-band .lede { margin-top: 14px; }
/* Footer: real gaps, no dangling dots */
.footer { color: #b3b0a8; align-items: baseline; flex-wrap: wrap; gap: 10px 32px; }
.footer-brand, .footer-copy { white-space: nowrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
/* Home */
.stat-num { font-size: clamp(44px, 4.3vw, 72px); white-space: nowrap; }
.section.tight + .section { padding-top: clamp(40px, 5vw, 72px); }
.photo-meta { inset: auto 30px 30px; }
.photo-meta span:last-child { white-space: nowrap; }
.marquee-window { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 94%, transparent); }
/* Work */
.work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.work-media.r-9-16, .work-media.r-4-5 { aspect-ratio: 9 / 16; }
.work-media img, .work-media video { object-fit: contain; }
.work-brand { color: #55524c; }
.work-media.placeholder { color: #cfccc4; }
.filters { margin-bottom: clamp(28px, 3vw, 40px); }
.hero-compact { padding-bottom: clamp(40px, 5vw, 72px); }
.hero-compact + .section { padding-top: clamp(56px, 6vw, 88px); }
/* Resources */
.res-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.res-card { min-height: 0; }
.res-card.res-soon { gap: 14px; border-style: dashed; }
.res-card.res-soon .res-title { font-size: clamp(30px, 2.6vw, 40px); color: #55524c; }
.skill-row { grid-template-columns: 240px minmax(0, 1fr) 20px; }
.skill-name { overflow-wrap: normal; }
.skill-arrow { color: #eae7e0; }
/* Work with me */
.contact-note { color: #aaa79f; }
.contact-alt { color: #aaa79f; position: relative; z-index: 2; }
.contact::before { color: rgba(255,255,255,.03); }
.route-picker { gap: 12px; }
@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; margin-left: auto; margin-right: auto; }
  .skill-row { grid-template-columns: 240px minmax(0, 1fr) 20px; }
}
@media (max-width: 700px) {
  .service-arrow { display: none; }
  .res-grid { grid-template-columns: 1fr; gap: 12px; }
  .res-card.res-soon { flex-direction: row; align-items: center; justify-content: space-between; padding: 18px 20px; }
  .handnote { max-width: calc(100% - 12px); margin-left: 6px; margin-right: 6px; }
}
@media (max-width: 560px) {
  .skill-row { grid-template-columns: minmax(0, 1fr) 20px; }
  .work-grid { gap: 24px 12px; }
  .work-media.placeholder { font-size: 12px; padding: 10px; }
}

/* ===== Design QA round 2 (AI page + rhythm) ===== */
.section { padding-top: clamp(72px, 8vw, 120px); padding-bottom: clamp(72px, 8vw, 120px); }
.thesis-title { font-size: clamp(56px, 7.4vw, 112px); margin-top: 20px; }
.section-title, .skills-title { margin-top: 20px; }
.brain-core-label { color: #cfccc4; bottom: 3%; }
.brain-point h3 { font-size: clamp(30px, 2.7vw, 40px); }
.brain-models li.next { color: #cfccc4; }
.proof-no, .failure b, .door-no { color: #55524c; }
.about-caption { left: 32px; bottom: 30px; }
.about-compact { min-height: 0; }
.about-compact .about-image { min-height: 0; }
.about-compact .about-copy { min-height: 0; }
.about-compact .about-title { font-size: clamp(48px, 5.6vw, 88px); margin: 20px 0 28px; }
.about-compact .handnote { margin-top: 40px; align-self: flex-start; }
.cta-band { padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(56px, 6vw, 88px); }
.skills .skill-list { margin-top: 0; }
@media (max-width: 700px) {
  .tool { min-height: 0; }
  .about-compact .about-image { display: none; }
  .brain-apps { gap: 6px 14px; }
  .brain-apps li { border: 0; padding: 4px 0; background: none; color: var(--smoke); }
}

/* ===== Design QA round 3 ===== */
.photo-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
.contact::before { content: none; }
.contact-alt a { display: inline; padding: 0; white-space: nowrap; }
.work-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .contact-alt a { display: inline; padding: 0; } }
.cta-band a[href^="mailto:"], .contact-alt a[href^="mailto:"] { white-space: nowrap; }
.hero-compact + .skills { padding-top: clamp(16px, 2vw, 32px); }

/* Resources: filterable card grid (same pattern as Work) */
.res-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.res-card { gap: 12px; padding: clamp(18px, 1.8vw, 26px); min-height: 0; }
.res-card[hidden] { display: none; }
.res-title { font-size: clamp(28px, 2.3vw, 36px); line-height: .95; margin-top: 6px; }
.res-desc { font-size: 16px; line-height: 1.5; }
.res-link { margin-top: auto; padding-top: 10px; font: 700 14px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--paper-ink); }
.res-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.res-card.res-soon { flex-direction: column; align-items: flex-start; justify-content: flex-start; }
@media (max-width: 1100px) { .res-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 700px) {
  .res-card.res-soon { flex-direction: column; align-items: flex-start; padding: 16px; }
  .res-card { padding: 16px; }
  .res-title { font-size: 24px; }
  .res-desc { font-size: 15px; }
}
.res-meta { flex-wrap: wrap; gap: 6px 10px; }
.res-format { white-space: nowrap; }
.res-link { padding-top: 14px; padding-bottom: 6px; }
@media (max-width: 700px) {
  .res-meta .badge { padding: 5px 8px; font-size: 12px; }
  .res-format { font-size: 12px; letter-spacing: .04em; }
  .res-link { padding-top: 16px; padding-bottom: 10px; }
}
