/* ======= v3: Modern Editorial Hybrid ======= */

:root {
  --ink: #0f0f10;
  --ink-soft: #2c2c30;
  --muted: #6b6b72;
  --line: #e7e7ea;
  --line-soft: #f1f1f3;
  --paper: #fafaf8;
  --accent: #0e5e6f; /* peacock teal */
  --accent-soft: #a8d4dc; /* soft pale teal */
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-weight: 400;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.serif-accent {
  font-family: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

/* ===== Top bar ===== */
.topbar {
  position: sticky;
  top: 0;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-mark {
  display: inline-block;
  width: 38px;
  color: var(--accent);
  text-decoration: none;
  flex-shrink: 0;
  margin-right: -6px; /* tighten the gap to the name so the mark reads as a companion, not a separate nav item */
  line-height: 0;
  transition: opacity 0.15s ease, transform 0.2s ease;
}

.brand-mark svg {
  width: 100%;
  height: auto;
  display: block;
}

.brand-mark:hover {
  opacity: 0.85;
}

.brand-mark:hover svg {
  animation: boat-sway 2.4s ease-in-out infinite;
  transform-origin: 50% 70%; /* pivot near the waterline so the boat rocks like it's on water */
}

@keyframes boat-sway {
  0%, 100% { transform: rotate(-3deg); }
  50%      { transform: rotate(3deg); }
}

.brand {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand-meta {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
}

.nav-email {
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color .15s ease;
  letter-spacing: -0.005em;
}

.nav-email:hover {
  border-bottom-color: var(--ink);
}

/* ===== Hero ===== */
.hero {
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 40px 100px;
}

.hero-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 32px;
}

.hero h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  /* sized so the long line spans the full hero width */
  font-size: clamp(44px, 7.4vw, 116px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 60px;
  color: var(--ink);
}

.hero-accent {
  font-family: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.hero-meta {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
  border-top: 1px solid var(--ink);
  padding-top: 28px;
}

.hero-lead {
  /* Matches .hero-philosophy-prose treatment — same font, weight, color, size, line-height.
     Creates a consistent body-copy voice across the hero + philosophy sections. */
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.7;
  letter-spacing: 0;
  color: var(--ink-soft);
  margin: 0;
  max-width: 560px;
}

.hero-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--muted);
}

.hero-tags li {
  padding: 4px 0;
  border-bottom: 1px solid var(--line-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.hero-tags li:first-child { border-top: 1px solid var(--line-soft); }

/* ===== Hero philosophy band — full-width centered statement with ghosted quote mark ===== */
.hero-philosophy {
  margin: 72px -40px -100px;
  padding: 72px 40px 80px;
  background: var(--paper-2);
  text-align: center;
  position: relative;
}

.hero-philosophy-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 24px;
  position: relative;
}

/* Old .hero-philosophy-body — kept in place for any legacy references but no longer used on home page. */
.hero-philosophy-body {
  font-family: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.35;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 auto;
  max-width: 920px;
  position: relative;
}

.hero-philosophy-body em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}

/* ---- Philosophy structure: label → serif italic pull quote → hairline → sans-serif prose ---- */

.hero-philosophy-pull {
  font-family: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--accent);        /* base is teal */
  margin: 0 auto 48px;
  max-width: 820px;
  padding-bottom: 32px;
  text-align: center;
  position: relative;
}

/* Emphasized phrase — grounded ink + heavier weight to anchor the sentence */
.hero-philosophy-pull em {
  color: var(--ink);
  font-style: italic;
  font-weight: 600;
}

/* Short hairline below the pull quote — quiet transition to the explanatory prose */
.hero-philosophy-pull::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.hero-philosophy-prose {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 720px;
  text-align: center;
}

@media (max-width: 720px) {
  .hero-philosophy {
    margin: 48px -24px -60px;
    padding: 56px 24px 60px;
  }
  .hero-philosophy-pull {
    font-size: clamp(22px, 6vw, 28px);
    margin-bottom: 36px;
    padding-bottom: 24px;
  }
  .hero-philosophy-prose {
    font-size: 15px;
    line-height: 1.65;
    max-width: none;
  }
}

/* ===== Section label (shared) ===== */
.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 32px;
}

/* ===== Hero variants — Layout options for anti-AI top redesign =====
   Applied by adding modifier classes to <header class="hero">. */

/* Layout A — Standfirst with restrained editorial title */
.hero--standfirst {
  border-bottom: 1px solid var(--line);
}
.hero--standfirst .hero-inner {
  padding: 80px 40px 64px;
  max-width: 1080px;
  margin: 0 auto;
}
.hero--standfirst .hero-standfirst-title {
  font-family: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 28px;
  max-width: 780px;
}
.hero--standfirst .hero-standfirst {
  font-family: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  font-weight: 400;
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0;
  text-align: left;
  letter-spacing: -0.005em;
}

