/* ============================================================
   antidot.gr — expertise pages
   The section page shell (header, sub-nav, hero, sections) in the
   CV site's own paper / ink / red. Shared by expertise/*.
   ============================================================ */

:root {
  --paper: #f4f0e8;
  --paper-deep: #ece7db;
  --ink: #17150f;
  --ink-soft: rgba(23, 21, 15, 0.62);
  --ink-faint: rgba(23, 21, 15, 0.18);
  --accent: #e60000;       /* antidot.gr red */
  --accent-deep: #b30000;
  --sea: #17150f;          /* links stay ink, underlined in red */
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Archivo", Helvetica, Arial, sans-serif;
  --mono: "Space Mono", "Courier New", monospace;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --measure: 42rem;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }

/* Every local <img> carries explicit width/height attributes (added by _build/seo.py) so
   the browser can reserve its space before the file loads. Those attributes also act as
   presentational hints, so height MUST be reset to auto here — otherwise any rule that
   sets only a width (.figure-wide img, .proj-img img) leaves the attribute height in
   force and stretches the picture. Rules that set a height on purpose — .gallery img,
   .proj-card-img img, .hero-figure img — are more specific and still win. */
img { max-width: 100%; height: auto; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.mono { font-family: var(--mono); font-size: 0.72em; letter-spacing: 0.04em; text-transform: uppercase; }
.accent { color: var(--accent); }
em { font-family: var(--serif); font-style: italic; font-size: 1.06em; }

/* ============ intro curtain ============ */
.curtain {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  padding: 0 max(6vw, 1.4rem); box-sizing: border-box; text-align: center;
}
.curtain-word {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.01em; font-size: clamp(2.4rem, 9vw, 7rem);
  overflow: hidden; display: flex; max-width: 100%;
  /* The mask clips to the padding box, and the italic terminal of the final "e"
     inks ~0.018em past its advance width — pad both sides so it isn't sliced. */
  padding: 0 0.06em;
}
.curtain-line, .curtain-dot { display: inline-block; transform: translateY(110%); }
.curtain-dot { color: var(--accent); font-style: normal; }

/* ============ header ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; padding: 1.1rem var(--gutter);
  /* always visible; frosted glass over the content scrolling beneath */
  background: color-mix(in srgb, var(--paper) 62%, transparent);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--ink-faint);
}

/* wordmark: identical to antidot so the left never changes */
.wordmark {
  font-family: var(--sans); font-weight: 600; letter-spacing: -0.02em;
  font-size: 1.15rem; text-decoration: none; white-space: nowrap;
}
.wordmark .dot { color: var(--accent); }
/* contextual "you are here" tag next to the wordmark */
.here-tag {
  font-family: var(--mono); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink); white-space: nowrap;
  padding-left: 0.9rem; margin-left: 0.85rem; border-left: 1px solid var(--ink-faint);
  align-self: center;
}
.here-tag .sy { color: var(--accent); }
.here-tag { text-decoration: none; transition: color 0.25s; }
.here-tag:hover { color: var(--ink); }
.header-left { display: flex; align-items: center; }

/* ---- persistent top nav (desktop) ---- */
.sub-nav {
  display: flex; align-items: center; align-self: center;
  gap: clamp(0.7rem, 1.5vw, 1.4rem); flex-wrap: nowrap;
}
.sub-nav a {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--ink-soft); text-decoration: none;
  white-space: nowrap; transition: color 0.25s;
}
.sub-nav a:hover { color: var(--accent); }
.sub-nav a[aria-current="page"] {
  color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 2px;
}
/* desktop: show inline nav, hide burger */
@media (min-width: 1121px) {
  /* desktop shows the section top-nav, so its own burger is hidden; the arrow
     (global projects switcher) stays visible. */
  .site-header .burger { display: none; }
}
/* small screens: hide inline nav, use the burger */
@media (max-width: 1120px) {
  .sub-nav { display: none; }
  /* Contact already lives inside the burger menu whenever the burger is showing,
     so the inline Contact link is dropped here — it was crowding the burger off
     the right edge on phones. Now the burger sits clear at the end of the header. */
  .header-contact { display: none; }
}

