/* ============================================================
   CAPITAL DCM | Design. Construct. Manage.
   Design system & global styles
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Palette: navy + white (no chromatic accent) */
  --paper:   #F4F5F2;   /* clean off-white */
  --paper-2: #E9EBE5;   /* section alt */
  --stone:   #D9DDD4;   /* cool light neutral */
  --ink:     #243649;   /* navy — primary */
  --ink-2:   #2C4258;
  --ink-3:   #38506A;
  --white:   #FFFFFF;

  /* Accents are tonal, not chromatic: a lighter navy on light, stone on dark */
  --accent:       #38506A;
  --accent-light: var(--stone);

  /* Back-compat aliases */
  --timber:  var(--accent);
  --timber-light: var(--accent-light);
  --euca:    var(--ink);

  --line:        rgba(36, 54, 73, 0.10);
  --line-light:  rgba(244, 245, 242, 0.12);
  --field-line:  rgba(36, 54, 73, 0.55);  /* form inputs need a perceptible edge (WCAG 1.4.11) */
  --txt:         var(--ink);
  --txt-soft:    rgba(36, 54, 73, 0.74);
  --txt-faint:   rgba(36, 54, 73, 0.70);
  --txt-inv:       var(--paper);
  --txt-inv-soft:  rgba(244, 245, 242, 0.62);

  /* Type: Inter throughout (display and text differ by weight/tracking only) */
  --serif: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; /* display */
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; /* text */

  --fs-hero:    clamp(2.4rem, 6.4vw, 5.6rem);
  --fs-display: clamp(2rem, 4.8vw, 4rem);
  --fs-h2:      clamp(1.7rem, 3.4vw, 2.9rem);
  --fs-h3:      clamp(1.2rem, 2vw, 1.6rem);
  --fs-body:    clamp(1rem, 1.1vw, 1.08rem);
  --fs-small:   0.875rem;
  --fs-label:   0.72rem;

  /* Layout */
  --gutter: clamp(1.6rem, 5vw, 6rem);
  --max-w: 1480px;
  --sect: clamp(5.5rem, 12vh, 10rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.no-js { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--txt);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--euca); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--timber);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Focus must stay visible on dark backgrounds (WCAG 2.4.11): accent-on-navy is only ~1.5:1 */
.showcase :focus-visible,
.section.cta :focus-visible,
.film-section :focus-visible,
.case-hero :focus-visible,
.menu :focus-visible,
.site-header.is-dark-page:not(.is-solid) :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--paper);
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 300;
  background: var(--ink); color: var(--paper);
  padding: 0.7rem 1.2rem; font-size: var(--fs-small);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- Typography helpers ---------- */
.serif { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; }

.label {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--txt-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.label::before {
  content: "";
  width: 2.2rem; height: 1px;
  background: var(--timber);
  flex-shrink: 0;
}
.label--bare::before { display: none; }
.on-dark .label, .label--inv { color: var(--txt-inv-soft); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.03; letter-spacing: -0.03em; }
h1 em, h2 em, .serif em { font-style: normal; font-weight: 600; color: var(--accent); }
.on-dark h1 em, .on-dark h2 em { color: var(--accent-light); }

/* Display and text are the same family; hierarchy comes from weight and tracking. */
h1, h2, h3, .serif, .menu__link, .method-step__num, .stat__value,
.quote blockquote, .index-row__name, .home-note p, .showcase__title {
  font-stretch: 100%;
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.75;
  color: var(--txt-soft);
  max-width: 38em;
}

/* ---------- Layout ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sect); position: relative; }
.on-dark { background: var(--ink); color: var(--txt-inv); }
.on-dark .lede { color: var(--txt-inv-soft); }
.bg-paper2 { background: var(--paper-2); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.section-head h2 { font-size: var(--fs-h2); max-width: 14em; margin-top: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: var(--fs-small);
  font-weight: 550;
  letter-spacing: 0.04em;
  padding: 1.05rem 1.9rem;
  border: 1px solid currentColor;
  border-radius: 99px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.btn svg { width: 14px; height: 14px; transition: transform 0.45s var(--ease); }
.btn:hover svg { transform: translateX(5px); }

.btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid:hover { background: var(--euca); border-color: var(--euca); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--inv { color: var(--paper); }
.btn--inv:hover { background: var(--paper); color: var(--ink); }
.btn--solid-inv { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--solid-inv:hover { background: var(--stone); border-color: var(--stone); }

.text-link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--fs-small); font-weight: 550; letter-spacing: 0.03em;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.4s var(--ease), gap 0.4s var(--ease);
}
.text-link:hover { border-color: var(--timber); gap: 1rem; }
.text-link svg { width: 13px; height: 13px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: transform 0.5s var(--ease), background 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
  color: var(--paper);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.6rem, 3.2vh, 2.4rem) var(--gutter);
}
.site-header.is-solid {
  background: rgba(244, 245, 242, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-dark-page { color: var(--ink); }

.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  line-height: 1;
  z-index: 210;
}
/* Logo is a white-on-transparent PNG used as a mask, so it inherits
   currentColor: navy on light headers, paper over dark imagery. */
.brand-mark {
  width: 4rem;
  aspect-ratio: 520 / 470;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("../img/logo.png") center / contain no-repeat;
  mask: url("../img/logo.png") center / contain no-repeat;
}
/* 25% larger on desktop */
@media (min-width: 900px) {
  .site-header .brand-mark { width: 5rem; }
}
.brand small {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.55;
}
@media (max-width: 600px) { .brand small { display: none; } }

.header-cta { display: inline-flex; }
@media (max-width: 760px) { .header-cta { display: none; } }

.header-right { display: flex; align-items: center; gap: 2rem; }

.menu-btn {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  z-index: 210;
  padding: 0.5rem 0;
}
.menu-btn__icon { width: 28px; height: 12px; position: relative; }
.menu-btn__icon span {
  position: absolute; left: 0; width: 100%; height: 1.5px;
  background: currentColor;
  transition: transform 0.45s var(--ease), top 0.45s var(--ease), width 0.45s var(--ease);
}
.menu-btn__icon span:first-child { top: 0; }
.menu-btn__icon span:last-child { top: 10px; width: 70%; }
.menu-btn:hover .menu-btn__icon span:last-child { width: 100%; }

body.menu-open .menu-btn { color: var(--paper); }
body.menu-open .menu-btn__icon span:first-child { top: 5px; transform: rotate(45deg); }
body.menu-open .menu-btn__icon span:last-child { top: 5px; width: 100%; transform: rotate(-45deg); }
body.menu-open .brand { color: var(--paper); }
body.menu-open .header-cta { opacity: 0; pointer-events: none; }
body.menu-open .site-header { background: transparent; box-shadow: none; }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease), visibility 0s linear 0.8s;
}
body.menu-open .menu {
  visibility: visible;
  clip-path: inset(0 0 0% 0);
  transition: clip-path 0.8s var(--ease), visibility 0s;
}
.menu__nav {
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  gap: 0.2rem;
}
.menu__link {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  line-height: 1.15;
  display: inline-flex; align-items: baseline; gap: 1.4rem;
  width: fit-content;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), color 0.3s ease;
}
body.menu-open .menu__link { opacity: 1; transform: none; }
body.menu-open .menu__link:nth-child(1) { transition-delay: 0.25s; }
body.menu-open .menu__link:nth-child(2) { transition-delay: 0.32s; }
body.menu-open .menu__link:nth-child(3) { transition-delay: 0.39s; }
body.menu-open .menu__link:nth-child(4) { transition-delay: 0.46s; }
body.menu-open .menu__link:nth-child(5) { transition-delay: 0.53s; }
.menu__link sup {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.15em; color: var(--txt-inv-soft);
}
.menu__link:hover { color: var(--stone); font-style: italic; }