/* Shared title eyebrow — for C and A, small caps section label at top */
.hero-title-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  max-width: 200px;
}

/* Layout B — Left-aligned editorial: small italic H1, tighter single column. */
.hero--editorial {
  border-bottom: 1px solid var(--line);
}
.hero--editorial .hero-inner {
  padding: 72px 40px 56px;
  max-width: 920px;
  margin: 0 auto;
}
.hero-editorial-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 24px;
}
.hero-editorial-h1 {
  font-family: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 24px;
  max-width: 820px;
}
.hero-editorial-h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-editorial-lead {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 0 20px;
}
.hero-editorial-philosophy {
  font-family: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: var(--accent);
  max-width: 620px;
  margin: 0;
}

/* Layout C — Philosophy-first: opens with the thesis, no name-plate H1. */
.hero--philosophy-first {
  border-bottom: 1px solid var(--line);
}

.hero--philosophy-first .hero-inner {
  padding: 96px 40px 80px;
  max-width: 1080px;
  margin: 0 auto;
}

.hero--philosophy-first .hero-philosophy-pull {
  font-family: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-align: left;
  margin: 0 0 32px;
  max-width: 900px;
  padding: 0;
  border: none;
  background: none;
}

.hero--philosophy-first .hero-philosophy-pull::before,
.hero--philosophy-first .hero-philosophy-pull::after {
  display: none;
}

.hero--philosophy-first .hero-philosophy-pull em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.hero--philosophy-first .hero-philosophy-prose {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0;
  text-align: left;
  letter-spacing: 0;
}

/* Layout D — Sidebar nameplate: two columns, sidebar left with name/positioning/bio, cases stream on right. */
.hero-sidebar-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  max-width: 1440px;
  margin: 0 auto;
  gap: 0;
}

.hero-sidebar {
  border-right: 1px solid var(--line);
  padding: 72px 36px 40px;
  position: sticky;
  top: 60px;
  align-self: start;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  transition: opacity 0.5s ease;
}

/* Once the reader has scrolled past the top, the sidebar dims — it stays present
   as a reference but stops competing with the cases for attention. Hover brings
   it back to full opacity for reading. */
.hero-sidebar.is-dimmed {
  opacity: 0.32;
}

.hero-sidebar.is-dimmed:hover {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.hero-sidebar-inner {
  max-width: 220px;
}

.hero-sidebar-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 20px;
}

.hero-sidebar-name {
  font-family: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 20px;
}

.hero-sidebar-name em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.hero-sidebar-position {
  font-family: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 24px;
}

.hero-sidebar-position em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.hero-sidebar-bio {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 24px;
}

.hero-sidebar-bio em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.hero-sidebar-philosophy {
  font-family: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.45;
  color: var(--accent);
  margin: 0 0 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.hero-sidebar-prose {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.hero-sidebar-prose em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.hero-sidebar-prose:last-of-type {
  margin-bottom: 24px;
}

.hero-sidebar-meta {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--muted);
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.cases--sidebar {
  padding-top: 20px;
}

.cases--sidebar .case {
  padding: 60px 40px;
}

.cases--sidebar .case:first-child {
  padding-top: 40px;
}

@media (max-width: 900px) {
  .hero-sidebar-layout {
    grid-template-columns: 1fr;
  }

  .hero-sidebar {
    position: static;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 32px 24px;
    overflow: visible;
  }

  .hero-sidebar-inner {
    max-width: 100%;
  }
}

/* ===== Cases ===== */
.cases {
  max-width: 1280px;
  margin: 0 auto;
}

.case {
  padding: 72px 40px;
  border-bottom: 1px solid var(--line);
}

.case-header {
  display: flex;
  align-items: baseline;
  gap: 32px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.case-num {
  font-family: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 56px;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.case-tags span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--muted);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.case-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Alternate: even-numbered cases get text on the left, image on the right */
.case:nth-child(even) .case-body {
  grid-template-columns: 1fr 1.1fr;
}

.case:nth-child(even) .case-image {
  order: 2;
}

/* Case image — mirrors the fan card treatment: white card wrapper with padding,
   rounded corners, subtle border/shadow, image inside with its own rounded corners
   under a very subtle haze overlay. */
.case-image {
  position: sticky;
  top: 100px;
  background: #fff;
  border: 1px solid rgba(15, 15, 16, 0.06);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 3px 12px rgba(15, 15, 16, 0.05), 0 1px 3px rgba(15, 15, 16, 0.04);
  overflow: hidden;
}

.case-image-inner {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--line-soft);
}

.case-image-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(250, 250, 248, 0.10) 0%, rgba(250, 250, 248, 0.02) 100%);
  pointer-events: none;
}

