/* MexSEO v2 · "Spotlight" design system
   Idea: search is a crowded stage. MexSEO puts the light on your business.
   Palette: night / lamp / snow. Type: Archivo (expanded for display, normal for text) + Martian Mono. */

:root {
  --night: #0a0c24;
  --night-2: #121536;
  --night-3: #1c2050;
  --lamp: #ffc24b;
  --lamp-hot: #ffd67f;
  --glow: #fff0c7;
  --snow: #f4f5fa;
  --paper: #ffffff;
  --ink: #0a0c24;
  --slate: #585e78;
  --mist: #a7accb;
  --sky: #8ea2ff;
  --link: #3444d6;
  --grow: #3ddc97;
  --line: #e2e4ee;
  --line-dark: rgba(255, 255, 255, 0.1);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --t-hero: clamp(2.6rem, 1rem + 6.3vw, 6.75rem);
  --t-h2: clamp(2rem, 1.1rem + 3.4vw, 4.1rem);
  --t-h3: clamp(1.15rem, 1rem + 0.65vw, 1.5rem);
  --t-lede: clamp(1.06rem, 0.98rem + 0.45vw, 1.32rem);
  --t-body: 1.0625rem;
  --t-small: 0.92rem;
  --t-mono: 0.72rem;

  --r-xl: 28px;
  --r-lg: 22px;
  --r: 16px;
  --r-sm: 10px;
  --container: 1240px;
  --gutter: clamp(1.1rem, 0.5rem + 2.4vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow: 0 1px 2px rgba(10, 12, 36, 0.06), 0 18px 48px rgba(10, 12, 36, 0.1);
  --lamp-ring: 0 0 0 1px rgba(255, 194, 75, 0.95), 0 26px 90px rgba(255, 194, 75, 0.3);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lamp); color: var(--night); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--lamp); color: var(--night); padding: 0.7rem 1rem; border-radius: var(--r-sm); font-weight: 700; }
.skip-link:focus { top: 1rem; }

/* ---------- surfaces ---------- */
.dark { background: var(--night); color: #fff; }
.dark a:not(.btn) { color: var(--sky); }
.section { padding-block: var(--section); position: relative; }
.section--snow { background: var(--snow); }
.section--paper { background: var(--paper); }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--t-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}
.dark .eyebrow { color: var(--mist); }
.eyebrow--lamp { color: var(--lamp) !important; }
.display { font-size: var(--t-hero); font-stretch: 125%; letter-spacing: -0.04em; line-height: 0.96; }
.h2 { font-size: var(--t-h2); font-stretch: 122%; letter-spacing: -0.035em; }
.h3 { font-size: var(--t-h3); font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.15; }
.lede { font-size: var(--t-lede); line-height: 1.5; color: var(--slate); max-width: 38rem; }
.dark .lede { color: var(--mist); }
.muted { color: var(--slate); }
.dark .muted { color: var(--mist); }
.mono { font-family: var(--mono); }
.lit { color: var(--lamp); text-shadow: 0 0 28px rgba(255, 194, 75, 0.45); }

.section-head { max-width: 50rem; margin-bottom: clamp(2.2rem, 1.6rem + 2.4vw, 3.75rem); }
.section-head .h2 { margin-top: 1rem; }
.section-head .lede { margin-top: 1.25rem; }

