/* ==========================================================
   Arya Jain — aryajain.net
   Brand Strategist · Creative Marketer
   ========================================================== */

:root {
  --ground: #0000DC;
  --paper: #F2EBD8;
  --paper-dim: rgba(242, 235, 216, 0.6);
  --paper-soft: rgba(242, 235, 216, 0.3);
  --rule: rgba(242, 235, 216, 0.18);
  --accent: #FF7F50;
}
[data-theme="green"] { --ground: #0B3D2E; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
html, body {
  background: var(--ground);
  color: var(--paper);
  font-family: 'Inter Tight', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.6s cubic-bezier(0.7, 0, 0.3, 1);
}
body { overflow-x: clip; }
::selection { background: var(--accent); color: var(--ground); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
              height 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
              background 0.25s, border-radius 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cursor.grow { width: 84px; height: 84px; }
.cursor.grow .cursor-label { opacity: 1; }
.cursor-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ground);
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  text-align: center;
  line-height: 1.15;
  padding: 0 8px;
  max-width: 100%;
}
@media (hover: none) { .cursor { display: none; } }
@media (prefers-reduced-motion: reduce) { .cursor { display: none; } }

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--ground);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 32px;
  transition: transform 0.9s cubic-bezier(0.7, 0, 0.3, 1);
  pointer-events: none;
}
.loader.gone { transform: translateY(-100%); }
.loader .l-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--paper-dim);
}
.loader .l-tag em { color: var(--accent); font-style: normal; }
.loader .pct {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(96px, 18vw, 280px);
  line-height: 0.8;
  color: var(--paper);
  letter-spacing: -0.04em;
}

