:root {
  --bleed: clamp(60px, 9vw, 130px); /* how far the covers spill into the red section */
  --paper: #f6f2e4;
  --ink: #171916;
  --red: #e0452b;
  --blue: #3d5f92;
  --yellow: #f3cf5f;
  --green: #7cc5a2;
  --f-sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Hero shell ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  z-index: 2; /* sits above the offer section so the covers can cross the seam */
}

/* paper texture: grain + fibers + soft vignette */
.paper { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.paper::before,
.paper::after { content: ""; position: absolute; inset: 0; }
.paper::before { filter: url(#grain); opacity: .16; background: #000; mix-blend-mode: multiply; }
.paper::after {
  background:
    radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(120, 90, 30, .10) 100%),
    radial-gradient(60% 40% at 90% 10%, rgba(243, 207, 95, .18), transparent 70%);
}

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
}
.nav .wordmark {
  display: block;
  font-weight: 900;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: .86;
  letter-spacing: -.05em;
}
.wordmark span { display: flex; align-items: center; gap: .18em; }
.pips { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 2px; width: .62em; height: .62em; margin-left: .06em; }
.pips b { border-radius: 50%; }
.pips b:nth-child(1) { background: var(--red); }
.pips b:nth-child(2) { background: var(--yellow); }
.pips b:nth-child(3) { background: var(--blue); }
.pips b:nth-child(4) { background: var(--green); }
.nav ul { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); }
.nav a { font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.nav li a:not(.nav-cta) { position: relative; }
.nav li a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav li a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--ink); color: var(--paper);
  padding: 10px 18px; border-radius: 2px;
  transition: background .2s ease;
}
.nav-cta:hover { background: var(--red); }

/* ---------- Layout ---------- */
.grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  padding: clamp(16px, 3vh, 40px) var(--gutter) clamp(28px, 5vh, 56px);
}

/* ---------- Copy ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--f-mono);
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: clamp(18px, 3vh, 32px);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }

h1 {
  font-weight: 900;
  font-size: clamp(56px, 9vw, 150px);
  line-height: .86;
  letter-spacing: -.03em;
  text-wrap: balance;
}
h1 span { display: block; }
h1 em {
  font-style: normal;
  position: relative;
  color: var(--paper);
  padding: 0 .06em;
  margin-left: -.02em;
  z-index: 0;
}
/* misregistered ink block behind "web." */
h1 em::before {
  content: ""; position: absolute; z-index: -1;
  inset: .1em -.02em .0em -.03em;
  background: var(--red);
  transform: rotate(-1.2deg);
}
h1 em::after {
  content: ""; position: absolute; z-index: -2;
  inset: .16em -.08em -.05em .03em;
  background: var(--yellow);
  transform: rotate(1.4deg);
}

.lede {
  max-width: 34ch;
  margin-top: clamp(22px, 4vh, 40px);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.35;
  letter-spacing: -.015em;
  font-weight: 500;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 4vh, 36px); }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 16px; font-weight: 800; letter-spacing: -.01em;
  padding: 16px 24px; border: 2px solid var(--ink); border-radius: 2px;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn span { transition: transform .2s ease; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--red); border-color: var(--red); }
.btn-primary:hover span { transform: translateX(4px); }
.btn-ghost:hover { background: var(--yellow); }
.btn:active { transform: translateY(1px); }


/* ---------- The fanned "issues" ---------- */
.stack {
  --mx: 0; --my: 0;
  position: relative;
  aspect-ratio: 1 / 1.02;
  width: min(100%, 640px);
  margin-inline: auto;
  translate: 0 var(--bleed);
}
.card {
  position: absolute;
  width: 56%;
  aspect-ratio: 1 / 1.3;
  background: #fbf9f0;
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 14px 26px -12px rgba(50, 35, 10, .45);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: translate(calc(var(--mx) * var(--d, 0) * 1px), calc(var(--my) * var(--d, 0) * 1px)) rotate(var(--r, 0deg));
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
  animation: deal .9s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: var(--delay, 0s);
}
/* print grain over every cover */
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  filter: url(#grain); background: #000; opacity: .28; mix-blend-mode: multiply;
}
.card::before { /* worn edge highlight */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), inset 0 0 40px rgba(120, 90, 30, .12);
}

