/* Layout concept: full-bleed dark "chapters", one idea per screen; a slow ambient glow behind the page shifts hue per project. */
@property --glow-c {
  syntax: '<color>';
  inherits: true;
  initial-value: #7E93A8;
}

:root {
  /* Colour */
  --ink: #1F1E1D;       /* graphite ground */
  --surface: #292725;   /* raised panels, image placeholders */
  --line: #3E3B38;      /* hairlines */
  --cream: #F2EBE3;     /* text */
  --muted: #C9BFB4;     /* secondary text */
  --terra: #D2694A;     /* the one accent */
  --pigeon: #7E93A8;    /* ambient glow (swap this hue to change the mood) */

  /* Type */
  --display: 'Cormorant Garamond', 'Iowan Old Style', 'Times New Roman', serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --t-hero: clamp(3rem, 8.4vw, 6.75rem);
  --t-h2: clamp(2.25rem, 5vw, 4rem);
  --t-h3: clamp(1.75rem, 3vw, 2.5rem);
  --t-lead: clamp(1.0625rem, 1.4vw, 1.25rem);
  --t-small: 0.8125rem;

  --gutter: clamp(16px, 5vw, 80px);
  --max: 1240px;

  --glow-c: var(--pigeon);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: --glow-c 1.4s ease;
}
img { max-width: 100%; display: block; }

/* Ambient glow layer */
body { position: relative; }
body::before {
  content: "";
  position: absolute;
  top: -10vh; left: -10%; right: -10%; height: 130vh;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 60% at 74% 46%, var(--glow-c) 0%, transparent 68%);
  opacity: 0.38;
  animation: drift 28s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-6%, 4%, 0) scale(1.08); }
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

a { color: var(--cream); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--terra); }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { font-family: var(--display); font-weight: 300; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 em, h2 em, h3 em { color: var(--terra); }
p { margin: 0; }

.eyebrow {
  font-size: var(--t-small);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(31, 30, 29, 0.92); border-color: var(--line); backdrop-filter: blur(8px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; }
.brand { font-family: var(--display); font-size: 1.5rem; font-weight: 500; letter-spacing: 0.03em; text-decoration: none; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; }
.nav a:not(.btn) { text-decoration: none; }
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .brand { font-size: 1.25rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  background: var(--terra); color: var(--ink);
  font-family: var(--body); font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--terra);
  transition: background 0.25s ease, color 0.25s ease;
}
.btn:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-ghost:hover { background: var(--cream); color: var(--ink); }
.nav .btn { min-height: 44px; padding: 0 18px; white-space: nowrap; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding-block: 140px clamp(64px, 10vh, 120px); overflow: hidden; isolation: isolate; }
.hero::before {
  content: "";
  position: absolute; inset: -3%;
  z-index: -2;
  background: url("images/hero-ink.jpg") center 30% / cover no-repeat;
  animation: breathe 32s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(31, 30, 29, 0.6) 0%, rgba(31, 30, 29, 0) 22%),
    radial-gradient(ellipse 58% 75% at 15% 85%, rgba(31, 30, 29, 0.88) 0%, rgba(31, 30, 29, 0.55) 45%, rgba(31, 30, 29, 0) 80%),
    linear-gradient(to right, rgba(31, 30, 29, 0.55) 0%, rgba(31, 30, 29, 0) 60%);
}
.hero .lead { color: var(--cream); }
@keyframes breathe {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.06) translate3d(-1.5%, 1%, 0); }
}
.hero-inner { display: flex; flex-direction: column; gap: 28px; max-width: 900px; }
.hero h1 { font-size: var(--t-hero); line-height: 0.98; }
.hero .lead { font-size: var(--t-lead); color: var(--muted); max-width: 36rem; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* Sections */
.section { padding-block: clamp(80px, 12vw, 160px); border-top: 1px solid var(--line); }
/* One left edge everywhere: headline on the left, supporting text on the right */
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.split-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.split-main h2 { font-size: var(--t-h2); line-height: 1.08; }
.split-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.split-side > p { font-size: var(--t-lead); color: var(--muted); }
/* Philosophy sits on the same four-column grid as the lenses below it */
.philosophy .split { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); align-items: center; }
.philosophy .split-main, .philosophy .split-side { grid-column: span 2; }
@media (max-width: 820px) {
  .split, .philosophy .split { grid-template-columns: minmax(0, 1fr); }
  .philosophy .split-main, .philosophy .split-side { grid-column: auto; }
}

