:root {
  --paper: #f5f0e7;
  --paper-deep: #ebe3d6;
  --ink: #14213a;
  --ink-soft: #465064;
  --accent: #e45c3a;
  --accent-deep: #9f321d;
  --focus-ring: #9f321d;
  --focus-ring-on-dark: #ffb39f;
  --white: #fffdf8;
  --green: #164e40;
  --line: rgba(20, 33, 58, 0.18);
  --shadow: 0 24px 70px rgba(20, 33, 58, 0.13);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --header-height: 76px;
  --shell: min(1240px, calc(100% - 48px));
  --radius: 3px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 22px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p,
figure,
ul {
  margin-top: 0;
}

::selection {
  color: var(--white);
  background: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

.section-pad {
  padding-block: clamp(96px, 12vw, 170px);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(245, 240, 231, 0.9);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(20, 33, 58, 0.04);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--shell);
  height: 100%;
  margin-inline: auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
}

.wordmark-mark {
  display: block;
  width: 48px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  filter: drop-shadow(0 7px 14px rgba(20, 33, 58, 0.14));
}

.wordmark-mark img {
  width: 100%;
  height: 100%;
}

.wordmark-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 40px);
}

.main-nav a {
  position: relative;
  padding-block: 25px 22px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--ink);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-lines {
  position: relative;
}

.menu-lines::before,
.menu-lines::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-lines::before { top: -6px; }
.menu-lines::after { top: 6px; }

.menu-toggle[aria-expanded="true"] .menu-lines {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero {
  display: flex;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
  padding-top: clamp(64px, 9vh, 112px);
  flex-direction: column;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.6fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: end;
}

.eyebrow,
.case-kicker {
  margin-bottom: 24px;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow span {
  padding-inline: 7px;
}

.hero h1,
.case-hero h2,
.section-heading h2,
.contact-section h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 980px;
  font-size: clamp(54px, 7.4vw, 112px);
}

.hero h1 em,
.case-hero h2 em,
.section-heading h2 em,
.contact-section h2 em {
  color: var(--accent);
  font-weight: inherit;
}

.hero-note {
  padding: 28px 0 4px 30px;
  border-left: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 15px;
}

.hero-note p:last-of-type {
  margin-bottom: 28px;
}

.hero-location {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-location span {
  color: var(--accent);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: clamp(44px, 7vh, 82px);
}

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 14px 20px;
  border: 1px solid transparent;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--ink);
}

.button-primary:hover {
  background: var(--accent-deep);
}

.button-ghost {
  border-color: var(--line);
}

.button-ghost:hover {
  border-color: var(--ink);
  background: var(--white);
}

.text-link {
  margin-left: 8px;
  padding: 10px 4px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 800;
}

.hero-marquee {
  display: flex;
  overflow: hidden;
  margin-top: auto;
  padding-block: 32px 26px;
  border-top: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 25px);
  font-style: italic;
}

.hero-marquee i {
  width: 5px;
  aspect-ratio: 1;
  background: var(--accent);
  border-radius: 50%;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(50px, 10vw, 150px);
  align-items: end;
  margin-bottom: clamp(62px, 8vw, 108px);
}

.section-number,
.label {
  margin-bottom: 16px;
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.section-heading h2 {
  max-width: 790px;
  font-size: clamp(48px, 6.2vw, 88px);
}

.section-heading > p {
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 16px;
}

.case-jump {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 34px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.case-jump a {
  display: flex;
  min-height: 62px;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.case-jump a:last-child {
  border-right: 0;
}

.case-jump a span {
  color: var(--accent-deep);
}

.case-jump a:hover {
  color: var(--white);
  background: var(--ink);
}

.case-jump a:hover span {
  color: #ff987e;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  color: var(--white);
  background: var(--ink);
}

.project-card-wide {
  grid-column: span 2;
  min-height: 610px;
}

.project-card figure {
  position: absolute;
  inset: 0;
  margin: 0;
}

.project-card figure::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 24, 42, 0.04) 35%, rgba(15, 24, 42, 0.88) 100%);
  content: "";
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2, .75, .25, 1);
}

.project-card:not(.project-card-wide) img {
  object-position: center top;
}

.project-card-sherwood figure {
  background: var(--ink);
}

.project-card-sherwood figure::after {
  background: linear-gradient(90deg, rgba(15, 24, 42, 0.96) 0%, rgba(15, 24, 42, 0.76) 34%, rgba(15, 24, 42, 0.08) 78%);
}

.project-card-sherwood img {
  width: auto;
  aspect-ratio: 1;
  margin-left: auto;
  object-position: center;
}

.project-card-sherwood .project-card-copy {
  max-width: 58%;
}

.project-card-aurora {
  isolation: isolate;
  color: #eef4ee;
  background:
    radial-gradient(circle at 78% 20%, rgba(217, 162, 255, 0.3), transparent 27%),
    linear-gradient(145deg, #102d26 0%, #102d26 58%, #173b32 100%);
}

.project-card-aurora::before {
  position: absolute;
  z-index: -1;
  right: 9%;
  bottom: 16%;
  width: min(32vw, 210px);
  aspect-ratio: 1;
  border: 1px solid rgba(184, 216, 169, 0.5);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(184, 216, 169, 0.04), 0 0 0 62px rgba(184, 216, 169, 0.025);
  content: "";
}

.project-card-aurora .project-card-copy span {
  color: #cde8c1;
}

.project-card:hover img {
  transform: scale(1.025);
}

.project-card-copy {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  padding: clamp(26px, 4vw, 52px);
}

.project-card-copy span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card-copy h3 {
  margin: 12px 0 6px;
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 70px);
  font-weight: 400;
  line-height: 1;
}

