:root {
  --paper: #EFE9DA;
  --paper-2: #E5DCC6;
  --paper-3: #D9CDAF;
  --ink: #1B1C18;
  --ink-soft: #3A3B34;
  --accent: #7A4B2A;
  --secondary: #2F3A2E;
  --rule: rgba(27,28,24,0.22);
  --rule-soft: rgba(27,28,24,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Reveal — content always visible. Minor fade-in via CSS only (no JS gating). */
@keyframes rvIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.rv, .rv-sm, .rv-lg, .rv-fade { opacity: 1 !important; }
.rv.in, .rv-sm.in, .rv-lg.in, .rv-fade.in { opacity: 1 !important; transform: none !important; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Instrument Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background-image:
    radial-gradient(rgba(27,28,24,0.03) 1px, transparent 1px),
    radial-gradient(rgba(27,28,24,0.02) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 2px 2px;
}
::selection { background: var(--ink); color: var(--paper); }

/* type helpers */
.serif { font-family: 'Instrument Serif', 'GT Sectra', Georgia, serif; font-weight: 400; }
.serif-it { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
.mono {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 400;
}
.sans { font-family: 'Instrument Sans', sans-serif; }

/* ===== Top bar (masthead) ===== */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  padding: 14px clamp(20px, 3vw, 48px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}
.masthead .left, .masthead .right { display: flex; gap: 28px; }
.masthead .right { justify-content: flex-end; }
.masthead .middle {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-transform: none;
  font-weight: 400;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.masthead .middle em {
  font-style: italic;
  color: var(--accent);
}
.masthead a {
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  padding-bottom: 2px;
}
.masthead a:hover { color: var(--accent); }
.masthead .pill {
  padding: 6px 10px;
  border: 1px solid var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.masthead .pill .dot {
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; } 50% { opacity: 0.2; }
}

/* ===== Page / spread container ===== */
.spread {
  padding: clamp(40px, 6vw, 96px) clamp(20px, 4vw, 72px);
  position: relative;
  border-bottom: 1px solid var(--ink);
}
.spread.dark {
  background: var(--ink);
  color: var(--paper);
  --rule: rgba(239,233,218,0.25);
  --rule-soft: rgba(239,233,218,0.1);
}
.spread.dark ::selection { background: var(--paper); color: var(--ink); }
.spread.green {
  background: var(--secondary);
  color: var(--paper);
  --rule: rgba(239,233,218,0.3);
  --rule-soft: rgba(239,233,218,0.12);
}
.spread.paper2 { background: var(--paper-2); }

.folio {
  position: absolute;
  top: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.6;
  display: flex;
  gap: 16px;
}
.folio.l { left: clamp(20px, 4vw, 72px); }
.folio.r { right: clamp(20px, 4vw, 72px); text-align: right; }

/* ===== Cover page ===== */
.cover {
  min-height: calc(100vh - 50px);
  padding: clamp(24px, 4vw, 56px) clamp(20px, 4vw, 72px) 40px;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(24px, 4vw, 48px);
  position: relative;
}
.cover .left {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 36px);
  position: relative;
  min-width: 0;
}
.cover .right {
  position: relative;
  overflow: hidden;
  background: var(--paper-3);
}

.cover .edition {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 10px 0;
}

.cover-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(48px, 7.5vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: clamp(20px, 3vw, 32px) 0;
}
.cover-title .word { display: block; }
.cover-title em {
  font-style: italic;
  color: var(--accent);
}
.cover-title .bignum {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--accent);
  font-size: clamp(80px, 14vw, 240px);
  line-height: 0.8;
  margin-left: -0.04em;
}

.cover-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.7;
  margin-bottom: 12px;
}

.cover-lede {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
  max-width: 28ch;
  letter-spacing: -0.015em;
}
.cover-lede em { font-style: italic; color: var(--accent); }

.cover-foot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.cover-foot .cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cover-foot .cell .k { opacity: 0.5; }
.cover-foot .cell .v { font-size: 12px; }

/* Cover right: stacked photo tip-ins + chapter mark */
.cover-stack {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.cover-chapter-mark {
  position: absolute;
  bottom: 24px;
  right: 24px;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(120px, 20vw, 280px);
  color: var(--accent);
  line-height: 0.85;
  letter-spacing: -0.06em;
  mix-blend-mode: multiply;
  z-index: 2;
}
.cover-tip {
  position: absolute;
  background: var(--paper);
  padding: 12px 12px 14px;
  box-shadow: 0 18px 40px rgba(27,28,24,0.18);
  transform-origin: center;
}
.cover-tip .tip-img {
  aspect-ratio: 4/5;
  width: 180px;
}
.cover-tip .tip-cap {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
  opacity: 0.7;
  max-width: 180px;
}
.cover-tip.t1 { top: 30px; left: 30px; transform: rotate(-4deg); }
.cover-tip.t2 { top: 140px; right: 40px; transform: rotate(3deg); z-index: 3; }
.cover-tip.t3 { bottom: 120px; left: 60px; transform: rotate(-2deg); z-index: 4; }

/* ===== Running ticker ===== */
.ticker {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 40px;
  animation: marquee 44s linear infinite;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.ticker-track .sep { color: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Contents page ===== */
.contents {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}
.contents-heading {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(56px, 8vw, 128px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  font-weight: 400;
}
.contents-heading em { font-style: italic; color: var(--accent); }
.contents-list {
  border-top: 1px solid var(--ink);
}
.contents-row {
  display: grid;
  grid-template-columns: 60px 2fr 3fr 60px;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--ink);
  align-items: baseline;
  cursor: pointer;
  transition: padding 0.3s ease, background 0.3s ease;
}
.contents-row:hover {
  padding-left: 12px;
  background: var(--paper-2);
}
.contents-row .no {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
}
.contents-row .chapter {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.contents-row .chapter em { font-style: italic; color: var(--accent); font-weight: 400; }
.contents-row .desc {
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.72;
  max-width: 48ch;
}
.contents-row .pg {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-align: right;
  opacity: 0.6;
}
.contents-row:hover .pg { color: var(--accent); opacity: 1; }

/* ===== Editor's note (lede spread) ===== */
.editors-note {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
.editors-note aside {
  position: sticky;
  top: 80px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.5;
}
.editors-note aside .stamp {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--ink);
  width: fit-content;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.editors-note aside .signature {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 24px;
  margin-top: 24px;
}
.editors-note .body {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(26px, 2.7vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 24ch;
  font-weight: 400;
}
.editors-note .body p + p { margin-top: 0.8em; }
.editors-note .body em { font-style: italic; color: var(--accent); }
.editors-note .body .dropcap {
  float: left;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--accent);
  font-size: 5.2em;
  line-height: 0.82;
  padding-right: 0.08em;
  margin-top: 0.02em;
  margin-bottom: -0.1em;
}

/* ===== Work / projects spread ===== */
.work-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 40px;
}
.work-head h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(56px, 8vw, 128px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  font-weight: 400;
}
.work-head h2 em { font-style: italic; color: var(--accent); }
.work-head .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: right;
  opacity: 0.7;
  line-height: 1.6;
}

/* asymmetric magazine grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px 24px;
  margin-top: 24px;
}
.work-item { display: flex; flex-direction: column; gap: 10px; }
.work-item .img { position: relative; overflow: hidden; background: var(--paper-3); }
.work-item .img > * {
  width: 100%; height: 100%; display: block;
  transition: transform 1.1s cubic-bezier(.2,.7,0,1);
}
.work-item:hover .img > * { transform: scale(1.04); }
.work-item .cap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
  opacity: 0.75;
}
.work-item .title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1;
  font-weight: 400;
}
.work-item .title em { font-style: italic; color: var(--accent); font-weight: 400; }
.work-item.big { grid-column: span 7; }
.work-item.big .img { aspect-ratio: 4/3; }
.work-item.med { grid-column: span 5; }
.work-item.med .img { aspect-ratio: 4/5; }
.work-item.third { grid-column: span 4; }
.work-item.third .img { aspect-ratio: 4/5; }
.work-item.wide { grid-column: span 8; }
.work-item.wide .img { aspect-ratio: 16/9; }
.work-item.full { grid-column: span 12; }
.work-item.full .img { aspect-ratio: 21/9; }

/* ===== Case study spread ===== */
.case-study {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.case-study .cs-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(48px, 6.5vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.case-study .cs-title em { font-style: italic; color: var(--accent); }
.case-study .cs-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.7;
  margin-top: 24px;
  margin-bottom: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.case-study .cs-sub .k { opacity: 0.5; display: block; margin-bottom: 4px; }
.case-study .cs-body {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(20px, 1.6vw, 22px);
  line-height: 1.4;
  margin-top: 24px;
  max-width: 40ch;
}
.case-study .cs-body p + p { margin-top: 0.8em; }
.case-study .cs-body em { font-style: italic; color: var(--accent); }
.case-study .cs-body .pull {
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 24px 0;
  font-style: italic;
}
.case-study .cs-body .pull em { color: var(--accent); font-style: italic; }

/* Before/after inline slider */
.ba {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
  background: var(--paper-3);
}
.ba .layer { position: absolute; inset: 0; }
.ba .layer.after { clip-path: inset(0 0 0 var(--s, 50%)); }
.ba .handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--s, 50%);
  width: 2px;
  transform: translateX(-50%);
  background: var(--paper);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
}
.ba .knob {
  position: absolute;
  top: 50%; left: var(--s, 50%);
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  background: var(--paper);
  color: var(--ink);
  display: grid; place-items: center;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 18px;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  pointer-events: none;
}
.ba .tag {
  position: absolute;
  top: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 8px;
  background: rgba(27,28,24,0.6);
  color: var(--paper);
  backdrop-filter: blur(6px);
}
.ba .tag.l { left: 14px; }
.ba .tag.r { right: 14px; }

/* Site plan table (services) */
.spec-table {
  margin-top: 40px;
  border-top: 1px solid currentColor;
}
.spec-row {
  display: grid;
  grid-template-columns: 80px 2fr 3fr 2fr 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  cursor: pointer;
  transition: padding 0.3s ease, background 0.3s ease;
  position: relative;
}
.spec-row:hover { padding-left: 14px; }
.spec-row .no {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.5;
}
.spec-row .name {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 400;
  transition: color 0.3s ease;
}
.spec-row:hover .name { color: var(--accent); font-style: italic; }
.spec-row .desc {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.8;
  max-width: 46ch;
}
.spec-row .spec-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.6;
  opacity: 0.7;
}
.spec-row .arrow {
  justify-self: end;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 26px;
  transition: transform 0.3s ease, color 0.3s ease;
}
.spec-row:hover .arrow { transform: translate(6px,-4px); color: var(--accent); }

/* ===== Process — method notes ===== */
.method-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 40px;
}
.method-head h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(64px, 9vw, 160px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  font-weight: 400;
}
.method-head h2 em { font-style: italic; color: var(--accent); }
.method-head .kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.7;
  line-height: 1.6;
}

.methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.method {
  padding: 40px 32px 48px 0;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.method:nth-child(2n) { padding-left: 32px; padding-right: 0; border-left: 1px solid var(--rule); }
.method .no {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(48px, 5.4vw, 84px);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.04em;
}
.method h3 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 2.8vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 400;
  max-width: 18ch;
}
.method p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 42ch;
  opacity: 0.85;
}
.method .dur {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.6;
}

/* ===== Figures / numbers spread ===== */
.figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.fig {
  padding: 32px 24px 32px 0;
  border-right: 1px solid var(--rule);
}
.fig:last-child { border-right: none; padding-right: 0; }
.fig .v {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(80px, 10vw, 160px);
  line-height: 0.85;
  letter-spacing: -0.045em;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.fig .v .u {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: inherit;
  opacity: 0.65;
  align-self: flex-end;
  margin-bottom: 16px;
}
.fig .k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.65;
  margin-top: 12px;
}
.fig .desc {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.82;
  max-width: 26ch;
}

/* ===== Pull quote spread ===== */
.pull-spread {
  padding: clamp(80px, 10vw, 160px) clamp(20px, 4vw, 96px);
  background: var(--secondary);
  color: var(--paper);
  border-bottom: 1px solid var(--ink);
  position: relative;
}
.pull-spread .folio { color: var(--paper); opacity: 0.55; }
.pull-spread blockquote {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(40px, 6.2vw, 104px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 400;
  max-width: 18ch;
}
.pull-spread blockquote em { font-style: italic; color: #D3A86A; }
.pull-spread .attrib {
  margin-top: 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.pull-spread .attrib .avatar {
  width: 48px; height: 48px;
  background: rgba(239,233,218,0.12);
  display: grid; place-items: center;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 22px;
  color: #D3A86A;
}

/* ===== Contact spread ===== */
.contact-spread { background: var(--ink); color: var(--paper); border-bottom: none; }
.contact-spread .folio { color: var(--paper); opacity: 0.5; }
.contact-head h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(64px, 10vw, 180px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  font-weight: 400;
}
.contact-head h2 em { font-style: italic; color: #D3A86A; }
.contact-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 56px;
}
.form-field {
  border-bottom: 1px solid rgba(239,233,218,0.22);
  padding: 10px 0 10px;
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 8px;
}
.form-field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.6;
}
.form-field input,
.form-field textarea {
  background: transparent;
  border: 0;
  color: var(--paper);
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  outline: none;
  padding: 4px 0;
  resize: none;
  letter-spacing: -0.01em;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(239,233,218,0.3);
  font-style: italic;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 7px 12px;
  border: 1px solid rgba(239,233,218,0.25);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: all 0.2s ease;
}
.chip:hover { border-color: var(--paper); }
.chip.on { background: #D3A86A; color: var(--ink); border-color: #D3A86A; }
.submit {
  margin-top: 20px;
  background: #D3A86A;
  color: var(--ink);
  border: none;
  padding: 22px 26px;
  cursor: pointer;
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  font-style: italic;
  font-weight: 400;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  transition: background 0.2s ease;
}
.submit:hover { background: #E6BF7F; }
.contact-side .block {
  padding-top: 14px;
  border-top: 1px solid rgba(239,233,218,0.22);
  margin-bottom: 28px;
}
.contact-side .k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.55;
  margin-bottom: 8px;
}
.contact-side .v {
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.contact-side .v a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(239,233,218,0.3); }
.contact-side .v a:hover { color: #D3A86A; border-color: #D3A86A; }
.contact-side .note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.4;
  margin-top: 4px;
}

/* ===== Colophon ===== */
.colophon {
  background: var(--ink);
  color: var(--paper);
  padding: 56px clamp(20px, 4vw, 72px) 20px;
  border-top: 1px solid rgba(239,233,218,0.18);
}
.colophon .wordmark {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(80px, 15vw, 260px);
  letter-spacing: -0.045em;
  line-height: 0.85;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(239,233,218,0.2);
}
.colophon .wordmark em { font-style: italic; color: #D3A86A; }
.colophon-bottom {
  padding-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
  line-height: 1.6;
}
.colophon-bottom .col .k { opacity: 0.5; margin-bottom: 8px; }

/* ===== Side progress rail (scroll indicator) ===== */
.rail {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  mix-blend-mode: difference;
  color: #EFE9DA;
  pointer-events: none;
  align-items: flex-end;
}
.rail .tick {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: row-reverse;
  opacity: 0.35;
  transition: opacity 0.25s ease;
}
.rail .tick .mark { width: 14px; height: 1px; background: currentColor; }
.rail .tick.on { opacity: 1; }
.rail .tick.on .mark { width: 28px; background: #D3A86A; }
.rail .tick .lbl { opacity: 0.9; }

/* ===== Reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s cubic-bezier(.2,.7,0,1), transform 1s cubic-bezier(.2,.7,0,1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }
.line-mask { display: inline; vertical-align: baseline; }
.line-mask > span {
  display: inline;
}

/* Placeholder sketches use svg, fill via currentColor inside */
.sketch { width: 100%; height: 100%; display: block; }

/* Tweak panel */
.tweaks {
  position: fixed;
  right: 16px; bottom: 16px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 18px;
  width: 280px;
  border: 1px solid #3A3B34;
  font-family: 'Instrument Sans', sans-serif;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.tweaks h4 {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}
.tweaks h4 em { font-style: italic; color: #D3A86A; }
.tweaks .tsub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.5;
  margin-bottom: 14px;
}
.tweak-row { margin-bottom: 12px; }
.tweak-row .l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.6;
  margin-bottom: 6px;
}
.tweak-row .sw { display: flex; gap: 6px; flex-wrap: wrap; }
.tweak-row .sw .c {
  width: 28px; height: 28px; cursor: pointer;
  border: 1px solid rgba(239,233,218,0.2);
  position: relative;
}
.tweak-row .sw .c.on { border-color: #EFE9DA; }
.tweak-row .sw .c.on::after {
  content: ''; position: absolute; inset: 4px;
  border: 1px solid #EFE9DA;
}
.tweak-row .segs { display: flex; }
.tweak-row .segs .seg {
  flex: 1;
  padding: 8px;
  border: 1px solid rgba(239,233,218,0.22);
  background: transparent;
  color: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.tweak-row .segs .seg + .seg { border-left: none; }
.tweak-row .segs .seg.on { background: #D3A86A; color: var(--ink); border-color: #D3A86A; }

/* ===== Mobile ===== */
@media (max-width: 900px) {
  .masthead { grid-template-columns: 1fr auto; }
  .masthead .right { display: none; }
  .cover { grid-template-columns: 1fr; min-height: auto; }
  .cover .right { aspect-ratio: 4/5; }
  .cover-foot { grid-template-columns: 1fr 1fr; }
  .contents { grid-template-columns: 1fr; }
  .contents-row { grid-template-columns: 40px 1fr 40px; grid-template-rows: auto auto; }
  .contents-row .desc { grid-column: 2 / 4; font-size: 12px; }
  .editors-note { grid-template-columns: 1fr; gap: 32px; }
  .editors-note aside { position: static; }
  .work-head { grid-template-columns: 1fr; }
  .work-head .meta { text-align: left; }
  .work-grid { grid-template-columns: 1fr; gap: 28px; }
  .work-item.big, .work-item.med, .work-item.third, .work-item.wide, .work-item.full { grid-column: span 1; }
  .work-item.big .img, .work-item.med .img, .work-item.third .img,
  .work-item.wide .img, .work-item.full .img { aspect-ratio: 4/3; }
  .case-study { grid-template-columns: 1fr; gap: 32px; }
  .case-study .cs-sub { grid-template-columns: 1fr 1fr; }
  .method-head { grid-template-columns: 1fr; }
  .methods { grid-template-columns: 1fr; }
  .method, .method:nth-child(2n) {
    padding: 28px 0; border-left: none;
  }
  .spec-row { grid-template-columns: 40px 1fr; grid-template-rows: auto auto auto; gap: 6px; }
  .spec-row .desc { grid-column: 2; }
  .spec-row .spec-meta { grid-column: 2; }
  .spec-row .arrow { display: none; }
  .figures { grid-template-columns: 1fr 1fr; }
  .fig { padding: 24px 16px 24px 0; border-right: 1px solid var(--rule); }
  .fig:nth-child(2n) { border-right: none; padding-right: 0; }
  .fig:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .rail { display: none; }
  .tweaks { right: 8px; bottom: 8px; width: calc(100% - 16px); }
  .cover-chapter-mark { font-size: 140px; }
  .cover-tip.t1, .cover-tip.t2, .cover-tip.t3 { transform: none; position: relative; top: auto; left: auto; right: auto; bottom: auto; margin: 12px auto; }
  .cover-stack { position: static; padding: 24px; }
}