.header-right { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 1.6rem); }
.header-contact {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none; color: var(--ink-soft);
  white-space: nowrap; transition: color 0.25s;
}
.header-contact:hover { color: var(--accent); }

/* ---- nav toggle: an arrow pointing top-right (same as antidot & side projects) ---- */
.nav-toggle {
  padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink);
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  align-self: center; transition: color 0.25s;
}
.nav-toggle:hover { color: var(--accent); }
.nav-arrow { width: 24px; height: 24px; transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.nav-toggle.is-open .nav-arrow { transform: rotate(135deg); }

/* ---- burger (section's own page nav) — thicker lines to match the arrow, with anchor ---- */
.burger {
  position: relative; width: 26px; height: 14px; padding: 0; border: 0;
  background: none; cursor: pointer; color: var(--ink); transition: color 0.25s; align-self: center;
}
.burger:hover { color: var(--accent); }
.burger-box { position: absolute; inset: 0; }
.burger-box span {
  position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s;
}
.burger-box span:nth-child(1) { top: 0; }
.burger-box span:nth-child(2) { bottom: 0; }
.burger.is-open .burger-box span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.burger.is-open .burger-box span:nth-child(2) { top: 50%; bottom: auto; transform: translateY(-50%) rotate(-45deg); }

/* ---- global "Side AI projects" overlay, opened by the arrow ---- */
.proj-panel {
  position: fixed; inset: 0; z-index: 62;
  display: flex; flex-direction: column; justify-content: flex-start;
  gap: clamp(1.1rem, 3.2vh, 2rem);
  padding: clamp(4.5rem, 12vh, 7rem) var(--gutter) var(--gutter);
  background: color-mix(in srgb, var(--paper-deep) 96%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transition: opacity 0.45s ease, visibility 0.45s;
}
.proj-panel.is-open { opacity: 1; visibility: visible; }
/* Held opaque while navigating away, so the outgoing page never flashes
   between the menu closing and the next page's curtain. */
.proj-panel.is-leaving,
.menu-panel.is-leaving {
  opacity: 1;
  visibility: visible;
  background: var(--paper-deep);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: none;
  pointer-events: none;
}
.proj-home {
  font-family: var(--sans); font-weight: 600; font-size: clamp(2.35rem, 8vw, 5rem);
  letter-spacing: -0.035em; line-height: 0.98; text-decoration: none;
  color: var(--ink); width: max-content; transition: color 0.25s;
}
.proj-home:hover { color: var(--accent); }
.proj-home .dot { color: var(--accent); }
.proj-eyebrow { color: var(--accent); animation: eyebrow-pulse 1.8s ease-in-out infinite; }
@keyframes eyebrow-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
.proj-nav { display: flex; flex-direction: column; gap: clamp(0.4rem, 1.5vh, 1rem); }
.proj-link {
  font-family: var(--sans); font-weight: 600; font-size: clamp(2.35rem, 8vw, 5rem);
  letter-spacing: -0.035em; line-height: 0.98; text-decoration: none;
  color: var(--ink); width: max-content; transition: color 0.25s;
}
.proj-link:hover { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .proj-eyebrow { animation: none; opacity: 1; } }

/* ---- menu overlay ---- */
.menu-panel {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(0.8rem, 2.4vh, 1.6rem);
  padding: 16vh var(--gutter) var(--gutter);
  background: color-mix(in srgb, var(--paper-deep) 96%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transition: opacity 0.45s ease, visibility 0.45s;
  overflow-y: auto;
}
.menu-panel.is-open { opacity: 1; visibility: visible; }
.menu-eyebrow { color: var(--ink-soft); margin-bottom: 0.4rem; }
.menu-nav { display: flex; flex-direction: column; gap: clamp(0.15rem, 0.9vh, 0.6rem); }
.menu-link {
  font-family: var(--sans); font-weight: 600;
  /* scale to the shorter of width/height so all items fit without scrolling */
  font-size: clamp(1.4rem, min(6vw, 7vh), 3.6rem);
  letter-spacing: -0.03em; line-height: 1.02; text-decoration: none;
  color: var(--ink); width: max-content; transition: color 0.25s, transform 0.25s;
}
.menu-link:hover { color: var(--accent); transform: translateX(0.5rem); }
.menu-sub {
  font-family: var(--mono); font-size: 0.9rem; font-weight: 400;
  letter-spacing: 0.02em; text-transform: none; color: var(--ink-soft);
  padding-left: 1.4rem; margin-top: 0.15rem;
}
.menu-sub:hover { color: var(--sea); transform: translateX(0.4rem); }
.menu-back {
  margin-top: clamp(1.2rem, 4vh, 2.4rem); padding-top: 1.2rem;
  border-top: 1px solid var(--ink-faint);
}
.menu-back a {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-soft); text-decoration: none;
}
.menu-back a:hover { color: var(--accent); }
body.menu-lock { overflow: hidden; }

/* ============ layout primitives ============ */
.section { padding: clamp(3rem, 7vh, 5rem) var(--gutter); max-width: 78rem; margin: 0 auto; }
.section-narrow { max-width: 52rem; }

.section-label {
  color: var(--ink-soft); margin-bottom: clamp(1.8rem, 5vh, 3rem);
  display: flex; align-items: center; gap: 0.75rem;
  /* Marked up as <h2> so every section sits properly under the page <h1>; the label
     look is entirely class-driven, so the heading defaults are reset here. */
  font-weight: 400;
}
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--ink-faint); }
.label-no { color: var(--accent); font-weight: 700; }