.menu__aside {
  border-left: 1px solid var(--line-light);
  padding: var(--gutter);
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 2.5rem;
  font-size: var(--fs-small);
  color: var(--txt-inv-soft);
  opacity: 0;
  transition: opacity 0.6s ease 0.55s;
}
body.menu-open .menu__aside { opacity: 1; }
.menu__aside strong { color: var(--paper); font-weight: 550; display: block; margin-bottom: 0.4rem; }
.menu__aside a:hover { color: var(--paper); }
@media (max-width: 860px) {
  .menu { grid-template-columns: 1fr; }
  .menu__aside { border-left: 0; border-top: 1px solid var(--line-light); justify-content: flex-start; padding-top: 2rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(15, 25, 36, 0.72) 0%, rgba(15, 25, 36, 0.18) 42%, rgba(15, 25, 36, 0.25) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--gutter) clamp(2.5rem, 7vh, 5.5rem);
}
.hero__eyebrow {
  display: flex; align-items: center; gap: 1.2rem;
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(244, 245, 242, 0.75);
  margin-bottom: clamp(1.2rem, 3vh, 2rem);
}
.hero__eyebrow::after { content: ""; height: 1px; width: 4rem; background: rgba(244,245,242,0.4); flex-shrink: 0; }
@media (max-width: 480px) {
  .hero__eyebrow { gap: 0.85rem; letter-spacing: 0.18em; }
  .hero__eyebrow::after { width: 1.6rem; }
}
.hero h1 {
  font-size: var(--fs-hero);
  max-width: 11.5em;
  margin-bottom: clamp(1.8rem, 4vh, 2.8rem);
}
.hero__foot {
  display: flex; flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}
.hero__meta {
  font-size: var(--fs-small);
  color: rgba(244, 245, 242, 0.66);
  max-width: 26em;
  line-height: 1.65;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(2.5rem, 7vh, 5.5rem);
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(244,245,242,0.6);
  writing-mode: vertical-rl;
  z-index: 2;
}
.hero__scroll::after {
  content: "";
  width: 1px; height: 3.4rem;
  background: linear-gradient(to bottom, rgba(244,245,242,0.7), transparent);
  animation: scrollPulse 2.2s var(--ease) infinite;
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (max-width: 900px) { .hero__scroll { display: none; } }

/* Line-mask reveal */
.reveal-lines .line { display: block; overflow: hidden; }
.reveal-lines .line > span { display: block; transform: translateY(110%); }

/* ---------- Statement ---------- */
.statement p {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.9rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  max-width: 24em;
}
.statement .word { opacity: 0.16; transition: opacity 0.5s ease; }
.statement .word.is-on { opacity: 1; }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: 1.3rem;
  white-space: nowrap;
}
.marquee__track { display: inline-flex; gap: 4.5rem; will-change: transform; }
.marquee span {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--txt-faint);
  display: inline-flex; align-items: center; gap: 4.5rem;
}
.marquee span::after { content: "◆"; font-size: 0.45rem; color: var(--timber); }

/* ---------- Featured work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem) clamp(1.5rem, 3vw, 3rem);
}
.work-card { position: relative; display: block; }
.work-card:nth-child(1) { grid-column: 1 / 8; }
.work-card:nth-child(2) { grid-column: 9 / 13; margin-top: clamp(3rem, 10vh, 8rem); }
.work-card:nth-child(3) { grid-column: 1 / 5; }
.work-card:nth-child(4) { grid-column: 6 / 13; margin-top: clamp(-3rem, -6vh, -5rem); }
@media (max-width: 860px) {
  .work-card:nth-child(n) { grid-column: 1 / 13; margin-top: 0; }
}
.work-card__media {
  position: relative;
  overflow: hidden;
  background: var(--stone);
}
.work-card:nth-child(1) .work-card__media { aspect-ratio: 16 / 10.5; }
.work-card:nth-child(2) .work-card__media { aspect-ratio: 3 / 3.8; }
.work-card:nth-child(3) .work-card__media { aspect-ratio: 3 / 3.4; }
.work-card:nth-child(4) .work-card__media { aspect-ratio: 16 / 9.5; }
.work-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
  will-change: transform;
}
.work-card:hover .work-card__media img { transform: scale(1.045); }
.work-card__num {
  position: absolute; top: 1.2rem; left: 1.2rem;
  font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.18em;
  color: var(--paper);
  background: rgba(36, 54, 73, 0.42);
  backdrop-filter: blur(6px);
  padding: 0.45rem 0.85rem;
  border-radius: 99px;
}
.work-card__body {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem;
  padding-top: 1.4rem;
}
.work-card h3, .work-card h2 {
  font-size: var(--fs-h3);
  transition: color 0.3s ease;
}
.work-card:hover h3, .work-card:hover h2 { color: var(--timber); }
.work-card__tags { font-size: var(--fs-small); color: var(--txt-faint); text-align: right; flex-shrink: 0; }
.work-more { text-align: left; margin-top: clamp(3rem, 7vh, 5rem); }

/* ---------- Methodology (D.C.M) ---------- */
.method { background: var(--ink); color: var(--txt-inv); }
.method__intro { max-width: 56em; margin-bottom: clamp(3rem, 8vh, 6rem); }
.method__intro h2 { font-size: var(--fs-display); margin-top: 1.2rem; }