/* Four lenses */
.lenses-eyebrow { margin-bottom: 20px; }
.lenses-title { font-size: var(--t-h2); line-height: 1.08; margin-bottom: clamp(48px, 7vw, 88px); }
.lenses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); counter-reset: lens; }
.lenses li { counter-increment: lens; display: flex; flex-direction: column; gap: 14px; padding-top: 22px; border-top: 1px solid var(--terra); min-width: 0; }
.lenses li::before { content: counter(lens); font-size: var(--t-small); letter-spacing: 0.18em; color: var(--terra); }
.lenses h3 { font-size: clamp(2rem, 3.2vw, 2.75rem); line-height: 1; font-weight: 300; }
.lenses p { color: var(--muted); font-size: 1rem; line-height: 1.6; }
@media (max-width: 960px) { .lenses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lenses { grid-template-columns: minmax(0, 1fr); } }

.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: clamp(16px, 6vw, 96px); margin-bottom: clamp(40px, 6vw, 72px); }
.section-head > div { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.section-head h2 { font-size: var(--t-h2); line-height: 1.05; }
.section-head > p { color: var(--muted); font-size: var(--t-lead); }
@media (max-width: 820px) { .section-head { grid-template-columns: minmax(0, 1fr); } }

/* Process: one line, four stops */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.process li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 32px 16px 0 0; min-width: 0; }
.process li::before { content: ""; position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--terra); }
.process li::after { content: ""; position: absolute; top: 6px; left: 13px; right: 0; height: 1px; background: var(--muted); opacity: 0.5; }
.process li:last-child::after { background: linear-gradient(to right, var(--muted), transparent); }
.process-name { font-family: var(--display); font-size: clamp(1.75rem, 2.8vw, 2.375rem); line-height: 1.05; }
.process-note { font-size: var(--t-small); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 720px) {
  .process { grid-template-columns: minmax(0, 1fr); }
  .process li { padding: 0 0 28px 36px; }
  .process li::before { top: 10px; }
  .process li::after { top: 23px; left: 6px; right: auto; bottom: 0; width: 1px; height: auto; }
  .process li:last-child::after { display: none; }
}

/* Work chapters */
.chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); }
.chapter:nth-child(even) .chapter-media { order: 2; }
.chapter-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.chapter-text h3 { font-size: var(--t-h3); line-height: 1.1; }
.chapter-text p { color: var(--muted); max-width: 32rem; }
.chapter-media { text-decoration: none; min-width: 0; }
.link-arrow { font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--terra); }
.link-arrow:hover { color: var(--cream); }
@media (max-width: 820px) {
  .chapter { grid-template-columns: minmax(0, 1fr); }
  .chapter:nth-child(even) .chapter-media { order: 0; }
}