/* ---------- logo ---------- */
.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font);
  font-weight: 800;
  font-stretch: 125%;
  font-size: 1.32rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.logo__o {
  display: inline-block;
  width: 0.73em;
  height: 0.73em;
  margin-left: 0.03em;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 16px rgba(255, 194, 75, 0.7);
}
.logo--ink { color: var(--ink); }
.logo--ink .logo__o { box-shadow: 0 0 0 1px rgba(10, 12, 36, 0.06), 0 0 12px rgba(255, 194, 75, 0.55); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  font-stretch: 108%;
  line-height: 1;
  padding: 1rem 1.45rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn__arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--lamp { background: var(--lamp); color: var(--night); box-shadow: 0 10px 30px rgba(255, 194, 75, 0.22); }
.btn--lamp:hover { background: var(--lamp-hot); box-shadow: 0 0 0 6px rgba(255, 194, 75, 0.16), 0 16px 44px rgba(255, 194, 75, 0.38); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn--ink { background: var(--night); color: #fff; }
.btn--ink:hover { box-shadow: 0 14px 36px rgba(10, 12, 36, 0.28); }
.btn--outline { color: var(--ink); border-color: rgba(10, 12, 36, 0.25); }
.btn--outline:hover { border-color: var(--ink); }
.btn--sm { padding: 0.72rem 1.1rem; font-size: 0.94rem; }

.more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-stretch: 108%;
  color: var(--ink);
  text-decoration: none;
}
.more::after { content: "→"; transition: transform 0.25s var(--ease); }
a:hover .more::after, .more:hover::after { transform: translateX(4px); }
.dark .more { color: #fff; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(10, 12, 36, 0.06);
  color: var(--ink);
}
.dark .tag { background: rgba(255, 255, 255, 0.08); color: #fff; }
.tag--lamp { background: var(--lamp) !important; color: var(--night) !important; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(10, 12, 36, 0.86);
  backdrop-filter: saturate(1.3) blur(14px);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line-dark); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 0.15rem; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: rgba(255, 255, 255, 0.86);
  font: inherit;
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav__item.is-current > .nav__link { color: var(--lamp); }
.nav__menu a[aria-current="page"] { background: rgba(255, 194, 75, 0.1); }
.nav__item { position: relative; }
.nav__menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: -0.5rem;
  width: 22rem;
  list-style: none;
  padding: 0.6rem;
  background: var(--night-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s var(--ease), visibility 0.18s;
}
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a { display: grid; gap: 0.1rem; padding: 0.7rem 0.85rem; border-radius: var(--r-sm); color: #fff !important; text-decoration: none; font-weight: 600; }
.nav__menu a:hover { background: rgba(255, 255, 255, 0.06); }
.nav__menu small { color: var(--mist); font-weight: 400; font-size: 0.85rem; }
.menu-toggle { display: none; margin-left: auto; padding: 0.6rem 1rem; border-radius: 999px; border: 1px solid var(--line-dark); background: transparent; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }

@media (max-width: 1000px) {
  .menu-toggle { display: inline-flex; }
  .nav, .site-header__cta { display: none; }
  .site-header.is-open { height: auto; min-height: var(--header-h); background: var(--night); }
  .site-header.is-open .site-header__inner { flex-wrap: wrap; padding-block: 0.9rem 1.4rem; height: auto; }
  .site-header.is-open .nav { display: block; order: 3; width: 100%; margin: 0.5rem 0 0; }
  .site-header.is-open .nav__list { flex-direction: column; align-items: stretch; }
  .site-header.is-open .nav__menu { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 0.5rem; }
  .site-header.is-open .site-header__cta { display: inline-flex; order: 4; margin-top: 1rem; }
}

/* ---------- the beam (signature) ---------- */
.beam {
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: min(520px, 110%);
  height: 140vh;
  transform: translateX(-50%);
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 240, 199, 0) 0%, rgba(255, 240, 199, 0.05) 55%, rgba(255, 226, 150, 0.2) 100%);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  filter: blur(10px);
}
.floor-glow {
  position: absolute;
  left: 50%;
  top: 70%;
  width: 150%;
  height: 90%;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 194, 75, 0.22), transparent 62%);
  filter: blur(6px);
}

