/* ============================================================
   Isuru Abey — isuruabey.com
   Editorial black & white · Notion blue accent · light + dark.
   ============================================================ */

/* ---------- Tokens : LIGHT ---------- */
:root {
  --bg:         #ffffff;
  --bg-elev:    #ffffff;
  --card:       #ffffff;
  --ink:        #111111;
  --ink-soft:   #383838;
  --ink-muted:  #6a6a6a;
  --ink-faint:  #9b9b9b;
  --line:       #e9e9e9;
  --line-strong:#d7d7d7;
  --accent:      #2383E2;
  --accent-ink:  #1a6fc4;
  --accent-wash: rgba(35,131,226,.07);
  --accent-line: rgba(35,131,226,.30);
  --inverse-bg:  #111111;
  --inverse-ink: #ffffff;
  --sans: "Hanken Grotesk", ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --emph-font: var(--serif);
  --emph-style: italic;
  --emph-weight: 500;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --sh-1: 0 1px 2px rgba(17,17,17,.05);
  --sh-2: 0 6px 22px rgba(17,17,17,.07), 0 1px 3px rgba(17,17,17,.04);
  --sh-3: 0 22px 60px rgba(17,17,17,.10), 0 4px 14px rgba(17,17,17,.05);
  --maxw: 1120px;
  --gutter: 26px;
  --section-pad: clamp(64px, 9vw, 120px);
  color-scheme: light;
}

/* ---------- Tokens : DARK ---------- */
:root[data-theme="dark"] {
  --bg:         #191919;
  --bg-elev:    #1f1f1f;
  --card:       #1c1c1c;
  --ink:        #ededed;
  --ink-soft:   #c9c9c9;
  --ink-muted:  #9a9a9a;
  --ink-faint:  #6e6e6e;
  --line:       rgba(255,255,255,.085);
  --line-strong:rgba(255,255,255,.17);
  --accent:      #4d9fee;
  --accent-ink:  #79b6f2;
  --accent-wash: rgba(77,159,238,.13);
  --accent-line: rgba(77,159,238,.34);
  --inverse-bg:  #ffffff;
  --inverse-ink: #111111;
  --sh-1: 0 1px 2px rgba(0,0,0,.4);
  --sh-2: 0 6px 22px rgba(0,0,0,.5), 0 1px 3px rgba(0,0,0,.4);
  --sh-3: 0 22px 60px rgba(0,0,0,.6), 0 4px 14px rgba(0,0,0,.4);
  color-scheme: dark;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
}

/* ---------- Page transition (fade between page loads) ---------- */
body {
  opacity: 0;
  transition: opacity .4s ease, background .3s ease, color .3s ease;
}
html.js-ready body { opacity: 1; }
body.page-leaving { opacity: 0; transform: translateY(6px); transition: opacity .28s ease, transform .28s ease; }
@media (prefers-reduced-motion: reduce) {
  body { opacity: 1; transition: background .3s ease, color .3s ease; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-pad); }
.section-tight { padding-block: clamp(48px, 7vw, 84px); }
.rule-top { border-top: 1px solid var(--line); }
.rule-bottom { border-bottom: 1px solid var(--line); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { letter-spacing: -0.025em; line-height: 1.07; font-weight: 700; color: var(--ink); }
.h1 { font-size: clamp(40px, 6.4vw, 74px); letter-spacing: -0.035em; }
.h2 { font-size: clamp(29px, 4vw, 46px); letter-spacing: -0.03em; }
.h3 { font-size: clamp(20px, 2.4vw, 26px); }
.lede { font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-soft); line-height: 1.55; }
.emph { font-family: var(--emph-font); font-style: var(--emph-style); font-weight: var(--emph-weight); letter-spacing: -0.01em; }
.emph-accent { color: var(--accent); }
.text-muted { color: var(--ink-muted); }
.ink-strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-muted); background: transparent; border: none; padding: 0; border-radius: 0;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--accent); flex-shrink: 0; }
.proof-headline .eyebrow { justify-content: center; }
.section-head { max-width: 660px; margin-bottom: clamp(38px, 5vw, 60px); }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head p { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em;
  padding: 12px 20px; border-radius: var(--r-sm);
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap; border: 1px solid transparent;
  position: relative; overflow: hidden;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--sh-1); }
.btn-primary:hover { background: var(--accent-ink); transform: translateY(-1px); box-shadow: var(--sh-2); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }
.btn-lg { padding: 15px 26px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); font-size: 15.5px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; font-size: 16.5px; white-space: nowrap; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); font-size: 16px; overflow: hidden;
}
.brand .mark svg { width: 17px; height: 17px; }
.primary-nav { display: flex; align-items: center; gap: 2px; }
.primary-nav a {
  font-size: 15px; font-weight: 500; color: var(--ink-soft); white-space: nowrap;
  padding: 8px 13px; border-radius: 8px; transition: background .15s ease, color .15s ease;
  position: relative;
  display: inline-flex; align-items: center; line-height: 1;
}
.primary-nav a::after {
  content: ''; position: absolute; bottom: 4px; left: 13px; right: 13px; height: 2px;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s cubic-bezier(.2,.7,.3,1);
}
.primary-nav a:hover::after, .primary-nav a.active::after { transform: scaleX(1); }
.primary-nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.primary-nav a.active { color: var(--ink); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 16px; }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--ink-soft);
  transition: color .15s ease, border-color .15s ease, transform .15s ease;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink); transform: scale(1.05); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 8px; align-items: center; justify-content: center; color: var(--ink); }
.nav-toggle:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav-toggle svg { width: 22px; height: 22px; }