/* Image placeholders (replace with <img> when images are ready) */
.ph {
  position: relative;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  background:
    radial-gradient(ellipse at 30% 25%, rgba(242, 235, 227, 0.07), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  display: flex; align-items: flex-end;
  padding: 20px;
  overflow: hidden;
}
.ph span { font-size: var(--t-small); color: var(--muted); letter-spacing: 0.04em; }
.ph.wide { aspect-ratio: 16 / 9; }
.ph.tall { aspect-ratio: 4 / 5; }
.chapter-media .ph { transition: transform 0.8s ease; }
.chapter-media:hover .ph { transform: scale(1.015); }

/* Real images */
.media { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface); border: 1px solid var(--line); }
.media.wide { aspect-ratio: 16 / 9; }
.media.tall { aspect-ratio: 4 / 5; }
.media.contain { object-fit: contain; padding: 0; background: #FFFFFF; }
.chapter-media .media { transition: transform 0.8s ease; }
.chapter-media:hover .media { transform: scale(1.015); }
.shot { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.shot figcaption { font-size: var(--t-small); color: var(--muted); }

.quote { margin: 0; padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; max-width: 52rem; }
.quote p { font-family: var(--display); font-weight: 300; font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.2; }
.quote footer { font-size: var(--t-small); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.more .media { margin-bottom: 8px; }

/* More work */
.more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.more article { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); min-width: 0; }
.more h3 { font-size: 1.75rem; line-height: 1.15; }
.more p { color: var(--muted); }
@media (max-width: 720px) { .more { grid-template-columns: minmax(0, 1fr); } }

/* Approach */

.scope { margin-top: clamp(40px, 6vw, 64px); max-width: none; color: var(--muted); font-size: var(--t-lead); }

.services-head { margin-top: clamp(72px, 10vw, 128px); margin-bottom: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 12px; }
.services-head h2 { font-size: var(--t-h2); line-height: 1.05; }
.offers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.offer .deliver { font-size: 0.875rem; color: var(--cream); padding-top: 12px; margin-top: auto; border-top: 1px solid var(--line); }
@media (max-width: 1080px) { .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.offer { background: rgba(41, 39, 37, 0.7); border: 1px solid var(--line); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.offer h3 { font-size: 1.75rem; }
.offer p { color: var(--muted); font-size: 1rem; }
@media (max-width: 860px) { .offers { grid-template-columns: minmax(0, 1fr); } }

/* About teaser */
.about-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-teaser .text { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.about-teaser h2 { font-size: var(--t-h3); line-height: 1.2; }
@media (max-width: 820px) { .about-teaser { grid-template-columns: minmax(0, 1fr); } }

/* Contact */
.contact-email { font-size: 1rem; color: var(--muted); }
.contact-email a { color: var(--cream); text-decoration: underline; text-decoration-color: rgba(242, 235, 227, 0.35); text-underline-offset: 4px; user-select: all; }
.contact-email a:hover { text-decoration-color: var(--terra); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 32px; font-size: var(--t-small); color: var(--muted); }

/* Case study pages */
.cs-hero { padding-block: 160px clamp(48px, 6vw, 80px); display: flex; flex-direction: column; gap: 24px; }
.cs-hero h1 { font-size: clamp(2.75rem, 7vw, 5.75rem); line-height: 1; max-width: 18ch; }
.meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 24px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.meta div { min-width: 0; }
.meta dt { font-size: var(--t-small); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.meta dd { margin: 0; font-size: 1rem; }
@media (max-width: 720px) { .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cs-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(20px, 5vw, 80px); padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); }
.cs-block h2 { font-size: 2rem; line-height: 1.15; }
.cs-block .body { display: flex; flex-direction: column; gap: 20px; max-width: 40rem; min-width: 0; }
.cs-block .body p { font-size: var(--t-lead); }
.cs-block ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
@media (max-width: 760px) { .cs-block { grid-template-columns: minmax(0, 1fr); } }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); padding-block: clamp(32px, 5vw, 64px); }
@media (max-width: 640px) { .gallery { grid-template-columns: minmax(0, 1fr); } }

.arc { margin: 0; padding: clamp(24px, 3vw, 40px); background: rgba(41, 39, 37, 0.7); border: 1px solid var(--line); }
.arc-scroll { overflow-x: auto; }
.arc svg { display: block; width: 100%; min-width: 520px; height: auto; color: var(--cream); }
.arc figcaption { margin-top: 16px; font-size: var(--t-small); color: var(--muted); }

.drivers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.drivers div { border-top: 2px solid var(--terra); padding-top: 14px; }
.drivers strong { font-family: var(--display); font-weight: 500; font-size: 1.75rem; display: block; }
@media (max-width: 560px) { .drivers { grid-template-columns: minmax(0, 1fr); } }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stats div { border-top: 1px solid var(--line); padding-top: 16px; min-width: 0; }
.stats strong { font-family: var(--display); font-weight: 300; font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1; display: block; color: var(--terra); font-variant-numeric: tabular-nums; }
.stats span { font-size: 0.9375rem; color: var(--muted); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.next { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--line); }
.next a { font-family: var(--display); font-size: var(--t-h3); text-decoration: none; }

/* About page */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(32px, 6vw, 96px); padding-block: clamp(32px, 5vw, 64px) clamp(80px, 10vw, 140px); }
.about-grid .body { display: flex; flex-direction: column; gap: 22px; max-width: 40rem; min-width: 0; }
.about-grid .body p { font-size: var(--t-lead); }
.credentials { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 0; }
.credentials li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 14px; border-top: 1px solid var(--line); font-size: 1rem; }
.credentials li span:last-child { color: var(--muted); }
@media (max-width: 820px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
  .hero::before { animation: none; }
  body { transition: none; }
  .chapter-media .ph { transition: none; }
}

/* Alternating chapters keep the image the same size on either side */
.chapter:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 820px) { .chapter:nth-child(even) { grid-template-columns: minmax(0, 1fr); } }

/* Artefact and activity items on case study pages */
.cs-block .item { display: flex; flex-direction: column; gap: 10px; }
.cs-block .item + .item { padding-top: 24px; border-top: 1px solid var(--line); }
.cs-block .item h3 { font-size: 1.75rem; line-height: 1.15; }
.cs-block .pins { list-style: none; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pins li { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 999px; text-align: center; color: var(--cream); }
.pins strong { font-weight: 500; font-size: 0.9375rem; }
.pins span { font-size: var(--t-small); color: var(--muted); }
@media (max-width: 640px) { .cs-block .pins { grid-template-columns: minmax(0, 1fr); } }
.nowrap { white-space: nowrap; }
.media.square { aspect-ratio: 1 / 1; }
.gallery-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 0; }
@media (max-width: 640px) { .gallery-3 { grid-template-columns: minmax(0, 1fr); } }