.method__steps { display: flex; flex-direction: column; }
.method-step {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vh, 4.5rem);
}
.method-step__num {
  font-family: var(--serif);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-style: italic;
  color: var(--timber-light);
  margin-bottom: 1.2rem;
}
.method-step h3 {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  margin-bottom: 1.4rem;
}
.method-step p { color: var(--txt-inv-soft); max-width: 32em; margin-bottom: 1.6rem; }
.method-step ul {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 2rem;
  font-size: var(--fs-small); color: var(--txt-inv-soft);
}
.method-step ul li { display: flex; gap: 0.7rem; align-items: baseline; }
.method-step ul li::before { content: "·"; color: var(--timber-light); flex-shrink: 0; }
.method-step__media {
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
  background: var(--ink-2);
}
.method-step__media img { width: 100%; height: 110%; object-fit: cover; }
@media (max-width: 860px) {
  .method-step { grid-template-columns: 1fr; }
  .method-step__media { order: -1; aspect-ratio: 16 / 10; }
  .method-step ul { grid-template-columns: 1fr; }
}

/* ---------- Stats ---------- */
.stats { border-top: 1px solid var(--line-light); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: clamp(2rem, 5vh, 3.5rem) clamp(1rem, 2.5vw, 2.5rem);
  border-left: 1px solid var(--line-light);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__value {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  line-height: 1;
  display: block;
  margin-bottom: 0.9rem;
}
.stat__value sup { font-size: 0.45em; color: var(--timber-light); margin-left: 0.1em; }
.stat__label { font-size: var(--fs-small); color: var(--txt-inv-soft); line-height: 1.5; display: block; }
@media (max-width: 760px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat { border-top: 1px solid var(--line-light); }
  .stat:nth-child(-n+2) { border-top: 0; }
}

/* ---------- Services ---------- */
.services__list { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1.1fr) minmax(0, 1.6fr) 3rem;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(1.6rem, 3.5vh, 2.4rem);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left 0.5s var(--ease);
}
.service-row:hover { padding-left: 1rem; }
.service-row__num { font-size: var(--fs-small); color: var(--txt-faint); }
.service-row h3 { font-size: var(--fs-h3); transition: color 0.3s ease; }
.service-row:hover h3 { color: var(--timber); }
.service-row p { font-size: var(--fs-small); color: var(--txt-soft); max-width: 38em; }
.service-row__arrow {
  width: 2.6rem; height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
  justify-self: end;
}
.service-row__arrow svg { width: 13px; height: 13px; }
.service-row:hover .service-row__arrow {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
  transform: rotate(-45deg);
}
@media (max-width: 760px) {
  .service-row { grid-template-columns: 1fr 2.6rem; }
  .service-row__num, .service-row p { display: none; }
}

/* Floating preview image that follows the cursor */
.service-preview {
  position: fixed;
  width: clamp(220px, 22vw, 320px);
  aspect-ratio: 4 / 4.8;
  pointer-events: none;
  z-index: 60;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.9);
}
.service-preview img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.service-preview img.is-active { opacity: 1; }
@media (hover: none), (max-width: 900px) { .service-preview { display: none; } }

/* ---------- Before / After compare ---------- */
.compare-wrap { max-width: 1100px; margin-inline: auto; }
.compare {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--stone);
  touch-action: none;
  cursor: ew-resize;
}
.compare img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.compare__top { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); will-change: clip-path; }
.compare__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos, 50%);
  width: 1px;
  background: var(--paper);
  z-index: 3;
}
.compare__handle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 3.2rem; height: 3.2rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23243649' stroke-width='2'%3E%3Cpath d='M8 7l-5 5 5 5M16 7l5 5-5 5'/%3E%3C/svg%3E");
  background-size: 18px;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 4px 24px rgba(36, 54, 73, 0.35);
}
.compare__tag {
  position: absolute;
  bottom: 1.2rem;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(36, 54, 73, 0.55);
  backdrop-filter: blur(6px);
  padding: 0.5rem 0.95rem;
  border-radius: 99px;
  z-index: 2;
  pointer-events: none;
}
.compare__tag--a { left: 1.2rem; }
.compare__tag--b { right: 1.2rem; }
.compare-note {
  text-align: left;
  font-size: var(--fs-small);
  color: var(--txt-faint);
  margin-top: 2rem;
}

/* ---------- Quotes ---------- */
.quotes { background: var(--paper-2); }
.quotes__stage { position: relative; min-height: clamp(280px, 36vh, 380px); }
.quote {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), visibility 0s linear 0.7s;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 2.5rem;
}
.quote.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.7s var(--ease) 0.15s, transform 0.7s var(--ease) 0.15s, visibility 0s;
}
.quote blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.7rem);
  line-height: 1.32;
  letter-spacing: -0.015em;
  max-width: 26em;
}
.quote blockquote::before { content: "“"; color: var(--timber); }
.quote blockquote::after { content: "”"; color: var(--timber); }
.quote cite {
  font-style: normal;
  font-size: var(--fs-small);
  color: var(--txt-soft);
}
.quote cite strong { display: block; color: var(--txt); font-weight: 550; }
.quotes__ctrl {
  display: flex; align-items: center; gap: 1.6rem;
  margin-top: 2.5rem;
}
.quotes__btn {
  width: 3rem; height: 3rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background 0.35s ease, color 0.35s ease;
}
.quotes__btn:hover { background: var(--ink); color: var(--paper); }
.quotes__btn svg { width: 14px; height: 14px; }
.quotes__count { font-size: var(--fs-small); color: var(--txt-faint); letter-spacing: 0.1em; }

/* ---------- Map ---------- */
.map-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
@media (max-width: 900px) { .map-section__grid { grid-template-columns: 1fr; } }
.map-figure { position: relative; }
.map-figure svg { width: 100%; height: auto; display: block; overflow: visible; }
.map-dot { fill: var(--stone); opacity: 0; }
.map-pin circle.core { fill: var(--timber); }
.map-pin circle.pulse {
  fill: none;
  stroke: var(--timber);
  stroke-width: 1.5;
  opacity: 0;
  animation: pinPulse 2.6s ease-out infinite;
}
@keyframes pinPulse {
  0% { r: 6; opacity: 0.8; }
  70% { r: 26; opacity: 0; }
  100% { r: 26; opacity: 0; }
}
.map-pin text {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  fill: var(--ink);
}
.map-pin .pin-sub { font-size: 11.5px; font-weight: 450; fill: rgba(36,54,73,0.45); letter-spacing: 0.04em; }

.map-locs { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 2.6rem; }
.map-loc {
  display: flex; justify-content: space-between; align-items: baseline; gap: 2rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-small);
}
.map-loc strong { font-weight: 550; font-size: 1rem; }
.map-loc span { color: var(--txt-faint); text-align: right; }

/* ---------- Story ---------- */
.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: center;
}
@media (max-width: 860px) { .story__grid { grid-template-columns: 1fr; } }
.story__media {
  overflow: hidden;
  aspect-ratio: 4 / 4.9;
  background: var(--stone);
}
.story__media img { width: 100%; height: 112%; object-fit: cover; }
.story__body h2 { font-size: var(--fs-h2); margin-block: 1.2rem 1.6rem; }
.story__body .lede { margin-bottom: 1.4rem; }
.story__creds {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 2.4rem;
}
.story__cred {
  background: var(--paper);
  padding: 1.4rem 1.5rem;
  font-size: var(--fs-small);
  color: var(--txt-soft);
}
.story__cred strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 420;
  color: var(--txt);
  margin-bottom: 0.3rem;
}