.menu-overlay {
  display: none; position: fixed; inset: 0; z-index: 90;
  background: color-mix(in srgb, var(--ink) 34%, transparent);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.menu-overlay.open { opacity: 1; pointer-events: auto; }

.mobile-menu {
  display: none;
  position: fixed; top: 12px; right: 12px; bottom: 12px; left: auto; z-index: 95;
  width: min(80vw, 332px);
  flex-direction: column;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(24px); backdrop-filter: saturate(1.5) blur(24px);
  border: 1px solid var(--line-strong); border-radius: 22px;
  padding: 16px 16px 20px; box-shadow: var(--sh-3);
  transform: translateX(calc(100% + 24px)); pointer-events: none;
  transition: transform .36s cubic-bezier(.22,.85,.28,1);
}
.mobile-menu.open { transform: none; pointer-events: auto; }
.mobile-menu .mm-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.mobile-menu .mm-head .mm-title { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.mobile-menu .mm-close { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--ink-soft); transition: color .15s ease, border-color .15s ease; }
.mobile-menu .mm-close:hover { color: var(--ink); border-color: var(--ink); }
.mobile-menu .mm-close svg { width: 18px; height: 18px; }
.mobile-menu a:not(.btn) {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 12px; font-size: 17px; font-weight: 600; border-radius: 12px; color: var(--ink);
  transition: background .15s ease;
}
.mobile-menu a:not(.btn)::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); transition: background .15s ease, transform .15s ease; }
.mobile-menu a:not(.btn):hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.mobile-menu a:not(.btn):hover::before, .mobile-menu a.active::before { background: var(--accent); transform: scale(1.25); }
.mobile-menu .btn { margin-top: 16px; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(44px, 6vw, 80px); padding-bottom: clamp(52px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(36px, 5vw, 76px); align-items: center; }
.hero-copy { max-width: 600px; }
.hero h1 { margin: 22px 0 24px; }
.hero .lede { margin-bottom: 32px; max-width: 500px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-socials { margin-top: 34px; }
.stars { display: inline-flex; gap: 2px; color: #f5a623; }
.stars svg { width: 16px; height: 16px; }

.hero-visual { position: relative; justify-self: center; }
.portrait-card {
  position: relative; width: min(380px, 80vw);
  background: var(--card); border: 1px solid var(--line-strong);
  border-radius: var(--r-xl); padding: 18px; box-shadow: var(--sh-3);
}
.portrait-card .card-top { display: flex; align-items: center; gap: 7px; padding: 2px 4px 14px; }
.portrait-card .card-top i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); display: inline-block; }
.portrait-frame { border-radius: var(--r-lg); overflow: hidden; background: #ffffff; }
.portrait-frame img { width: 100%; mix-blend-mode: multiply; }
:root[data-theme="dark"] .portrait-frame { background: #ffffff; }
.portrait-meta { display: flex; align-items: center; justify-content: space-between; padding: 14px 6px 4px; }
.portrait-meta .name { font-weight: 700; letter-spacing: -0.02em; font-size: 17px; }
.portrait-meta .role { font-size: 13.5px; color: var(--ink-muted); }
.portrait-badge {
  font-size: 12.5px; font-weight: 600; color: var(--accent);
  background: var(--accent-wash); border: 1px solid var(--accent-line);
  padding: 5px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
}
.portrait-badge .live { width: 7px; height: 7px; border-radius: 50%; background: #2ecc71; }

/* ---------- Badges / chips ---------- */
.chip {
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 12px;
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.about-photo {
  border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 16px;
  background: var(--card);
}
.about-photo .pic { border-radius: var(--r-md); overflow: hidden; background: #ffffff; }
.about-photo .pic img { mix-blend-mode: multiply; }
:root[data-theme="dark"] .about-photo .pic { background: #ffffff; }
.about-copy p { color: var(--ink-soft); margin-bottom: 18px; font-size: clamp(17px,1.55vw,20px); }
.about-cta { margin-top: 26px; }

/* ---------- Services cards ---------- */
.cards-grid { display: grid; gap: 16px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
a.card { display: block; color: inherit; text-decoration: none; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; position: relative;
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--line-strong); }
.card .ic {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  margin-bottom: 20px; border: 1px solid var(--line-strong); color: var(--ink);
  transition: color .2s ease, border-color .2s ease;
}
.card .ic svg { width: 23px; height: 23px; }
.card:hover .ic { color: var(--accent); border-color: var(--accent-line); }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--ink-muted); font-size: 15.5px; line-height: 1.55; }

/* ---------- Case studies ---------- */
.case {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.case:hover { box-shadow: var(--sh-2); border-color: var(--line-strong); }
.case + .case { margin-top: 20px; }
.case-body { padding: clamp(28px, 4vw, 46px); display: flex; flex-direction: column; }
.case-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.case-body h3 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 12px; letter-spacing: -0.028em; }
.case-body > p { color: var(--ink-soft); font-size: 16.5px; }
.case-visual {
  position: relative; background: color-mix(in srgb, var(--ink) 2%, transparent); border-left: 1px solid var(--line);
  padding: clamp(22px, 3vw, 34px); display: grid; place-items: center;
}
:root[data-theme="dark"] .case-visual { background: rgba(255,255,255,.02); }
.case:nth-child(even) { direction: rtl; }
.case:nth-child(even) > * { direction: ltr; }

/* Case visual placeholder for WordPress version */
.case-placeholder { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink-muted); text-align: center; padding: 22px; }
.case-placeholder p { font-size: 12px; max-width: 24ch; line-height: 1.45; }

/* ---------- Related case study (end of blog post) ---------- */
.related-case {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 0; margin-top: 36px;
  border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: box-shadow .25s ease, border-color .25s ease, transform .22s cubic-bezier(.2,.7,.3,1);
}
.related-case:hover { box-shadow: var(--sh-2); border-color: var(--line-strong); transform: translateY(-3px); }
.related-case-visual {
  position: relative; background: color-mix(in srgb, var(--ink) 2%, transparent);
  display: grid; place-items: center; min-height: 160px; overflow: hidden;
}
:root[data-theme="dark"] .related-case-visual { background: rgba(255,255,255,.02); }
.related-case-body { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 10px; }
.related-case-body h3 { font-size: clamp(19px, 2vw, 24px); letter-spacing: -0.02em; margin: 0; }
.related-case-body p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin: 0; }
.related-case-body .chip { width: fit-content; }
.related-case-body .link-arrow { margin-top: auto; }
@media (max-width: 720px) {
  .related-case { grid-template-columns: 1fr; }
  .related-case-visual { min-height: 140px; }
}

/* ---------- Selected-work gallery: main shot + thumbnail switcher ---------- */
.gallery { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 9px; }
.gallery .shots {
  position: relative; aspect-ratio: 16/11; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg);
}
.gallery .shot {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: scale(.98);
  transition: opacity .32s cubic-bezier(.2,.7,.3,1), transform .32s cubic-bezier(.2,.7,.3,1), visibility 0s linear .32s;
}
.gallery .shot.active { opacity: 1; visibility: visible; transform: scale(1); transition-delay: 0s; z-index: 1; }
.gallery .shot .case-placeholder { padding: 16px; }
.gallery .shot .case-placeholder svg { opacity: .8; }

.gallery .thumbs { display: flex; gap: 7px; }
.gallery .thumb {
  flex: 1; aspect-ratio: 16/11; max-width: 64px; min-width: 0; border-radius: 7px;
  border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; padding: 0;
  display: grid; place-items: center; color: var(--ink-faint);
  transition: border-color .18s ease, color .18s ease, opacity .18s ease, transform .18s cubic-bezier(.2,.7,.3,1);
  opacity: .6;
}
.gallery .thumb:hover { opacity: .9; transform: translateY(-2px); }
.gallery .thumb.active { border-color: var(--accent); color: var(--accent); opacity: 1; background: var(--accent-wash); }
@media (prefers-reduced-motion: reduce) {
  .gallery .shot { transition: opacity .15s linear, visibility 0s linear .15s; transform: none; }
  .gallery .shot.active { transition-delay: 0s; }
}

/* ---------- Reviews ---------- */
.proof-headline { text-align: center; }
.proof-rating { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 8px; }
.proof-rating .stars svg { width: 22px; height: 22px; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(40px,5vw,56px); }
.review {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.review:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--line-strong); }
.review .stars { margin-bottom: 14px; }
.review p { color: var(--ink); font-size: 16px; line-height: 1.56; flex: 1; }
.review .who { display: flex; align-items: center; gap: 11px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.review .ava { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: var(--bg); background: var(--ink); flex-shrink: 0; }
.review .who .nm { font-weight: 600; font-size: 14.5px; }
.review .who .meta { font-size: 13px; color: var(--ink-muted); }

/* ---------- Blog posts ---------- */
.posts { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.post {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--line-strong); }
.post .cover { position: relative; aspect-ratio: 16/9; display: grid; place-items: center; color: var(--accent); border-bottom: 1px solid var(--line); background: var(--accent-wash); }
.post .cover svg { width: 40px; height: 40px; }
.post-featured { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line) inset; }
.post .featured-badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  color: #fff; background: var(--accent); padding: 5px 10px 5px 9px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(35,131,226,.32);
}
.post .pbody { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post .pmeta { font-size: 13px; color: var(--ink-muted); display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.post .pmeta .tag2 { color: var(--accent); font-weight: 600; }
.post h3 { font-size: 18.5px; line-height: 1.25; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2 * 1.25em); }
.post p { color: var(--ink-muted); font-size: 14.5px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post .read { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--accent); }

.feature-dup { display: none; }

.blog-feature {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; margin-bottom: 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden;
  transition: box-shadow .22s ease, border-color .22s ease;
}
.blog-feature:hover { box-shadow: var(--sh-2); border-color: var(--line-strong); }
.blog-feature .bf-cover { min-height: 320px; display: grid; place-items: center; color: var(--accent); border-right: 1px solid var(--line); background: var(--accent-wash); }
.blog-feature .bf-cover svg { width: 64px; height: 64px; }
.blog-feature .bf-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.blog-feature .pmeta { font-size: 13.5px; color: var(--ink-muted); display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.blog-feature .pmeta .tag2 { color: var(--accent); font-weight: 700; }
.blog-feature h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 14px; }
.blog-feature p { color: var(--ink-soft); font-size: 16.5px; max-width: 46ch; }
.blog-feature .read { margin-top: 22px; }
@media (max-width: 760px) {
  .blog-feature { grid-template-columns: 1fr; }
  .blog-feature .bf-cover { min-height: 200px; border-right: none; border-bottom: 1px solid var(--line); }
}

.subscribe {
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-xl);
  padding: clamp(32px, 4vw, 52px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
}
.subscribe h3 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.028em; }
.subscribe p { color: var(--ink-soft); margin-top: 10px; max-width: 42ch; }
.subscribe form { display: flex; gap: 10px; }
.subscribe input {
  flex: 1; font-family: inherit; font-size: 15.5px; padding: 13px 16px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg); color: var(--ink);
}
.subscribe input::placeholder { color: var(--ink-faint); }
.subscribe input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.subscribe .note { font-size: 13px; color: var(--ink-muted); margin-top: 12px; transition: color .2s ease; }
.subscribe .note.is-success { color: #2e9e5b; }
.subscribe .note.is-error { color: #d6493b; }
.subscribe button[disabled] { opacity: .6; cursor: default; }
@media (max-width: 700px) {
  .subscribe { grid-template-columns: 1fr; }
}

/* Blog slider */
.blog-slider { overflow: hidden; position: relative; }
.blog-track { display: flex; transition: transform .5s cubic-bezier(.22,.85,.28,1); }
.blog-page { flex: 0 0 100%; min-width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; padding: 4px; }
.blog-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; }
.slider-btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--ink); background: var(--bg);
  transition: transform .18s ease, border-color .18s ease;
}
.slider-btn:hover:not(:disabled) { border-color: var(--ink); transform: translateY(-2px); }
.slider-btn:disabled { opacity: .3; cursor: default; }
.slider-btn svg { width: 18px; height: 18px; }
.slider-dots { display: flex; gap: 8px; align-items: center; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); cursor: pointer; transition: background .2s ease, width .25s ease; padding: 0; }
.slider-dot.active { background: var(--accent); width: 24px; border-radius: 4px; }