/* Client logo strip */
.clients { padding-block: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: clamp(24px, 3vw, 36px); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { list-style: none; margin: 0; padding: 0 clamp(28px, 4vw, 56px) 0 0; display: flex; align-items: center; gap: clamp(48px, 6vw, 88px); }
.marquee-list li { flex: none; display: flex; align-items: center; height: 44px; opacity: 0.75; transition: opacity 0.3s ease; }
.marquee-list li:hover { opacity: 1; }
.marquee-list img { height: 100%; width: auto; max-width: 170px; object-fit: contain; }
.logo-word { font-family: var(--body); font-weight: 500; font-size: 1.75rem; letter-spacing: 0.08em; color: var(--cream); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-33.3333%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: auto; }
  .marquee-list { flex-wrap: wrap; justify-content: center; padding-inline: var(--gutter); row-gap: 28px; }
  .marquee-list[aria-hidden="true"] { display: none; }
}

/* Flowing hero (WebGL). The CSS background stays as the fallback. */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0; transition: opacity 1.2s ease; display: block; }
.hero.is-live .hero-canvas { opacity: 1; }
.hero.is-live::before { opacity: 0; transition: opacity 1.2s ease; }


/* Process line draws itself from left to right */
.reveal-ready .process li::after { transform: scaleX(0); transform-origin: left center; transition: transform 0.8s ease calc(0.3s + var(--i, 0) * 0.45s); }
.reveal-ready .process li::before { transform: scale(0); transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) calc(0.2s + var(--i, 0) * 0.45s); }
.reveal-ready .process .process-name, .reveal-ready .process .process-note { opacity: 0; transition: opacity 0.6s ease calc(0.35s + var(--i, 0) * 0.45s); }
.reveal-ready .process.in li::after { transform: scaleX(1); }
.reveal-ready .process.in li::before { transform: scale(1); }
.reveal-ready .process.in .process-name, .reveal-ready .process.in .process-note { opacity: 1; }
@media (max-width: 720px) {
  .reveal-ready .process li::after { transform: scaleY(0); transform-origin: center top; }
  .reveal-ready .process.in li::after { transform: scaleY(1); }
}

html, body { overflow-x: clip; }


/* Side stream: the hero ink keeps flowing down one edge of the page */
.stream-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.stream-canvas.on { opacity: 1; }

/* The hero ink dissolves into the page instead of ending in a dark band, handing over to the side stream */
.hero::before, .hero-canvas {
  /* the hero ink dissolves softly into the page */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 80%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 80%);
}

/* No ambient glow behind the hero: it stays clean and dark */
body:has(.hero)::before { display: none; }

/* Images shown at their own proportions (research boards, moodboards) */
.media.natural { aspect-ratio: auto; object-fit: contain; border: 0; background: none; }
.shot-narrow { width: 100%; }
.shot-narrow, .shot-narrow + .shot { margin-top: clamp(40px, 5vw, 72px); }


.shot-gap { margin-bottom: clamp(32px, 5vw, 64px); }

/* ---------- Selected work: a wall of postcards ---------- */
.wall { display: flex; flex-direction: column; gap: clamp(64px, 9vw, 130px); padding-block: clamp(24px, 3vw, 40px) clamp(24px, 4vw, 56px); }
.pin {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  max-width: 1000px; width: 100%; text-decoration: none; color: var(--ink);
  background-color: #E3D5C0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.42  0 0 0 0 0.38  0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.42), 0 3px 8px rgba(0, 0, 0, 0.28);
  transform: rotate(-0.9deg);
}
.pin:nth-child(odd)  { margin-right: auto; }
.pin:nth-child(even) { margin-left: auto; transform: rotate(0.8deg); }

/* the photo side */
.pin-photo { grid-column: 1; grid-row: 1; margin: 0; min-height: 100%; }
.pin-photo img { display: block; width: 100%; height: 100%; min-height: 340px; object-fit: cover; }

/* the writing side, with a postcard's dividing line */
.pin-label { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(28px, 3.4vw, 48px); border-left: 1px solid rgba(31, 30, 29, 0.18); }
.pin:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.pin:nth-child(even) .pin-photo { grid-column: 2; }
.pin:nth-child(even) .pin-label { grid-column: 1; border-left: 0; border-right: 1px solid rgba(31, 30, 29, 0.18); }

