/* ============================================================
   Kelly Bailey — Portfolio
   Type: Zodiak (serif display) + General Sans (text/UI)
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Zodiak';
  src: url('../assets/fonts/zodiak-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Zodiak';
  src: url('../assets/fonts/zodiak-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('../assets/fonts/generalsans-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('../assets/fonts/generalsans-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('../assets/fonts/generalsans-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #FAF7F1;
  --paper-2: #F2EEE3;
  --ink: #1E1C17;
  --ink-soft: #5A574C;
  --line: #E6E1D3;
  --line-strong: #D8D2C0;
  --em: #0C6B4B;
  --em-deep: #084A34;

  --serif: 'Zodiak', 'Iowan Old Style', Georgia, serif;
  --sans: 'General Sans', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;

  --w-page: 78rem;
  --w-text: 44rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }

/* Typographic wrapping: balanced display lines, and no lone words
   orphaned on the last line of running text. */
h1, h2, h3, .pager-title, .lead { text-wrap: balance; }
p, li, dd, figcaption, blockquote { text-wrap: pretty; }

a { color: inherit; }
::selection { background: var(--em); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--em);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--em); color: var(--paper);
  padding: .6rem 1rem; border-radius: 4px;
  font: 500 .9rem var(--sans); text-decoration: none;
  transition: top .2s var(--ease); z-index: 100;
}
.skip-link:focus { top: 1rem; }

/* ---------- Primitives ---------- */
.wrap {
  max-width: var(--w-page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
/* Quiet serif marker — replaces shouty uppercase labels */
.kicker {
  font: 400 1.1rem/1.5 var(--serif);
  color: var(--em);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, .88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 4.75rem;
}
.wordmark {
  font: 400 1.45rem/1 var(--serif);
  letter-spacing: .01em;
  text-decoration: none;
  transition: color .25s var(--ease);
}
.wordmark:hover { color: var(--em); }
.site-nav { display: flex; gap: 2.25rem; }
.site-nav a {
  font: 500 .95rem/1 var(--sans);
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: .5rem;
  transition: color .25s var(--ease);
}
.site-nav a:hover { color: var(--em); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--em);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  position: relative; z-index: 60;
  background: none; border: 0; padding: .5rem; margin: -.5rem;
  cursor: pointer; color: var(--ink);
}
.nav-toggle svg { display: block; }
.nav-toggle .icon-close { display: none; }
body.nav-locked .nav-toggle .icon-menu { display: none; }
body.nav-locked .nav-toggle .icon-close { display: block; }
/* While the overlay is open the header must not create a containing
   block (backdrop-filter would trap the fixed overlay inside it). */
body.nav-locked .site-header {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: var(--paper);
  border-bottom-color: transparent;
}
@media (max-width: 44em) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0; z-index: 40;
    display: none;
    flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 1.5rem;
    background: var(--paper);
    padding: var(--gutter);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    font: 400 2.4rem/1.2 var(--serif);
    color: var(--ink);
  }
  .site-nav a[aria-current="page"] {
    box-shadow: none; color: var(--em);
  }
  body.nav-locked { overflow: hidden; }
}

/* ---------- Home hero ---------- */
.hero {
  padding-block: clamp(5rem, 16vh, 11rem) clamp(4rem, 10vh, 7rem);
}
.hero-kicker {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1;
  color: var(--em);
}
.hero h1 {
  /* Sized so the statement sets on two lines at desktop widths */
  margin-top: 0;
  font: 400 clamp(3rem, 6vw, 4.8rem)/1.08 var(--serif);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--em);
}
.hero .hero-note {
  margin-top: 2.75rem;
  max-width: 34em;
  color: var(--ink-soft);
  font-size: 1.125rem;
  text-wrap: balance;
}

