/* ==========================================================================
   NumiFlux — site styles
   One stylesheet, no framework. Theme is driven by [data-theme] on <html>,
   falling back to the OS preference when the visitor hasn't chosen.
   ========================================================================== */

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
img, svg, video { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

/* --- tokens --------------------------------------------------------------- */
:root {
  --bg:        #ffffff;
  --surface-1: #f7f8fb;
  --surface-2: #eef0f6;
  --surface-3: #e3e6ef;

  --ink:   #0b0d14;
  --ink-2: #474b5a;
  --ink-3: #6c7080;
  --ink-4: #9a9dac;

  --line:   color-mix(in oklab, var(--ink) 11%, transparent);
  --line-2: color-mix(in oklab, var(--ink) 20%, transparent);

  /* flux: cyan into violet */
  --accent:     #0a7fc0;
  --accent-2:   #6a46db;
  --accent-ink: #ffffff;
  --accent-a08: color-mix(in oklab, var(--accent) 8%,  transparent);
  --accent-a15: color-mix(in oklab, var(--accent) 15%, transparent);
  --accent-a30: color-mix(in oklab, var(--accent) 30%, transparent);
  --accent-a55: color-mix(in oklab, var(--accent) 55%, transparent);

  --ok:  #0f8a5f;
  --err: #c2341f;

  --primary-hover: #262a36;
  --shadow-lift:  0 26px 50px -30px rgba(15, 18, 30, .30);
  --shadow-panel: 0 24px 48px -26px rgba(15, 18, 30, .22);

  --font-display: 'Space Grotesk', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    ui-monospace, 'SFMono-Regular', 'JetBrains Mono', Menlo, monospace;

  --t-mega: clamp(2.7rem, 1.2rem + 6vw, 6rem);
  --t-h1:   clamp(2.3rem, 1.35rem + 4vw, 4.4rem);
  --t-h2:   clamp(1.9rem, 1.3rem + 2.6vw, 3.25rem);
  --t-h3:   clamp(1.2rem, 1.05rem + .6vw, 1.5rem);
  --t-lead: clamp(1.05rem, .98rem + .4vw, 1.3rem);

  --container: 1240px;
  --gutter: clamp(1rem, .5rem + 2.2vw, 3rem);
  --radius: 18px;
  --radius-lg: 26px;

  --ease: cubic-bezier(.22, 1, .36, 1);

  color-scheme: light;
}

/* dark: explicit choice, or OS preference when no choice was made */
:root[data-theme="dark"] {
  --bg:        #07080c;
  --surface-1: #0d0f15;
  --surface-2: #141720;
  --surface-3: #1c2029;
  --ink:   #f3f4f7;
  --ink-2: #a8acba;
  --ink-3: #757a88;
  --ink-4: #4a4e5a;
  --line:   color-mix(in oklab, var(--ink) 10%, transparent);
  --line-2: color-mix(in oklab, var(--ink) 17%, transparent);
  --accent:     #3cc4ff;
  --accent-2:   #a78bfa;
  --accent-ink: #061018;
  --ok:  #4ade9a;
  --err: #ff8a7a;
  --primary-hover: #ffffff;
  --shadow-lift:  0 26px 50px -30px rgba(0, 0, 0, .9);
  --shadow-panel: 0 24px 48px -26px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #07080c;
    --surface-1: #0d0f15;
    --surface-2: #141720;
    --surface-3: #1c2029;
    --ink:   #f3f4f7;
    --ink-2: #a8acba;
    --ink-3: #757a88;
    --ink-4: #4a4e5a;
    --line:   color-mix(in oklab, var(--ink) 10%, transparent);
    --line-2: color-mix(in oklab, var(--ink) 17%, transparent);
    --accent:     #3cc4ff;
    --accent-2:   #a78bfa;
    --accent-ink: #061018;
    --ok:  #4ade9a;
    --err: #ff8a7a;
    --primary-hover: #ffffff;
    --shadow-lift:  0 26px 50px -30px rgba(0, 0, 0, .9);
    --shadow-panel: 0 24px 48px -26px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

/* --- base ----------------------------------------------------------------- */
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.03em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
strong { color: var(--ink); font-weight: 600; }
::selection { background: var(--accent-a30); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--ink); color: var(--bg); padding: .5rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.grad-text {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* --- section scaffolding -------------------------------------------------- */
.section { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); position: relative; }
.section--alt { background: var(--surface-1); border-block: 1px solid var(--line); }
.section-intro { max-width: 46rem; margin-bottom: clamp(2rem, 1.4rem + 2vw, 3rem); }
.section-intro h2 { font-size: var(--t-h2); margin-bottom: .9rem; }
.section-intro p { font-size: var(--t-lead); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before {
  content: ""; width: 1.65rem; height: 1px; flex: none;
  background: linear-gradient(90deg, transparent, var(--accent));
}

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  height: 3.2rem; padding-inline: 1.6rem;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: -.01em;
  white-space: nowrap;
  transition: background-color .22s, border-color .22s, color .22s, transform .12s var(--ease), opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn .arr { transition: transform .22s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink-3); }
.btn--sm { height: 2.5rem; padding-inline: 1.1rem; font-size: .85rem; }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* --- nav ------------------------------------------------------------------ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.25rem; }
.wordmark { display: inline-flex; align-items: center; gap: .6rem; flex: none; }
.wordmark svg { width: 2.1rem; height: 2.1rem; filter: drop-shadow(0 4px 14px var(--accent-a30)); }
.wordmark__text { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--ink); letter-spacing: -.02em; }
.nav__links { display: none; align-items: center; gap: 1.75rem; }
.nav__links a { font-size: .9rem; color: var(--ink-2); transition: color .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  width: 2.5rem; height: 2.5rem; border-radius: 999px;
  display: grid; place-items: center; color: var(--ink-2);
  border: 1px solid var(--line); transition: color .2s, border-color .2s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.icon-btn svg { width: 1.1rem; height: 1.1rem; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
.nav__burger { display: grid; }
.nav__cta { display: none; }

.drawer {
  position: fixed; inset: 4.25rem 0 auto 0; z-index: 99;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 1rem var(--gutter) 1.5rem;
  display: none; flex-direction: column; gap: .25rem;
  box-shadow: var(--shadow-panel);
}
.drawer.is-open { display: flex; }
.drawer a { padding: .8rem 0; font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); border-bottom: 1px solid var(--line); }
.drawer a:last-child { border-bottom: 0; }

@media (min-width: 880px) {
  .nav__links { display: flex; }
  .nav__burger { display: none; }
  .nav__cta { display: inline-flex; }
  .drawer { display: none !important; }
}

/* --- hero ----------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate;
  padding-top: calc(4.25rem + clamp(3rem, 2rem + 5vw, 6rem));
  padding-bottom: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__bg .glow {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
}
.hero__bg .glow--a { width: 42rem; height: 42rem; right: -12rem; top: -10rem; background: radial-gradient(circle, var(--accent-a30), transparent 65%); }
.hero__bg .glow--b { width: 34rem; height: 34rem; left: -14rem; bottom: -14rem; background: radial-gradient(circle, color-mix(in oklab, var(--accent-2) 25%, transparent), transparent 65%); }
.hero__bg .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: .6;
}
.hero__split { display: grid; gap: clamp(2.5rem, 1.5rem + 4vw, 4rem); align-items: center; }
.hero h1 { font-size: var(--t-mega); letter-spacing: -.045em; margin-bottom: 1.4rem; }
.hero__lead { font-size: var(--t-lead); max-width: 34rem; margin-bottom: 2rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 2rem 2.75rem; margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.hero__stats b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.hero__stats span { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.hero__art { position: relative; width: 100%; max-width: 560px; margin-inline: auto; }
@media (min-width: 980px) {
  .hero__split { grid-template-columns: 1.05fr .95fr; }
}

/* --- animated SVG primitives --------------------------------------------- */
.flow { stroke-dasharray: 6 10; animation: flow 1.6s linear infinite; }
.flow--slow { animation-duration: 2.8s; }
.flow--rev { animation-direction: reverse; }
@keyframes flow { to { stroke-dashoffset: -32; } }
.pulse { animation: pulse 2.4s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
.pulse--d1 { animation-delay: .4s; } .pulse--d2 { animation-delay: .8s; } .pulse--d3 { animation-delay: 1.2s; }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.spin { animation: spin 18s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .flow, .pulse, .spin, .marquee__track { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* --- inference / capabilities -------------------------------------------- */
.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split--rev > :first-child { order: 2; } }
.panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, .8rem + 2vw, 2rem);
  box-shadow: var(--shadow-panel);
}
.ticks { display: grid; gap: 1.1rem; margin-top: 1.75rem; }
.ticks li { display: grid; grid-template-columns: 2rem 1fr; gap: .9rem; align-items: start; }
.ticks svg { width: 2rem; height: 2rem; padding: .4rem; border-radius: 10px; background: var(--accent-a08); color: var(--accent); }
.ticks b { display: block; color: var(--ink); font-weight: 600; margin-bottom: .15rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.chip {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em;
  padding: .35rem .75rem; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink-2);
}

/* --- offerings cards ------------------------------------------------------ */
.cards { display: grid; gap: 1rem; }
@media (min-width: 640px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card {
  position: relative; overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.75rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--line-2); }
.card:hover::after { transform: scaleX(1); }
.card__icon { width: 3.25rem; height: 3.25rem; margin-bottom: 1.4rem; }
.card__index { position: absolute; top: 1.4rem; right: 1.5rem; font-family: var(--font-mono); font-size: .7rem; color: var(--ink-4); letter-spacing: .1em; }
.card h3 { font-size: var(--t-h3); margin-bottom: .6rem; }
.card p { font-size: .95rem; }

/* --- figure / screenshot -------------------------------------------------- */
.shot {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2);
  box-shadow: var(--shadow-lift);
}
.shot__bar { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: var(--bg); }
.shot__bar i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--surface-3); }
.shot__bar span { margin-left: .6rem; font-family: var(--font-mono); font-size: .7rem; color: var(--ink-3); }
.shot img { width: 100%; height: auto; background: #fff; }
.caption { margin-top: .9rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* --- campaign marquee ----------------------------------------------------- */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track { display: flex; gap: 1rem; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - .5rem)); } }
.marquee figure {
  flex: none; width: clamp(15rem, 10rem + 18vw, 22rem); aspect-ratio: 4 / 3;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
}
.marquee img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.marquee figure:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee__track [aria-hidden="true"] { display: none; }
}