/* ---------- Insights ---------- */
.insights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
@media (max-width: 860px) { .insights__grid { grid-template-columns: 1fr; } }
.insight { display: block; }
.insight__media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--stone); }
.insight__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.insight:hover .insight__media img { transform: scale(1.05); }
.insight__meta {
  display: flex; gap: 1rem;
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--txt-faint);
  margin: 1.3rem 0 0.6rem;
}
.insight h3 { font-size: 1.35rem; line-height: 1.3; max-width: 18em; transition: color 0.3s ease; }
.insight:hover h3 { color: var(--timber); }

/* ---------- CTA ---------- */
.cta {
  background: var(--euca);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 110%, rgba(36,54,73,0.35), transparent);
  pointer-events: none;
}
.cta .label { color: rgba(244,245,242,0.85); }
.cta .label::before { background: rgba(244,245,242,0.7); }
.cta h2 {
  font-size: var(--fs-display);
  max-width: 13em;
  margin: 1.4rem 0 1.2rem;
  position: relative;
}
.cta p { color: rgba(244,245,242,0.9); max-width: 34em; margin: 0 0 2.6rem; position: relative; }
.cta__actions { display: flex; justify-content: flex-start; gap: 1rem; flex-wrap: wrap; position: relative; }
.cta p.cta__note { font-size: var(--fs-small); color: rgba(244,245,242,0.85); margin: 3.5rem 0 0; position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--txt-inv); }
.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(3.5rem, 8vh, 5.5rem);
}
@media (max-width: 860px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .site-footer__top { grid-template-columns: 1fr; } }
.site-footer .brand { margin-bottom: 1.2rem; }
.site-footer .brand-mark { width: 4.2rem; height: auto; }
.site-footer__tag { font-size: var(--fs-small); color: var(--txt-inv-soft); max-width: 20em; }
.site-footer h4,
.site-footer .footer-h {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--txt-inv-soft);
  margin-bottom: 1.3rem;
}
.site-footer ul { display: flex; flex-direction: column; gap: 0.65rem; font-size: var(--fs-small); }
.site-footer ul a { color: var(--txt-inv-soft); transition: color 0.3s ease; }
.site-footer ul a:hover { color: var(--paper); }
.site-footer__bottom {
  border-top: 1px solid var(--line-light);
  padding-block: 1.6rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2.5rem;
  font-size: 0.78rem;
  color: rgba(244,245,242,0.56);
}
.site-footer__bottom p { max-width: 52em; }

/* ---------- Page header (subpages) ---------- */
.page-head {
  padding-block: calc(clamp(5rem, 14vh, 9rem) + 2rem) clamp(3rem, 7vh, 5rem);
}
.page-head h1 { font-size: var(--fs-display); margin-block: 1.2rem 1.4rem; max-width: 12em; }

/* ---------- Case study ---------- */
.case-hero {
  position: relative;
  min-height: 78svh;
  display: flex; align-items: flex-end;
  color: var(--paper);
  background: var(--ink);
  overflow: hidden;
}
.case-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-hero__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,25,36,0.7), rgba(15,25,36,0.12) 55%); }
.case-hero__content { position: relative; z-index: 2; width: 100%; padding: 0 var(--gutter) clamp(2.5rem, 6vh, 4.5rem); }
.case-hero h1 { font-size: var(--fs-display); margin-top: 1rem; }

.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.case-meta > div {
  padding: 1.6rem clamp(1rem, 2.5vw, 2.5rem);
  border-left: 1px solid var(--line);
  font-size: var(--fs-small);
}
.case-meta > div:first-child { border-left: 0; padding-left: 0; }
.case-meta dt { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--txt-faint); margin-bottom: 0.5rem; }
.case-meta dd { color: var(--txt); line-height: 1.55; }
@media (max-width: 760px) {
  .case-meta { grid-template-columns: 1fr 1fr; }
  .case-meta > div:nth-child(odd) { border-left: 0; padding-left: 0; }
}

.case-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 5vw, 6rem);
}
@media (max-width: 860px) { .case-body { grid-template-columns: 1fr; } }
.case-body h2 { font-size: var(--fs-h3); position: sticky; top: 7rem; }
.case-body .prose p { margin-bottom: 1.3rem; color: var(--txt-soft); }
.case-body .prose p strong { color: var(--txt); font-weight: 550; }

.case-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
}
.case-gallery figure { overflow: hidden; background: var(--stone); }
.case-gallery figure.wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.case-gallery figure:not(.wide) { aspect-ratio: 4 / 4.6; }
.case-gallery img { width: 100%; height: 100%; object-fit: cover; }

.case-next {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
  text-align: left;
}
.case-next h2 { font-size: var(--fs-h2); }

/* ---------- Projects index ---------- */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 3vw, 3rem);
}
@media (max-width: 760px) { .proj-grid { grid-template-columns: 1fr; } }
.proj-grid .work-card:nth-child(n) { grid-column: auto; margin-top: 0; }
.proj-grid .work-card .work-card__media { aspect-ratio: 4 / 3.1; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 7rem);
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 2rem; font-size: var(--fs-small); }
.contact-info dt { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--txt-faint); margin-bottom: 0.5rem; }
.contact-info dd { color: var(--txt-soft); line-height: 1.7; }
.contact-info a:hover { color: var(--accent); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 1.4rem; }
.form-field { display: flex; flex-direction: column; gap: 0.55rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--txt-faint); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit;
  font-size: 0.95rem;
  color: var(--txt);
  background: rgba(36, 54, 73, 0.05);
  border: 0;
  border-bottom: 1px solid var(--field-line);
  border-radius: 4px 4px 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 0;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}
.form-field textarea { min-height: 7.5rem; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--timber);
  border-bottom-width: 2px;
  padding-bottom: calc(0.7rem - 1px);
  box-shadow: 0 2px 0 -1px var(--timber);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--txt-faint); }
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-field textarea { border-bottom: 0; border-radius: 4px; } /* drop the stray underline on the message box */
}

/* ---------- Scroll reveal primitives ---------- */
.fade-up { opacity: 0; transform: translateY(36px); }
.img-reveal { clip-path: inset(0 0 100% 0); }
.img-reveal img { transform: scale(1.12); }