/* ---------- cards ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.3rem, 1rem + 1.2vw, 2rem); }
.card-dark { background: var(--night-2); border: 1px solid var(--line-dark); border-radius: var(--r-xl); padding: clamp(1.3rem, 1rem + 1.2vw, 2rem); color: #fff; }
.card-link { display: block; color: inherit; text-decoration: none; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s; }
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }

/* ---------- form ---------- */
.field { display: grid; gap: 0.45rem; }
.field__label { font-weight: 700; font-size: 0.95rem; font-stretch: 108%; }
.field__input {
  width: 100%;
  font: inherit;
  padding: 0.95rem 1.05rem;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field__input::placeholder { color: #8f94ad; }
.field__input:focus { outline: none; border-color: var(--night); box-shadow: 0 0 0 4px rgba(255, 194, 75, 0.45); }
.field__input--mono { font-family: var(--mono); font-size: 0.92rem; }

/* ---------- search bits ---------- */
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 3px; background: var(--lamp); vertical-align: -0.18em; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--mist); padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) 2rem; border-top: 1px solid var(--line-dark); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 2.5rem; }
.site-footer__title { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lamp); margin-bottom: 1rem; }
.site-footer__list { list-style: none; display: grid; gap: 0.55rem; font-size: 0.95rem; }
.site-footer address { font-style: normal; line-height: 1.75; margin-top: 1.25rem; }
.site-footer__bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.85rem; }
@media (max-width: 1000px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 90; transform: translate(-50%, 1rem); opacity: 0; visibility: hidden; padding: 0.85rem 1.25rem; border-radius: 999px; background: var(--lamp); color: var(--night); font-weight: 700; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); transition: transform 0.3s var(--ease), opacity 0.3s, visibility 0.3s; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* =========================================================
   Shared page components (inner pages)
   ========================================================= */