.masthead { padding: 7% 8% 5%; }
.masthead h3 {
  font-weight: 900;
  font-size: clamp(13px, 2.1vw, 28px);
  line-height: .95;
  letter-spacing: -.04em;
}
.masthead p {
  margin-top: 6%;
  font: 500 clamp(6px, .85vw, 11px)/1.35 var(--f-mono);
  letter-spacing: .01em;
  max-width: 24ch;
}
.field {
  position: relative; flex: 1;
  display: flex; align-items: flex-end;
  padding: 0 0 6% 8%;
}
.field b {
  font-weight: 900; color: rgba(255,255,255,.92);
  font-size: clamp(30px, 6vw, 78px); line-height: .8; letter-spacing: -.06em;
  position: relative; z-index: 1;
}
/* halftone dots ride the colour fields */
.field::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0,0,0,.28) 28%, transparent 30%);
  background-size: 5px 5px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 65%);
          mask-image: linear-gradient(to bottom, #000 0%, transparent 65%);
}

.c5 { --r: -9deg; --d: -28; --delay: .05s; left: -2%; top: 8%;  }
.c4 { --r: -3deg; --d: -16; --delay: .12s; left: 22%; top: 0;    }
.c3 { --r: 5deg;  --d: 12;  --delay: .19s; left: 46%; top: 3%;  }
.c2 { --r: -5deg; --d: 24;  --delay: .26s; left: 4%;  top: 36%; }
.c1 { --r: 3deg;  --d: 40;  --delay: .34s; left: 42%; top: 34%; width: 58%; z-index: 5; }