/* ---------- Big CTA ---------- */
.cta-card {
  position: relative; overflow: hidden;
  background:
    radial-gradient(130% 150% at 82% -10%, var(--accent-wash), transparent 55%),
    radial-gradient(120% 150% at 8% 120%, var(--accent-wash), transparent 52%),
    var(--bg);
  color: var(--ink); border-radius: var(--r-xl);
  padding: clamp(44px, 6vw, 80px); text-align: center; border: 1px solid var(--line-strong);
  box-shadow: var(--sh-2);
}
.cta-card h2 { color: var(--ink); }
.cta-card .lede { color: var(--ink-soft); margin: 18px auto 32px; max-width: 540px; }
.cta-card .btn-primary { background: var(--accent); color: #fff; }
.cta-card .btn-primary:hover { background: var(--accent-ink); color: #fff; }
.cta-card .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.cta-card .btn-ghost:hover { background: var(--accent-wash); border-color: var(--ink); }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-sub { margin-top: 22px; font-size: 14px; color: var(--ink-muted); }
.cta-card .glow { position: absolute; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 62%); opacity: .12; filter: blur(8px); pointer-events: none; }
.cta-card .glow.a { top: -180px; right: -120px; }
.cta-card .glow.b { bottom: -220px; left: -120px; opacity: .16; }

:root[data-theme="dark"] .cta-card {
  background:
    radial-gradient(130% 150% at 82% -10%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 55%),
    linear-gradient(180deg, #232427, #191a1c);
  border: 1px solid var(--line-strong);
  box-shadow: var(--sh-3);
}
:root[data-theme="dark"] .cta-card .glow.a { opacity: .18; }
:root[data-theme="dark"] .cta-card .glow.b { opacity: .10; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 13.5px; color: var(--ink-muted); }
.footer-bottom .socials { margin-top: 0; gap: 6px; }
.footer-bottom .socials a { width: 34px; height: 34px; border: none; background: none; border-radius: 8px; }
.footer-bottom .socials a:hover { transform: translateY(-1px); background: var(--surface, rgba(127,127,127,.08)); }
.footer--minimal .footer-bottom { border-top: none; padding-block: clamp(26px,4vw,40px); }

.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line-strong); color: var(--ink-soft);
  transition: transform .15s ease, color .15s ease, border-color .15s ease;
}
.socials a:hover { transform: translateY(-2px); color: var(--accent); border-color: var(--accent-line); }
.socials svg { width: 18px; height: 18px; }