/* When JS is unavailable, show everything */
.no-js .fade-up, .no-js .reveal-lines .line > span { opacity: 1; transform: none; }
.no-js .img-reveal { clip-path: none; }
.no-js .img-reveal img { transform: none; }
.no-js .statement .word { opacity: 1; }
.no-js .map-dot { opacity: 0.7; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .fade-up { opacity: 1; transform: none; }
  .reveal-lines .line > span { transform: none; }
  .img-reveal { clip-path: none; }
  .img-reveal img { transform: none; }
  .statement .word { opacity: 1; }
  .map-dot { opacity: 0.7; }
  .hero__media img { transform: none; }
}

/* ============================================================
   APP-LIKE POLISH — progress, active nav, page transitions, case rail
   ============================================================ */

/* Page entrance — pure CSS so it runs from first paint; reduced-motion neutralises it */
body { animation: pageEnter 0.55s var(--ease) both; }
@keyframes pageEnter { from { opacity: 0; } to { opacity: 1; } }

/* Scroll progress indicator */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 250; pointer-events: none; background: transparent;
}
.scroll-progress__bar {
  height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: var(--accent-light);
  will-change: transform;
}

/* Active nav (current page in the menu overlay) */
.menu__link[aria-current="page"] { color: var(--accent-light); }
.menu__link[aria-current="page"] sup { opacity: 1; color: var(--accent-light); }

/* Page transition — navy wipe on internal navigation */
.page-transition {
  position: fixed; inset: 0; z-index: 500;
  background: var(--ink); pointer-events: none;
  opacity: 0; visibility: hidden;
  transition: opacity 0.42s var(--ease), visibility 0s linear 0.42s;
}
.page-transition.is-active { opacity: 1; visibility: visible; transition: opacity 0.42s var(--ease); }

/* Case study — pinned-hero phase rail (injected by JS, desktop + motion only) */
.case-rail { display: flex; flex-wrap: wrap; gap: clamp(1.1rem, 3vw, 2.4rem); margin-top: 2rem; }
.case-rail__step {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--fs-label); letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(244, 245, 242, 0.38);
  transition: color 0.45s var(--ease);
}
.case-rail__step i {
  width: 7px; height: 7px; border-radius: 50%;
  border: 1px solid currentColor; background: transparent;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease), transform 0.45s var(--ease);
}
.case-rail__step.is-on { color: var(--paper); }
.case-rail__step.is-on i { background: var(--accent-light); border-color: var(--accent-light); transform: scale(1.25); }

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .page-transition { display: none !important; }
  .case-rail { display: none !important; }
}
.no-js .scroll-progress, .no-js .page-transition, .no-js .case-rail { display: none !important; }

/* ============================================================
   PORTFOLIO HOMEPAGE — full-bleed rotating showcase + index
   ============================================================ */
.showcase {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.showcase__slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 1.5s;
}
.showcase__slide.is-active {
  opacity: 1; visibility: visible; z-index: 1;
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.showcase__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transition: transform 9s ease-out;
}
.showcase__slide.is-active .showcase__img { transform: scale(1); }
.showcase__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,25,36,0.74) 0%, rgba(15,25,36,0.12) 46%, rgba(15,25,36,0.32) 100%);
}
.showcase__cap {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) clamp(3.5rem, 11vh, 7rem);
  max-width: 22em;
}
.showcase__eyebrow {
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(244,245,242,0.72);
  margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: 0.9rem;
}
.showcase__eyebrow::before { content: ""; width: 1.8rem; height: 1px; background: var(--accent-light); }
.showcase__title {
  font-size: clamp(2.4rem, 6.5vw, 5.4rem);
  line-height: 0.98; letter-spacing: -0.035em;
  margin-bottom: 1rem;
}
.showcase__meta {
  font-size: var(--fs-small);
  color: rgba(244,245,242,0.72);
  margin-bottom: 1.6rem;
}
.showcase__link {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: var(--fs-small); font-weight: 550; letter-spacing: 0.04em;
  color: var(--paper);
  transition: gap 0.4s var(--ease);
  width: fit-content;
}
.showcase__link:hover { gap: 1.1rem; }
.showcase__link svg { width: 13px; height: 13px; }
/* fade the whole caption between slides */
.showcase__slide .showcase__cap > * { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.showcase__slide.is-active .showcase__cap > * { opacity: 1; transform: none; }
.showcase__slide.is-active .showcase__cap > *:nth-child(2) { transition-delay: 0.08s; }
.showcase__slide.is-active .showcase__cap > *:nth-child(3) { transition-delay: 0.14s; }
.showcase__slide.is-active .showcase__cap > *:nth-child(4) { transition-delay: 0.2s; }

/* control bar */
.showcase__ui {
  position: absolute; z-index: 4;
  left: var(--gutter); right: var(--gutter);
  bottom: clamp(1.6rem, 4vh, 2.6rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.showcase__pips { display: flex; align-items: center; gap: 0.7rem; }
.showcase__pip {
  width: 44px; height: 44px;                 /* WCAG 2.5.8 target size */
  display: grid; place-items: center;
  position: relative;
}
.showcase__pip::after {
  content: ""; width: 100%; height: 2px;
  background: rgba(244,245,242,0.28);
  position: relative; overflow: hidden;
}
.showcase__pip .fill {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%) scaleX(0);
  transform-origin: left; width: 100%; height: 2px; background: var(--paper);
}
.showcase__pip[aria-selected="true"] .fill { transform: translateY(-50%) scaleX(1); transition: transform 0.4s var(--ease); }
.showcase__pip.is-timing .fill { animation: pipFill var(--slide-dur, 6s) linear forwards; }
@keyframes pipFill { from { transform: translateY(-50%) scaleX(0);} to { transform: translateY(-50%) scaleX(1);} }
.showcase__side { display: flex; align-items: center; gap: 1rem; }
.showcase__btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(244,245,242,0.35);
  display: grid; place-items: center; color: var(--paper);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.showcase__btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.showcase__btn svg { width: 15px; height: 15px; }
.no-js .showcase__playpause { display: none; } /* autoplay only runs with JS */
.showcase__count { font-size: var(--fs-small); color: rgba(244,245,242,0.72); letter-spacing: 0.08em; min-width: 5ch; }
@media (max-width: 620px) {
  .showcase__ui { flex-direction: column-reverse; align-items: stretch; gap: 1rem; }
  .showcase__side { justify-content: flex-start; gap: 0.6rem; }
  .showcase__pips { justify-content: space-between; }
  /* Tighten the caption stack on phones */
  .showcase__title { margin-bottom: 0.5rem; }
  .showcase__meta { margin-bottom: 0.85rem; }
}

/* minimal statement band under the showcase */
.home-note { text-align: left; }
.home-note p {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.2;
  max-width: 20em; margin: 0;
}
.home-note p em { color: var(--accent); font-style: normal; }

/* portfolio index list */
.index-list { border-top: 1px solid var(--line); }
.index-row {
  display: grid;
  grid-template-columns: 3ch minmax(0,1fr) auto 2.6rem;
  align-items: center; gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(1.1rem, 2.6vh, 1.9rem);
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.5s var(--ease);
}
.index-row:hover { padding-left: 1.1rem; }
.index-row__idx { font-size: var(--fs-small); color: var(--txt-faint); }
.index-row__name {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.4rem, 3.4vw, 2.6rem); letter-spacing: -0.03em;
  transition: color 0.3s ease;
}
.index-row:hover .index-row__name { color: var(--accent); }
.index-row__meta { font-size: var(--fs-small); color: var(--txt-faint); text-align: right; }
.index-row__arrow {
  width: 2.5rem; height: 2.5rem; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; justify-self: end;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.index-row__arrow svg { width: 13px; height: 13px; }
.index-row:hover .index-row__arrow { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: rotate(-45deg); }
@media (max-width: 640px) {
  .index-row { grid-template-columns: 2.5ch 1fr 2.5rem; }
  .index-row__meta { display: none; }
}

/* no-JS / reduced-motion: reveal first slide, disable timing */
.no-js .showcase__slide:first-child,
.showcase__slide.is-active { opacity: 1; visibility: visible; }
.no-js .showcase__slide:first-child .showcase__cap > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .showcase__img { transform: none !important; transition: none; }
  .showcase__pip.is-timing .fill { animation: none; }
}

/* ============================================================
   HOME INTRO — short copy + Design / Construct / Manage
   ============================================================ */
.home-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
@media (max-width: 900px) { .home-intro__grid { grid-template-columns: 1fr; } }

.home-intro__copy h2 {
  font-size: var(--fs-h2);
  margin: 1.2rem 0 1.6rem;
  max-width: 15em;
}
.home-intro__copy .text-link { margin-top: 0.4rem; }

/* the three disciplines */
.dcm { border-top: 1px solid var(--line); }
.dcm__item { border-bottom: 1px solid var(--line); }
.dcm__link {
  display: grid;
  grid-template-columns: 3.2ch minmax(0, 1fr) 2.4rem;
  align-items: center;
  gap: clamp(0.9rem, 2.2vw, 2rem);
  padding-block: clamp(1.2rem, 2.6vh, 1.8rem);
  transition: padding-left 0.45s var(--ease);
}
.dcm__link:hover { padding-left: 0.9rem; }
.dcm__num {
  font-size: var(--fs-small);
  color: var(--txt-faint);
  align-self: start;
  padding-top: 0.3rem;
}
.dcm__name {
  display: block;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
  transition: color 0.3s ease;
}
.dcm__link:hover .dcm__name { color: var(--accent); }
.dcm__desc {
  display: block;
  line-height: 1.6;
  font-size: var(--fs-small);
  color: var(--txt-soft);
  max-width: 34em;
}
.dcm__arrow {
  width: 2.4rem; height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  justify-self: end;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.dcm__arrow svg { width: 13px; height: 13px; }
.dcm__link:hover .dcm__arrow {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
  transform: rotate(-45deg);
}
@media (max-width: 520px) {
  .dcm__link { grid-template-columns: 2.8ch 1fr 2.2rem; }
}

/* ============================================================
   FILM — client testimonial showpiece
   ============================================================ */
.film-section { background: var(--ink); color: var(--txt-inv); padding-bottom: clamp(3rem, 6vh, 4.5rem); }
.film-section + .cta { padding-top: clamp(3rem, 6vh, 4.5rem); }
.film {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-2);
  border-radius: 2px;
}
.film video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.film__poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.6s var(--ease), transform 1.2s var(--ease);
}
.film.is-playing .film__poster { opacity: 0; pointer-events: none; }
.film__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,25,36,0.5) 0%, rgba(15,25,36,0.05) 40%, rgba(15,25,36,0.25) 100%);
  transition: opacity 0.5s ease;
}
.film.is-playing .film__scrim { opacity: 0; pointer-events: none; }
.film video.film__full { opacity: 0; }
.film.is-playing video.film__full { opacity: 1; }