/* ---------- Leadership hero ---------- */
.leadership-hero {
  padding-block: clamp(5rem, 16vh, 11rem) clamp(2.5rem, 6vh, 4rem);
}
.leadership-hero h1 {
  margin-top: 0;
  font: 400 clamp(3rem, 6vw, 4.8rem)/1.08 var(--serif);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.leadership-hero h1 em {
  font-style: normal;
  color: var(--em);
}

/* ---------- Section headers ---------- */
.section {
  padding-block: clamp(3.5rem, 9vh, 6.5rem);
}
#highlights { background: #fff; }
.section-head {
  display: flex; align-items: baseline; gap: 1.5rem;
  border-top: 1px solid var(--line-strong);
  padding-top: 1.4rem;
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.section-head .label {
  font: 400 1.15rem/1.4 var(--serif);
  color: var(--ink);
}
.section-head .count {
  margin-left: auto;
  font: 400 1rem var(--serif);
  color: var(--ink-soft);
  font-feature-settings: 'tnum';
}

/* ---------- Case index (home) ---------- */
.case-list {
  display: grid;
  gap: clamp(4.5rem, 11vh, 8rem);
}
.case-item {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  text-decoration: none;
}
.case-item .case-media { grid-column: 1 / 8; }
.case-item .case-copy  { grid-column: 8 / 13; }

.case-media {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  aspect-ratio: 16 / 10;
}
.case-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.case-item:hover .case-media img,
.case-item:focus-visible .case-media img { transform: scale(1.035); }

.case-copy .case-no {
  font: 400 1.1rem/1 var(--serif);
  color: var(--em);
  display: block;
  margin-bottom: 1.1rem;
}
.case-copy h3 {
  font: 600 clamp(1.75rem, 2.9vw, 2.5rem)/1.15 var(--serif);
  letter-spacing: -.01em;
  margin-bottom: .9rem;
  text-wrap: balance;
}
.case-copy h3 span {
  background-image: linear-gradient(var(--em), var(--em));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .5s var(--ease);
  padding-bottom: 3px;
}
.case-item:hover h3 span,
.case-item:focus-visible h3 span { background-size: 100% 1px; }
.case-copy p { color: var(--ink-soft); font-size: .98rem; }
.case-copy .case-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.35rem;
  font: 500 .92rem/1 var(--sans);
  color: var(--em);
}
.case-cta svg { transition: transform .35s var(--ease); }
.case-item:hover .case-cta svg { transform: translateX(4px); }

@media (max-width: 54em) {
  .case-item { display: block; }
  .case-item .case-media { margin-bottom: 1.5rem; }
}

/* ---------- Values (approach) ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}
.value h3 {
  font: 400 1.85rem/1.2 var(--serif);
  margin-bottom: 1rem;
}
.value h3::after {
  content: '';
  display: block;
  width: 2rem; height: 2px;
  background: var(--em);
  margin-top: 1rem;
}
.value p { color: var(--ink-soft); font-size: .98rem; }
.value .proof {
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--em);
  font-size: .875rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
@media (max-width: 54em) {
  .values { grid-template-columns: 1fr; }
}
.leadership-note {
  margin-top: clamp(3rem, 7vh, 5rem);
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
#leadership-ai .leadership-note {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.leadership-note h3 {
  font: 400 1.85rem/1.2 var(--serif);
  margin-bottom: .75rem;
}
.placeholder {
  max-width: 40em;
  color: var(--ink-soft);
}

/* ---------- Case study pages ---------- */
.case-hero {
  padding-block: clamp(4rem, 11vh, 7.5rem) clamp(2.5rem, 6vh, 4rem);
}
.case-hero .kicker { display: block; margin-bottom: 1.4rem; }
.case-hero h1 {
  font: 400 clamp(2.7rem, 5.8vw, 4.9rem)/1.08 var(--serif);
  letter-spacing: -.02em;
  max-width: 15em;
  text-wrap: balance;
  margin-bottom: 1.75rem;
}
.case-hero .lead {
  font: 400 clamp(1.2rem, 1.9vw, 1.45rem)/1.55 var(--serif);
  color: var(--ink-soft);
  max-width: 33em;
}
.case-meta {
  display: flex; flex-wrap: wrap;
  gap: 2rem 3.5rem;
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.case-meta div { min-width: 9rem; }
.case-meta dt {
  font: 500 .82rem/1.2 var(--sans);
  color: var(--ink-soft);
  margin-bottom: .4rem;
}
.case-meta dd { font-size: .98rem; }

.case-hero-media { padding-bottom: clamp(2rem, 6vh, 4rem); }
/* When the hero pairs two photos of differing aspect ratios, crop them to a
   shared height so they read as one row instead of a jagged pair. */
.case-hero-media.cols-2 img { object-fit: cover; }
@media (min-width: 44.01em) {
  .case-hero-media.cols-2 figure img { height: clamp(16rem, 38vh, 24rem); width: 100%; }
}

/* Narrative */
.case-tint { background: #fff; padding-bottom: clamp(2.5rem, 6vh, 4rem); }
.wrap.figures:has(+ .case-tint) { margin-bottom: clamp(2rem, 5vh, 3rem); }
.case-section { padding-block: clamp(2.5rem, 7vh, 5rem); }
.case-section .section-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
.case-section .section-label { grid-column: 1 / 4; }
.case-section .section-body  { grid-column: 4 / 11; max-width: var(--w-text); }
.section-label h2 {
  font: 400 1.7rem/1.25 var(--serif);
  position: sticky; top: 6.5rem;
}
.section-label h2::after {
  content: '';
  display: block;
  width: 2rem; height: 2px;
  background: var(--em);
  margin-top: 1rem;
}
.section-body > p + p { margin-top: 1.25rem; }
.section-body p { color: var(--ink-soft); }
.section-body p strong { color: var(--ink); font-weight: 500; }
.section-body ul {
  margin: 0; padding: 0;
  list-style: none;
  display: grid; gap: .85rem;
}
.section-body li {
  color: var(--ink-soft);
  padding-left: 1.5rem;
  position: relative;
}
.section-body li::before {
  content: '';
  position: absolute; left: 0; top: .72em;
  width: .55rem; height: 1px;
  background: var(--em);
}
.section-body a { color: var(--em); text-decoration-color: color-mix(in srgb, var(--em) 40%, transparent); text-underline-offset: 3px; }
.section-body a:hover { text-decoration-color: var(--em); }
@media (max-width: 54em) {
  .case-section .section-grid { display: block; }
  .section-label h2 { position: static; margin-bottom: 1.5rem; }
}

/* Section with an inline figure to the right of the body copy */
.case-section.with-figure .section-body { grid-column: 4 / 9; }
.case-section.with-figure .section-figure {
  grid-column: 9 / 13;
  align-self: start;
  margin: 0;
}
.case-section.with-figure .section-figure img { width: 100%; }
@media (max-width: 54em) {
  .case-section.with-figure .section-figure {
    max-width: 60%;
    margin-top: 2rem;
  }
}

/* Stats */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  margin-block: clamp(2.5rem, 7vh, 4.5rem);
}
.stat {
  background: var(--paper);
  padding: 2rem 1.75rem 2.25rem;
}
.stat .stat-value {
  font: 400 clamp(2.4rem, 4vw, 3.4rem)/1 var(--serif);
  font-feature-settings: 'tnum';
  letter-spacing: -.02em;
  color: var(--em);
  margin-bottom: .75rem;
}
.stat .stat-value sup { font-size: .5em; }
.stat p { font-size: .88rem; color: var(--ink-soft); line-height: 1.55; }

/* Figures */
.figures { display: grid; gap: clamp(2.5rem, 6vh, 4rem); }
.figures.cols-2 { grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); }
.figures.bleed-stack { gap: clamp(2rem, 5vh, 3.5rem); }
.figures.bleed-stack img {
  border-radius: 0;
  border: none;
  background: none;
  width: 100%;
}
@media (max-width: 44em) { .figures.cols-2 { grid-template-columns: 1fr; } }
.figure-half { max-width: 50%; margin-inline: auto; }
@media (max-width: 44em) { .figure-half { max-width: 100%; } }
figure img, figure video, .media-frame {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
/* Device mockups already render their own frame/shadow on a transparent
   canvas, so they don't need the card background or border. */
figure img.device-shot {
  background: none;
  border: none;
  border-radius: 0;
}
figure img.no-outline {
  border: none;
}
.image-placeholder {
  aspect-ratio: 3 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  font: 400 .95rem/1.5 var(--sans);
  text-align: center;
  padding: 1.5rem;
}
.figures.device-pair figure {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(1.25rem, 3vw, 2rem);
}
.figures.device-pair img.device-shot {
  width: clamp(150px, 20vw, 200px);
  height: auto;
  flex: 0 0 auto;
}
.figures.device-pair figcaption {
  flex: 1 1 220px;
  margin-top: 0;
  padding-top: .1rem;
}
figcaption {
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--em);
  font-size: .875rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 44em;
}
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---------- Era pages (e.g. Oracle) ---------- */
.reflection {
  font: 400 clamp(1.15rem, 1.7vw, 1.35rem)/1.6 var(--serif);
  color: var(--ink-soft);
  max-width: 42em;
  margin-block: clamp(1rem, 4vh, 2.5rem);
}
.reflection strong { color: var(--ink); font-weight: 500; }
.recognition-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid; gap: 1rem;
}
.recognition-list li {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.recognition-list .year {
  flex: 0 0 4rem;
  font: 400 1rem var(--serif);
  color: var(--em);
  font-feature-settings: 'tnum';
}
.recognition-list .credential { color: var(--ink-soft); }

.highlights {
  display: grid;
  gap: clamp(3rem, 7vh, 4.5rem);
  margin-top: clamp(1rem, 3vh, 2rem);
}
.highlight + .highlight { border-top: 1px solid var(--line); padding-top: clamp(3rem, 7vh, 4.5rem); }
.highlight .kicker { display: block; margin-bottom: 1.1rem; }
.highlight h3 {
  font: 600 clamp(1.75rem, 3vw, 2.5rem)/1.18 var(--serif);
  letter-spacing: -.01em;
  max-width: 20em;
  margin-bottom: 1rem;
}
.highlight-meta {
  font-size: .92rem;
  margin-bottom: 1.5rem;
}
.highlight-meta .meta-label {
  font: 700 .82rem/1.2 var(--sans);
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-right: .75em;
}
.highlight-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.highlight-head .highlight-cta { flex-shrink: 0; margin-bottom: 0; }
@media (max-width: 40em) {
  .highlight-head { flex-direction: column; align-items: flex-start; }
  .highlight-head .highlight-cta { margin-top: 1.5rem; }
}
.highlight-body { max-width: var(--w-text); margin-bottom: 2rem; }
.highlight-body p { color: var(--ink-soft); }
.highlight-body p + p { margin-top: 1.1rem; }
.highlight-cta { margin-bottom: 2rem; }
.highlight-columns {
  display: grid;
  grid-template-columns: minmax(0, 26rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.highlight-columns .highlight-body { max-width: none; }
.highlight-columns .highlight-media figure { margin: 0; }
@media (max-width: 54em) {
  .highlight-columns { grid-template-columns: 1fr; }
}

/* Testimonials */
.testimonials {
  background: #0F6042;
  padding-block: clamp(2.75rem, 7vh, 4.5rem);
}
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: clamp(1.75rem, 4vw, 3.5rem);
}
.testimonial {
  flex: 1 1 20rem;
  max-width: 27em;
}
.testimonial blockquote {
  margin: 0;
  font: 400 clamp(1.05rem, 1.5vw, 1.2rem)/1.55 var(--serif);
  color: var(--paper);
  text-wrap: pretty;
}
.testimonial cite {
  display: block;
  margin-top: 1.1rem;
  font: 400 .85rem/1.4 var(--sans);
  color: color-mix(in srgb, var(--paper) 68%, transparent);
}

/* Experience framework cards */
.framework {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.framework .tenet {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
}
.framework h3 {
  font: 400 1.35rem/1.3 var(--serif);
  margin-bottom: .75rem;
}
.framework p { font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 54em) { .framework { grid-template-columns: 1fr; } }

/* Prev / next */
.case-pager {
  border-top: 1px solid var(--line-strong);
}
.case-pager .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.case-pager a {
  padding: clamp(2rem, 6vh, 3.5rem) 0;
  text-decoration: none;
  display: flex; flex-direction: column; gap: .6rem;
}
.case-pager a.next { text-align: right; align-items: flex-end; margin-left: auto; width: 100%; }
.case-pager .dir {
  font: 500 .88rem/1 var(--sans);
  color: var(--ink-soft);
  transition: color .25s var(--ease);
}
.case-pager a:hover .dir { color: var(--em); }
.case-pager .pager-title {
  font: 400 clamp(1.35rem, 2.4vw, 2rem)/1.25 var(--serif);
  transition: color .25s var(--ease);
}
.case-pager a:hover .pager-title { color: var(--em); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-block: clamp(4rem, 10vh, 7rem);
  align-items: start;
}
.about-media { grid-column: 1 / 6; }
.about-copy  { grid-column: 7 / 13; }
.about-media img {
  border-radius: 8px;
  border: 1px solid var(--line);
}
.about-copy h1 {
  font: 400 clamp(2.8rem, 5.4vw, 4.4rem)/1.08 var(--serif);
  letter-spacing: -.02em;
  margin-bottom: 2rem;
}
.about-copy h1 em { font-style: normal; color: var(--em); }
.about-copy p { color: var(--ink-soft); max-width: 36em; }
.about-copy p + p { margin-top: 1.25rem; }
.about-copy p strong { color: var(--ink); font-weight: 500; }
.about-actions {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-top: 2.5rem;
}
@media (max-width: 54em) {
  .about-grid { display: block; }
  .about-media { max-width: 22rem; margin-bottom: 2.5rem; }
}

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 500 .95rem/1 var(--sans);
  text-decoration: none;
  padding: .95rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--em);
  color: var(--em);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.btn:hover { background: var(--em); color: var(--paper); }
.btn.solid { background: var(--em); color: var(--paper); }
.btn.solid:hover { background: var(--em-deep); border-color: var(--em-deep); }
.btn.disabled { border-color: var(--line-strong); color: var(--ink-soft); cursor: default; }
.btn.disabled:hover { background: none; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--em-deep);
  color: var(--paper);
  margin-top: clamp(4rem, 10vh, 7rem);
}
.footer-cta {
  padding-block: clamp(4.5rem, 13vh, 8rem) clamp(3rem, 8vh, 5rem);
}
.footer-cta h2 {
  font: 400 clamp(2.5rem, 6.2vw, 4.8rem)/1.08 var(--serif);
  letter-spacing: -.02em;
  max-width: 14em;
  text-wrap: balance;
  margin-bottom: 2.5rem;
}
.footer-cta h2 em { font-style: normal; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links .btn {
  border-color: color-mix(in srgb, var(--paper) 40%, transparent);
  color: var(--paper);
}
.footer-links .btn:hover { background: var(--paper); color: var(--em-deep); border-color: var(--paper); }
.footer-base {
  border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
  padding-block: 1.75rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
  font-size: .85rem;
  color: color-mix(in srgb, var(--paper) 72%, var(--em-deep));
}
.footer-base nav { display: flex; gap: 1.5rem; margin-left: auto; }
.footer-base a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
.footer-base a:hover { color: var(--paper); }

/* ---------- 404 ---------- */
.error-page {
  min-height: 55vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(4rem, 12vh, 8rem);
}
.error-page .kicker { display: block; margin-bottom: 1.25rem; }
.error-page h1 {
  font: 400 clamp(2.8rem, 6vw, 4.8rem)/1.08 var(--serif);
  margin-bottom: 1.5rem;
}
.error-page p { color: var(--ink-soft); max-width: 32em; margin-bottom: 2.25rem; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(22px);
  transition: opacity 1.1s var(--ease), filter 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; filter: none; transform: none; transition: none; }
  .case-media img, .case-cta svg { transition: none !important; }
}