/* ---------- Back-to-top ---------- */
.to-top {
  position: fixed; right: clamp(18px, 3vw, 32px); bottom: clamp(18px, 3vw, 32px);
  width: 46px; height: 46px; border-radius: 50%; z-index: 60;
  display: grid; place-items: center; cursor: pointer;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line-strong);
  box-shadow: var(--sh-2);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.92);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease, border-color .15s ease, color .15s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.to-top:hover { color: var(--accent); border-color: var(--accent-line); transform: translateY(-2px) scale(1); }
.to-top svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity .2s ease, visibility .2s ease; transform: none; } .to-top.show { transform: none; } }

/* ---------- Reveal animation ---------- */
html.js-ready .reveal {
  opacity: 0; transform: translateY(16px); filter: blur(4px);
  transition: opacity .7s cubic-bezier(.16,.84,.28,1), transform .7s cubic-bezier(.16,.84,.28,1), filter .7s cubic-bezier(.16,.84,.28,1);
  transition-delay: .06s;
  will-change: opacity, transform, filter;
}
html.js-ready .reveal.in { opacity: 1; transform: none; filter: none; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .18s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { html.js-ready .reveal { opacity: 1; transform: none; filter: none; transition: none; } }

/* ---------- Ambient glass backdrop ---------- */
.ambient {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(60vw 48vw at 78% -6%, var(--accent-wash), transparent 60%),
    radial-gradient(52vw 44vw at 8% 8%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 62%);
  transition: background .4s ease;
}
.ambient::after {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 70vh;
  background: radial-gradient(40vw 30vw at 50% 0%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 70%);
  filter: blur(30px);
}
:root[data-theme="dark"] .ambient {
  background:
    radial-gradient(60vw 48vw at 80% -8%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 58%),
    radial-gradient(54vw 46vw at 6% 6%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%);
}

/* ---------- Glass surfaces ---------- */
.glass {
  background: color-mix(in srgb, var(--card) 72%, transparent);
  backdrop-filter: saturate(1.25) blur(16px);
  -webkit-backdrop-filter: saturate(1.25) blur(16px);
}
:root[data-theme="dark"] .glass {
  background: color-mix(in srgb, var(--card) 60%, transparent);
}
.card.glass::before, .review.glass::before, .post.glass::before, .portrait-card.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 5%, transparent), transparent 38%);
  opacity: .5;
}
:root[data-theme="dark"] .card.glass::before, :root[data-theme="dark"] .review.glass::before,
:root[data-theme="dark"] .post.glass::before, :root[data-theme="dark"] .portrait-card.glass::before {
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 40%);
}