.film__play {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem;
  color: var(--paper);
  transition: opacity 0.4s ease;
}
.film.is-playing .film__play { opacity: 0; pointer-events: none; }
.film__play-ring {
  width: clamp(4.5rem, 8vw, 6.5rem); height: clamp(4.5rem, 8vw, 6.5rem);
  border-radius: 50%;
  border: 1px solid rgba(244,245,242,0.6);
  background: rgba(36,54,73,0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s ease;
}
.film__play:hover .film__play-ring { background: var(--paper); border-color: var(--paper); transform: scale(1.06); }
.film__play-ring svg { width: 30%; height: 30%; fill: var(--paper); margin-left: 8%; transition: fill 0.4s ease; }
.film__play:hover .film__play-ring svg { fill: var(--ink); }
.film__play-label {
  font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.8rem;
}
.film__play-label span { opacity: 0.7; }
.film__caption {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
  margin-top: 1.4rem;
  font-size: var(--fs-small); color: var(--txt-inv-soft);
}
.film__caption cite { font-style: normal; }
.film__caption cite strong { color: var(--paper); font-weight: 550; }

/* Portrait reels (vertical before/after films) */
.film--portrait { aspect-ratio: 9 / 16; max-width: 380px; margin-inline: auto; }
.film--portrait .film__play-ring { width: clamp(3.6rem, 12vw, 4.6rem); height: clamp(3.6rem, 12vw, 4.6rem); }

/* Transformations — two reels side by side on a dark band */
.transform-films {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 640px) { .transform-films { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; } }
.transform-film figcaption {
  margin-top: 1.1rem;
  font-size: var(--fs-small);
  color: var(--txt-inv-soft);
}
.transform-film figcaption strong { color: var(--paper); font-weight: 600; display: block; letter-spacing: 0.01em; }

/* Inline film inside a case study (portrait, on paper) */
.case-film { max-width: 420px; margin: 0 auto; }
.case-film .film { background: var(--ink); }
.case-film figcaption { margin-top: 1rem; font-size: var(--fs-small); color: var(--muted); text-align: center; }
.case-film--wide { max-width: min(100%, 900px); }
.case-film--wide .film--portrait { max-width: 100%; }
.case-film--wide .film { aspect-ratio: 16 / 9; }

/* People roster + placeholder slots */
.team-role { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--timber); margin: 0.5rem 0 1rem; }
.team-bio { color: var(--txt-soft); font-size: var(--fs-small); }
.team-slots { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 2rem); margin-top: clamp(2.5rem, 6vh, 4.5rem); }
@media (max-width: 700px) { .team-slots { grid-template-columns: 1fr; } }
.placeholder-slot { display: grid; place-items: center; aspect-ratio: 16 / 10; border: 1px dashed var(--line); border-radius: 2px; background: var(--paper-2); color: var(--txt-faint); text-align: center; padding: 2rem; }
.placeholder-slot span { font-size: var(--fs-label); letter-spacing: 0.16em; text-transform: uppercase; }