/* ---------- Nav ---------- */
nav.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  pointer-events: none;
}
nav.top > * { pointer-events: auto; }
nav.top .mark {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 10px;
}
nav.top .mark .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
nav.top .right { display: flex; align-items: center; gap: 14px; }
nav.top .right a, nav.top .theme-toggle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--paper);
  border: 1px solid rgba(242,235,216,0.35);
  transition: background .2s, border-color .2s, color .2s;
}
nav.top .right a:hover, nav.top .theme-toggle:hover { border-color: var(--paper); }
nav.top .theme-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
}
nav.top .theme-toggle .sw { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(242,235,216,0.4); }
nav.top .theme-toggle .sw.blue { background: #0000DC; }
nav.top .theme-toggle .sw.green { background: #0B3D2E; }
nav.top .cta {
  background: transparent;
  border-color: var(--paper) !important;
}
nav.top .cta:hover { background: var(--paper); color: var(--ground) !important; }

/* ---------- Hero ---------- */
section.hero {
  min-height: 100vh;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.23;
  pointer-events: none;
  filter: saturate(0.85) contrast(1.05);
  mix-blend-mode: normal;
  transition: opacity 2s cubic-bezier(0.4, 0, 0.6, 1);
}
.hero-bg-video.bg-b { opacity: 0; }
.hero.show-alt .hero-bg-video.bg-a { opacity: 0; }
.hero.show-alt .hero-bg-video.bg-b { opacity: 0.23; }
.hero-bg-video.off { display: none; }
[data-theme="green"] .hero-bg-video { opacity: 0.17; }
[data-theme="green"] .hero-bg-video.bg-b { opacity: 0; }
[data-theme="green"] .hero.show-alt .hero-bg-video.bg-a { opacity: 0; }
[data-theme="green"] .hero.show-alt .hero-bg-video.bg-b { opacity: 0.17; }
.hero-vid-toggle {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--paper-dim);
  padding: 7px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(0,0,0,0.15);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.hero-vid-toggle:hover { color: var(--paper); border-color: var(--paper-dim); }
.hero-anchor {
  text-align: center;
  max-width: 1500px;
  width: 100%;
  position: relative;
  z-index: 2;
}
@keyframes fadein { to { opacity: 1; } }

.hero-name {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(64px, 13vw, 200px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--paper);
  display: block;
  cursor: pointer;
  user-select: none;
  padding: 0.1em 0.05em 0.15em;
}
.hero-name .word { display: block; }
.hero-name .word .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  will-change: transform, opacity;
}
.hero-name .ital { color: var(--accent); }
.hero-name:active { transform: scale(0.99); transition: transform 0.1s; }

.hero-status {
  margin-top: 40px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--paper-dim);
  opacity: 0;
  animation: fadein 0.6s 1.6s forwards;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
}
.hero-status .swap {
  display: inline-block;
  color: var(--accent);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-transform: none;
  position: relative;
  min-width: 9ch;
  text-align: left;
  line-height: 1;
}
.hero-status .swap::after {
  content: '';
  position: absolute;
  right: -0.5em; top: 0.05em;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink {
  0%,50% { opacity: 1; }
  50.1%,100% { opacity: 0; }
}

.hero-corner {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--paper-dim);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  animation: fadein 0.7s 2s forwards;
  z-index: 3;
}
.hero-corner.left { bottom: 32px; left: 32px; }
.hero-corner.right { bottom: 32px; right: 32px; text-align: right; }
.hero-corner span:first-child { color: var(--paper); }
.hero-corner.right .arrow { display: inline-block; animation: bob 2s ease-in-out infinite 2.5s; }
@keyframes bob {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ---------- Brand strip ---------- */
section.brands {
  padding: 48px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.brands-label {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--paper-dim);
  margin-bottom: 32px;
}
.brands-label em { color: var(--accent); font-style: normal; }
.brands-track {
  display: flex;
  gap: 64px;
  align-items: center;
  width: max-content;
  animation: marquee 165s linear infinite;
  padding: 0 32px;
}
.brands-track img {
  /* Fixed bounding box so every logo fills the same visual area */
  width: 120px;
  height: 70px;
  object-fit: contain;
  opacity: 0.85;
  filter: saturate(0.65) brightness(1.05);
  transition: opacity 0.35s, filter 0.35s, transform 0.35s;
  flex-shrink: 0;
}
.brands-track img:hover { opacity: 1; filter: saturate(1) brightness(1); transform: scale(1.05); }
/* Per-logo size normalisation (some marks have more whitespace than others) */
.brands-track img[src*="Mumbai_Indians_Logo"] { transform: scale(0.78); }
.brands-track img[src*="Mumbai_Indians_Logo"]:hover { transform: scale(0.82); }
.brands-track img[src*="Tata_Consultancy_Services"] { transform: scale(1.25); }
.brands-track img[src*="Tata_Consultancy_Services"]:hover { transform: scale(1.32); }
.brands-track img[src*="Reliance_Foundation"] { transform: scale(0.92); }
.brands-track img[src*="Reliance_Foundation"]:hover { transform: scale(0.97); }
.brands-track img[src*="Pro_Kabaddi_League"] { transform: scale(0.88); }
.brands-track img[src*="Pro_Kabaddi_League"]:hover { transform: scale(0.93); }
.brands-track img[src*="Adani_logo"] { transform: scale(1.1); }
.brands-track img[src*="Adani_logo"]:hover { transform: scale(1.15); }
.brands-track img[src*="Apollo_Tyres"] { transform: scale(1.12); }
.brands-track img[src*="Apollo_Tyres"]:hover { transform: scale(1.17); }
.brands-track img[src*="NSE_Logo"] { transform: scale(1.1); }
.brands-track img[src*="NSE_Logo"]:hover { transform: scale(1.15); }
.brands-track img[src*="Hyatt_logo"] { transform: scale(1.08); }
.brands-track img[src*="Hyatt_logo"]:hover { transform: scale(1.13); }
.brands-track img[src*="ibus_logo"] { transform: scale(1.1); }
.brands-track img[src*="ibus_logo"]:hover { transform: scale(1.15); }
.brands-track img[src*="Flipkart_logo"] { transform: scale(1.4); }
.brands-track img[src*="Flipkart_logo"]:hover { transform: scale(1.48); }
.brands-track img[src*="Metro_logo"] { transform: scale(1.45); }
.brands-track img[src*="Metro_logo"]:hover { transform: scale(1.52); }

/* Drag interaction on the marquee */
.brands-track.dragging {
  animation-play-state: paused;
  cursor: grabbing;
}
.brands-track {
  cursor: grab;
  user-select: none;
}
.brands-track.dragging img {
  pointer-events: none;
}
.brands.is-paused .brands-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Manifesto ---------- */
section.manifesto {
  min-height: 100vh;
  padding: 64px 32px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
}
.manifesto h2 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: clamp(48px, 9vw, 152px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--paper);
  max-width: 14ch;
}
.manifesto h2 .ital {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.manifesto h2 .reveal { display: block; overflow: hidden; will-change: transform; }
.manifesto h2 .reveal > span {
  display: block;
  will-change: transform;
  opacity: 0;
}
/* Split-direction reveal: top from left, middle from below, bottom from right */
.manifesto h2 .reveal:nth-child(1) > span { transform: translateX(-110%); }
.manifesto h2 .reveal:nth-child(2) > span { transform: translateY(110%); }
.manifesto h2 .reveal:nth-child(3) > span { transform: translateX(110%); }
.manifesto-body {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  max-width: 1100px;
  align-items: start;
}
.manifesto-body .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  padding-top: 8px;
}
.manifesto-body p {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--paper);
  max-width: 28ch;
}
.manifesto-body p em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

/* ---------- Work — horizontal scroll ---------- */
section.work-pin {
  position: relative;
  border-top: 1px solid var(--rule);
}
.work-track {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.work-strip {
  display: flex;
  height: 100%;
  align-items: center;
  padding: 0 32px;
  gap: 32px;
  will-change: transform;
}
.work-intro { flex-shrink: 0; width: 70vw; padding-right: 80px; }
.work-intro .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 24px;
}
.work-intro h2 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: clamp(48px, 7vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--paper);
}
.work-intro h2 .ital { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--accent); }
.work-intro p {
  font-size: 16px;
  color: var(--paper-dim);
  line-height: 1.55;
  margin-top: 24px;
  max-width: 36ch;
}

.work-card {
  flex-shrink: 0;
  width: 480px;
  height: 86vh;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.35;
  transform: scale(0.94);
  transition: transform 0.7s cubic-bezier(0.2,0.8,0.2,1), opacity 0.6s;
  background: rgba(242,235,216,0.05);
}
.work-card.in-view { opacity: 1; transform: scale(1); }
.work-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(0.8);
  opacity: 1;
  transition: filter 0.5s, transform 0.7s cubic-bezier(0.2,0.8,0.2,1);
  z-index: 0;
}
.work-card:hover .work-card-bg { filter: brightness(0.7) saturate(0.95); transform: scale(1.04); }
.work-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.6) 45%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}
.work-card > *:not(.work-card-bg) { position: relative; z-index: 2; }
.work-card .num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 88px;
  line-height: 0.9;
  color: var(--accent);
  letter-spacing: -0.04em;
}
.work-card .meta-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.85);
}
.work-card .meta-top .tag {
  border: 1px solid rgba(255,255,255,0.4);
  padding: 4px 8px;
  border-radius: 3px;
  backdrop-filter: blur(4px);
  background: rgba(0,0,0,0.2);
}
.work-card h3 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--paper);
}
.work-card h3 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--accent);
}
.work-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.55;
  margin-top: 12px;
  max-width: 38ch;
}
.work-card .metric {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-top: 14px;
  font-weight: 500;
}
.work-card .footer-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.85);
}
.work-card .footer-row .arrow {
  font-size: 22px;
  color: var(--paper);
  transition: transform 0.25s, color 0.25s;
}
.work-card:hover .footer-row .arrow { transform: translateX(8px); color: var(--accent); }

.work-end {
  flex-shrink: 0;
  width: 60vw;
  padding-left: 64px;
  padding-right: 80px;
}
.work-end h3 {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--paper);
}
.work-end h3 em { color: var(--accent); font-style: italic; }
.work-end p {
  font-size: 16px;
  color: var(--paper-dim);
  line-height: 1.55;
  margin-top: 24px;
  max-width: 40ch;
}
.work-end .stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 56px;
}
.work-end h3 { margin-top: 0; }
.work-end .stat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--paper-dim);
}
.work-end .stat strong {
  display: block;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 36px;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-transform: none;
  margin-bottom: 4px;
}

/* ---------- About / The Lens ---------- */
section.about { border-top: 1px solid var(--rule); position: relative; }
.about-intro {
  min-height: 100vh;
  padding: 64px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
}
.about-intro .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 32px;
}
.about-intro h2 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: clamp(48px, 8vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--paper);
  max-width: 14ch;
}
.about-intro h2 em { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--accent); }
.about-lead {
  margin-top: 32px;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 36px);
  line-height: 1.3;
  color: var(--paper-dim);
  max-width: 28ch;
}

.pillar {
  min-height: 100vh;
  position: relative;
  padding: 80px 48px;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s, transform 1s cubic-bezier(0.2,0.8,0.2,1);
}
.pillar.in-view { opacity: 1; transform: translateY(0); }
.pillar-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--paper-dim);
  z-index: 3;
}
.pillar-tag em { color: var(--accent); font-style: normal; }
.pillar h3 {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(64px, 11vw, 180px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--paper);
  position: relative;
  z-index: 2;
}
.pillar h3 .accent { color: var(--accent); }
.pillar p {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--paper);
  max-width: 44ch;
  position: relative;
  z-index: 2;
}
.pillar-easter {
  position: relative;
  z-index: 3;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.5s cubic-bezier(0.2,0.8,0.2,1);
}
.pillar-easter:hover { transform: translateY(-4px) rotate(-1deg); }
.pillar-easter img {
  width: 240px;
  height: 192px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(242,235,216,0.25);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  filter: saturate(0.85) contrast(1.05);
}
.pillar-easter figcaption {
  margin-top: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--paper-dim);
  line-height: 1.6;
  max-width: 240px;
}
.pillar-easter figcaption em {
  display: inline-block;
  margin-top: 4px;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--accent);
}

/* Pillar 01 — Constellations / Hubble */
.pillar-01 {
  background:
    linear-gradient(180deg, rgba(0,0,40,0.5) 0%, rgba(0,0,60,0.7) 100%),
    radial-gradient(ellipse at 25% 30%, rgba(0,40,140,0.5) 0%, transparent 60%),
    #02061a;
  display: grid;
  grid-template-areas: "tag ." "head head" "body easter";
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 40px;
  align-content: space-between;
}
.pillar-01 .pillar-tag { grid-area: tag; align-self: start; }
.pillar-01 h3 { grid-area: head; align-self: end; max-width: 14ch; }
.pillar-01 p { grid-area: body; align-self: end; }
.pillar-01 .pillar-easter { grid-area: easter; justify-self: end; align-self: end; }
.pillar-01 .stars { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.pillar-01 .star {
  position: absolute;
  width: 3px; height: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255,255,255,0.7);
  animation: twinkle 4s ease-in-out infinite;
}
.pillar-01 .star.sm { width: 2px; height: 2px; box-shadow: 0 0 3px rgba(255,255,255,0.5); }
.pillar-01 .star:nth-child(odd) { animation-delay: 1.3s; }
.pillar-01 .star:nth-child(3n) { animation-delay: 2.5s; }
@keyframes twinkle { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

/* Pillar 02 — Timing matters */
.pillar-02 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}
.pillar-02::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(255,127,80,0.55) 50%, transparent 100%);
  animation: pulse-line 3s ease-in-out infinite;
}
@keyframes pulse-line {
  0%,100% { opacity: 0.35; }
  50% { opacity: 1; }
}
.pillar-02 .pillar-tag { align-self: flex-start; }
.pillar-02 h3.head-top { align-self: flex-start; max-width: 8ch; }
.pillar-02 h3.head-bottom { align-self: flex-end; text-align: right; max-width: 8ch; }
.pillar-02 .body-mid {
  align-self: center;
  text-align: center;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(20px, 1.9vw, 28px);
  color: var(--paper);
  max-width: 42ch;
  line-height: 1.45;
  margin: 24px 0;
}
.pillar-02 .pillar-easter { position: absolute; bottom: 80px; right: 64px; }

/* Pillar 03 — Stories need a spine */
.pillar-03 {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  min-height: 100vh;
  gap: 0;
}
.pillar-03 .spine {
  background: linear-gradient(180deg, transparent 0%, rgba(242,235,216,0.4) 50%, transparent 100%);
  height: 80%;
  align-self: center;
}
.pillar-03 .page-l, .pillar-03 .page-r {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.pillar-03 .page-l { padding-right: 56px; align-items: flex-end; text-align: right; }
.pillar-03 .page-r { padding-left: 56px; }
.pillar-03 h3 { font-size: clamp(48px, 8vw, 132px); max-width: 10ch; }
.pillar-03 .page-l .pillar-easter { align-items: flex-end; }

/* Pillar 04 — Systems reveal themselves */
.pillar-04 {
  display: grid;
  grid-template-areas: "tag ." "body easter" "head head";
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 32px;
}
.pillar-04 .grid-bg {
  position: absolute;
  inset: 80px 48px;
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 4px;
  pointer-events: none;
  z-index: 0;
}
.pillar-04 .dot {
  width: 4px; height: 4px;
  background: rgba(242,235,216,0.16);
  border-radius: 50%;
  align-self: center;
  justify-self: center;
  opacity: 0;
  transition: opacity 0.6s;
}
.pillar-04.in-view .dot { opacity: 1; }
.pillar-04 .dot.accent { background: var(--accent); box-shadow: 0 0 8px rgba(255,127,80,0.6); }
.pillar-04 .pillar-tag { grid-area: tag; align-self: start; }
.pillar-04 p { grid-area: body; align-self: center; }
.pillar-04 .pillar-easter { grid-area: easter; align-self: center; justify-self: center; }
.pillar-04 h3 { grid-area: head; align-self: end; text-align: right; max-width: none; }

/* ---------- Now ---------- */
section.now {
  min-height: 100vh;
  padding: 64px 32px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.now-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 24px;
  align-self: center;
}
.now-head {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--paper);
  margin-bottom: 64px;
  text-align: center;
}
.now-head em { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--accent); }
.now-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 1200px;
  width: 100%;
}
.now-col {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s, transform 0.7s cubic-bezier(0.2,0.8,0.2,1);
}
.now-col.in-view { opacity: 1; transform: translateY(0); }
.now-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 500;
}
.now-col ul { list-style: none; padding: 0; }
.now-col li {
  font-size: 16px;
  color: var(--paper);
  line-height: 1.5;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  min-height: 56px;
}
.now-col li:last-child { border-bottom: none; }
.now-col li .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--paper-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  flex-shrink: 0;
  align-self: flex-start;
  padding-top: 4px;
  text-align: right;
}
.now-col li .meta.accent { color: var(--accent); }

/* ---------- Notes teaser ---------- */
section.notes-teaser {
  padding: 120px 32px;
  border-top: 1px solid var(--rule);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}
.notes-teaser .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 24px;
}
.notes-teaser h2 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: clamp(48px, 7vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--paper);
}
.notes-teaser h2 em { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--accent); }
.notes-teaser p {
  margin-top: 28px;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(20px, 2vw, 28px);
  color: var(--paper-dim);
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}
.notes-teaser .notes-cta {
  display: inline-block;
  margin-top: 40px;
  padding: 14px 28px;
  border: 1px solid var(--paper);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--paper);
  transition: background .2s, color .2s;
}
.notes-teaser .notes-cta:hover { background: var(--paper); color: var(--ground); }

/* ---------- Footer ---------- */
footer.foot {
  min-height: 100vh;
  padding: 64px 32px 32px;
  border-top: 1px solid var(--rule);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.foot-big {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: clamp(80px, 18vw, 320px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--paper);
  text-align: center;
}
.foot-big em { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--accent); }
.foot-magnet-wrap { margin-top: 64px; display: flex; justify-content: center; }
.foot-magnet {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 28px 48px;
  border: 2px solid var(--paper);
  border-radius: 999px;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(24px, 3vw, 48px);
  color: var(--paper);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
}
.foot-magnet:hover { background: var(--accent); color: var(--ground); border-color: var(--accent); }
.foot-magnet .arrow { display: inline-block; transition: transform 0.3s; }
.foot-magnet:hover .arrow { transform: translateX(8px); }

.foot-grid {
  margin-top: 96px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  border-top: 1px solid var(--rule);
  padding-top: 48px;
}
.foot-grid h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--paper-dim);
  margin-bottom: 14px;
  font-weight: 500;
}
.foot-grid .lockup {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 36px;
  line-height: 1;
  color: var(--paper);
}
.foot-grid .lockup em { color: var(--accent); }
.foot-grid a {
  display: block;
  color: var(--paper);
  font-size: 15px;
  line-height: 1.85;
  border-bottom: 1px solid transparent;
  width: fit-content;
  transition: border-color .2s, color .2s;
}
.foot-grid a:hover { border-color: var(--accent); color: var(--accent); }
.foot-colophon {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--paper-dim);
}
.foot-colophon .easter { cursor: pointer; transition: color .2s; }
.foot-colophon .easter:hover { color: var(--accent); }
.foot-colophon .easter em { color: var(--accent); font-style: normal; }

/* ---------- Hidden message ---------- */
.hidden-msg {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--accent);
  background: var(--ground);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 10px 20px;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.4s;
}
.hidden-msg.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.hidden-msg.show:hover { background: var(--accent); color: var(--ground); }
.hidden-msg, .hidden-msg:visited { text-decoration: none; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  nav.top { padding: 16px; }
  nav.top .right { gap: 6px; }
  nav.top .right a, nav.top .theme-toggle { padding: 7px 10px; font-size: 9px; }
  nav.top .theme-toggle span:last-child { display: none; }
  .hero-vid-toggle { font-size: 8px; padding: 6px 10px; }
  /* Brand strip — smaller box on mobile */
  .brands-track img { width: 90px; height: 50px; }
  .manifesto-body { grid-template-columns: 1fr; gap: 24px; }
  /* Work section: stack cards vertically on mobile, kill the pin */
  section.work-pin { height: auto !important; }
  .work-track { position: static; height: auto; overflow: visible; }
  .work-strip { flex-direction: column; transform: none !important; padding: 0 24px; gap: 24px; }
  .work-intro, .work-end { width: 100%; padding-right: 0; padding-left: 0; }
  .work-card { width: 100%; height: auto; min-height: 460px; padding: 24px; }
  .work-card.in-view { transform: scale(1) !important; }
  .pillar-03 { grid-template-columns: 1fr; }
  .pillar-03 .spine { display: none; }
  .pillar-03 .page-l, .pillar-03 .page-r { padding: 0; align-items: flex-start; text-align: left; }
  .pillar-02 .pillar-easter { position: static; align-self: center; }
  .pillar-easter img { width: 200px; height: 160px; }
  .now-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-magnet { padding: 18px 28px; font-size: 18px; }
  .hero-corner { font-size: 9px; gap: 4px; }
  .hero-corner.left {
    bottom: auto;
    top: 88px;
    left: 20px;
    right: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 12px;
  }
  .hero-corner.left span { display: inline-block; }
  .hero-corner.right {
    bottom: 16px;
    left: 0;
    right: 0;
    text-align: center;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }
  .hero-corner.right .arrow { font-size: 12px; }
  /* Move the video pill above the scroll-for-more text on mobile */
  .hero-vid-toggle {
    bottom: 56px;
    font-size: 8px;
    padding: 6px 10px;
  }
}

/* ==========================================================
   Case study + Notes pages
   ========================================================== */