.case-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Fallback: if the image is a direct child of .case-image without an inner wrapper,
   still get rounded corners and the same look. */
.case-image > img {
  border-radius: 8px;
}

.case-text {
  min-width: 0;
}

.case h2 {
  font-family: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--ink);
}

.case-dek {
  font-family: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.35;
  color: var(--accent);
  margin: 0 0 32px;
}

.case-text p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.case-text p:last-child { margin-bottom: 0; }

/* Success outcome sentence — medium weight Inter + full ink color.
   Marks the third beat of each case body: problem/product → role → outcome.
   Weight 500 sits between regular body (400) and bold numbers (600–700) inside it,
   so the sentence carries more presence without competing with its own <strong> tags
   or with the Fraunces italic pull-quote that follows. */
.case-text p.case-outcome {
  font-weight: 500;
  color: var(--ink);
}

/* Inline links inside body copy — muted underline, hover to accent */
.case-text > p a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.case-text > p a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.case-links {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.case-links a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  transition: all .15s ease;
  display: inline-block;
}

.case-links a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

/* Solid CTA variant — used on featured cases */
.case-links--cta a {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
  padding: 10px 18px;
  letter-spacing: 0.01em;
}

.case-links--cta a:hover {
  background: #083d44;
  border-color: #083d44;
  color: #fff;
}

/* Only the first CTA (Detailed case study) stays as primary teal.
   All following CTAs revert to the outline / secondary pill style. */
.case-links--cta li:not(:first-child) a {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  font-weight: 500;
  padding: 8px 14px;
  letter-spacing: normal;
}

.case-links--cta li:not(:first-child) a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

/* ===== Small subheading inside case body (e.g. "Legacy") ===== */
/* Uppercase mini-header to mark a distinct beat within the body prose */
.case-text .case-heading {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--muted);
  margin: 4px 0 6px;
  line-height: 1.4;
}

/* ===== Case-study body callout list (bulleted refs inside body copy) ===== */
/* Used when specific corporate/press coverage IS the narrative — not a footnote */
.case-text .case-callout-list {
  list-style: disc;
  padding-left: 22px;
  margin: 0 0 24px;
}

.case-text .case-callout-list li {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.case-text .case-callout-list li:last-child {
  margin-bottom: 0;
}

.case-callout-list li::marker {
  color: var(--muted);
}

.case-callout-source {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}
.case-callout-source:hover {
  color: var(--accent);
}

/* ===== Case-study evidence: quotes + external references ===== */
/* NOTE: selectors below use .case-text prefix to beat the specificity of
   .case-text p { font-size: 16px } which would otherwise override. */

/* --- Quotes label ("In their words" / "Strategic impact") --- */
/* Bold, uppercase — footnote heading, quiet, centered, with hairline divider below */
.case-text .case-quotes-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 32px;
  line-height: 1.4;
  text-align: center;
  padding-bottom: 20px;
  position: relative;
}

/* Short hairline below the "IN THEIR WORDS" label — same treatment as philosophy divider */
.case-text .case-quotes-label::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

/* Same hairline below the final quote in the block */
.case-quote:last-child {
  padding-bottom: 20px;
  position: relative;
}
.case-quote:last-child::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.case-quotes {
  margin-top: 64px;
  max-width: 70%;
  margin-left: auto;
  margin-right: auto;
}

.case-quote {
  margin: 0 0 21px;
  padding: 0;
}

.case-quote:last-child {
  margin-bottom: 0;
}

/* Quote — largest thing in this section, but STILL smaller than case-dek (22px)
   so the whole block reads as subordinate to the main blurb.
   Weight 300 = Fraunces Light Italic — takes the display heft off the quote. */
.case-text .case-quote-text {
  font-family: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0 0 8px;
  text-align: center;
}

/* Curly quote marks live on the inner .case-quote-body span so that
   an inline source link can sit AFTER the closing quote mark. */
.case-text .case-quote-body::before {
  content: "\201C\00A0"; /* " + nbsp */
}
.case-text .case-quote-body::after {
  content: "\00A0\201D"; /* nbsp + " */
}

/* Inline link inside the quote body — dotted underline, a touch more presence */
.case-quote-text a {
  color: var(--ink);
  font-weight: 400;
  text-decoration: underline dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--muted);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.case-quote-text a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* Attribution — centered under quote, matches ref-source size, muted, no em-dash */
.case-text .case-quote-source {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
  text-align: center;
}