.project-card-copy p {
  max-width: 600px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.case-study {
  overflow: clip;
  border-top: 1px solid var(--line);
}

.case-api { background: #eee7dc; }
.case-bayard { background: var(--ink); color: var(--white); }
.case-expat { background: #f7f2e9; }
.case-sherwood { background: #e6e5dc; }

.case-hero {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  column-gap: clamp(36px, 6vw, 90px);
  align-items: start;
  margin-bottom: clamp(72px, 9vw, 124px);
}

.case-id {
  display: flex;
  grid-column: 1;
  grid-row: 1 / span 4;
  min-height: 170px;
  padding-top: 10px;
  border-top: 1px solid currentColor;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-kicker,
.case-hero h2,
.case-intro,
.case-subtext,
.badge {
  grid-column: 2;
}

.case-hero h2 {
  max-width: 1030px;
  font-size: clamp(52px, 7vw, 100px);
}

.case-intro {
  max-width: 860px;
  margin: 42px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
}

.case-bayard .case-intro,
.case-bayard .interactive-heading > p,
.case-bayard .gallery-note {
  color: rgba(255, 255, 255, 0.68);
}

.case-bayard .case-kicker,
.case-bayard .label,
.contact-section .section-number {
  color: #ff987e;
}

.case-intro strong { color: var(--ink); }
.case-bayard .case-intro strong { color: var(--white); }

.scope-summary,
.case-focus,
.official-channel {
  margin-bottom: clamp(58px, 6vw, 82px);
}

.scope-summary {
  display: grid;
  grid-template-columns: minmax(240px, .55fr) minmax(0, 1.45fr);
  gap: clamp(36px, 7vw, 98px);
  padding-block: 28px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
}

.scope-summary h3,
.case-focus h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.05;
}

.scope-tags {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
  list-style: none;
}

.scope-tags li {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
}

.case-focus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .7fr);
  gap: clamp(44px, 8vw, 118px);
  align-items: start;
}

.case-focus > div > p:last-child {
  max-width: 680px;
  margin-top: 20px;
  color: rgba(255, 255, 255, .7);
}

.case-focus .result-card { padding-top: 0; }

.official-channel {
  display: flex;
  padding: 25px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.official-channel > div { max-width: 680px; }
.official-channel p { margin-bottom: 0; }
.official-channel > div > p:last-child { color: var(--ink-soft); font-size: 13px; }
.official-channel > a { font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.official-channel-dark { border-color: rgba(255, 255, 255, .25); }
.official-channel-dark > div > p:last-child { color: rgba(255, 255, 255, .64); }

.case-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.65fr);
  gap: clamp(48px, 9vw, 138px);
  align-items: start;
  margin-bottom: clamp(80px, 10vw, 140px);
}

.work-context {
  display: grid;
  grid-template-columns: 180px minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(24px, 5vw, 72px);
  margin-bottom: clamp(72px, 9vw, 118px);
  padding-block: 26px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  align-items: start;
}

.work-context .label {
  margin: 2px 0 0;
}

.work-context strong {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1.2;
}

.work-context > p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.case-columns h3,
.interactive-heading h3,
.gallery-header h3,
.lab-evidence h3 {
  margin-bottom: 28px;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.08;
}

.role-list {
  padding: 0;
  list-style: none;
  counter-reset: role;
}

.role-list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  counter-increment: role;
}

.role-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.role-list li::before {
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 800;
  content: "0" counter(role);
}

.case-bayard .role-list li {
  border-color: rgba(255, 255, 255, 0.18);
}

.case-bayard .role-list li::before {
  color: #ff987e;
}

.evidence-card,
.archive-note {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.62);
}

.evidence-card p:last-child,
.archive-note p:nth-child(2) {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(23px, 2.8vw, 34px);
  line-height: 1.25;
}