nav.sub {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  pointer-events: none;
}
nav.sub > * { pointer-events: auto; }
nav.sub a.back {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--paper);
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(242,235,216,0.35);
  transition: background .2s, color .2s, border-color .2s;
}
nav.sub a.back:hover { background: var(--paper); color: var(--ground); }
nav.sub .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--paper-dim);
}

.case-hero {
  min-height: 100vh;
  padding: 96px 32px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
}
.case-hero-text { display: flex; flex-direction: column; gap: 24px; }
.case-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--paper-dim);
}
.case-meta-row .accent { color: var(--accent); }
.case-meta-row span:not(.accent) {
  border: 1px solid var(--rule);
  padding: 4px 10px;
  border-radius: 3px;
  color: var(--paper);
}
.case-hero h1 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--paper);
}
.case-hero h1 em { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--accent); }
.case-hero .deck {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.45;
  color: var(--paper);
  max-width: 36ch;
}
.case-hero-img {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.case-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.case-body {
  padding: 64px 32px;
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}
.case-section { margin-bottom: 80px; }
.case-section .section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 18px;
}
.case-section h2 {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 32px;
  max-width: 18ch;
}
.case-section h2 .accent { color: var(--accent); font-style: italic; }
.case-section p {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.65;
  color: var(--paper);
  max-width: 60ch;
}
.case-section p + p { margin-top: 18px; }

.case-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  padding: 64px 32px;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.case-metric strong {
  display: block;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: 8px;
}
.case-metric .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--paper-dim);
  line-height: 1.6;
}

.case-gallery {
  padding: 64px 32px;
  max-width: 1500px;
  margin: 0 auto;
}
.case-gallery .gallery-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 32px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}
.gallery-grid figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--rule);
  position: relative;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1);
}
.gallery-grid figure:hover { transform: translateY(-4px); }
.gallery-grid figure img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gallery-grid figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--paper);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
}
.gallery-grid figure.tall img { aspect-ratio: 3 / 4; }
.gallery-grid figure.wide { grid-column: span 2; }
.gallery-grid figure.wide img { aspect-ratio: 16 / 9; }

.case-nav {
  padding: 96px 32px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1500px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 32px;
}
.case-nav .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--paper-dim);
}
.case-nav a {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--paper);
  transition: color 0.2s;
}
.case-nav a:hover { color: var(--accent); }
.case-nav a em { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--accent); }
.case-nav a .arrow { display: inline-block; transition: transform 0.25s; }
.case-nav a:hover .arrow { transform: translateX(8px); }

section.notes-hero {
  min-height: 80vh;
  padding: 120px 32px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
}
.notes-hero h1 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: clamp(56px, 10vw, 168px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--paper);
}
.notes-hero h1 em { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--accent); }
.notes-hero .lead {
  margin-top: 32px;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.4;
  color: var(--paper-dim);
  max-width: 38ch;
}
.notes-list {
  padding: 64px 32px 96px;
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}
.note-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 32px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--paper);
  transition: padding-left 0.3s;
}
.note-row:hover { padding-left: 16px; }
.note-row .date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--paper-dim);
}
.note-row .title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 22px;
  line-height: 1.3;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.note-row:hover .title { color: var(--accent); }
.note-row .title em { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--accent); }
.note-row .arrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  color: var(--paper-dim);
  transition: transform 0.25s, color 0.25s;
}
.note-row:hover .arrow { transform: translateX(6px); color: var(--accent); }

.notes-empty {
  padding: 64px 32px;
  text-align: center;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--paper-dim);
  max-width: 36ch;
  margin: 0 auto;
}

@media (max-width: 760px) {
  .case-hero { grid-template-columns: 1fr; gap: 32px; padding: 80px 20px 48px; }
  .case-hero-img { aspect-ratio: 3 / 2; }
  .gallery-grid figure.wide { grid-column: span 1; }
  .gallery-grid { grid-template-columns: 1fr; }
  .case-nav { flex-direction: column; align-items: flex-start; }
  .note-row { grid-template-columns: 80px 1fr 24px; gap: 16px; }
}