.pin-meta { margin: 0 0 6px; border: 1px solid rgba(31, 30, 29, 0.45); }
.pin-meta div { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); align-items: center; min-height: 50px; padding: 4px 14px; border-top: 1px solid rgba(31, 30, 29, 0.45); }
.pin-meta div:first-child { border-top: 0; }
.pin-meta dt { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(31, 30, 29, 0.8); }
.pin-meta dd { margin: 0; font-family: 'Reenie Beanie', 'Segoe Print', cursive; font-size: 2rem; line-height: 1; color: var(--ink); }
.pin-label h3 { font-family: var(--display); font-size: clamp(1.6rem, 2.3vw, 2.05rem); line-height: 1.1; color: var(--ink); }
.pin-label p { color: rgba(31, 30, 29, 0.78); font-size: 0.95rem; }
.pin-label .link-arrow { color: #B4502F; }

/* the binder clip holding each postcard to the wall */
.clip {
  position: absolute; top: -30px; left: 50%; width: 44px; height: 54px; margin-left: -22px; z-index: 3;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 54'%3E%3Cpath d='M14 26 L14 8 a8 8 0 0 1 16 0 L30 26' fill='none' stroke='%23C9CCCF' stroke-width='2.4'/%3E%3Cpath d='M17 26 L17 9 a5 5 0 0 1 10 0 L27 26' fill='none' stroke='%23898E93' stroke-width='1.2'/%3E%3Cpath d='M4 30 L40 30 L37 50 L7 50 Z' fill='%23161616'/%3E%3Cpath d='M4 30 L40 30 L39 34 L5 34 Z' fill='%23333'/%3E%3C/svg%3E") no-repeat center / contain;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.5));
}
.pin:focus-visible { outline: 2px solid var(--terra); outline-offset: 6px; }

@media (max-width: 820px) {
  .pin, .pin:nth-child(even) { grid-template-columns: minmax(0, 1fr); margin: 0; transform: rotate(-0.6deg); }
  .pin:nth-child(even) { transform: rotate(0.6deg); }
  .pin-photo, .pin:nth-child(even) .pin-photo { grid-column: 1; grid-row: 1; }
  .pin-label, .pin:nth-child(even) .pin-label { grid-column: 1; grid-row: 2; border: 0; border-top: 1px solid rgba(31, 30, 29, 0.18); }
  .pin-photo img { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
  .pin-meta div { grid-template-columns: 4.6rem minmax(0, 1fr); min-height: 46px; }
  .pin-meta dd { font-size: 1.75rem; }
}

/* Philosophy: the tagline, a quieter subtitle, then the four lenses */
.philosophy-title { font-size: var(--t-h2); line-height: 1.05; margin-top: 20px; }
.philosophy-sub { font-family: var(--display); font-weight: 300; font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1.22; color: var(--cream); margin-top: 22px; }
.philosophy-sub em { color: #F0A07F; font-weight: 500; }
.philosophy-head { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); align-items: end; margin-bottom: clamp(48px, 7vw, 88px); }
.philosophy-head > div { grid-column: 1 / span 2; }
.philosophy-head > .philosophy-text { grid-column: 3 / span 2; }
.philosophy-text { font-size: var(--t-lead); line-height: 1.6; color: var(--muted); }
@media (max-width: 820px) { .philosophy-head { grid-template-columns: minmax(0, 1fr); } .philosophy-head > div, .philosophy-head > .philosophy-text { grid-column: auto; } }

#approach .section-head { align-items: start; }
#approach .section-head > p { padding-top: 34px; }
@media (min-width: 821px) {
  #approach .section-head { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
  #approach .section-head > div { grid-column: 1 / span 2; }
  #approach .section-head > p { grid-column: 3 / span 2; }
}

/* Footer links */
.footer-links { display: inline-flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }

/* Ways to work together */
.formats { margin-top: clamp(48px, 7vw, 80px); padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; }
.formats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.formats li { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.formats strong { font-family: var(--display); font-weight: 300; font-size: 1.6rem; line-height: 1.1; color: var(--cream); }
.formats span { color: var(--muted); font-size: 1rem; line-height: 1.6; }
@media (max-width: 820px) { .formats ul { grid-template-columns: minmax(0, 1fr); } }
.philosophy-title { font-size: clamp(2.1rem, 3.6vw, 3.2rem); line-height: 1.1; }
.philosophy-title em { color: #F0A07F; }
.contact-social { display: flex; gap: 14px; margin-top: 4px; }
.contact-social a { display: inline-flex; width: 26px; height: 26px; color: var(--muted); transition: color 0.3s ease; }
.contact-social a:hover, .contact-social a:focus-visible { color: var(--terra); }
.contact-social svg { width: 100%; height: 100%; }