/* FAQ accordion */
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 1.5rem 0; font-family: var(--serif); font-weight: 600; font-size: clamp(1.1rem, 1.8vw, 1.4rem); letter-spacing: -0.01em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-family: var(--sans); font-weight: 400; font-size: 1.6rem; line-height: 1; color: var(--accent); flex-shrink: 0; }
.faq__item[open] summary::after { content: "\2013"; }
.faq__a { padding: 0 0 1.7rem; max-width: 52em; }
.faq__a p { color: var(--txt-soft); }

/* Journal / blog teaser */
.journal__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 2rem); }
@media (max-width: 760px) { .journal__grid { grid-template-columns: 1fr; } }
.journal__card { min-height: 220px; }

/* ============================================================
   SHOWCASE WebGL layer — displacement dissolve between projects
   ============================================================ */
.showcase__gl {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.showcase.gl-on .showcase__gl { opacity: 1; }
/* when the GL layer drives the visuals, the DOM images are just texture
   sources + alt text; hide them, but keep scrim + caption above the canvas */
.showcase.gl-on .showcase__img { opacity: 0 !important; transition: none; }
.showcase.gl-on .showcase__slide { transition: opacity 0.7s var(--ease), visibility 0s linear 0.7s; }


/* Header CTA stays legible when the header goes solid (light) */
.site-header.is-solid .btn--inv { color: var(--ink); }
.site-header.is-solid .btn--inv:hover { background: var(--ink); color: var(--paper); }

/* Floating "Start a project" CTA — fades in on scroll */
.floating-cta {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: 95; display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.95rem 1.6rem; border-radius: 99px;
  background: var(--ink); color: var(--paper); border: 1px solid rgba(244,245,242,0.22);
  font-size: var(--fs-small); font-weight: 550; letter-spacing: 0.04em;
  box-shadow: 0 10px 30px rgba(0,0,0,0.30);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), background 0.4s var(--ease);
}
.floating-cta svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease); }
.floating-cta:hover { background: var(--ink-2); }
.floating-cta:hover svg { transform: translateX(4px); }
.floating-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.floating-cta.near-cta { opacity: 0 !important; pointer-events: none !important; }
body.menu-open .floating-cta { opacity: 0 !important; pointer-events: none !important; }
@media (prefers-reduced-motion: reduce) { .floating-cta { transition: opacity 0.2s ease; transform: none; } }

/* Tighter section rhythm (requested) */
.faq { padding-bottom: clamp(2rem, 4vh, 3.2rem); }
.journal { padding-top: clamp(2rem, 4vh, 3.2rem); }
#services { padding-bottom: clamp(2.5rem, 5vh, 4rem); }
#services + section { padding-top: clamp(2.5rem, 5vh, 4rem); }

/* ---------- Services page: capability rows ---------- */
.svc-list { display: grid; gap: clamp(3.5rem, 8vh, 7rem); }
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4.5rem); align-items: center; }
.svc-row:nth-child(even) { direction: rtl; }
.svc-row:nth-child(even) > * { direction: ltr; }
.svc-row__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); border-radius: 2px; }
.svc-row__media img { width: 100%; height: 100%; object-fit: cover; }
.svc-row__num { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.2em; color: var(--txt-faint); }
.svc-row h2 { font-size: var(--fs-h2); margin: 0.55rem 0 1rem; }
.svc-row__body > p { color: var(--txt-soft); max-width: 34em; }
.svc-row__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem 1.5rem; margin-top: 1.6rem; }
.svc-row__list li { position: relative; padding-left: 1.1rem; font-size: var(--fs-small); }
.svc-row__list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
@media (max-width: 800px) {
  .svc-row, .svc-row:nth-child(even) { grid-template-columns: 1fr; direction: ltr; gap: 1.4rem; }
  .svc-row__list { grid-template-columns: 1fr 1fr; }
}

/* Studio founders portrait */
.studio-portrait { max-width: 560px; margin-inline: auto; }
.studio-portrait img { width: 100%; display: block; border-radius: 2px; }
.studio-portrait figcaption { margin-top: 0.9rem; font-size: var(--fs-small); color: var(--txt-faint); text-align: center; }

/* ---------- Journal: article + post cards ---------- */
.article { max-width: 820px; margin-inline: auto; padding: clamp(7rem, 14vh, 10rem) var(--gutter) var(--sect); }
.article__head { margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.article__head h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-top: 1rem; letter-spacing: -0.02em; }
.article-body > * { max-width: 42em; }
.article-body p { margin-bottom: 1.35rem; color: var(--txt-soft); font-size: 1.06rem; line-height: 1.85; }
.article-body p.lede { color: var(--txt); font-size: clamp(1.15rem, 1.6vw, 1.4rem); max-width: 30em; }
.article-body h2 { font-size: var(--fs-h3); margin: 2.6rem 0 1.1rem; }
.article-body h3 { font-size: 1.14rem; font-weight: 650; margin: 1.9rem 0 0.5rem; letter-spacing: -0.01em; }
.article-body ul { list-style: none; margin: 0 0 1.6rem; display: grid; gap: 0.6rem; }
.article-body li { position: relative; padding-left: 1.3rem; color: var(--txt-soft); line-height: 1.6; }
.article-body li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.article-body .btn { margin-top: 0.5rem; }
.article__back { max-width: 42em; margin-top: clamp(2.5rem, 6vh, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 2px; padding: 1.7rem; background: var(--paper); transition: border-color 0.4s var(--ease), transform 0.4s var(--ease); }
.post-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.post-card__cat { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--txt-faint); }
.post-card h3, .post-card h2 { font-size: 1.28rem; line-height: 1.2; margin: 0.7rem 0 0.6rem; letter-spacing: -0.01em; }
.post-card p { font-size: var(--fs-small); color: var(--txt-soft); line-height: 1.55; flex: 1; }
.post-card__more { margin-top: 1.1rem; font-size: var(--fs-small); font-weight: 550; color: var(--accent); }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--ink); color: var(--txt-inv); border-bottom: 1px solid var(--line-light); }
.newsletter__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(2.4rem, 5.5vh, 4rem) clamp(3.5rem, 8vh, 6rem); }
.newsletter__copy h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); margin: 0.8rem 0 0.85rem; letter-spacing: -0.02em; }
.newsletter__copy p { color: var(--txt-soft); max-width: 34em; line-height: 1.7; }
.newsletter__row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.newsletter__row input[type="email"] { flex: 1 1 240px; min-width: 0; padding: 0.95rem 1.1rem; border: 1px solid var(--ink); border-radius: 2px; background: transparent; font: inherit; color: var(--ink); transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.newsletter__row input[type="email"]::placeholder { color: var(--txt-faint); }
.newsletter__row input[type="email"]:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56, 80, 106, 0.15); }
.newsletter__row .btn { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 720px) {
  .newsletter__inner { grid-template-columns: 1fr; padding-block: clamp(2rem, 5vh, 3rem) clamp(3rem, 7vh, 4.5rem); }
  .newsletter__row { gap: 1rem; } /* more breathing room above the Subscribe button when stacked */
}
/* ============================================================
   Mobile A+ refinements — tap targets, safe-areas, iOS zoom
   ============================================================ */