.archive-note small {
  display: block;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.result-card {
  padding: 10px 0 0 clamp(28px, 4vw, 54px);
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.result-card strong {
  display: block;
  margin: 12px 0 4px;
  color: #ff987e;
  font-family: var(--serif);
  font-size: clamp(84px, 11vw, 146px);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.05em;
}

.result-card > p:not(.label) {
  max-width: 320px;
  font-size: 20px;
}

.result-card small {
  display: block;
  max-width: 420px;
  margin-top: 32px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.55;
}

.result-card-solo {
  width: min(100%, 620px);
  margin: 0 0 clamp(58px, 6vw, 82px) auto;
}

.attribution {
  display: grid;
  grid-template-columns: 1fr 1.7fr 1.7fr;
  gap: 24px;
  margin-bottom: clamp(80px, 10vw, 138px);
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  align-items: start;
}

.attribution span {
  color: #ff987e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.attribution p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.attribution strong {
  display: block;
  color: var(--white);
}

.interactive-block,
.timeline-block {
  margin-bottom: clamp(96px, 12vw, 170px);
}

.interactive-heading,
.gallery-header {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-bottom: 42px;
}

.interactive-heading h3,
.gallery-header h3 {
  margin-bottom: 0;
}

.interactive-heading > p,
.gallery-note {
  max-width: 310px;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 14px;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.step {
  position: relative;
  display: flex;
  min-height: 154px;
  padding: 22px;
  border: 0;
  border-right: 1px solid var(--line);
  flex-direction: column;
  align-items: flex-start;
  color: inherit;
  background: transparent;
  font-family: var(--serif);
  font-size: 25px;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.step:last-child { border-right: 0; }

.step > span,
.timeline-step > span {
  margin-bottom: auto;
  color: var(--accent-deep);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
}

.step small {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 11px;
}

.step:hover,
.step.is-active {
  color: var(--white);
  background: var(--ink);
}

.step:hover small,
.step.is-active small {
  color: rgba(255, 255, 255, 0.65);
}

.step:hover > span,
.step.is-active > span {
  color: #ff987e;
}

.step-detail {
  display: grid;
  grid-template-columns: 90px 1fr;
  max-width: 780px;
  margin: 34px 0 0 auto;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.step-detail > span {
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 800;
}

.step-detail h4 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
}

.step-detail p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.case-bayard .step-detail p {
  color: rgba(255, 255, 255, 0.66);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.timeline::before {
  display: none;
}

.timeline-step {
  display: flex;
  min-height: 160px;
  padding: 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
  cursor: pointer;
  transition: transform 200ms ease, color 200ms ease, background 200ms ease, border-color 200ms ease;
}

.timeline-step > span {
  display: block;
  width: auto;
  margin: 0 0 auto;
  border: 0;
  color: #ff987e;
  background: transparent;
  letter-spacing: 0.12em;
}

.timeline-step strong {
  color: inherit;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.1;
}

.timeline-step small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.timeline-step:hover,
.timeline-step.is-active {
  color: var(--white);
  border-color: rgba(255, 152, 126, 0.72);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-4px);
}

.timeline-step.is-active > span {
  color: #ff987e;
  background: transparent;
}

.gallery-section {
  margin-top: clamp(78px, 10vw, 138px);
}

.tab-list {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.4);
  border-radius: 999px;
}

.tab-button {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.tab-button.is-active {
  color: var(--white);
  background: var(--ink);
}

.js [data-tab-panel][hidden] {
  display: none;
}

.no-js [data-tab-panel] + [data-tab-panel] {
  margin-top: 32px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.gallery-item {
  min-width: 0;
  margin: 0;
}

.gallery-item-wide {
  grid-column: span 2;
}

.gallery-item button,
.archive-preview button,
.sherwood-reference button {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  padding: 0;
  border: 0;
  background: #d9d5cc;
  cursor: zoom-in;
}

.gallery-item button img,
.archive-preview button img,
.sherwood-reference button img {
  width: 100%;
  transition: transform 450ms cubic-bezier(.2, .75, .25, 1);
}

.gallery-item:not(.gallery-item-wide) button img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
}

.gallery-item-wide button img {
  aspect-ratio: 2.25 / 1;
  object-fit: cover;
  object-position: top;
}

.gallery-item-wide.gallery-item-photo button img {
  aspect-ratio: 16 / 9;
  object-position: center;
}

.gallery-media {
  overflow: hidden;
  width: 100%;
  background: #201e1f;
}

.gallery-media video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery-item button:hover img,
.archive-preview button:hover img,
.sherwood-reference button:hover img {
  transform: scale(1.018);
}

.zoom-label {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  min-height: 38px;
  padding: 8px 12px;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.94);
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.gallery-item button:hover .zoom-label,
.gallery-item button:focus-visible .zoom-label,
.archive-preview button:hover .zoom-label,
.archive-preview button:focus-visible .zoom-label,
.sherwood-reference button:hover .zoom-label,
.sherwood-reference button:focus-visible .zoom-label {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item figcaption {
  margin-top: 13px;
  color: var(--ink-soft);
  font-size: 12px;
}

.case-bayard .gallery-item figcaption {
  color: rgba(255, 255, 255, 0.58);
}

.bayard-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bayard-gallery .gallery-item button img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
}

.expat-scope {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(50px, 10vw, 150px);
  margin-bottom: clamp(100px, 12vw, 165px);
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}

.expat-scope h3,
.expat-archive-header h3 {
  max-width: 680px;
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 400;
  line-height: 1.05;
}

.expat-scope-list {
  padding: 0;
  list-style: none;
}

.expat-scope-list li {
  display: grid;
  grid-template-columns: 50px 1fr;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.expat-scope-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.expat-scope-list span,
.archive-entry-meta {
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.expat-scope-list p {
  margin-bottom: 0;
}

.expat-archive-header {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(50px, 9vw, 130px);
  margin-bottom: 54px;
  align-items: end;
}

.archive-policy {
  padding: 4px 0 4px 26px;
  border-left: 2px solid var(--accent);
}

.archive-policy strong {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-policy p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.archive-ledger {
  border-top: 1px solid var(--ink);
}

.archive-entry {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(300px, 0.7fr);
  gap: clamp(30px, 5vw, 72px);
  padding-block: clamp(42px, 6vw, 78px);
  border-bottom: 1px solid var(--ink);
  align-items: start;
}

.archive-entry-meta {
  display: flex;
  padding-top: 4px;
  flex-direction: column;
  gap: 7px;
}

.archive-entry-meta span:last-child {
  color: var(--ink-soft);
}

.archive-entry-copy h4 {
  margin-bottom: 22px;
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 62px);
  font-weight: 400;
  line-height: 1.02;
}

.archive-entry-copy > p:not(.archive-reading) {
  max-width: 600px;
  color: var(--ink-soft);
  font-size: 17px;
}

.archive-reading {
  max-width: 580px;
  margin: 34px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
}

.archive-reading strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-preview {
  margin: 0;
}

.archive-preview button {
  padding: 14px;
  border: 1px solid var(--line);
  background: #ebe6dc;
}

.archive-preview button img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: top;
}

.archive-preview figcaption {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sherwood-reference {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  margin: 0 0 clamp(86px, 11vw, 148px);
  color: var(--white);
  background: var(--green);
}

.sherwood-reference button img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.sherwood-reference figcaption {
  display: flex;
  padding: clamp(34px, 5vw, 68px);
  flex-direction: column;
  justify-content: center;
}

.sherwood-reference .label {
  color: #bcdccb;
}

.sherwood-reference h3 {
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: clamp(38px, 4.8vw, 64px);
  font-weight: 400;
  line-height: 1;
}

.sherwood-reference figcaption > p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

.sherwood-results {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  padding: 30px;
  color: var(--white);
  background: var(--green);
}

.sherwood-results .label {
  grid-column: span 2;
  margin-bottom: 4px;
  color: #bcdccb;
}

.sherwood-results div {
  display: flex;
  gap: 10px;
  flex-direction: column;
}

.sherwood-results strong {
  font-family: var(--serif);
  font-size: clamp(48px, 4.5vw, 64px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.sherwood-results span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.sherwood-gallery .gallery-item:not(.gallery-item-wide) button img {
  aspect-ratio: 16 / 8;
}

.attribution-footnote {
  max-width: 780px;
  margin: 32px 0 0 auto;
  padding: 20px 0 0 38px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
}

.sherwood-attribution-copy {
  margin-top: clamp(38px, 5vw, 66px);
  padding-top: clamp(26px, 3.5vw, 42px);
  border-top-color: var(--ink);
}

.sherwood-attribution-copy strong { color: var(--ink); }

.sherwood-role-map {
  display: grid;
  grid-template-columns: minmax(170px, .55fr) minmax(0, 1.45fr);
  gap: 28px;
  margin-top: clamp(46px, 6vw, 78px);
  padding-top: clamp(30px, 4vw, 46px);
  border-top: 1px solid var(--ink);
}

.case-sherwood .sherwood-results {
  grid-template-columns: 1.15fr .85fr;
}

.case-sherwood .sherwood-results strong {
  font-size: clamp(48px, 4.5vw, 64px);
  letter-spacing: -.035em;
  white-space: nowrap;
}

.sherwood-role-map h4 {
  max-width: 760px;
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 400;
  line-height: 1.05;
}

.sherwood-role-copy > p,
.sherwood-role-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.65;
}

.sherwood-role-note {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

/* Parcours & CV */
.career-page { background: var(--paper); }

.career-hero {
  padding-block: clamp(72px, 8vw, 118px) clamp(72px, 8vw, 108px);
  border-bottom: 1px solid var(--line);
}

.career-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: end;
}

.career-hero h1 {
  max-width: 900px;
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(56px, 6.5vw, 92px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.career-hero h1 em { color: var(--accent); font-weight: inherit; }

.career-hero-note {
  padding: 24px 0 0 28px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.career-hero-note .button { margin-top: 18px; }
.career-list { padding-top: 104px; }

.career-entry {
  display: grid;
  grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr);
  gap: clamp(42px, 8vw, 118px);
  padding-block: clamp(58px, 7vw, 92px);
  border-top: 1px solid var(--ink);
}

.career-entry:last-child { border-bottom: 1px solid var(--ink); }
.career-entry-header { display: grid; align-content: start; gap: 26px; }
.career-period { margin: 0; color: var(--accent-deep); font-size: 11px; font-weight: 800; letter-spacing: .09em; }
.career-entry-header h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 4.5vw, 60px);
  font-weight: 400;
  line-height: 1.02;
}

.career-entry-body { display: grid; gap: 34px; }
.career-entry-body section { display: grid; grid-template-columns: 180px 1fr; gap: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.career-entry-body h4 { margin: 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.career-entry-body p { margin: 0; color: var(--ink-soft); }
.career-highlights ol { display: grid; gap: 12px; margin: 0; padding-left: 22px; }
.career-case-link { justify-self: start; font-weight: 800; text-decoration: underline; text-underline-offset: 5px; }
.career-case-link-muted { color: var(--ink-soft); }

.lab-section {
  overflow: clip;
  color: #eef4ee;
  background: #102d26;
}

.lab-section .case-kicker,
.lab-section .label {
  color: #b8d8a9;
}

.lab-section .case-hero h2 em {
  color: #d9a2ff;
}

.lab-section .case-intro,
.lab-section .case-subtext {
  color: rgba(238, 244, 238, 0.72);
}

.badge {
  width: max-content;
  margin-bottom: 28px;
  padding: 7px 12px;
  border: 1px solid rgba(184, 216, 169, 0.4);
  color: #d6ebcb;
  background: rgba(184, 216, 169, 0.08);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.case-subtext {
  max-width: 760px;
  margin: 20px 0 0;
}

.aurora-demo {
  margin-bottom: clamp(92px, 11vw, 154px);
  border: 1px solid rgba(238, 244, 238, 0.25);
  background: rgba(6, 22, 18, 0.25);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.18);
}

.demo-toolbar {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(238, 244, 238, 0.2);
  align-items: center;
  color: rgba(238, 244, 238, 0.58);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  aspect-ratio: 1;
  background: #b8d8a9;
  border-radius: 50%;
}

.demo-content {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  min-height: 500px;
}

.demo-prompt,
.demo-answer {
  padding: clamp(30px, 5vw, 70px);
}

.demo-prompt {
  border-right: 1px solid rgba(238, 244, 238, 0.2);
}

.demo-prompt h3 {
  margin-bottom: 40px;
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 400;
  line-height: 1.06;
}

.demo-options {
  display: grid;
  gap: 10px;
}

.demo-option {
  display: flex;
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid rgba(238, 244, 238, 0.24);
  justify-content: space-between;
  align-items: center;
  color: rgba(238, 244, 238, 0.72);
  background: transparent;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.demo-option:hover,
.demo-option.is-active {
  color: #102d26;
  background: #b8d8a9;
  border-color: #b8d8a9;
}

.demo-answer {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, rgba(217, 162, 255, 0.1), transparent 50%);
}

.answer-meta {
  position: absolute;
  top: 24px;
  right: 28px;
  left: 28px;
  display: flex;
  justify-content: space-between;
  color: rgba(238, 244, 238, 0.45);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.answer-kicker {
  margin-bottom: 12px;
  color: #d9a2ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.demo-answer h4 {
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 0.98;
}

.demo-answer > p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(238, 244, 238, 0.72);
  font-size: 17px;
}

.demo-disclaimer {
  margin: 0;
  padding: 16px 20px;
  border-top: 1px solid rgba(238, 244, 238, 0.2);
  color: rgba(238, 244, 238, 0.5);
  font-size: 11px;
}

.lab-evidence {
  display: grid;
  grid-template-columns: minmax(260px, 0.6fr) minmax(0, 1.4fr);
  gap: clamp(50px, 10vw, 150px);
}

.lab-evidence ul {
  padding: 0;
  list-style: none;
}

.lab-evidence li {
  display: grid;
  grid-template-columns: 54px 1fr;
  padding: 20px 0;
  border-top: 1px solid rgba(238, 244, 238, 0.22);
  font-family: var(--serif);
  font-size: clamp(21px, 2.5vw, 31px);
}

.lab-evidence li:last-child {
  border-bottom: 1px solid rgba(238, 244, 238, 0.22);
}

.lab-evidence li span {
  color: #b8d8a9;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.method-card {
  min-height: 340px;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.method-card:last-child { border-right: 0; }

.method-card > span {
  display: block;
  margin-bottom: 96px;
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 800;
}

.method-card h3 {
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}

.method-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.contact-section {
  color: var(--white);
  background: var(--accent-deep);
}

.contact-inner {
  padding-block: clamp(96px, 12vw, 168px) 90px;
}

.contact-section h2 {
  max-width: 1100px;
  font-size: clamp(54px, 8vw, 112px);
}

.contact-section h2 em {
  color: #ffc2b3;
}

.contact-copy {
  max-width: 620px;
  margin: 42px 0 36px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button-light {
  color: var(--ink);
  background: var(--white);
}

.button-light:hover { background: #ffe9e2; }

.button-outline-light {
  border-color: rgba(255, 255, 255, 0.5);
}

.button-outline-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.contact-details {
  display: flex;
  margin-top: 70px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.36);
  justify-content: space-between;
  gap: 30px;
  font-size: 13px;
}

.contact-details a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1.8fr auto;
  gap: 40px;
  padding-block: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
}

.back-to-top {
  position: fixed;
  z-index: 90;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 46px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.25);
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(20, 33, 58, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
  cursor: pointer;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover { background: var(--accent-deep); }

.lightbox {
  width: min(1400px, calc(100vw - 42px));
  max-width: none;
  height: min(900px, calc(100vh - 42px));
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  color: var(--white);
  background: #0b1323;
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(7, 12, 22, 0.84);
  backdrop-filter: blur(8px);
}

.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.lightbox-close {
  display: flex;
  justify-self: end;
  min-height: 48px;
  padding: 10px 18px;
  border: 0;
  gap: 14px;
  align-items: center;
  color: var(--white);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.lightbox-close span { font-size: 24px; font-weight: 300; }

.lightbox-stage {
  display: grid;
  overflow: auto;
  min-height: 0;
  padding: 0 28px;
  place-items: center;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox > p {
  margin: 0;
  padding: 18px 28px 22px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  text-align: center;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2, .7, .25, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1050px) {
  :root { --shell: min(100% - 38px, 960px); }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-note { max-width: 620px; margin-left: auto; }
  .project-card { min-height: 460px; }
  .project-card-wide { min-height: 540px; }
  .case-hero { grid-template-columns: 140px minmax(0, 1fr); }
  .case-columns { gap: 54px; }
  .work-context { grid-template-columns: 150px minmax(0, 1fr); }
  .work-context > p:last-child { grid-column: 2; }
  .bayard-gallery { grid-template-columns: repeat(2, 1fr); }
  .archive-entry { grid-template-columns: 90px minmax(0, 1fr); }
  .archive-preview { grid-column: 2; width: min(100%, 480px); }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .method-card:nth-child(2) { border-right: 0; }
  .method-card:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer a { text-align: right; }
}

@media (max-width: 780px) {
  :root {
    --header-height: 68px;
    --shell: calc(100% - 32px);
  }

  html { scroll-padding-top: calc(var(--header-height) + 12px); }
  .section-pad { padding-block: 88px; }
  .wordmark-name { display: none; }
  .wordmark-mark { width: 42px; }
  .menu-toggle { display: flex; }

  .main-nav {
    position: absolute;
    z-index: 99;
    top: 100%;
    right: 0;
    left: 0;
    height: calc(100vh - var(--header-height));
    height: calc(100svh - var(--header-height));
    display: flex;
    padding: 38px 24px 60px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: var(--paper);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .main-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 36px;
    font-weight: 400;
  }

  .main-nav a::after { display: none; }
  .hero { min-height: auto; padding-top: 56px; }
  .hero h1 { font-size: clamp(49px, 14.5vw, 73px); }
  .hero-note { margin-left: 0; padding: 22px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .text-link { width: max-content; margin-left: 0; }
  .hero-marquee { margin-top: 64px; gap: 16px; }
  .hero-marquee span:nth-of-type(even), .hero-marquee i:nth-of-type(even) { display: none; }
  .section-heading { grid-template-columns: 1fr; gap: 30px; }
  .section-heading h2 { font-size: clamp(47px, 13vw, 68px); }
  .case-jump { grid-template-columns: 1fr 1fr; }
  .case-jump a:nth-child(2n) { border-right: 0; }
  .case-jump a:nth-child(-n + 4) { border-bottom: 1px solid var(--line); }
  .case-jump a:last-child { grid-column: 1 / -1; }
  .project-cards { grid-template-columns: 1fr; gap: 18px; }
  .project-card, .project-card-wide { grid-column: auto; min-height: 420px; }
  .project-card-wide figure img { object-position: center; }
  .project-card-sherwood img { width: 100%; margin-left: 0; }
  .project-card-sherwood figure::after { background: linear-gradient(180deg, rgba(15, 24, 42, 0.04) 32%, rgba(15, 24, 42, 0.9) 100%); }
  .project-card-sherwood .project-card-copy { max-width: none; }
  .project-card-copy { padding: 26px 22px; }
  .case-hero { display: block; margin-bottom: 70px; }
  .case-id { min-height: 0; margin-bottom: 44px; padding-top: 10px; flex-direction: row; }
  .case-hero h2 { font-size: clamp(47px, 13vw, 68px); }
  .case-intro { margin-top: 30px; font-size: 18px; }
  .badge { margin-bottom: 26px; }
  .work-context { grid-template-columns: 1fr; gap: 16px; }
  .work-context > p:last-child { grid-column: auto; }
  .case-columns { grid-template-columns: 1fr; gap: 46px; margin-bottom: 80px; }
  .result-card { padding-left: 24px; }
  .attribution { grid-template-columns: 1fr; gap: 20px; }
  .interactive-heading, .gallery-header { align-items: flex-start; flex-direction: column; }
  .stepper { grid-template-columns: 1fr 1fr; }
  .step { min-height: 138px; border-bottom: 1px solid var(--line); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(n + 3) { border-bottom: 0; }
  .step-detail { grid-template-columns: 46px 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { top: 0; bottom: 0; left: 25px; width: 1px; height: auto; }
  .timeline-step { display: grid; grid-template-columns: 52px 1fr; padding: 8px 0; align-items: center; gap: 16px; }
  .gallery-grid, .bayard-gallery { grid-template-columns: 1fr; gap: 34px; }
  .gallery-item-wide { grid-column: auto; }
  .gallery-item-wide button img, .gallery-item:not(.gallery-item-wide) button img { aspect-ratio: 16 / 9; }
  .bayard-gallery .gallery-item button img { aspect-ratio: 4 / 3; }
  .zoom-label { opacity: 1; transform: none; }
  .expat-scope { grid-template-columns: 1fr; gap: 34px; }
  .expat-archive-header { grid-template-columns: 1fr; gap: 32px; }
  .archive-entry { grid-template-columns: 1fr; gap: 28px; }
  .archive-entry-meta { flex-direction: row; justify-content: space-between; }
  .archive-preview { grid-column: auto; width: 100%; }
  .archive-entry-copy h4 { font-size: clamp(38px, 11.5vw, 54px); }
  .sherwood-reference { grid-template-columns: 1fr; }
  .sherwood-results { grid-template-columns: 1fr 1fr; }
  .sherwood-role-map { grid-template-columns: 1fr; }
  .attribution-footnote { padding-left: 0; }
  .demo-content { grid-template-columns: 1fr; }
  .demo-prompt { border-right: 0; border-bottom: 1px solid rgba(238, 244, 238, 0.2); }
  .demo-answer { min-height: 430px; }
  .lab-evidence { grid-template-columns: 1fr; gap: 20px; }
  .method-grid { grid-template-columns: 1fr; }
  .method-card { min-height: 270px; border-right: 0; border-bottom: 1px solid var(--line); }
  .method-card:nth-child(3) { border-bottom: 1px solid var(--line); }
  .method-card:last-child { border-bottom: 0; }
  .method-card > span { margin-bottom: 64px; }
  .contact-section h2 { font-size: clamp(50px, 14vw, 72px); }
  .contact-actions { flex-direction: column; }
  .contact-details { align-items: flex-start; flex-direction: column; }
  .site-footer { grid-template-columns: 1fr; gap: 20px; }
  .site-footer a { text-align: left; }
  .lightbox { width: calc(100vw - 18px); height: calc(100vh - 18px); }
  .lightbox-stage { padding: 0 10px; }
}

@media (max-width: 440px) {
  .eyebrow { font-size: 10px; }
  .eyebrow span { padding-inline: 3px; }
  .button { width: 100%; }
  .case-jump { grid-template-columns: 1fr; }
  .case-jump a { border-right: 0; border-bottom: 1px solid var(--line); }
  .case-jump a:last-child { grid-column: auto; border-bottom: 0; }
  .stepper { grid-template-columns: 1fr; }
  .step { min-height: 120px; border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .step:last-child { border-bottom: 0 !important; }
  .tab-list { width: 100%; border-radius: var(--radius); flex-direction: column; }
  .tab-button { width: 100%; border-radius: var(--radius); }
  .sherwood-results { grid-template-columns: 1fr; }
  .sherwood-results .label { grid-column: auto; }
  .demo-toolbar { grid-template-columns: 12px 1fr; }
  .demo-toolbar span:last-child { display: none; }
  .demo-prompt, .demo-answer { padding: 28px 22px; }
  .answer-meta { right: 22px; left: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1050px) {
  .career-hero-grid { grid-template-columns: 1fr; }
  .career-hero-note { max-width: 620px; margin-left: auto; }
}

@media (max-width: 780px) {
  .scope-summary,
  .case-focus { grid-template-columns: 1fr; gap: 30px; }
  .official-channel { align-items: flex-start; flex-direction: column; gap: 22px; }
  .career-hero { padding-top: 56px; }
  .career-hero h1 { font-size: clamp(48px, 12vw, 64px); }
  .career-hero-note { margin-left: 0; }
  .career-entry { grid-template-columns: 1fr; gap: 34px; }
  .career-entry-body section { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 440px) {
  .scope-tags { gap: 8px; }
  .scope-tags li { width: 100%; border-radius: 0; }
}

@media print {
  .site-header, .hero-actions, .back-to-top, .zoom-label { display: none !important; }
  body { background: white; }
  .section-pad { padding-block: 40px; }
  .case-study, .lab-section, .contact-section { break-inside: avoid; color: #111; background: white; }
}

/* V9 — accessibilité, contraste et parcours recruteur */
.nowrap { white-space: nowrap; }
.menu-contact { display: none; }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.project-card:focus-visible,
.step:focus-visible,
.tab-button:focus-visible,
.timeline-step:focus-visible,
.demo-option:focus-visible,
.gallery-item button:focus-visible,
.archive-preview button:focus-visible,
.sherwood-reference button:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 3px var(--focus-ring);
}

.case-bayard :focus-visible,
.lab-section :focus-visible,
.contact-section :focus-visible,
.lightbox :focus-visible,
.project-card:focus-visible {
  outline-color: var(--focus-ring-on-dark);
}

.case-bayard .timeline-step:focus-visible,
.lab-section .demo-option:focus-visible,
.project-card:focus-visible {
  box-shadow: inset 0 0 0 3px var(--focus-ring-on-dark);
}

.section-pad { padding-block: clamp(82px, 6vw, 90px); }

.project-index { padding-top: 104px; }

.project-card { min-height: 390px; }
.project-card-wide { min-height: 450px; }

.case-hero {
  margin-bottom: clamp(60px, 6vw, 82px);
}

.case-hero h2 {
  font-size: clamp(49px, 6.25vw, 88px);
}

.case-intro {
  margin-top: 30px;
  font-size: clamp(17px, 1.7vw, 22px);
}

.work-context {
  margin-bottom: clamp(52px, 5vw, 68px);
}

.api-role-note {
  display: grid;
  grid-template-columns: 180px minmax(0, 800px);
  gap: clamp(28px, 5vw, 72px);
  margin-bottom: clamp(58px, 6vw, 78px);
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.api-role-note p { margin-bottom: 0; }
.api-role-note > p:last-child { color: var(--ink-soft); }

.case-columns {
  gap: clamp(42px, 6vw, 86px);
  margin-bottom: clamp(62px, 6vw, 82px);
}

.interactive-block,
.timeline-block {
  margin-bottom: clamp(62px, 6vw, 82px);
}

.gallery-section {
  margin-top: clamp(54px, 5vw, 68px);
}

.interactive-block + .gallery-section,
.timeline-block + .gallery-section {
  margin-top: 0;
}

.step { min-height: 136px; }

.step-detail {
  grid-template-columns: 64px minmax(0, 1fr);
  width: min(100%, 980px);
  max-width: none;
  margin: 24px 0 0;
  padding: 24px clamp(20px, 3vw, 38px) 0;
}

.gallery-grid { gap: 22px; }

.gallery-grid-featured {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  align-items: stretch;
}

.gallery-grid-featured .gallery-item-wide {
  display: grid;
  grid-column: auto;
  grid-row: span 3;
  grid-template-rows: minmax(0, 1fr) auto;
}

.gallery-grid-featured .gallery-item-wide button,
.gallery-grid-featured .gallery-item-wide button img {
  height: 100%;
}

.gallery-grid-featured .gallery-item-wide button img {
  aspect-ratio: auto;
}

.bayard-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.bayard-gallery .gallery-item button img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
}

.result-card strong {
  margin-top: 0;
  font-size: clamp(72px, 9vw, 118px);
}

.result-card > p:not(.label) {
  max-width: 360px;
  margin-top: 16px;
  font-size: 18px;
  font-weight: 700;
}

.result-card small { margin-top: 24px; }
.attribution { margin-bottom: clamp(58px, 6vw, 82px); }

.expat-scope {
  gap: clamp(42px, 7vw, 96px);
  margin-bottom: clamp(70px, 7vw, 92px);
}

.expat-scope-list li { padding: 15px 0; }

.expat-archive-header {
  display: block;
  max-width: 820px;
  margin-bottom: 38px;
}

.expat-editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
}

.expat-story {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}

.expat-story-secondary { margin-top: 0; }

.expat-story .archive-preview button {
  padding: 0;
  border: 0;
  background: #e8e3da;
}

.expat-story .archive-preview button img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center bottom;
}

.expat-story-primary .archive-preview button img { aspect-ratio: 16 / 9; }

.expat-story-copy { padding: clamp(24px, 3.2vw, 42px); }

.expat-story-label {
  margin-bottom: 16px;
  color: var(--accent-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.expat-story-copy h4 {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 400;
  line-height: 1.02;
}

.expat-story-copy > p:not(.expat-story-label) {
  color: var(--ink-soft);
  font-size: 15px;
}

.expat-story-copy > strong {
  display: block;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.expat-date-note {
  max-width: 920px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.sherwood-reference {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  margin-bottom: clamp(56px, 6vw, 76px);
}

.sherwood-reference button img {
  aspect-ratio: 1.28 / 1;
}
.attribution-footnote { max-width: 980px; margin-left: 0; }

.sherwood-gallery {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  align-items: stretch;
}

.sherwood-gallery .gallery-item-wide {
  display: grid;
  grid-column: auto;
  grid-row: span 2;
  grid-template-rows: minmax(0, 1fr) auto;
}

.sherwood-gallery .gallery-item-wide button,
.sherwood-gallery .gallery-item-wide button img { height: 100%; }
.sherwood-gallery .gallery-item-wide button img { aspect-ratio: auto; }

.aurora-demo { margin-bottom: clamp(56px, 6vw, 74px); }
.demo-content { min-height: 380px; }

.method-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.method-card {
  min-height: 178px;
  padding: 22px 20px;
}
.method-card > span { margin-bottom: 28px; }
.method-card h3 { margin-bottom: 12px; font-size: 29px; }

.contact-inner { padding-block: clamp(76px, 8vw, 104px) 60px; }
.contact-section h2 { font-size: clamp(50px, 7vw, 94px); }
.contact-copy { margin: 30px 0 30px; }
.contact-details { margin-top: 46px; }

body.lightbox-open { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  width: min(1500px, calc(100vw - 34px));
  height: min(940px, calc(100dvh - 34px));
  overflow: hidden;
  margin: auto;
  padding: 22px 24px 16px;
  background: #091427;
}

.lightbox[open] {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  animation: lightbox-in 180ms ease both;
}

@keyframes lightbox-in {
  from { opacity: 0; transform: translateY(7px) scale(.995); }
  to { opacity: 1; transform: none; }
}

.lightbox-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  width: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.36);
  place-items: center;
  background: rgba(9, 20, 39, .82);
  border-radius: 50%;
}

.lightbox-close span { font-size: 28px; line-height: 1; }

.lightbox-stage {
  overflow: hidden;
  min-height: 0;
  padding: 0;
}

.lightbox-stage img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  margin: auto;
  object-fit: contain;
}

.lightbox.is-tall .lightbox-stage {
  overflow-y: auto;
  place-items: start center;
  scrollbar-width: thin;
}

.lightbox.is-tall .lightbox-stage img {
  width: min(100%, 1040px);
  max-height: none;
}

.lightbox > p {
  max-width: 920px;
  margin: 0 auto;
  padding: 14px 12px 2px;
  font-size: 11px;
}

.js .reveal {
  transform: translateY(18px);
  transition-duration: 520ms;
}

@media (max-width: 1050px) {
  .section-pad { padding-block: 82px; }
  .project-card { min-height: 430px; }
  .project-card-wide { min-height: 490px; }
  .case-hero h2 { font-size: clamp(48px, 7vw, 76px); }
  .bayard-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bayard-gallery .gallery-item:first-child { grid-row: auto; }
  .expat-story-secondary { margin-top: 0; }
  .method-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .method-card:nth-child(2) { border-right: 1px solid var(--line); }
  .method-card:nth-child(-n + 2) { border-bottom: 0; }
}

@media (max-width: 780px) {
  .section-pad { padding-block: 70px; }
  .project-index { padding-top: 76px; }

  .main-nav { padding-bottom: 28px; }
  .main-nav a.is-active { color: var(--ink); }
  .main-nav a:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: -3px;
    box-shadow: inset 0 0 0 2px rgba(159, 50, 29, 0.18);
  }
  .main-nav a.is-active::before {
    position: absolute;
    top: 50%;
    right: 4px;
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    content: "";
    transform: translateY(-50%);
  }
  .menu-contact {
    display: flex;
    margin-top: auto;
    padding-top: 24px;
    justify-content: space-between;
    gap: 18px;
  }
  .menu-contact a {
    padding: 0;
    border: 0;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 700;
  }

  .project-card,
  .project-card-wide { min-height: 300px; }
  .project-card-copy { padding: 22px 20px; }
  .project-card-copy h3 { font-size: clamp(36px, 11vw, 50px); }
  .project-card-copy p { font-size: 13px; line-height: 1.45; }

  .case-hero { margin-bottom: 54px; }
  .case-id { margin-bottom: 32px; }
  .case-hero h2 { font-size: clamp(42px, 12.5vw, 54px); }
  .case-intro { margin-top: 24px; }
  .work-context { margin-bottom: 46px; }
  .api-role-note { grid-template-columns: 1fr; gap: 10px; margin-bottom: 52px; }
  .case-columns { gap: 36px; margin-bottom: 58px; }
  .interactive-block, .timeline-block { margin-bottom: 56px; }
  .gallery-section { margin-top: 56px; }
  .interactive-heading, .gallery-header { gap: 18px; margin-bottom: 28px; }

  .step-detail { width: 100%; margin-top: 18px; padding-inline: 8px; }
  .timeline { grid-template-columns: repeat(5, minmax(190px, 62vw)); overflow-x: auto; scroll-snap-type: x mandatory; }
  .timeline::before { display: none; }
  .timeline-step { display: flex; min-height: 118px; padding: 16px; border: 1px solid rgba(255,255,255,.22); flex-direction: column; align-items: flex-start; scroll-snap-align: start; }

  .bayard-gallery { grid-template-columns: 1fr; }
  .bayard-gallery .gallery-item:first-child { grid-row: auto; }

  .expat-scope { gap: 24px; margin-bottom: 62px; }
  .expat-editorial-grid { grid-template-columns: 1fr; gap: 26px; }
  .expat-story-secondary { margin-top: 0; }
  .expat-story-copy h4 { font-size: clamp(36px, 10.8vw, 48px); }
  .expat-date-note { margin-top: 20px; }
  .sherwood-reference { margin-bottom: 56px; }

  .demo-content { min-height: 0; }
  .demo-answer { min-height: 300px; }
  .aurora-demo { margin-bottom: 60px; }

  .method-grid { grid-template-columns: 1fr 1fr; }
  .method-card { min-height: 150px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .method-card:nth-child(2n) { border-right: 0; }
  .method-card:nth-child(n + 3) { border-bottom: 0; }
  .method-card > span { margin-bottom: 20px; }
  .method-card h3 { font-size: 25px; }

  .contact-inner { padding-block: 64px 44px; }
  .contact-section h2 { font-size: clamp(46px, 12.5vw, 62px); }
  .contact-copy { margin-block: 24px; }
  .contact-details { margin-top: 34px; }

  .lightbox {
    width: calc(100vw - 12px);
    height: calc(100dvh - 12px);
    padding: 12px 12px 10px;
  }
  .lightbox-close { top: 10px; right: 10px; }
}

@media (max-width: 440px) {
  .stepper {
    display: flex;
    overflow-x: auto;
    border: 0;
    gap: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  .step {
    min-width: 70vw;
    min-height: 124px;
    border: 1px solid var(--line) !important;
    scroll-snap-align: start;
  }
  .step-detail { grid-template-columns: 36px 1fr; }
  .step-detail h4 { font-size: 28px; }
  .tab-list {
    overflow-x: auto;
    width: 100%;
    border-radius: 999px;
    flex-direction: row;
  }
  .tab-button { min-width: 78%; border-radius: 999px; }
  .gallery-grid { gap: 26px; }
  .gallery-grid-featured,
  .sherwood-gallery { grid-template-columns: 1fr; }
  .gallery-grid-featured .gallery-item-wide,
  .sherwood-gallery .gallery-item-wide {
    display: block;
    grid-column: auto;
    grid-row: auto;
  }
  .gallery-grid-featured .gallery-item-wide button,
  .gallery-grid-featured .gallery-item-wide button img,
  .sherwood-gallery .gallery-item-wide button,
  .sherwood-gallery .gallery-item-wide button img { height: auto; }
  .gallery-grid-featured .gallery-item-wide button img,
  .sherwood-gallery .gallery-item-wide button img { aspect-ratio: 16 / 9; }
  .demo-answer { min-height: 290px; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .method-card { min-height: 142px; padding: 18px 14px; }
  .method-card h3 { font-size: 23px; }
  .method-card p { font-size: 12px; }
}