.section-title {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(1.9rem, 5vw, 3.6rem); line-height: 1.06;
  letter-spacing: -0.02em; margin-bottom: clamp(1.4rem, 4vh, 2.2rem);
}
.section-title em { font-weight: 400; }

.prose p { max-width: var(--measure); font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--ink); margin-bottom: 1.15rem; }
.prose p.soft { color: var(--ink-soft); }
.prose a { color: var(--sea); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--sea) 45%, transparent); }
.prose a:hover { color: var(--accent); border-color: var(--accent); }
.prose h3 {
  font-family: var(--sans); font-weight: 600; font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  letter-spacing: -0.01em; margin: 2.4rem 0 0.6rem; color: var(--accent);
}

/* ============ page hero ============ */
.page-hero {
  min-height: 82svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 8rem var(--gutter) clamp(2.5rem, 6vh, 4rem);
  max-width: 78rem; margin: 0 auto; position: relative;
}
.page-hero.center { justify-content: center; }
.hero-kicker { color: var(--ink-soft); margin-bottom: clamp(1.2rem, 3vh, 2rem); }
.hero-title {
  font-weight: 500; font-size: clamp(2.6rem, 9vw, 7.5rem);
  line-height: 0.98; letter-spacing: -0.03em;
}
.hero-line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hl-inner { display: inline-block; will-change: transform; }
.hero-title em { font-weight: 400; letter-spacing: -0.01em; }
.hero-sub {
  margin-top: clamp(1.4rem, 3vh, 2.2rem); max-width: 34rem;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--ink-soft);
}
.scroll-hint { position: absolute; bottom: 1.5rem; left: var(--gutter); color: var(--ink-soft); }
.scroll-arrow { display: inline-block; }
/* ============ index cards (section landing) ============ */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px; background: var(--ink-faint); border: 1px solid var(--ink-faint);
  margin-top: clamp(2rem, 5vh, 3rem);
}
.card {
  background: var(--paper); padding: clamp(1.4rem, 3vw, 2.2rem);
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  min-height: 11rem; transition: background 0.3s;
}
.card:hover { background: var(--paper-deep); }
.card-no {
  font-family: var(--mono); font-size: 0.72rem; color: var(--accent); letter-spacing: 0.06em;
}
.card h3 { font-weight: 600; font-size: 1.35rem; letter-spacing: -0.01em; margin: auto 0 0.4rem; transition: color 0.25s; }
.card:hover h3 { color: var(--accent); }
.card p { color: var(--ink-soft); font-size: 0.92rem; }
.card .arrow { color: var(--accent); font-family: var(--mono); margin-top: 0.6rem; }