/* ---------- Sub-page styles ---------- */
.page-head { padding-top: clamp(50px, 7vw, 92px); padding-bottom: clamp(8px, 2vw, 20px); position: relative; }
.page-head .crumb { font-size: 14px; color: var(--ink-muted); margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.page-head .crumb a { color: var(--ink-soft); font-weight: 500; }
.page-head .crumb a:hover { color: var(--accent); }
.page-head h1 { font-size: clamp(36px, 5.6vw, 64px); letter-spacing: -0.035em; max-width: 16ch; }
.page-head h1 .emph { display: inline; }
.page-head .lede { margin-top: 20px; max-width: 620px; }
.page-head .head-meta { margin-top: 28px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; }

/* ---------- Blog single: cover, meta, TOC, post nav ---------- */
.post-cover {
  border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16/6; margin-top: 0; max-height: 46vh;
  border: 1px solid var(--line);
}
@media (max-width: 640px) {
  .post-cover { aspect-ratio: 16/9; max-height: 34vh; }
}
.post-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 14.5px; color: var(--ink-muted);
}
.post-meta .post-meta-author { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-weight: 500; }
.post-meta .post-meta-author img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.post-meta .dot { opacity: .5; }

#blogToc {
  position: fixed; top: 50%; transform: translateY(-50%); right: calc((100vw - 840px) / 2 - 270px);
  width: 240px; max-height: calc(100vh - 160px); overflow-y: auto;
  z-index: 50; transition: opacity .3s ease;
}
#blogToc .blog-toc-title {
  font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 14px; padding-left: 14px;
}
#blogToc ul { list-style: none; padding: 0; margin: 0; }
#blogToc li { margin: 0; }
#blogToc a {
  display: block; padding: 5px 14px; font-size: 13px; line-height: 1.4;
  color: var(--ink-faint); text-decoration: none !important;
  border-left: 2px solid transparent; transition: all .2s ease;
}
#blogToc a:hover { color: var(--accent); background: var(--accent-wash); }
#blogToc a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 500; }
#blogToc a.blog-toc-h3 { padding-left: 28px; font-size: 12px; }
@media (max-width: 1400px) { #blogToc { display: none !important; } }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.post-nav-card {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px;
  text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .22s ease, transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s ease;
}
.post-nav-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--sh-2); }
.post-nav-label {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint);
}
.post-nav-body { display: flex; align-items: center; gap: 12px; }
.post-nav-media { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; flex-shrink: 0; border: 1px solid var(--line); }
.post-nav-card h4 { font-size: 15.5px; letter-spacing: -0.01em; margin: 0; line-height: 1.35; }
@media (max-width: 640px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-card[style*="text-align:right"] { text-align: left !important; }
  .post-nav-card[style*="row-reverse"] .post-nav-body { flex-direction: row !important; }
  .post-nav-label[style*="flex-end"] { justify-content: flex-start !important; }
}