/* If a link ever ends up in the source line (fallback), keep it quiet */
.case-quote-source a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 2px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.case-quote-source a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* --- "source" citation link — inline at the end of the quote body --- */
.case-text a.case-quote-cite {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
  margin-left: 8px;
  text-transform: none;
  letter-spacing: 0;
  text-decoration: underline dotted;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(107, 107, 114, 0.5);
  text-underline-offset: 3px;
  white-space: nowrap;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.case-text a.case-quote-cite:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* --- External references ("Also featured in") --- */
/* Everything here reads as tiny footnote text */
.case-refs {
  margin-top: 18px;
}

.case-text .case-refs-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 2px;
  line-height: 1.4;
}

.case-refs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Each ref item gets a centered 1/3-width dotted rule ABOVE it,
   and the last item also gets one BELOW — creates short editorial separators */
.case-refs-item {
  padding: 6px 0;
  display: block;
  position: relative;
}

.case-refs-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 33%;
  border-top: 1px dotted rgba(107, 107, 114, 0.35);
}

.case-refs-list > .case-refs-item:last-child::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 33%;
  border-top: 1px dotted rgba(107, 107, 114, 0.35);
}

/* Source name — regular weight, ink-soft */
.case-refs-source {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-soft);
  text-decoration: none;
  display: block;
  margin-bottom: 0;
  transition: color 0.15s ease;
}
.case-refs-source:hover {
  color: var(--accent);
}

/* Description — smaller than the source, muted */
.case-text .case-refs-desc {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  margin: 0;
}

/* Row for unlinked "Additional coverage" mentions */
.case-refs-item--plain .case-refs-source {
  color: var(--muted);
  font-weight: 400;
}
.case-refs-item--plain .case-refs-desc {
  font-style: italic;
}

/* ===== Approach (How I Work) ===== */
.approach {
  background: var(--ink);
  color: var(--paper);
}

.approach-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 40px;
}

.approach .section-label {
  color: rgba(255, 255, 255, 0.5);
}

.approach-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 32px;
  color: var(--paper);
  max-width: 1000px;
}

.approach-title .serif-accent {
  color: var(--accent-soft);
}

.approach-lead {
  font-size: 22px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.7);
  max-width: 720px;
  margin: 0 0 100px;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px 60px;
}

.approach-block--feature {
  grid-column: 1 / -1;
}

/* Extra breathing room above any featured block that isn't the first in the grid
   (e.g. block 04 "Designing with AI" — gives it visual separation from the 02/03 row above). */
.approach-block--feature:not(:first-child) {
  margin-top: 56px;
}

.approach-block {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 32px;
}

.approach-num {
  font-family: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--accent-soft);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.approach-block h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--paper);
}

.approach-block p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 20px;
}

.approach-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.approach-links .approach-link { margin-top: 0; }

.approach-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 18px;
  text-decoration: none;
  background: var(--accent-soft);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}

.approach-link:hover {
  background: #fff;
  transform: translateY(-1px);
}

.approach-img {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  overflow: hidden;
}

.approach-img--small {
  max-width: 50%;
}

/* ===== Footer ===== */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 40px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.footer-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}

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

.f-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--muted);
}

.footer-list a {
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.footer-list a:hover {
  border-bottom-color: var(--ink);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .hero-meta {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .case-body,
  .case:nth-child(even) .case-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .case:nth-child(even) .case-image {
    order: 0;
  }
  .case-image {
    position: static;
  }
  .approach-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .approach-img--small {
    max-width: 60%;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 600px) {
  .topbar-inner { padding: 14px 20px; gap: 12px; }
  .brand-meta { display: none; }

  .hero-inner { padding: 64px 20px; }
  .hero h1 { font-size: 56px; }
  .hero-lead { font-size: 18px; }

  .case { padding: 60px 20px; }
  .case-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .case-num { font-size: 40px; }
  .case h2 { font-size: 32px; }
  .case-dek { font-size: 18px; }

  .approach-inner { padding: 60px 20px; }
  .approach-lead { font-size: 18px; margin-bottom: 60px; }

  .footer-inner { padding: 60px 20px 40px; }
  .footer-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .footer-bottom {
    padding: 20px;
    flex-direction: column;
    gap: 6px;
  }
}



/* ===== Hover micro-interactions on case-study tiles (cursor devices only) ===== */
@media (hover: hover) {
  .case {
    transition: transform .25s ease;
    cursor: default;
  }
  .case:hover {
    transform: translateY(-4px);
  }
  .case-image {
    overflow: hidden;
    cursor: default;
  }
  .case-image img {
    transition: transform .4s ease;
    cursor: default;
  }
  .case:hover .case-image img {
    transform: scale(1.03);
  }
}