/* --- about ---------------------------------------------------------------- */
.about-art { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1; max-width: 520px; }
.about-art img { width: 100%; height: 100%; object-fit: cover; }
.about-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, color-mix(in oklab, var(--bg) 70%, transparent));
}
.about-art figcaption { position: absolute; left: 1.25rem; bottom: 1.1rem; z-index: 1; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.pillars { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 2rem; }
@media (min-width: 560px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillars div { background: var(--bg); padding: 1.2rem 1.25rem; }
.pillars b { display: block; font-family: var(--font-display); color: var(--ink); font-weight: 600; }
.pillars span { font-size: .85rem; color: var(--ink-3); }

/* --- contact -------------------------------------------------------------- */
.contact { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); }
@media (min-width: 960px) { .contact { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.contact__aside h2 { font-size: var(--t-h2); margin-bottom: 1rem; }
.contact__aside p { font-size: var(--t-lead); margin-bottom: 2rem; }
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  width: 100%;
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: .85rem 1rem;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 9.5rem; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--bg);
  box-shadow: 0 0 0 4px var(--accent-a15);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--err); }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .25rem; }
.form__note { font-size: .8rem; color: var(--ink-3); }
.form__note a { text-decoration: underline; text-underline-offset: 2px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status {
  display: none; align-items: center; gap: .7rem;
  padding: .9rem 1.1rem; border-radius: 12px; font-size: .92rem;
  border: 1px solid;
}
.status.is-ok  { display: flex; color: var(--ok);  border-color: color-mix(in oklab, var(--ok) 35%, transparent);  background: color-mix(in oklab, var(--ok) 8%, transparent); }
.status.is-err { display: flex; color: var(--err); border-color: color-mix(in oklab, var(--err) 35%, transparent); background: color-mix(in oklab, var(--err) 8%, transparent); }
.status svg { width: 1.2rem; height: 1.2rem; flex: none; }
.spinner { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }

/* --- prose (blog / policy) ------------------------------------------------ */
.page-head { padding-top: calc(4.25rem + clamp(3rem, 2rem + 4vw, 5rem)); padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; isolation: isolate; }
.page-head h1 { font-size: var(--t-h1); margin-bottom: 1rem; max-width: 22ch; }
.page-head p { font-size: var(--t-lead); max-width: 42rem; }
.meta { margin-top: 1.5rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.prose { max-width: 46rem; padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.prose h2, .prose h3 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); margin: 2.6rem 0 .9rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose ul { margin-bottom: 1.1rem; font-size: 1.05rem; }
.prose ul { padding-left: 1.2rem; list-style: disc; }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.compare { display: grid; gap: 1rem; margin: 1.5rem 0 2rem; }
@media (min-width: 720px) { .compare { grid-template-columns: repeat(3, 1fr); } }
/* the prose column sits at the container's left edge, so a figure row as wide
   as the container's content box lines up with the page and stays centred */
.post { container-type: inline-size; }
.post .compare { width: 100cqw; }
.compare figure { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface-1); }
.compare img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.compare figcaption { padding: .75rem 1rem; font-size: .85rem; color: var(--ink-2); }
.compare figcaption b { font-family: var(--font-mono); font-size: .75rem; color: var(--accent); letter-spacing: .08em; margin-right: .4rem; }
.post-list { display: grid; gap: 1rem; padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.post-card { display: grid; gap: 1.25rem; align-items: center; }
@media (min-width: 720px) { .post-card { grid-template-columns: 16rem 1fr; } }
.post-card img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.post-card h2 { font-size: var(--t-h3); margin-bottom: .5rem; }

/* --- footer --------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding-block: 3rem 2rem; }
.footer__top { display: grid; gap: 2rem; margin-bottom: 2.5rem; }
@media (min-width: 760px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer__tag { margin-top: 1rem; max-width: 22rem; font-size: .92rem; }
.footer h4 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-bottom: 1rem; }
.footer li { margin-bottom: .55rem; }
.footer li a { font-size: .92rem; color: var(--ink-2); transition: color .2s; }
.footer li a:hover { color: var(--ink); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-3); }
.footer__bottom a:hover { color: var(--ink); }

/* --- cookie consent ------------------------------------------------------- */
.cookie {
  position: fixed; z-index: 150; left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 26rem; margin-left: auto;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 1.1rem 1.2rem;
  display: none; gap: .9rem; flex-direction: column;
  font-size: .9rem;
}
.cookie.is-open { display: flex; animation: rise .5s var(--ease); }
.cookie a { text-decoration: underline; text-underline-offset: 2px; color: var(--ink); }
.cookie .btn-row { gap: .5rem; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* --- reveal on scroll ----------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