/* ---------- Lens refinements (round 2) ---------- */
.pillar-easter img {
  width: 400px;
  height: 300px;
}
.pillar-easter figcaption { max-width: 400px; }
.pillar-04 .easter-pair {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  flex-wrap: wrap;
  grid-area: easter;
}
.pillar-04 .easter-pair .pillar-easter img { width: 280px; height: 210px; }
.pillar-04 .easter-pair .pillar-easter figcaption { max-width: 280px; }

/* Footer coral logo replacement */
.foot-logo-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.foot-logo-wrap .foot-logo {
  width: 96px;
  height: auto;
  display: block;
}
.foot-logo-wrap .foot-tagline {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--paper-dim);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.foot-logo-wrap .foot-tagline em { color: var(--accent); font-style: italic; }

@media (max-width: 760px) {
  .pillar-easter img { width: 280px; height: 210px; }
  .pillar-04 .easter-pair { flex-direction: column; }
  .pillar-04 .easter-pair .pillar-easter img { width: 240px; height: 180px; }
  .foot-logo-wrap .foot-logo { width: 72px; }
}

/* That's all folks — fix font inheritance */
.work-end h3 {
  font-family: 'Inter Tight', sans-serif;
  font-style: normal;
  font-weight: 400;
}
.work-end h3 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

/* ==========================================================
   Case study chapters + cards refinements (round 3)
   ========================================================== */

/* Card deck line — short italic strapline */
.work-card .deck {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.3;
  color: var(--accent);
  margin-top: 12px;
  margin-bottom: 10px;
  max-width: 32ch;
}
.work-card .meta-top .tag {
  white-space: nowrap;
}

/* Case study lead paragraphs (intro + outcome) */
.case-lead {
  padding: 32px 32px 32px;
  max-width: 800px;
  margin: 0 auto;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.4;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.case-lead em { color: var(--accent); font-style: italic; }
.case-lead.intro { padding-top: 64px; border-top: 1px solid var(--rule); }
.case-lead.outcome { padding-bottom: 64px; }

/* Story chapter — narrative section with media */
.story-chapter {
  padding: 64px 32px;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
  align-items: center;
}
.story-chapter.reverse { grid-template-columns: 2fr 1fr; }
.story-chapter.reverse .story-text { order: 2; }
.story-chapter.reverse .story-media { order: 1; }
.story-chapter.full { grid-template-columns: 1fr; gap: 32px; max-width: 1200px; }
.story-text h2 {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 18px;
}
.story-text h2 em { color: var(--accent); font-style: italic; }
.story-text p {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--paper);
  max-width: 56ch;
}
.story-text p em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.story-text .caption {
  margin-top: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--paper-dim);
}
.story-text .caption em { color: var(--accent); font-style: normal; }

/* Story media (image / video) */
.story-media { display: block; }
.story-media > img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--rule);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  display: block;
}

/* Responsive 16:9 video embed */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Athlete grid (Procam page) */
.athlete-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1300px;
  margin: 0 auto;
}
.athlete-grid figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.athlete-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--rule);
  box-shadow: 0 18px 48px rgba(0,0,0,0.4);
  display: block;
}
.athlete-grid figcaption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--paper-dim);
}
.athlete-grid figcaption em { color: var(--accent); font-style: normal; }

/* Clickable leak deck link (sops2) */
.leak-link {
  display: block;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.4s;
}
.leak-link:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 36px 84px rgba(0,0,0,0.6);
}
.leak-link img { display: block; width: 100%; height: auto; }

/* Mobile case-page responsive */
@media (max-width: 760px) {
  .story-chapter { grid-template-columns: 1fr; gap: 24px; padding: 48px 20px; }
  .story-chapter.reverse { grid-template-columns: 1fr; }
  .story-chapter.reverse .story-text { order: 1; }
  .story-chapter.reverse .story-media { order: 2; }
  .story-text h2 { font-size: 30px; }
  .athlete-grid { grid-template-columns: 1fr; }
  .case-metrics { grid-template-columns: 1fr; gap: 24px; padding: 48px 20px; }
}