/* ---------- page hero ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(2.3rem, 1.4rem + 3.6vw, 4.6rem) clamp(3.5rem, 2.5rem + 4vw, 6rem); background: radial-gradient(ellipse 60% 70% at 80% 25%, rgba(255, 194, 75, 0.09), transparent 70%), var(--night); color: #fff; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 72% 38%, #000 18%, transparent 70%); mask-image: radial-gradient(ellipse at 72% 38%, #000 18%, transparent 70%); }
.page-hero--compact { padding-bottom: clamp(2.6rem, 2rem + 2.4vw, 4rem); }
.page-hero .lede, .page-hero .muted, .page-hero .meta, .page-hero .person__role { color: var(--mist); }
.page-hero .eyebrow:not(.eyebrow--lamp) { color: var(--mist); }
.page-hero a:not(.btn):not(.chips a):not(.more) { color: var(--sky); }
.page-hero__title { font-size: clamp(2.3rem, 1rem + 4.3vw, 4.7rem); font-stretch: 125%; letter-spacing: -0.04em; line-height: 0.98; margin: 1.1rem 0 1.4rem; max-width: 18ch; }
.page-hero__title--wide { max-width: 22ch; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.page-hero__stage { position: relative; padding-top: 2.5rem; }
.light-hero { padding-block: clamp(2rem, 1.2rem + 3vw, 4rem) clamp(2rem, 1.5rem + 2vw, 3rem); background: var(--snow); border-bottom: 1px solid var(--line); }

/* ---------- breadcrumbs ---------- */
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.2rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; color: var(--mist); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.45; }
.crumbs a { color: inherit !important; text-decoration: none; }
.crumbs a:hover { color: #fff !important; }
.light-hero .crumbs { color: var(--slate); }
.light-hero .crumbs a:hover { color: var(--ink) !important; }

/* ---------- sub navigation ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(244, 245, 250, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; padding-block: 0.6rem; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; white-space: nowrap; padding: 0.5rem 0.9rem; border-radius: 999px; color: var(--slate); text-decoration: none; font-weight: 600; font-size: 0.93rem; }
.subnav a:hover { color: var(--ink); background: rgba(10, 12, 36, 0.05); }
.subnav a.is-active { color: var(--night); background: var(--lamp); }
.anchor { scroll-margin-top: calc(var(--header-h) + 64px); }

/* ---------- audit CTA + form card ---------- */
.cta { overflow: hidden; }
.cta__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.cta__stage { position: relative; padding-top: 2rem; }
.form-card { position: relative; display: grid; gap: 1.1rem; padding: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); border-radius: var(--r-xl); background: #fff; color: var(--ink); box-shadow: var(--lamp-ring); }
.form-card .btn { width: 100%; }
.form-card__note { text-align: center; font-size: 0.85rem; color: var(--slate); }
.form-card__note a { color: var(--link); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
textarea.field__input { min-height: 8rem; resize: vertical; }
.pick { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pick label { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick span { display: inline-block; padding: 0.55rem 0.9rem; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: 0.92rem; transition: background 0.2s, border-color 0.2s; }
.pick input:checked + span { background: var(--lamp); border-color: var(--lamp); }
.pick input:focus-visible + span { outline: 3px solid var(--link); outline-offset: 2px; }

/* ---------- FAQ ---------- */
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 0; font-weight: 700; font-stretch: 110%; font-size: 1.12rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--snow); font-weight: 500; transition: transform 0.3s var(--ease), background 0.3s; }
.qa details[open] summary::after { transform: rotate(45deg); background: var(--lamp); }
.qa details p { padding: 0 3rem 1.5rem 0; color: var(--slate); }
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }

/* ---------- chips and link lists ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips a, .chips span { display: inline-block; padding: 0.55rem 0.9rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 0.92rem; font-weight: 600; background: var(--paper); }
.chips a:hover { border-color: var(--night); }
.dark .chips a, .dark .chips span { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, 0.22); }
.dark .chips a:hover { border-color: #fff; }
.chips a.is-active { background: var(--lamp) !important; border-color: var(--lamp) !important; color: var(--night) !important; }
.link-list { list-style: none; display: grid; gap: 0.6rem; }
.link-list a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: var(--r); background: var(--snow); color: var(--ink); text-decoration: none; font-weight: 700; font-stretch: 106%; transition: background 0.2s; }
.link-list a:hover { background: var(--glow); }
.link-list a::after { content: "→"; flex: none; }

/* ---------- post cards ---------- */
.post-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.post-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--r-xl); background: var(--paper); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cover { position: relative; display: flex; align-items: end; min-height: 170px; padding: 20px 22px; background: radial-gradient(circle at var(--sx, 80%) var(--sy, 20%), rgba(255, 194, 75, 0.34), transparent 46%), var(--night); color: #fff; font-family: var(--mono); font-size: 0.95rem; overflow: hidden; }
.cover::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; }
.post-card__body { display: flex; flex-direction: column; gap: 0.75rem; flex: 1; padding: 20px 24px 26px; }
.post-card__body .tag { align-self: flex-start; }
.post-card__body .more { margin-top: auto; }
.meta { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--slate); }
.dark .meta { color: var(--mist); }

/* ---------- people ---------- */
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--night-3), var(--night)); color: var(--lamp); font-weight: 800; font-stretch: 118%; font-size: 0.95rem; }
.avatar--lg { width: 72px; height: 72px; font-size: 1.4rem; }
.person { display: flex; align-items: center; gap: 0.75rem; }
.person__name { font-weight: 700; font-stretch: 106%; line-height: 1.25; }
.person__role { font-size: 0.86rem; color: var(--slate); }
.dark .person__role { color: var(--mist); }
.placeholder { color: var(--slate); font-style: italic; }