.c5 .masthead p, .c4 .masthead p { display: none; }
.c5 .masthead h3, .c4 .masthead h3 { font-size: clamp(12px, 1.9vw, 24px); }
.c5 .field { background: var(--green); }
.c4 .field { background: var(--yellow); }
.c3 .field { background: var(--blue); }
.c2 .field { background: var(--red); }
.c4 .field b { color: #fbf9f0; }

/* cover no.1 is the paper-white issue with a contents list */
.c1 { background: #f2efe4; padding: 0; }
.c1 .masthead h3 { font-size: clamp(15px, 2.6vw, 34px); }
.c1 .num {
  display: block; margin: 10% 0 0 8%;
  font-weight: 900; font-size: clamp(24px, 3.6vw, 46px); line-height: 1; letter-spacing: -.05em;
}
.c1 .toc {
  margin: auto 8% 8%;
  font: 500 clamp(6px, .9vw, 11px)/1.7 var(--f-mono);
  letter-spacing: .04em; text-transform: uppercase;
  border-top: 1.5px solid var(--ink); padding-top: 3%;
  columns: 2;
}
/* the ink stripe that makes no.1 read like the reference */
.c1::before { box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), inset 0 0 40px rgba(120, 90, 30, .12); }

@keyframes deal {
  from { opacity: 0; translate: 0 40px; rotate: 0deg; }
  to   { opacity: 1; translate: 0 0; }
}


/* ---------- Section 2: the offer ---------- */
.offer {
  position: relative;
  background: var(--red);
  color: var(--paper);
  padding: calc(clamp(64px, 10vw, 140px) + 40px) var(--gutter) clamp(64px, 10vw, 140px);
  isolation: isolate;
  z-index: 1; /* above the process section so the sheet can hang over the seam */
}
/* same print grain + halftone as the hero covers */
.offer-grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.offer-grain::before,
.offer-grain::after { content: ""; position: absolute; inset: 0; }
.offer-grain::before { filter: url(#grain); background: #000; opacity: .3; mix-blend-mode: multiply; }
.offer-grain::after {
  background-image: radial-gradient(rgba(0,0,0,.28) 28%, transparent 30%);
  background-size: 6px 6px;
  -webkit-mask-image: linear-gradient(160deg, #000 0%, transparent 55%);
          mask-image: linear-gradient(160deg, #000 0%, transparent 55%);
}

.offer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  max-width: 1400px;
  margin-inline: auto;
}
.price {
  font-weight: 900;
  font-size: clamp(120px, 26vw, 400px);
  line-height: .8;
  letter-spacing: -.06em;
  margin: clamp(20px, 4vw, 48px) 0 clamp(20px, 3vw, 40px) -.04em;
}
.offer-lede {
  max-width: 28ch;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.25; font-weight: 700; letter-spacing: -.025em;
}

/* the paper "cover" that holds the list */
.sheet {
  position: relative;
  background: #fbf9f0; color: var(--ink);
  margin-bottom: calc(-1 * (var(--bleed) + clamp(64px, 10vw, 140px)));
  transform: rotate(1deg);
  border: 3px solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
  overflow: hidden;
}
.sheet::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  filter: url(#grain); background: #000; opacity: .12; mix-blend-mode: multiply;
}
.sheet-head {
  padding: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 36px) clamp(16px, 2vw, 24px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
}
.sheet-head h2 { font-weight: 900; font-size: clamp(32px, 4.4vw, 60px); line-height: .92; letter-spacing: -.045em; }
.sheet-head p { font: 500 12px/1.4 var(--f-mono); max-width: 24ch; }

.index { border-top: 3px solid var(--ink); }
.index li {
  display: grid;
  grid-template-columns: clamp(40px, 5vw, 64px) 1fr;
  grid-template-areas: "n t" "n d";
  column-gap: 8px;
  padding: clamp(14px, 1.6vw, 20px) clamp(20px, 3vw, 36px);
  border-bottom: 3px solid var(--ink);
  transition: background .2s ease;
}
.index li:last-child { border-bottom: 0; }
.index li:hover,
.index li.key { background: var(--yellow); }
.index span {
  grid-area: n; align-self: start; justify-self: start;
  font: 700 12px/1 var(--f-mono);
  background: var(--ink); color: var(--paper);
  padding: 5px 7px; margin-top: 2px;
  box-shadow: 3px 3px 0 var(--red);
}
.index strong { grid-area: t; font-weight: 800; font-size: clamp(17px, 1.7vw, 22px); letter-spacing: -.03em; line-height: 1.15; }
.index em { grid-area: d; font: 500 12px/1.5 var(--f-mono); font-style: normal; margin-top: 2px; }

/* spark icon beside the Claude row */
.index .spark { display: inline-block; width: 1.4em; height: 1.4em; vertical-align: -.3em; margin-left: .15em; }

/* scroll reveal, only when JS is running */
/* desktop only: on phones content is always visible, never gated on scroll */
@media (min-width: 901px) {
  .js .reveal { opacity: 0; translate: 0 40px; transition: opacity .8s ease, translate .9s cubic-bezier(.2,.8,.2,1); }
  .js .reveal.in { opacity: 1; translate: 0 0; }
}

@media (max-width: 900px) {
  .offer-grid { grid-template-columns: 1fr; }
  .price { font-size: clamp(120px, 38vw, 260px); }
  .sheet { transform: rotate(.8deg); }
}


/* ---------- Section 3: process ---------- */
.process {
  position: relative;
  padding: calc(var(--bleed) * .35 + 24px) var(--gutter) clamp(64px, 9vw, 130px);
  isolation: isolate;
  z-index: 0;
}
.process-grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.process-grain::before { content: ""; position: absolute; inset: 0; filter: url(#grain); background: #000; opacity: .16; mix-blend-mode: multiply; }
.process-title {
  max-width: 1400px; margin: 0 auto clamp(28px, 4vw, 56px);
  font-weight: 900;
  font-size: clamp(48px, 8vw, 128px);
  line-height: .88; letter-spacing: -.035em;
}
.steps {
  max-width: 1400px; margin-inline: auto;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 3px solid var(--ink);
}
.step {
  position: relative;
  display: flex; flex-direction: column;
  min-height: clamp(460px, 62vh, 640px);
  background: #fbf9f0;
  border-left: 3px solid var(--ink);
  transition-delay: calc(var(--i) * 90ms);
}
.step:first-child { border-left: 0; }
.step::after { /* print grain */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  filter: url(#grain); background: #000; opacity: .22; mix-blend-mode: multiply;
}
.step-top { padding: clamp(18px, 2vw, 28px); border-bottom: 3px solid var(--ink); min-height: clamp(230px, 17vw, 260px); }
.step h3 { font-weight: 900; font-size: clamp(30px, 3.4vw, 50px); line-height: .95; letter-spacing: -.045em; }
.step p { margin-top: 14px; font: 500 13px/1.5 var(--f-mono); }
.step-field {
  position: relative; flex: 1;
  display: flex; align-items: flex-end;
  padding: 0 0 clamp(10px, 1.4vw, 20px) clamp(18px, 2vw, 28px);
  min-height: 200px;
}
.step-field::before { /* halftone */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0,0,0,.28) 28%, transparent 30%);
  background-size: 5px 5px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
          mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
}
.step-field b {
  position: relative; z-index: 1;
  font-weight: 900; color: #fbf9f0;
  font-size: clamp(110px, 15vw, 230px); line-height: .78; letter-spacing: -.06em;
}
.s1 .step-field { background: var(--blue); }
.s2 .step-field { background: var(--yellow); }
.s3 .step-field { background: var(--green); }
.s4 .step-field { background: var(--red); }

@media (max-width: 900px) {
  .process { padding-top: calc(clamp(64px, 9vw, 130px) + var(--bleed) + 12px); }
}
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(3) { border-left: 0; }
  .step:nth-child(n+3) { border-top: 3px solid var(--ink); }
  .step { min-height: 420px; }
  .step-top { min-height: 0; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step:nth-child(3) { border-left: 0; }
  .step:nth-child(n+2) { border-top: 3px solid var(--ink); }
  /* color block and number first, title and copy underneath */
  .step { flex-direction: column-reverse; min-height: 0; }
  .step-top { border-bottom: 0; border-top: 3px solid var(--ink); min-height: 0; }
  .step-field { flex: none; height: 240px; min-height: 0; }
}


/* ---------- Section 4: FAQ ---------- */
.faq {
  position: relative;
  background: var(--yellow);
  padding: clamp(64px, 9vw, 130px) var(--gutter);
  isolation: isolate;
  z-index: 0;
}
.faq-grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.faq-grain::before,
.faq-grain::after { content: ""; position: absolute; inset: 0; }
.faq-grain::before { filter: url(#grain); background: #000; opacity: .26; mix-blend-mode: multiply; }
.faq-grain::after {
  background-image: radial-gradient(rgba(0,0,0,.22) 28%, transparent 30%);
  background-size: 6px 6px;
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 50%);
          mask-image: linear-gradient(200deg, #000 0%, transparent 50%);
}
.faq-grid {
  max-width: 1400px; margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px); align-items: start;
}
.faq-title {
  position: sticky; top: 40px;
  font-weight: 900; font-size: clamp(48px, 7vw, 112px);
  line-height: .88; letter-spacing: -.035em;
}
.qa-list { border-top: 3px solid var(--ink); }
.qa { border-bottom: 3px solid var(--ink); }
.qa summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: clamp(16px, 1.8vw, 24px) 4px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa .n {
  font: 700 12px/1 var(--f-mono);
  background: var(--ink); color: var(--paper);
  padding: 5px 7px; box-shadow: 3px 3px 0 var(--red);
}
.qa .q { font-weight: 800; font-size: clamp(19px, 2vw, 28px); line-height: 1.1; letter-spacing: -.03em; }
.qa .pm { position: relative; width: 22px; height: 22px; }
.qa .pm::before,
.qa .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: var(--ink); transition: transform .25s ease; }
.qa .pm::after { transform: rotate(90deg); }
.qa[open] .pm::after { transform: rotate(0deg); }
.qa summary:hover .q { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.qa summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.qa p {
  max-width: 58ch;
  padding: 0 4px clamp(18px, 2vw, 28px) calc(4px + 40px);
  font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; font-weight: 500; letter-spacing: -.01em;
}

@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-title { position: static; }
}


/* ---------- Section: work ---------- */
.work {
  position: relative;
  background: var(--blue);
  color: var(--paper);
  padding: clamp(64px, 9vw, 130px) var(--gutter);
  isolation: isolate;
  z-index: 0;
}
.work-grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.work-grain::before,
.work-grain::after { content: ""; position: absolute; inset: 0; }
.work-grain::before { filter: url(#grain); background: #000; opacity: .3; mix-blend-mode: multiply; }
.work-grain::after {
  background-image: radial-gradient(rgba(0,0,0,.28) 28%, transparent 30%);
  background-size: 6px 6px;
  -webkit-mask-image: linear-gradient(20deg, #000 0%, transparent 50%);
          mask-image: linear-gradient(20deg, #000 0%, transparent 50%);
}
.work-inner { max-width: 1400px; margin-inline: auto; }
.work-title { font-weight: 900; font-size: clamp(64px, 11vw, 176px); line-height: .84; letter-spacing: -.025em; }
.work-sub { margin-top: 16px; font: 500 13px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.work-grid {
  margin-top: clamp(28px, 4vw, 56px);
  display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, .9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}

.project {
  position: relative; display: flex; flex-direction: column;
  background: #fbf9f0; color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(-.8deg);
  transition: box-shadow .2s ease, transform .2s ease, opacity .8s ease, translate .9s cubic-bezier(.2,.8,.2,1);
}
.project::after { content: ""; position: absolute; inset: 0; pointer-events: none; filter: url(#grain); background: #000; opacity: .12; mix-blend-mode: multiply; }
.project:hover { box-shadow: 18px 18px 0 var(--ink); transform: rotate(0deg) translate(-4px, -4px); }
.project:focus-visible { outline: 4px solid var(--yellow); outline-offset: 6px; }

.proj-top { padding: clamp(18px, 2.4vw, 32px); border-bottom: 3px solid var(--ink); }
.proj-no {
  display: inline-block; font: 700 12px/1 var(--f-mono);
  background: var(--ink); color: var(--paper); padding: 5px 7px; box-shadow: 3px 3px 0 var(--red);
}
.project h3 { margin-top: 14px; font-weight: 900; font-size: clamp(36px, 5vw, 72px); line-height: .92; letter-spacing: -.045em; }
.project .proj-top p { margin-top: 14px; max-width: 52ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.45; font-weight: 500; letter-spacing: -.01em; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.proj-tags li { font: 500 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; border: 2px solid var(--ink); padding: 6px 8px; }

.proj-shot { background: var(--ink); border-bottom: 3px solid var(--ink); }
.chrome { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #e9e4d2; border-bottom: 3px solid var(--ink); }
.chrome i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); }
.chrome i:nth-child(1) { background: var(--red); }
.chrome i:nth-child(2) { background: var(--yellow); }
.chrome i:nth-child(3) { background: var(--green); }
.chrome span { margin-left: 10px; font: 500 11px/1 var(--f-mono); }
.proj-shot img { display: block; width: 100%; height: auto; }
.proj-cta { display: flex; justify-content: space-between; align-items: center; padding: 16px clamp(18px, 2.4vw, 32px); font-weight: 800; font-size: 18px; letter-spacing: -.02em; transition: background .2s ease; }
.proj-cta b { font-size: 24px; }
.project:hover .proj-cta { background: var(--yellow); }

.ghosts { display: grid; grid-template-rows: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.ghost {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 200px; padding: clamp(16px, 2vw, 24px);
  border: 3px dashed rgba(246, 242, 228, .7);
}
.ghost b { font-weight: 900; font-size: clamp(90px, 11vw, 170px); line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 3px var(--paper); }
.ghost p { font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; }
  .ghosts { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .ghost { min-height: 160px; }
}


/* ---------- Contact pop-out ---------- */
.tab {
  position: fixed; right: 0; top: 50%; z-index: 40;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  padding: 18px 12px;
  background: var(--red); color: var(--paper);
  font: 700 13px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  border: 3px solid var(--ink); border-right: 0;
  box-shadow: -5px 5px 0 var(--ink);
  cursor: pointer;
  transition: padding .2s ease, background .2s ease, opacity .2s ease, visibility .2s;
}
.tab:hover { padding-inline: 18px; background: var(--ink); }
.tab:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
body.drawer-open .tab { opacity: 0; visibility: hidden; }

.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(23, 25, 22, .55); opacity: 0; transition: opacity .3s ease; }
.scrim:not([hidden]) { opacity: 1; }
.scrim.fade { opacity: 0; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
  width: min(460px, 100vw);
  overflow-y: auto; overscroll-behavior: contain;
  background: #fbf9f0; color: var(--ink);
  border-left: 3px solid var(--ink);
  box-shadow: -12px 0 0 var(--ink);
  padding: clamp(24px, 4vw, 40px);
  transform: translateX(calc(100% + 24px));
  visibility: hidden;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), visibility 0s .45s;
}
.drawer.open { transform: none; visibility: visible; transition: transform .45s cubic-bezier(.2,.8,.2,1), visibility 0s; }
.drawer-grain { position: absolute; inset: 0; pointer-events: none; filter: url(#grain); background: #000; opacity: .12; mix-blend-mode: multiply; }
.drawer > *:not(.drawer-grain) { position: relative; }
.drawer h2 { font-weight: 900; font-size: clamp(44px, 6vw, 68px); line-height: .9; letter-spacing: -.045em; padding-right: 56px; }
.drawer-note { margin-top: 14px; font: 500 12px/1.5 var(--f-mono); max-width: 34ch; }
.drawer-close {
  position: absolute !important; top: 18px; right: 18px; width: 44px; height: 44px;
  border: 3px solid var(--ink); background: var(--yellow); cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}
.drawer-close span { position: absolute; left: 9px; right: 9px; top: 50%; height: 3px; margin-top: -1.5px; background: var(--ink); }
.drawer-close span:first-child { transform: rotate(45deg); }
.drawer-close span:last-child { transform: rotate(-45deg); }
.drawer-close:hover { background: var(--red); }
.drawer-close:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.contact-form { margin-top: 28px; display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font: 700 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.contact-form label em { font-style: normal; font-weight: 400; opacity: .6; text-transform: none; letter-spacing: 0; }
.contact-form input,
.contact-form textarea {
  font: 500 17px/1.3 var(--f-sans); letter-spacing: -.01em; color: var(--ink);
  background: var(--paper); border: 3px solid var(--ink); border-radius: 0;
  padding: 12px; width: 100%; resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; background: #fff; box-shadow: 4px 4px 0 var(--red); }
.contact-form [aria-invalid="true"] { border-color: var(--red); box-shadow: 4px 4px 0 var(--red); }
.hp { position: absolute !important; left: -9999px; height: 0; width: 0; opacity: 0; }
.contact-form .btn { justify-content: center; cursor: pointer; font-family: var(--f-sans); }
.contact-form .btn[disabled] { opacity: .6; cursor: progress; }
.form-status { font: 500 13px/1.5 var(--f-mono); min-height: 1.5em; }
.form-status.ok { font-weight: 700; }
.form-status.err { color: var(--red); font-weight: 700; }
body.drawer-open { overflow: hidden; }

@media (max-width: 560px) {
  .tab { padding: 14px 9px; font-size: 12px; }
  .drawer { width: 100vw; border-left: 0; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer.open, .scrim, .tab { transition: none; }
}


/* ---------- Footer ---------- */
.foot {
  position: relative;
  background: var(--ink); color: var(--paper);
  padding: clamp(56px, 7vw, 100px) var(--gutter) 0;
  overflow: hidden; isolation: isolate;
}
.foot-dots {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(246, 242, 228, .09) 28%, transparent 30%);
  background-size: 6px 6px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
.foot-inner { max-width: 1400px; margin-inline: auto; }
.foot-cols { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: clamp(24px, 4vw, 64px); align-items: start; }
.foot-nav { display: grid; gap: 8px; }
.foot-nav a { font-weight: 800; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -.035em; line-height: 1.1; width: fit-content; border-bottom: 3px solid transparent; }
.foot-nav a:hover { border-bottom-color: var(--yellow); }
.foot-cta p { font-weight: 800; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -.035em; line-height: 1.1; margin-bottom: 18px; }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: var(--yellow); border-color: var(--yellow); }
.btn-light:hover span { transform: translateX(4px); }
.foot-loc { font: 500 12px/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; text-align: right; }

.foot-mark {
  margin-top: clamp(40px, 6vw, 88px);
  font-weight: 900; font-size: 10.8vw; line-height: .82; letter-spacing: -.04em;
  white-space: nowrap; user-select: none;
  margin-inline: -.03em;
}
.foot-mark span { display: inline-block; }
.foot-mark .pips { display: inline-grid; grid-template-columns: 1fr 1fr; gap: .035em; width: .5em; height: .5em; margin-left: .1em; vertical-align: .05em; }
.foot-mark .pips b { border-radius: 50%; }
.foot-mark .pips b:nth-child(1) { background: var(--red); }
.foot-mark .pips b:nth-child(2) { background: var(--yellow); }
.foot-mark .pips b:nth-child(3) { background: var(--blue); }
.foot-mark .pips b:nth-child(4) { background: var(--green); }

.foot-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  margin-top: clamp(20px, 3vw, 40px); padding: 18px 0 22px;
  border-top: 3px solid var(--paper);
  font: 500 12px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
}
.foot-base a { border-bottom: 2px solid var(--yellow); padding-bottom: 1px; }
.foot-base a:hover { background: var(--yellow); color: var(--ink); }

@media (max-width: 900px) {
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-cta { grid-column: 1 / -1; grid-row: 2; }
  .foot-loc { text-align: right; }
  .foot-mark { font-size: 19vw; white-space: normal; line-height: .84; }
  .foot-mark span { display: block; }
}


/* ---------- The Bulletin ---------- */
.b-top { position: relative; isolation: isolate; }

.b-cover {
  position: relative; isolation: isolate;
  background: var(--accent, var(--green)); color: var(--paper);
  padding: clamp(48px, 7vw, 100px) var(--gutter);
  overflow: hidden;
}
.b-cover[data-tone="dark"] { color: var(--ink); }
.b-cover::before,
.b-cover::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.b-cover::before { filter: url(#grain); background: #000; opacity: .28; mix-blend-mode: multiply; }
.b-cover::after {
  background-image: radial-gradient(rgba(0,0,0,.24) 28%, transparent 30%);
  background-size: 6px 6px;
  -webkit-mask-image: linear-gradient(160deg, #000 0%, transparent 55%);
          mask-image: linear-gradient(160deg, #000 0%, transparent 55%);
}
.b-cover-inner { max-width: 1400px; margin-inline: auto; }
.b-cover h1 { font-weight: 900; font-size: clamp(64px, 12vw, 190px); line-height: .84; letter-spacing: -.03em; }
.b-lede { margin-top: clamp(18px, 2.4vw, 32px); max-width: 40ch; font-size: clamp(18px, 1.8vw, 26px); line-height: 1.3; font-weight: 700; letter-spacing: -.02em; }
.b-count { margin-top: 20px; font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }

/* listing */
.b-list { position: relative; isolation: isolate; padding: clamp(40px, 6vw, 88px) var(--gutter); }
.b-list::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; filter: url(#grain); background: #000; opacity: .14; mix-blend-mode: multiply; }
.b-list-inner { max-width: 1400px; margin-inline: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(20px, 3vw, 36px); }
.chip {
  font: 700 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); background: transparent; cursor: pointer;
  border: 3px solid var(--ink); padding: 10px 14px;
  transition: background .15s ease, color .15s ease;
}
.chip:hover { background: var(--yellow); }
.chip.on { background: var(--ink); color: var(--paper); }
.chip:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.entries { border-top: 3px solid var(--ink); }
.entry {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) 190px 40px;
  gap: clamp(12px, 2vw, 32px); align-items: center;
  padding: clamp(18px, 2vw, 28px) 6px;
  border-bottom: 3px solid var(--ink);
  transition: background .18s ease, padding .18s ease;
}
.entry[hidden] { display: none; }
.entry:hover, .entry:focus-visible { background: var(--accent, var(--yellow)); padding-inline: 16px; }
.entry:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.entry-no {
  justify-self: start; font: 700 12px/1 var(--f-mono);
  background: var(--ink); color: var(--paper); padding: 6px 8px; box-shadow: 3px 3px 0 var(--accent, var(--red));
}
.entry-main strong { display: block; font-weight: 900; font-size: clamp(22px, 2.6vw, 38px); line-height: 1.02; letter-spacing: -.04em; }
.entry-main em { display: block; margin-top: 8px; max-width: 62ch; font: 500 13px/1.5 var(--f-mono); font-style: normal; }
.entry-meta { font: 500 12px/1.5 var(--f-mono); }
.entry-meta b { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.entry-go { font-weight: 900; font-size: 30px; justify-self: end; transition: transform .18s ease; }
.entry:hover .entry-go { transform: translateX(6px); }

/* article */
.post-cover .b-cover-inner { max-width: 1100px; }
.post-cover h1 { font-size: clamp(38px, 6.6vw, 104px); line-height: .92; letter-spacing: -.04em; margin-top: 18px; text-wrap: balance; }
.crumbs { font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.crumbs a { border-bottom: 2px solid currentColor; }
.crumbs a:hover { opacity: .7; }
.post-no {
  display: inline-block; margin-top: 22px;
  font: 700 12px/1 var(--f-mono); background: var(--ink); color: var(--paper); padding: 6px 8px; box-shadow: 3px 3px 0 var(--paper);
}
.post-cover[data-tone="dark"] .post-no { box-shadow: 3px 3px 0 var(--red); }
.post-meta { margin-top: 22px; font: 500 12px/1.5 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }

.post-wrap {
  max-width: 1100px; margin-inline: auto;
  padding: clamp(40px, 6vw, 88px) var(--gutter);
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start;
}
.toc-side { position: sticky; top: 32px; }
.toc-side p { font: 700 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding-bottom: 12px; border-bottom: 3px solid var(--ink); }
.toc-side ol { list-style: none; counter-reset: t; }
.toc-side li { counter-increment: t; border-bottom: 1.5px solid var(--ink); }
.toc-side a { display: grid; grid-template-columns: 26px 1fr; padding: 10px 0; font-weight: 700; font-size: 15px; line-height: 1.25; letter-spacing: -.015em; }
.toc-side a::before { content: counter(t, decimal-leading-zero); font: 500 11px/1.7 var(--f-mono); color: var(--red); }
.toc-side a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 3px; }

.prose { max-width: 66ch; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.65; font-weight: 500; letter-spacing: -.01em; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-weight: 900; font-size: clamp(28px, 3vw, 44px); line-height: 1; letter-spacing: -.04em; scroll-margin-top: 24px; }
.prose h3 { margin-top: 1.6em; font-weight: 800; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.15; letter-spacing: -.03em; }
.prose h3 + p { margin-top: .5em; }
.prose a { border-bottom: 3px solid var(--yellow); font-weight: 700; }
.prose a:hover { background: var(--yellow); }
.prose ul, .prose ol { padding-left: 0; list-style: none; counter-reset: li; }
.prose li { position: relative; padding-left: 40px; margin-top: .55em; }
.prose ul li::before { content: ""; position: absolute; left: 6px; top: .6em; width: 14px; height: 14px; background: var(--red); }
.prose ol li { counter-increment: li; }
.prose ol li::before { content: counter(li); position: absolute; left: 0; top: .2em; width: 26px; height: 26px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 700 12px/1 var(--f-mono); box-shadow: 3px 3px 0 var(--red); }
.prose blockquote { margin-block: 1.6em; padding: 6px 0 6px 24px; border-left: 8px solid var(--accent, var(--red)); font-weight: 800; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.15; letter-spacing: -.03em; }
.prose code { font: 500 .85em var(--f-mono); background: rgba(23, 25, 22, .08); padding: 2px 6px; }
.prose hr { border: 0; border-top: 3px solid var(--ink); margin-block: 2em; }

.post-cta { padding: 0 var(--gutter) clamp(40px, 6vw, 88px); }
.post-cta > div {
  max-width: 1100px; margin-inline: auto;
  background: var(--ink); color: var(--paper);
  padding: clamp(28px, 4vw, 56px);
  border: 3px solid var(--ink); box-shadow: 12px 12px 0 var(--red);
}
.post-cta h2 { max-width: 20ch; font-weight: 900; font-size: clamp(30px, 4vw, 58px); line-height: .95; letter-spacing: -.04em; margin-bottom: 24px; }

.b-related h2 { font-weight: 900; font-size: clamp(30px, 4vw, 56px); line-height: .95; letter-spacing: -.04em; margin-bottom: 24px; }

@media (max-width: 900px) {
  .entry { grid-template-columns: 1fr 32px; grid-template-areas: "no go" "main main" "meta meta"; row-gap: 10px; }
  .entry-no { grid-area: no; }
  .entry-go { grid-area: go; }
  .entry-main { grid-area: main; }
  .entry-meta { grid-area: meta; }
  .post-wrap { grid-template-columns: 1fr; }
  .toc-side { position: static; }
}

/* ---------- Section background photos (duotone) ---------- */
/* A real photo, pre-converted to grayscale, sits behind the flat color.
   mix-blend-mode: multiply lets the color read through the photo's tones,
   so it stays a flat poster color with texture instead of a stock photo. */
.photo-bg {
  position: absolute; inset: 0; z-index: -3; pointer-events: none;
  background-size: cover; background-position: center;
  mix-blend-mode: multiply;
}
.offer-photo { background-image: url("/assets/photos/offer-notebook.jpg"); opacity: .5; }
.work-photo { background-image: url("/assets/photos/work-office.jpg"); opacity: .55; }
.faq-photo { background-image: url("/assets/photos/faq-question.jpg"); opacity: .42; }

.step-photo {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-size: cover; background-position: center;
  mix-blend-mode: multiply; opacity: .55;
}
.s1 .step-photo { background-image: url("/assets/photos/step-brief.jpg"); }
.s2 .step-photo { background-image: url("/assets/photos/step-design.jpg"); }
.s3 .step-photo { background-image: url("/assets/photos/step-build.jpg"); }
.s4 .step-photo { background-image: url("/assets/photos/step-launch.jpg"); }
.step-field::before { z-index: 1; } /* halftone dots ride on top of the photo */
.step-field b { position: relative; z-index: 2; } /* the numeral stays legible above both */

/* Bulletin covers: build_bulletin.py injects a .cover-photo div with an inline
   background-image per category, styled the same way. */
.cover-photo {
  position: absolute; inset: 0; z-index: -3; pointer-events: none;
  background-size: cover; background-position: center;
  mix-blend-mode: multiply; opacity: .5;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav ul li:not(:last-child) { display: none; }
  .grid { grid-template-columns: 1fr; gap: 40px; }
  h1 { font-size: clamp(64px, 20vw, 140px); }
  .stack { width: min(100%, 520px); }
}

@media (prefers-reduced-motion: reduce) {
  .card { animation: none; transition: none; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
}