/* ============ contact ============ */
.contact-title { font-weight: 500; font-size: clamp(2.4rem, 8vw, 5.5rem); line-height: 1; letter-spacing: -0.03em; margin-bottom: clamp(1.6rem, 4vh, 2.4rem); }
.contact-email {
  display: inline-block; font-family: var(--serif); font-size: clamp(1.6rem, 4.5vw, 3.2rem);
  color: var(--accent); text-decoration: none; border-bottom: 2px solid var(--accent);
  padding-bottom: 0.1em; will-change: transform;
}
.contact-meta { margin-top: 2rem; color: var(--ink-soft); }
.contact-meta a { color: var(--ink); text-decoration-color: var(--accent); }
.contact-meta a:hover { color: var(--accent); }
/* ============ footer ============ */
.site-footer { border-top: 1px solid var(--ink-faint); }
.footer-inner {
  max-width: 78rem; margin: 0 auto; padding: clamp(2.5rem, 6vh, 4rem) var(--gutter);
  display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: baseline;
}
.footer-social { display: flex; gap: 1.2rem; }
.footer-social a { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; }
.footer-social a:hover { color: var(--accent); }
.footer-note { color: var(--ink-soft); font-size: 0.82rem; max-width: 30rem; }
.footer-note a { color: var(--ink); text-decoration-color: var(--accent); }

/* ============ reveal defaults (JS animates in) ============ */
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .hl-inner { transform: translateY(110%); }

/* ============ hero backlink ============ */
/* .scroll-hint is absolutely positioned at the bottom of the hero, so the backlink
   needs to reserve room for it or the two collide on short heroes. */
.hero-backlink { margin-top: 1rem; margin-bottom: 3.5rem; }
@media (max-width: 760px) { .hero-backlink { margin-bottom: 0; } }
.hero-backlink a { color: var(--ink-soft); text-decoration: none; transition: color 0.25s; }
.hero-backlink a:hover { color: var(--accent); }
.proj-list { list-style: none; }
.proj-list li {
  padding: 0.5rem 0 0.5rem 1.5rem; position: relative; color: var(--ink-soft);
  border-bottom: 1px solid var(--ink-faint);
}
.proj-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); font-size: 0.8em; top: 0.7em; }
.proj-img { margin: 0; overflow: hidden; }
.proj-img img { width: 100%; display: block; border: 1px solid var(--ink-faint); transition: transform 0.7s cubic-bezier(0.22,1,0.36,1); }
@media (hover:hover) { .proj-img:hover img { transform: scale(1.03); } }
.proj-img a { display: block; }
.proj-more { margin-top: 1.6rem; }
.text-link {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent;
  padding-bottom: 2px; transition: border-color 0.25s, color 0.25s;
}
.text-link:hover { color: var(--accent-deep); border-bottom-color: var(--accent); }
.text-link span { display: inline-block; transition: transform 0.25s; }
.text-link:hover span { transform: translateX(4px); }
/* ============ responsive ============ */
@media (max-width: 760px) {
  .scroll-hint { display: none; }
  .link-item a { grid-template-columns: 1fr; }
  .link-host { grid-column: 1; grid-row: auto; }
}

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .hl-inner { opacity: 1 !important; transform: none !important; }
  .curtain { display: none; }
}

/* ============ expertise components ============ */
.prose a { color: var(--ink); border-bottom-color: var(--accent); }
.lead {
  font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2.4rem); line-height: 1.22;
  letter-spacing: -0.01em; max-width: 46rem; margin-bottom: clamp(1.4rem, 3vh, 2rem);
}
.lead em { color: var(--accent); font-size: 1em; }

/* who it is for: a row of plain tags */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.tags li {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase;
  border: 1px solid var(--ink-faint); border-radius: 100px; padding: 0.35rem 0.8rem; color: var(--ink-soft);
}