/* ---------- article prose ---------- */
.prose { font-size: 1.12rem; line-height: 1.75; color: #23263b; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.05rem); font-stretch: 116%; letter-spacing: -0.03em; line-height: 1.12; margin-top: 2.3em; color: var(--ink); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { font-size: 1.28rem; font-stretch: 110%; letter-spacing: -0.02em; line-height: 1.2; margin-top: 1.9em; color: var(--ink); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose ul, .prose ol { padding-left: 1.25em; display: grid; gap: 0.45em; }
.prose li::marker { color: var(--slate); }
.prose strong { color: var(--ink); }
.prose a { color: var(--link); }
.prose a.term { color: inherit; text-decoration: underline dotted 2px; text-decoration-color: #c08a14; text-underline-offset: 0.22em; }
.prose a.term:hover { background: var(--glow); }
.prose blockquote { margin: 1.8em 0; padding: 1.3em 1.5em; border-left: 4px solid var(--lamp); border-radius: 0 var(--r) var(--r) 0; background: #fff8e6; font-size: 1.15rem; color: var(--ink); }
.prose figure { margin: 2em 0; }
.prose figcaption { margin-top: 0.7rem; font-size: 0.88rem; color: var(--slate); }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.97rem; background: var(--paper); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--slate); background: var(--snow); }
.prose tr:last-child td { border-bottom: 0; }
.prose code { font-family: var(--mono); font-size: 0.85em; padding: 0.15em 0.4em; border-radius: 6px; background: var(--snow); }
.callout { padding: 1.4rem 1.6rem; border-radius: var(--r-lg); background: var(--snow); border: 1px solid var(--line); }
.callout--key { background: var(--night); border-color: var(--night); color: #fff; }
.callout--key .eyebrow { color: var(--lamp); }
.callout ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; margin-top: 0.9rem; }
.callout li { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); gap: 0.7rem; }
.callout li::before { content: ""; width: 8px; height: 8px; margin-top: 0.62em; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 10px rgba(255, 194, 75, 0.7); }

/* ---------- table of contents ---------- */
.toc { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.toc ol { list-style: none; display: grid; gap: 0.1rem; margin-top: 0.9rem; }
.toc a { display: block; padding: 0.45rem 0 0.45rem 0.9rem; border-left: 2px solid var(--line); color: var(--slate); text-decoration: none; font-size: 0.92rem; line-height: 1.4; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { border-left-color: var(--lamp); color: var(--ink); font-weight: 600; }
.read-progress { position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 55; height: 3px; background: var(--lamp); box-shadow: 0 0 12px rgba(255, 194, 75, 0.8); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- search bar ---------- */
.searchbar { display: flex; align-items: center; gap: 0.75rem; padding: 0.35rem 0.4rem 0.35rem 1.1rem; border-radius: 999px; background: #fff; box-shadow: 4px 4px 0 var(--lamp); max-width: 34rem; }
.searchbar svg { width: 18px; height: 18px; flex: none; color: var(--slate); }
.searchbar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-family: var(--mono); font-size: 0.92rem; color: var(--ink); padding: 0.7rem 0; }
.searchbar:focus-within { box-shadow: 4px 4px 0 var(--lamp), 0 0 0 3px rgba(142, 162, 255, 0.6); }

/* ---------- pagination ---------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-top: 3rem; }
.pager a, .pager span { min-width: 2.7rem; height: 2.7rem; padding-inline: 0.8rem; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 700; }
.pager a:hover { border-color: var(--night); }
.pager [aria-current="page"] { background: var(--night); border-color: var(--night); color: #fff; }

/* ---------- misc ---------- */
.stack-lg > * + * { margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.sample-note { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.75rem; border-radius: 999px; background: var(--lamp); color: var(--night); font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.05em; text-transform: uppercase; }
.rule { height: 1px; border: 0; background: var(--line); margin: 0; }
.visual-panel { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 26px; min-height: 280px; background: radial-gradient(circle at 75% 10%, rgba(255, 194, 75, 0.1), transparent 55%), linear-gradient(180deg, #151947, #111434); border: 1px solid var(--line-dark); }
.visual-panel--light { background: linear-gradient(180deg, #f7f8fc, #eef0f7); border-color: var(--line); }

@media (max-width: 1000px) {
  .page-hero__grid, .cta__grid, .split { grid-template-columns: minmax(0, 1fr); }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc { position: static; }
}
@media (max-width: 640px) {
  .post-grid, .field-row { grid-template-columns: minmax(0, 1fr); }
  .qa details p { padding-right: 0; }
}

/* ---------- motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .caret { animation: none; }
}