/* Never let form controls fall below 16px on phones (prevents iOS focus-zoom) */
@media (max-width: 640px) {
  input, select, textarea,
  .newsletter__row input[type="email"] { font-size: 16px; }
}

/* Respect the notch / home indicator */
.site-header__inner { padding-top: calc(clamp(1.6rem, 3.2vh, 2.4rem) + env(safe-area-inset-top)); }
@supports (padding: max(0px)) {
  .site-header__inner { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
}
.floating-cta { bottom: max(clamp(1rem, 3vw, 2rem), env(safe-area-inset-bottom)); }

/* Comfortable touch targets (Fitts's Law / WCAG 2.5.8) */
@media (max-width: 900px) {
  .menu-btn { min-height: 44px; }
  .header-cta { min-height: 44px; align-items: center; }
}
@media (max-width: 620px) {
  /* Hero CTA + inline text links need a real hit area on touch */
  .showcase__link { min-height: 44px; }
  .text-link { min-height: 44px; }
  /* Footer links: space them so each is an easy target */
  .site-footer ul li { margin-bottom: 0.15rem; }
  .site-footer li a { display: inline-flex; align-items: center; min-height: 40px; }

  /* Fix carousel caption vs. control-bar overlap; clear the home indicator */
  .showcase__cap {
    max-width: none;
    padding-bottom: calc(9.5rem + env(safe-area-inset-bottom));
  }
  .showcase__ui {
    bottom: calc(1.4rem + env(safe-area-inset-bottom));
  }
  .showcase__title { font-size: clamp(2.6rem, 12vw, 3.6rem); }
}

/* ---------- Footer collapsible groups (mobile) ---------- */
.footer-acc > summary { list-style: none; }
.footer-acc > summary::-webkit-details-marker { display: none; }
.footer-acc__chev { display: none; }
.footer-acc__chev svg { width: 15px; height: 15px; display: block; }

@media (min-width: 541px) {
  /* Static columns on tablet/desktop — no toggle affordance */
  .footer-acc > summary { pointer-events: none; }
}
@media (max-width: 540px) {
  .site-footer__top { gap: 0; padding-block: clamp(3rem, 7vh, 4.5rem) clamp(1.2rem, 3vh, 2rem); }
  .footer-acc:first-of-type { margin-top: 1.1rem; } /* breathing room above Studio */
  .footer-acc { border-top: 1px solid var(--line-light); }
  .footer-acc > summary {
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; padding: 1rem 0; margin: 0; min-height: 44px;
    color: var(--txt-inv-soft);
  }
  .footer-acc__chev { display: inline-flex; transition: transform 0.35s var(--ease); }
  .footer-acc[open] > summary .footer-acc__chev { transform: rotate(180deg); }
  /* Tighten subheading → links spacing when open */
  .footer-acc > ul { padding: 0.1rem 0 1.1rem; margin-top: -0.5rem; gap: 0.1rem; }
  .footer-acc ul li { margin-bottom: 0; }
  .footer-acc li a { min-height: 38px; }
  .site-footer .brand { margin-bottom: 0.4rem; }
}


/* ---------- Form affordances & states ---------- */
/* Select needs a visible dropdown indicator once appearance:none removes the native one (Baymard) */
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23243649' stroke-width='1.7'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 14px 14px;
  padding-right: 2.5rem;
  cursor: pointer;
}
/* Persistent inline error state after the user has interacted (no JS needed) */
.form-field input:user-invalid,
.form-field select:user-invalid,
.form-field textarea:user-invalid {
  border-bottom-color: #A63D32;
  box-shadow: 0 2px 0 -1px #A63D32;
}

/* ---------- Newsletter: footer palette ---------- */
.newsletter .label { color: var(--txt-inv-soft); }
.newsletter .label::before { background: rgba(244,245,242,0.6); }
.newsletter__copy h2 { color: var(--paper); }
.newsletter__copy h2 em { color: var(--accent-light); }
.newsletter__copy p { color: var(--txt-inv-soft); }
.newsletter__row input[type="email"] { border-color: rgba(244,245,242,0.42); color: var(--paper); }
.newsletter__row input[type="email"]::placeholder { color: rgba(244,245,242,0.5); }
.newsletter__row input[type="email"]:focus-visible { border-color: var(--paper); box-shadow: 0 0 0 3px rgba(244,245,242,0.14); }
.newsletter .btn--solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.newsletter .btn--solid:hover { background: var(--stone); border-color: var(--stone); }
.newsletter :focus-visible { outline-color: var(--paper); }
.newsletter__status { margin-top: 0.9rem; font-size: var(--fs-small); color: var(--txt-inv-soft); }
.newsletter__status.is-ok { color: var(--paper); font-weight: 550; }
.newsletter__row[hidden] { display: none; }

/* ---------- Home journal: show 4, reveal the rest ---------- */
.post-grid.is-collapsed > .post-card:nth-child(n+5) { display: none; }
.journal__actions { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2rem; }
.text-link[hidden] { display: none; }

/* ---------- Hero strapline: what we do, above the fold ---------- */
.showcase__strap {
  position: absolute; z-index: 3;
  left: var(--gutter);
  top: calc(var(--header-h, 7.5rem) + 1.2rem);
  max-width: 19em; padding-left: 1.7rem;
  font-size: var(--fs-small); line-height: 1.5; letter-spacing: 0.01em;
  color: rgba(244,245,242,0.88);
}
.showcase__strap::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 1.05rem; height: 1px; background: rgba(244,245,242,0.65); }
@media (max-width: 620px) { .showcase__strap { max-width: 17em; font-size: 0.92rem; } }

/* ---------- FAQ: a centred entrance to break the section-head rhythm ---------- */
.faq .section-head { justify-content: center; text-align: center; }
.faq .section-head .label { justify-content: center; }
.faq .section-head .label::before { display: none; }
.faq .section-head h2 { font-size: var(--fs-display); }
/* Hero strapline fades out as soon as the page scrolls (so it never passes under the fixed header) */
.showcase__strap { transition: opacity 0.35s var(--ease); }
body.is-scrolled .showcase__strap { opacity: 0; pointer-events: none; }