/* problem -> approach -> outcome: three panels read left to right */
.pao {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--ink-faint); border: 1px solid var(--ink-faint);
}
.pao-step { background: var(--paper); padding: clamp(1.4rem, 3vw, 2.4rem); position: relative; }
.pao-step:not(:last-child)::after {
  content: "→"; position: absolute; right: -0.65rem; top: clamp(1.4rem, 3vw, 2.4rem); z-index: 2;
  font-family: var(--mono); color: var(--accent); background: var(--paper); line-height: 1; padding: 0.1rem 0;
}
.pao-label { color: var(--accent); margin-bottom: 1rem; display: block; }
.pao-step h3 { font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; margin-bottom: 0.6rem; }
.pao-step p { color: var(--ink-soft); font-size: 0.97rem; }
.pao-step ul { list-style: none; margin-top: 0.6rem; }
.pao-step li { color: var(--ink-soft); font-size: 0.95rem; padding: 0.3rem 0 0.3rem 1.2rem; position: relative; }
.pao-step li::before { content: "·"; position: absolute; left: 0.3rem; color: var(--accent); font-weight: 700; }
@media (max-width: 860px) {
  .pao { grid-template-columns: 1fr; }
  .pao-step:not(:last-child)::after { content: "↓"; right: auto; left: clamp(1.4rem, 3vw, 2.4rem); top: auto; bottom: -0.7rem; padding: 0 0.3rem; }
}

/* deliverables */
.deliver { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3rem); }
.deliver .proj-list li { color: var(--ink); }
.deliver .proj-list .why { color: var(--ink-soft); }

/* section 01: the reader's question, a step below the other section titles */
.section-title.ask { font-size: clamp(1.6rem, 3.6vw, 2.6rem); max-width: 22em; text-wrap: balance; }


/* anonymised case studies */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1px; background: var(--ink-faint); border: 1px solid var(--ink-faint); }
.case { background: var(--paper); padding: clamp(1.4rem, 3vw, 2.2rem); display: flex; flex-direction: column; gap: 0.9rem; transition: background 0.3s; }
.case:hover { background: var(--paper-deep); }
.case-sector { color: var(--accent); }
.case h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.15; letter-spacing: -0.01em; }
.case dl { display: grid; gap: 0.7rem; }
.case dt { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.case dd { font-size: 0.95rem; }
.case-note { margin-top: 1rem; color: var(--ink-soft); font-size: 0.85rem; }

/* FAQ: native disclosure, marked up as FAQPage by _build/seo.py */
.faq { border-top: 1px solid var(--ink); max-width: 52rem; }
.faq-item { border-bottom: 1px solid var(--ink-faint); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: clamp(1rem, 2.4vw, 1.4rem) 0; font-weight: 600; font-size: clamp(1.05rem, 1.8vw, 1.3rem); letter-spacing: -0.01em;
  transition: color 0.25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-weight: 400; transition: transform 0.3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-a { padding: 0 0 1.4rem; max-width: var(--measure); color: var(--ink-soft); }
.faq-a p + p { margin-top: 0.7rem; }

/* side projects shown as proof on the agentic page */
.card .card-tag { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.4rem; }
.card-grid.compact .card { min-height: 9rem; }

/* "More areas of expertise": always the five sibling pages, so one row of five on wide
   screens and a single column below that (never a part-filled second row) */
.card-grid.related { grid-template-columns: 1fr; }
/* titles top-aligned under the letter; the arrows still line up along the bottom */
.card-grid.related .card h3 { margin: 0.6rem 0 0.4rem; }
.card-grid.related .card .arrow { margin-top: auto; padding-top: 0.8rem; }
@media (min-width: 1000px) {
  .card-grid.related { grid-template-columns: repeat(5, 1fr); }
  .card-grid.related .card { padding: clamp(1.1rem, 1.6vw, 1.6rem); }
  .card-grid.related .card h3 { font-size: 1.1rem; }
  .card-grid.related .card p { font-size: 0.86rem; }
}

/* contact block on expertise pages */
.contact-lede { max-width: var(--measure); color: var(--ink-soft); margin: -0.6rem 0 1.8rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