.filters-stack { display: flex; flex-direction: column; gap: 10px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter {
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 15px;
  transition: all .15s ease; cursor: pointer;
}
.filter:hover { border-color: var(--ink); }
.filter.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.filters-sub .filters-label {
  font-size: 12px; font-weight: 700; color: var(--ink-muted); text-transform: uppercase;
  letter-spacing: .07em; margin-right: 2px;
}
.filter-sub {
  font-size: 13px; font-weight: 600; color: var(--ink-muted);
  background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px;
  transition: all .15s ease; cursor: pointer;
}
.filter-sub:hover { border-color: var(--accent-line); color: var(--ink); }
.filter-sub.active { background: var(--accent-wash); color: var(--accent); border-color: var(--accent-line); }

.cs-search { display: inline-flex; align-items: center; gap: 9px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 16px; transition: border-color .15s ease; min-width: 220px; }
.cs-search:focus-within { border-color: var(--ink); }
.cs-search svg { width: 16px; height: 16px; color: var(--ink-muted); flex-shrink: 0; }
.cs-search input { border: none; background: none; outline: none; font: inherit; font-size: 14px; color: var(--ink); width: 100%; padding: 0; }
.cs-search input::placeholder { color: var(--ink-muted); }
.cs-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ---------- Service detail: hero head ---------- */
.service-head { display: flex; gap: 22px; align-items: flex-start; }
.service-head .ic {
  flex-shrink: 0; width: 56px; height: 56px; margin-top: 6px; display: grid; place-items: center;
  border-radius: var(--r-md); background: var(--accent-wash); border: 1px solid var(--accent-line); color: var(--accent);
}
.service-head .ic svg { width: 27px; height: 27px; }
@media (max-width: 640px) {
  .service-head { flex-direction: column; gap: 14px; }
  .service-head .ic { margin-top: 0; }
}

/* ---------- Service workflow ("how this works") — glassy steps with a flowing line ---------- */
.flow { position: relative; display: grid; gap: 16px; padding-left: 58px; }
.flow::before {
  content: ""; position: absolute; left: 27px; top: 6px; bottom: 6px; width: 2px;
  border-radius: 999px; background: var(--accent-line);
}
.flow::after {
  content: ""; position: absolute; left: 27px; top: 6px; bottom: 6px; width: 2px; border-radius: 999px;
  background: linear-gradient(180deg, transparent 0%, var(--accent) 50%, transparent 100%);
  background-size: 100% 240%; background-repeat: no-repeat;
  animation: flow-travel 5.5s ease-in-out infinite;
}
@keyframes flow-travel {
  0%   { background-position: 0 -140%; }
  100% { background-position: 0 140%; }
}
.flow-step { position: relative; padding: 22px 26px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.flow-step .flow-num {
  position: absolute; left: -50px; top: 20px; width: 38px; height: 38px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--card); border: 1px solid var(--accent-line); color: var(--accent);
  font-family: var(--serif); font-style: italic; font-size: 16px;
  box-shadow: 0 0 0 6px var(--bg);
}
.flow-step h3 { font-size: 18.5px; letter-spacing: -0.015em; margin-bottom: 6px; }
.flow-step p { color: var(--ink-muted); font-size: 14.5px; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { .flow::after { animation: none; opacity: .55; } }

/* Case studies grid */
.cs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cs-load-more-wrap { display: flex; justify-content: center; margin-top: 36px; }
.cs-load-more-wrap.hidden { display: none; }
.cs-card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden;
  transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s ease, border-color .22s ease;
}
.cs-card:hover { transform: translateY(-5px); box-shadow: var(--sh-3); border-color: var(--line-strong); }
.cs-cover {
  aspect-ratio: 16/10; display: grid; place-items: center; overflow: hidden;
  border-bottom: 1px solid var(--line); position: relative;
  /* Each case study can set --cs-tint inline (its own accent colour from
     the plugin's Card Settings); falls back to the site accent if unset. */
  background: color-mix(in srgb, var(--cs-tint, var(--accent)) 16%, var(--card) 84%);
  color: var(--accent);
}
.cs-cover-icon { font-size: 44px; line-height: 1; filter: saturate(1.05); }
.cs-cover-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cs-card:hover .cs-cover-img { transform: scale(1.035); }
.cs-empty {
  grid-column: 1 / -1; text-align: center; padding: 56px 28px;
  background: var(--card); border: 1px dashed var(--line-strong); border-radius: var(--r-xl);
  color: var(--ink-muted); font-size: 15.5px; line-height: 1.65; max-width: 620px; margin: 0 auto;
}
.cs-empty strong { color: var(--ink); }
.cs-empty a { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.cs-empty a:hover { text-decoration-color: var(--accent); }
.cs-cover .cover-badge {
  position: absolute; top: 14px; left: 14px; font-size: 12px; font-weight: 700; letter-spacing: .03em;
  background: var(--bg); border: 1px solid var(--line-strong);
  padding: 5px 11px; border-radius: 999px; color: var(--ink-soft);
}
.cs-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.cs-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.cs-body h3 { font-size: 22px; letter-spacing: -0.028em; margin-bottom: 10px; line-height: 1.18; }
.cs-body > p { color: var(--ink-soft); font-size: 15.5px; flex: 1; }
.cs-metrics { display: flex; gap: 26px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.cs-metrics .m .v { font-size: 23px; font-weight: 700; letter-spacing: -0.035em; color: var(--accent); }
.cs-metrics .m .k { font-size: 12.5px; color: var(--ink-muted); }
.cs-body .read { margin-top: 20px; font-size: 14.5px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.cs-body .read svg { width: 16px; height: 16px; transition: transform .2s ease; }
.cs-card:hover .read svg { transform: translateX(3px); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.step .n { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--accent); line-height: 1; }
.step h3 { font-size: 18px; margin: 14px 0 8px; }
.step p { color: var(--ink-muted); font-size: 14.5px; line-height: 1.55; }

/* Tools chips */
.tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; align-items: center; }
.tools .tools-label { font-size: 14px; color: var(--ink-muted); font-weight: 600; margin-right: 4px; }
.tool {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 13px;
  transition: transform .15s ease, border-color .15s ease;
}
.tool:hover { transform: translateY(-2px); border-color: var(--ink); }
.tool .g { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; color: var(--accent); }
.tool .g svg { width: 15px; height: 15px; }

/* Lead grid (About page) */
.lead-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.lead-grid.lead-grid--top { align-items: start; }
.lead-grid .lead-copy p { color: var(--ink-soft); font-size: clamp(17px,1.6vw,20px); margin-bottom: 18px; }
.lead-grid .lead-copy .lead-intro { font-size: clamp(20px,1.9vw,25px); color: var(--ink); margin-bottom: 22px; }

/* Academy badges */
.academy-shields { display: flex; flex-wrap: wrap; gap: clamp(18px, 3.5vw, 40px); align-items: flex-end; }
.academy-shields .shield { height: clamp(98px, 11vw, 130px); width: auto; filter: drop-shadow(0 5px 12px rgba(15,23,42,.12)); transition: transform .2s ease; }
.academy-shields .shield:hover { transform: translateY(-3px); }

/* Post content typography */
.post-content h2, .post-content h3 { margin-top: 42px; margin-bottom: 16px; }
.post-content p { margin-bottom: 20px; }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 20px; }
.post-content li { margin-bottom: 8px; }
.post-content a { color: var(--accent); text-decoration: underline; }
.post-content blockquote { border-left: 3px solid var(--accent); padding-left: 20px; color: var(--ink-soft); font-style: italic; }
.post-content code { background: var(--accent-wash); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.post-content pre { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; overflow-x: auto; margin-bottom: 20px; }
.post-content img {
  display: block; width: 100%;
  height: min(560px, 60vh);
  object-fit: contain;
  background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: var(--r-md);
  margin-bottom: 20px;
}
@media (max-width: 600px) { .post-content img { height: min(360px, 50vh); } }

/* WordPress pagination — matches the homepage blog slider's controls:
   circular prev/next buttons on the ends, pill-style page dots in the middle */
.nav-links { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 48px; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px; padding: 0 8px;
  border-radius: 15px; border: none; background: var(--line-strong);
  font-size: 13px; font-weight: 600; color: var(--ink-muted);
  transition: background .2s ease, color .2s ease, transform .18s ease, border-color .18s ease;
}
.page-numbers:hover { background: var(--ink-faint); color: var(--ink); }
.page-numbers.current { background: var(--accent); color: #fff; min-width: 36px; }
.page-numbers.dots { background: none; color: var(--ink-faint); cursor: default; }
.page-numbers.dots:hover { background: none; color: var(--ink-faint); }
.page-numbers.prev, .page-numbers.next {
  width: 46px; height: 46px; min-width: 46px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink);
}
.page-numbers.prev:hover, .page-numbers.next:hover { border-color: var(--ink); background: var(--bg); transform: translateY(-2px); }
.page-numbers.prev svg, .page-numbers.next svg { width: 18px; height: 18px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* ── Responsive ── */
@media (max-width: 940px) {
  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu { display: flex; }
  .menu-overlay { display: block; }
  .nav-cta .btn-desktop { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { max-width: 640px; }
  .hero-visual { order: -1; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-grid .about-photo { display: none; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .case, .case:nth-child(even) { grid-template-columns: 1fr; direction: ltr; }
  .case-visual { border-left: none; border-top: 1px solid var(--line); }
  .reviews { grid-template-columns: 1fr 1fr; }
  .posts { grid-template-columns: 1fr 1fr; }
  .blog-page { grid-template-columns: 1fr 1fr; }
  .cs-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .lead-grid { grid-template-columns: 1fr; }
  .lead-grid .about-photo { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .hero { padding-top: 18px; padding-bottom: 40px; }
  .hero-grid { gap: 22px; }
  .portrait-card { width: min(170px, 48vw); padding: 10px; }
  .portrait-card .card-top { display: none; }
  .portrait-frame img { height: 100%; object-fit: cover; }
  .portrait-meta { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 4px 2px; }
  .portrait-meta .name { font-size: 15px; }
  .portrait-badge { font-size: 11px; }
  .hero h1 { font-size: clamp(34px, 9vw, 46px); margin: 14px 0 16px; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
  .blog-page { grid-template-columns: 1fr; }
  .hero-cta { width: 100%; gap: 10px; }
  .hero-cta .btn { flex: 1; min-width: 0; }
  .hero-cta .btn-lg { padding: 12px 16px; font-size: 14.5px; }
  .hero-socials { margin-top: 22px; gap: 9px; }
  .steps { grid-template-columns: 1fr; }
  .academy-shields .shield { height: 82px; }
}
