/* ──────────────────────────────────────────────────────────────
   LiverpoolAI — monochrome ruled-grid theme
   Ported from the Astro site (src/styles/main.scss). The brand
   look is a paper-white background, ink type, hairline ruled
   verticals running the full height, and a mono caps eyebrow.
   ────────────────────────────────────────────────────────────── */

/* ── Fonts ────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* VCR OSD Mono — used for eyebrows, idx labels and the corner tag.
   Self-hosted so the brand mono look matches the Astro source. */
@font-face {
  font-family: 'VCR OSD Mono';
  src: url('../fonts/vcr-osd-mono.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Design tokens ────────────────────────────────────────────── */
:root {
  --paper:      #f6f6f6;
  --paper-2:    #ededed;
  --paper-card: #ffffff;

  --ink:        #111114;
  --ink-2:      #3d3d40;
  --muted:      #565658;
  --faint:      #98989a;

  --line:       #dedede;
  --line-soft:  #e9e9e9;
  --line-dark:  rgba(255, 255, 255, 0.14);

  --font-sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:  'VCR OSD Mono', ui-monospace, 'SF Mono', 'Menlo', monospace;

  --container:  1680px;
  --frame:      clamp(1rem, 2.5vw, 2rem);
  --gutter:     clamp(1.25rem, 3vw, 2.75rem);
  --section-y:  clamp(3.5rem, 7vw, 8rem);

  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 0.95rem;
  line-height: 1.6;
  overflow-x: hidden;
  /* the ruled-grid frame — content is inset from the viewport edge */
  padding-inline: var(--frame);
}
::selection { background: var(--ink); color: var(--paper); }
img, svg, canvas { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 1000;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ── Ruled-grid frame — the START design signature ─────────────
   Continuous 1px rails run the full height of the page; every
   section is divided by a hairline rule. */
.site-nav,
#main,
.site-footer {
  max-width: var(--container);
  margin-inline: auto;
}
.site-nav,
#main { border-inline: 1px solid var(--line); }

.site-footer {
  border-inline: 1px solid var(--line-dark);
  border-top: 1px solid var(--line-dark);
}

/* hairline rule between consecutive sections */
#main > section + section { border-top: 1px solid var(--line); }

/* ── Section line modifier — used on home page sections ───── */
.section-line { border-top: 1px solid var(--line); }

/* ── Container + section ─────────────────────────────────────── */
.container { width: 100%; padding-inline: var(--gutter); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-sm {
  padding-top: clamp(2.75rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.75rem, 5vw, 4.5rem);
}

/* ── Typography — matches Astro main.scss line 200+ ─────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
.fs-display {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
}
h1, .h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.14; }
h2, .h2 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); }
h3, .h3 { font-size: clamp(1.25rem, 1.7vw, 1.5rem); }
h4, .h4 { font-size: clamp(1.1rem, 1.3vw, 1.25rem); }
.fs-h2 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 500; }
.fs-h3 { font-size: clamp(1.25rem, 1.7vw, 1.5rem); font-weight: 500; }

.lead {
  font-size: clamp(0.98rem, 1.3vw, 1.18rem);
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 400;
}
p { margin: 0 0 1.1rem; }
.measure { max-width: 46ch; }
.measure-wide { max-width: 62ch; }
.text-muted-2 { color: var(--muted); }

/* eyebrow — VCR-mono supertitle in a hairline pill (START signature) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.5rem 0.85rem;
}

/* monospace index numbers */
.idx {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--faint);
  text-transform: none;
}

/* ── Buttons — dimensional gradient slabs (matches Astro) ───── */
.btn {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0;
  border-radius: 0;
  border: 1px solid transparent;
  padding: 0.74rem 1.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    transform 0.12s var(--ease);
}

/* primary — a raised dark slab */
.btn-solid {
  background: linear-gradient(180deg, #313137 0%, #111114 100%);
  color: var(--paper);
  border-color: #0c0c0e;
  box-shadow: 0 2px 5px rgba(17, 17, 20, 0.22),
    0 1px 1px rgba(17, 17, 20, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}
.btn-solid:hover {
  background: linear-gradient(180deg, #3d3d44 0%, #1b1b20 100%);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(17, 17, 20, 0.26),
    0 2px 3px rgba(17, 17, 20, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.11);
}
.btn-solid:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(17, 17, 20, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* secondary — a raised light slab */
.btn-outline {
  background: linear-gradient(180deg, #ffffff 0%, #ebebeb 100%);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 2px 5px rgba(17, 17, 20, 0.1),
    0 1px 1px rgba(17, 17, 20, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.btn-outline:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e3e3e3 100%);
  color: var(--ink);
  border-color: #b9b9b9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(17, 17, 20, 0.14),
    0 2px 3px rgba(17, 17, 20, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.btn-outline:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(17, 17, 20, 0.1);
}

/* tertiary — quiet inline text button */
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}
.btn-ghost:hover { color: var(--muted); }
.btn-ghost:active { transform: translateY(1px); }

.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-lg { padding: 0.96rem 1.9rem; font-size: 1rem; }

/* outline light variant — for dark backgrounds */
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: none;
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.link-underline {
  background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1.5px;
  transition: background-size 0.25s var(--ease);
}
.link-underline:hover { background-size: 100% 1.5px; }

/* ── Site nav (matches Astro Nav.astro exactly) ──────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 246, 246, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-nav nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}
.nav-brand { display: inline-flex; }
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  line-height: 1;
}
.brand-word {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.035em;
}
.brand-ai { color: inherit; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  background: none;
  transition: color 0.2s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-active { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.6px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded='true'] span:first-child {
  transform: translateY(3.3px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] span:last-child {
  transform: translateY(-3.3px) rotate(-45deg);
}

@media (max-width: 991px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    inset: 72px var(--frame) auto var(--frame);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.25rem var(--gutter) 1.75rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  }
  .nav-menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-link {
    display: block;
    padding: 0.95rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-cta { margin-top: 1.1rem; justify-content: center; }
}

/* ── Site footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: #b8b8b4;
  padding: clamp(3.5rem, 7vw, 6rem) var(--gutter) 2rem;
}
.site-footer .brand,
.site-footer .footer-brand-link { color: #fff; text-decoration: none; }
.site-footer .footer-brand-link { display: inline-flex; margin-bottom: 1.4rem; }
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-blurb { font-size: 0.95rem; color: #9a9a96; max-width: 36ch; margin-bottom: 1.1rem; }
.footer-mail, .footer-phone { display: block; color: #fff; font-weight: 500; }
.footer-phone { margin-top: 0.4rem; }
.footer-h {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 400;
  letter-spacing: 0.04em; text-transform: uppercase; color: #8a8a86;
  margin-bottom: 1.1rem;
}
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.footer-list a { color: #b8b8b4; font-size: 0.95rem; }
.footer-list a:hover { color: #fff; }
.footer-addr { font-style: normal; font-size: 0.9rem; color: #6f6f6b; margin-top: 1.1rem; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-copy { font-size: 0.85rem; color: #6f6f6b; margin: 0; }
.footer-legal { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.footer-legal a { font-size: 0.85rem; color: #6f6f6b; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  padding: clamp(3.5rem, 7vw, 7rem) var(--gutter);
  position: relative;
}
.hero-inner { max-width: 720px; }
.hero-title { margin: 1.3rem 0 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; align-items: center; margin-top: 1.8rem; }

/* ── Page content (Ghost-rendered post/page body) ────────────── */
.content {
  padding: var(--section-y) var(--gutter);
}
.content-inner { max-width: 72ch; margin-inline: auto; }
.content-inner h1, .content-inner h2, .content-inner h3 { margin-top: 1.8em; }
.content-inner h1 { font-size: clamp(2.1rem, 4vw, 3.3rem); }
.content-inner h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); }
.content-inner img { margin: 1.5rem 0; }
.content-inner ul, .content-inner ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.content-inner li { margin-bottom: 0.4em; }
.content-inner blockquote {
  margin: 1.5em 0; padding-left: 1.2em;
  border-left: 2px solid var(--ink);
  font-size: 1.1em; font-style: italic; color: var(--ink-2);
}
.content-inner code {
  font-family: var(--font-mono);
  background: var(--paper-2); padding: 0.1em 0.4em;
  font-size: 0.92em;
}
.content-inner pre {
  background: var(--ink); color: #e6e6e2;
  padding: 1.2rem; overflow-x: auto; font-size: 0.88rem;
}
.content-inner pre code { background: transparent; padding: 0; color: inherit; }
.content-inner a { background-image: linear-gradient(var(--ink), var(--ink)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1.5px; transition: background-size 0.25s var(--ease); }
.content-inner a:hover { background-size: 100% 1.5px; }

/* ── Card grids (posts list, services) ───────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.grid-item {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: background 0.18s var(--ease);
}
.grid-item:hover { background: var(--paper-card); }
.grid-item .idx { display: block; margin-bottom: 1rem; }
.grid-item h3 { margin: 0 0 0.6rem; font-size: 1.2rem; }
.grid-item p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.grid-item-meta {
  margin-top: 1.2rem;
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint);
}

/* ── Article hero (post page) ────────────────────────────────── */
.article-hero {
  padding: var(--section-y) var(--gutter);
}
.article-hero-inner { max-width: 72ch; margin-inline: auto; }
.article-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); margin: 1.3rem 0 1rem; line-height: 1.05; }
.article-meta {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  display: flex; gap: 1.5rem; flex-wrap: wrap;
}

/* ── Page hero + page-content (services, work, about, contact, legal) ── */
.page-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(3rem, 6vw, 5.5rem) var(--gutter) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero > canvas.hero-dither {
  position: absolute;
  top: 0; right: 0;
  width: min(940px, 65%);
  height: 100%;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(to left, #000 40%, transparent 84%),
    linear-gradient(to bottom, transparent, #000 9%, #000 94%, transparent);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to left, #000 40%, transparent 84%),
    linear-gradient(to bottom, transparent, #000 9%, #000 94%, transparent);
          mask-composite: intersect;
}
.page-hero-inner { position: relative; max-width: var(--container); margin-inline: auto; }
.page-hero-inner .eyebrow { margin-bottom: 1.2rem; }
.page-hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0.6rem 0 1.2rem;
  max-width: 22ch;
}
.page-hero-inner .lead { color: var(--ink-2); margin: 0; }

.page-content {
  padding: clamp(2rem, 4vw, 3.5rem) var(--gutter) clamp(3rem, 7vw, 6rem);
}
.page-content .content-inner { max-width: var(--container); margin-inline: auto; }
.page-contact .page-content { padding-bottom: 0; }

/* ── Reveal-on-scroll — animates when the body has the `js` class ── */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Hero (home) — corner tag, scroll cue, dither field + 3D stage ── */
.hero {
  position: relative;
  min-height: clamp(620px, 88svh, 900px);
  padding: clamp(3rem, 6vw, 6rem) var(--gutter);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-inner { position: relative; z-index: 5; max-width: var(--container); margin-inline: auto; width: 100%; }
.hero-content { max-width: 660px; }
.hero-title { margin: 1.3rem 0 1.5rem; }
.hero-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--ink-2);
  margin-bottom: 2.1rem;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.4rem; }

/* corner-tag — notched label snapped into the top-right of a section
   (Astro main.scss line 260). Only border-left + border-bottom: the
   top/right edges meet the frame rail. */
.corner-tag {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  padding: 0.62rem 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper);
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-scroll {
  position: absolute;
  left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  z-index: 5;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
}
@media (max-width: 991px) { .hero-scroll { display: none; } }

/* Dither field canvas — sits behind the hand on the right half */
.hero-dither {
  position: absolute;
  top: 0; right: 0;
  width: min(940px, 72%);
  height: 100%;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(to left, #000 40%, transparent 84%),
    linear-gradient(to bottom, transparent, #000 9%, #000 94%, transparent);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to left, #000 40%, transparent 84%),
    linear-gradient(to bottom, transparent, #000 9%, #000 94%, transparent);
          mask-composite: intersect;
}

/* 3D dither hand stage */
.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

@media (max-width: 991px) {
  .hero {
    min-height: auto;
    padding: clamp(3rem, 10vw, 5rem) var(--gutter);
    flex-direction: column;
    align-items: stretch;
  }
  .hero-inner { order: 1; }
  .hero-stage {
    order: 2;
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(340px, 76vw, 440px);
    margin-top: clamp(1.8rem, 6vw, 3rem);
  }
}

/* ── Section header (used on home + indexes) ─────────────────── */
.section-head { margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head h2 { margin: 0 0 0.8rem; }
.section-head .lead { margin: 0; max-width: 60ch; }

/* ── Trust strip ─────────────────────────────────────────────── */
.trust {
  padding: clamp(2.5rem, 5vw, 3.75rem) var(--gutter);
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: var(--container);
  margin-inline: auto;
}
.trust-line { margin: 0; flex: 0 0 auto; max-width: 22ch; font-size: 0.92rem; font-weight: 500; color: var(--ink-2); }
.trust-dim { color: var(--faint); }
.trust-marks { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1rem, 3.2vw, 2.6rem); }
.trust-mark {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Stats ───────────────────────────────────────────────────── */
.stats {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
}
.stat { display: flex; flex-direction: column; gap: 0.5rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.stat-idx { color: var(--faint); }
.stat-value {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 600; line-height: 0.95; letter-spacing: -0.03em; color: var(--ink);
}
.stat-label { font-size: 0.95rem; color: var(--muted); max-width: 22ch; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ── Services overview (home) — seamless ruled-grid cards ──── */
.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  max-width: var(--container);
  margin-inline: auto;
}
@media (min-width: 576px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(1.5rem, 2.6vw, 2.3rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: background-color 0.25s var(--ease);
}
.svc-card:hover { background: var(--paper-card); }
.svc-card .idx { display: block; margin-bottom: 1rem; }
.svc-card h3 { margin: 0 0 0.55rem; }
.svc-tagline { margin: 0 0 0.9rem; font-weight: 500; color: var(--ink-2); font-size: 1.02rem; line-height: 1.4; }
.svc-summary { margin: 0 0 1.6rem; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.svc-more { margin-top: auto; display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.svc-foot { margin-top: clamp(2rem, 4vw, 3rem); padding: 0 var(--gutter); }

/* Services index page listing (uses same .svc-grid-listing in the body) */
.content-inner .svc-grid-listing,
.svc-grid-listing {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin: 2.5rem 0 0;
}
@media (min-width: 576px) {
  .content-inner .svc-grid-listing,
  .svc-grid-listing { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .content-inner .svc-grid-listing,
  .svc-grid-listing { grid-template-columns: repeat(3, 1fr); }
}
.svc-grid-listing .svc-card { background: var(--paper); }
.content-inner .svc-grid-listing .svc-card { color: var(--ink); text-decoration: none; }
.content-inner .svc-grid-listing .svc-card:hover { background: var(--paper-card); }

/* ── Service rows on /services/ (Astro parity) ──────────────────── */
.content-inner .svc-rows {
  list-style: none; margin: 0; padding: 0;
}
.content-inner .svc-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 3vw, 3rem);
  padding: clamp(2.4rem, 5vw, 3.6rem) 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.content-inner .svc-row:first-child { border-top: 1px solid var(--line); }
.content-inner .svc-row-index { display: flex; align-items: center; gap: 1rem; }
.content-inner .svc-row-num {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1;
  color: var(--ink);
}
.content-inner .svc-row-dither {
  flex: 1; height: 2.2rem; opacity: 0.5;
  background-image: radial-gradient(var(--ink) 0.9px, transparent 1px);
  background-size: 7px 7px;
  -webkit-mask-image: linear-gradient(to right, #000, transparent);
          mask-image: linear-gradient(to right, #000, transparent);
}
.content-inner .svc-row-title {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  margin: 0 0 0.5rem;
}
.content-inner .svc-row-link {
  background: none; color: var(--ink);
}
.content-inner .svc-row-tagline {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  font-weight: 500; color: var(--ink-2);
  margin: 0 0 0.9rem;
}
.content-inner .svc-row-summary {
  color: var(--muted); max-width: 72ch;
  margin: 0 0 1.4rem;
}
.content-inner .svc-row-outcomes {
  list-style: none; margin: 0 0 1.5rem; padding: 0;
  display: grid; gap: 0.55rem;
}
.content-inner .svc-row-outcome {
  position: relative; padding-left: 1.5rem;
  font-size: 0.97rem; color: var(--ink-2);
  margin: 0;
}
.content-inner .svc-row-outcome::before {
  content: ''; position: absolute; left: 0; top: 0.5rem;
  width: 0.6rem; height: 0.6rem; background: var(--ink);
}
.content-inner .svc-row-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; font-size: 0.95rem; color: var(--ink);
  background: none;
}
@media (min-width: 768px) {
  .content-inner .svc-row { grid-template-columns: minmax(8rem, 0.9fr) 2.6fr; align-items: start; }
  .content-inner .svc-row-index { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .content-inner .svc-row-dither { width: 100%; flex: none; }
}

/* ── Process grid on /services/ (4 steps) ───────────────────────── */
.content-inner .services-process { margin: clamp(3rem, 6vw, 5rem) 0; }
.content-inner .services-process h2 { margin: 0.7rem 0 0.8rem; }
.content-inner .process-grid {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
@media (min-width: 576px) { .content-inner .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .content-inner .process-grid { grid-template-columns: repeat(4, 1fr); } }
.content-inner .process-step-card {
  padding: clamp(1.4rem, 3vw, 1.9rem);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--paper-card);
  margin: 0;
}
.content-inner .process-step-card .idx { display: block; margin-bottom: 0.7rem; }
.content-inner .process-step-card h3 { margin: 0 0 0.4rem; font-size: clamp(1.2rem, 2vw, 1.5rem); }
.content-inner .process-step-card p { color: var(--ink-2); font-size: 0.95rem; margin: 0; line-height: 1.55; }

/* ── CTA banner inside page body ───────────────────────────────── */
.content-inner .cta-banner-body {
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
  background: var(--paper-card);
  border: 1px solid var(--line);
}
.content-inner .cta-banner-body h2 { margin: 0.8rem 0 0.8rem; }
.content-inner .cta-banner-body p { margin: 0 0 1.3rem; }

/* ── Work grid on /work/ (Astro parity — 2 col cards) ───────────── */
.content-inner .work-grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(1rem, 2.5vw, 1.5rem);
  margin: 2rem 0 0;
}
@media (min-width: 768px) { .content-inner .work-grid { grid-template-columns: 1fr 1fr; } }
.content-inner .work-card {
  display: flex; flex-direction: column;
  padding: clamp(1.8rem, 3.5vw, 2.6rem);
  background: var(--paper-card);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s var(--ease);
}
.content-inner .work-card:hover { border-color: var(--ink); }
.content-inner .work-card-head {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 1.3rem;
}
.content-inner .work-card-sector {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.content-inner .work-card-title {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  margin: 0 0 0.6rem;
}
.content-inner .work-card-line {
  color: var(--ink-2); font-size: 1rem; line-height: 1.5;
  margin: 0 0 1.4rem;
}
.content-inner .work-card-metric {
  display: flex; align-items: baseline; gap: 0.9rem;
  padding-top: 1.2rem; border-top: 1px solid var(--line);
  margin: auto 0 1.2rem;
}
.content-inner .work-card-value {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 600; letter-spacing: -0.02em; color: var(--ink);
}
.content-inner .work-card-label { color: var(--muted); font-size: 0.92rem; }
.content-inner .work-card-cta { font-weight: 600; font-size: 0.92rem; color: var(--ink); }

/* ── Process ─────────────────────────────────────────────────── */
.process {
  list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr;
}
@media (min-width: 992px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process-step { padding: 1.5rem clamp(1.25rem, 3vw, 2.4rem) 1.5rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 992px) {
  .process-step { border-bottom: 0; border-right: 1px solid var(--line); padding: 1.6rem clamp(1.5rem, 2.5vw, 2.4rem); }
  .process-step:last-child { border-right: 0; padding-right: 0; }
}
.process-num { display: block; margin-bottom: 1rem; color: var(--ink); font-size: 0.85rem; }
.process-step h3 { margin: 0 0 0.5rem; }
.process-step p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }

/* ── Featured outcome (dark band) ───────────────────────────── */
.outcome { padding: var(--section-y) var(--gutter); }
.outcome-inner {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--paper);
  padding: clamp(2.25rem, 5.5vw, 5rem);
  max-width: var(--container);
  margin-inline: auto;
}
.outcome-dither {
  position: absolute; inset: 0; opacity: 0.14;
  background-image: radial-gradient(#fff 0.9px, transparent 1px);
  background-size: 7px 7px;
  -webkit-mask-image: radial-gradient(ellipse 55% 75% at 0% 100%, #000, transparent 70%);
          mask-image: radial-gradient(ellipse 55% 75% at 0% 100%, #000, transparent 70%);
  pointer-events: none;
}
.outcome-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.outcome-figure { display: block; color: #fff; font-size: clamp(4.5rem, 13vw, 9rem); font-weight: 600; line-height: 0.88; letter-spacing: -0.04em; }
.outcome-figure-sub { display: block; margin-top: 0.7rem; color: #b8b8b4; font-size: 1rem; font-weight: 500; }
.outcome-eyebrow { color: #b8b8b4; border-color: rgba(255,255,255,0.18); margin-bottom: 1rem; }
.outcome-h { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.7rem); margin: 0 0 1rem; }
.outcome-body { color: #b8b8b4; font-size: 1.05rem; margin: 0 0 1.9rem; }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,0.28); }
.btn-outline-light:hover { color: var(--ink); background: #fff; border-color: #fff; }
@media (min-width: 768px) { .outcome-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 5vw, 4.5rem); } }

/* ── Differentiators ─────────────────────────────────────────── */
.diff-grid {
  display: grid; grid-template-columns: 1fr;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  max-width: var(--container); margin-inline: auto;
}
@media (min-width: 768px) { .diff-grid { grid-template-columns: repeat(2, 1fr); } }
.diff {
  padding: clamp(1.6rem, 3vw, 2.5rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.diff-idx { display: block; margin-bottom: 1rem; }
.diff h3 { margin: 0 0 0.55rem; }
.diff p { margin: 0; color: var(--muted); line-height: 1.6; max-width: 48ch; }

/* ── Testimonials ────────────────────────────────────────────── */
.quotes {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 992px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote {
  display: flex; flex-direction: column;
  background: var(--paper-card);
  border: 1px solid var(--line);
  padding: clamp(1.4rem, 2.6vw, 1.9rem);
  margin: 0;
}
.quote-mark { font-size: 3.2rem; line-height: 0.6; color: var(--ink); margin-bottom: 1rem; font-weight: 600; }
.quote blockquote { margin: 0 0 1.6rem; font-size: 1.06rem; line-height: 1.55; color: var(--ink-2); font-weight: 500; }
.quote figcaption { margin-top: auto; padding-top: 1.3rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.15rem; }
.quote-name { font-weight: 600; color: var(--ink); }
.quote-role { font-size: 0.86rem; color: var(--muted); }

/* ── Insights teaser + insight-foot ─────────────────────────── */
.insight-foot { margin-top: clamp(2rem, 4vw, 3rem); }

/* ── Service detail body (inside .content-inner) ─────────────── */
.content-inner .svc-blocks {
  display: grid; gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  margin: 2.4rem 0;
}
@media (min-width: 768px) {
  .content-inner .svc-blocks { grid-template-columns: 1fr 1fr; }
}
.content-inner .svc-block { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.content-inner .svc-block ul { padding-left: 1.2em; }

.content-inner .svc-forwho {
  background: var(--ink); color: var(--paper);
  padding: clamp(2rem, 5vw, 3rem);
  margin: 3rem 0;
}
.content-inner .svc-forwho .eyebrow { color: #b8b8b4; border-color: rgba(255,255,255,0.18); }
.content-inner .svc-forwho-text {
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 1.16;
  color: #fff;
  margin: 1rem 0;
}
.content-inner .svc-forwho-note { color: #b8b8b4; margin: 0; }

.content-inner .svc-approach { margin: 3rem 0; }
.content-inner .svc-steps { border-top: 1px solid var(--line); margin-top: 1.4rem; }
.content-inner .svc-step {
  display: grid; gap: 0.5rem 1.6rem;
  padding: clamp(1.2rem, 3vw, 1.8rem) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) {
  .content-inner .svc-step { grid-template-columns: 4rem 1fr; }
}
.content-inner .svc-step p { font-size: clamp(1.05rem, 1.7vw, 1.25rem); line-height: 1.5; color: var(--ink-2); margin: 0; }

.content-inner .svc-faqs { margin: 3rem 0; }
.content-inner .faqs { border-top: 1px solid var(--line); margin-top: 1.4rem; }
.content-inner .faq { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.content-inner .faq summary {
  cursor: pointer; list-style: none;
  font-weight: 600; font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--ink);
  padding: 0.6rem 0;
}
.content-inner .faq summary::-webkit-details-marker { display: none; }
.content-inner .faq summary::after { content: "+"; float: right; color: var(--muted); }
.content-inner .faq[open] summary::after { content: "−"; }
.content-inner .faq p { color: var(--ink-2); margin: 0.6rem 0 0; }

.content-inner .svc-cta { margin: 3rem 0 0; }

/* ── Case study body ─────────────────────────────────────────── */
.content-inner .case-meta {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
  margin: 2rem 0 3rem;
}
@media (min-width: 768px) {
  .content-inner .case-meta { grid-template-columns: repeat(3, 1fr); }
}
.content-inner .case-meta .idx { display: block; margin-bottom: 0.4rem; }
.content-inner .case-meta p { margin: 0; }

.content-inner .case-metrics {
  display: grid; grid-template-columns: 1fr; gap: 1.2rem;
  margin: 1.6rem 0 1.6rem;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}
@media (min-width: 768px) {
  .content-inner .case-metrics { grid-template-columns: repeat(3, 1fr); }
}
.content-inner .case-metric { display: flex; flex-direction: column; gap: 0.3rem; }
.content-inner .case-metric-value {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.content-inner .case-metric-label { color: var(--muted); font-size: 0.92rem; }

.content-inner .case-quote {
  background: var(--paper-card);
  border-left: 3px solid var(--ink);
  padding: clamp(1.4rem, 3vw, 2rem);
  margin: 2.5rem 0;
}
.content-inner .case-quote blockquote { margin: 0 0 1rem; font-size: 1.15rem; line-height: 1.5; color: var(--ink-2); }
.content-inner .case-quote figcaption { color: var(--muted); font-size: 0.92rem; }

.content-inner .case-services { padding-left: 1.4em; }

/* Work index page listing */
.content-inner .case-grid,
.case-grid {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  margin: 2.4rem 0 0;
}
@media (min-width: 768px) {
  .content-inner .case-grid,
  .case-grid { grid-template-columns: 1fr 1fr; }
}
.content-inner .case-card { color: var(--ink); text-decoration: none; }
.case-card {
  display: flex; flex-direction: column; padding: clamp(1.6rem, 3vw, 2.4rem);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  transition: background 0.2s var(--ease);
}
.case-card:hover { background: var(--paper-card); }
.case-card .idx { display: block; margin-bottom: 1rem; }
.case-card h3 { margin: 0 0 0.5rem; font-size: 1.4rem; }
.case-line { color: var(--ink-2); margin: 0 0 1.4rem; }
.case-headline { display: flex; align-items: baseline; gap: 0.8rem; margin: auto 0 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.case-headline-value { font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.case-headline-label { color: var(--muted); font-size: 0.92rem; }
.case-more { font-weight: 600; font-size: 0.9rem; color: var(--ink); }

/* ── About page body ─────────────────────────────────────────── */
.content-inner .about-glance {
  background: var(--paper-card);
  border: 1px solid var(--line);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  margin: 2rem 0 3rem;
}
.content-inner .about-glance h3 { margin: 0 0 1.2rem; font-size: 1.1rem; }
.content-inner .about-glance dl { margin: 0; }
.content-inner .about-glance dt {
  font-family: var(--font-mono); font-size: 0.76rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  margin-top: 0.9rem;
}
.content-inner .about-glance dt:first-child { margin-top: 0; }
.content-inner .about-glance dd { margin: 0.2rem 0 0.9rem; font-weight: 500; }

.content-inner .about-values {
  list-style: none; margin: 1.6rem 0 3rem; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 768px) {
  .content-inner .about-values { grid-template-columns: 1fr 1fr; column-gap: 2.4rem; }
}
.content-inner .about-values li {
  display: flex; gap: 1.4rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.content-inner .about-values .idx { flex: none; padding-top: 0.4rem; }
.content-inner .about-values h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.content-inner .about-values p { margin: 0; color: var(--muted); font-size: 0.96rem; line-height: 1.55; }

.content-inner .team-grid {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  margin: 1.6rem 0 3rem;
}
@media (min-width: 576px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.content-inner .team-member {
  padding: clamp(1.4rem, 3vw, 1.9rem);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.content-inner .team-member h3 { margin: 0 0 0.2rem; font-size: 1.1rem; }
.content-inner .team-role {
  font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 0.9rem;
}
.content-inner .team-member > p:last-child { margin: 0; color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; }

.content-inner .about-stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.8rem, 4vw, 3rem) clamp(1.2rem, 3vw, 2rem);
  margin: 1.6rem 0 3rem;
}
@media (min-width: 768px) { .about-stats { grid-template-columns: repeat(4, 1fr); } }
.content-inner .about-stat { display: flex; flex-direction: column; gap: 0.4rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.content-inner .about-stat-value { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 600; line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.content-inner .about-stat-label { color: var(--muted); font-size: 0.92rem; }

.content-inner .about-base {
  font-style: normal;
  background: var(--paper-card);
  border: 1px solid var(--line);
  padding: clamp(1.4rem, 3vw, 2rem);
  margin: 1.4rem 0 0;
}

/* ── CTA banner ──────────────────────────────────────────────── */
.cta-banner {
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
}
.cta-banner .container { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; max-width: var(--container); margin-inline: auto; }
.cta-banner .lead { margin-bottom: 1.5rem; }

/* ── Pull-quote inside articles ──────────────────────────────── */
.content-inner blockquote.pull-quote {
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 500;
  font-style: normal;
  border-left: 0;
  padding: 0;
  margin: 2rem 0;
  color: var(--ink);
  line-height: 1.35;
}
.content-inner blockquote.pull-quote::before {
  content: "“";
  display: block;
  font-size: 3rem;
  line-height: 0.6;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

/* ── Koenig editor cards — Ghost validator requires these ────── */
.kg-width-wide { max-width: 1200px; margin-inline: auto; }
.kg-width-full { max-width: none; width: 100%; }
.kg-image { display: block; max-width: 100%; height: auto; margin-inline: auto; }
.kg-bookmark-card {
  display: flex; border: 1px solid var(--line);
  background: var(--paper-card); margin: 1.5rem 0;
}
.kg-bookmark-content { flex: 1; padding: 1.2rem; }
.kg-bookmark-title { font-weight: 600; }
.kg-bookmark-description { color: var(--muted); font-size: 0.92rem; margin-top: 0.4rem; }
.kg-bookmark-thumbnail { max-width: 180px; }
.kg-bookmark-thumbnail img { display: block; }
.kg-gallery-container { margin: 1.5rem 0; }
.kg-gallery-row { display: flex; gap: 0.4rem; margin-bottom: 0.4rem; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }
