/* ==========================================================================
   The Business Radar Theme v1.2.2 - assets/css/main.css
   Signal Editorial: dark radar-console magazine design for Ariana CMS 1.30.2
   Fonts: Archivo (display/UI), Newsreader (editorial serif), Spline Sans Mono
   ========================================================================== */

/* ------------------------------------------------------------------ fonts */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Expanded";
  src: url("../fonts/archivo-expanded-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Spline Sans Mono";
  src: url("../fonts/splinesansmono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------------------------------------------- tokens */
:root {
  /* Surfaces - deep blue-black radar console */
  --ink: #0a0f1a;
  --ink-2: #0d1322;
  --surface: #111927;
  --surface-2: #162032;
  --raise: #1a2436;

  /* Lines and text */
  --line: rgba(148, 165, 201, 0.14);
  --line-strong: rgba(148, 165, 201, 0.26);
  --text: #e9eef7;
  --muted: #96a2bb;
  --faint: #6a768f;

  /* Brand signal - warm amber */
  --signal: #ffb224;
  --signal-ink: #241703;
  --signal-soft: rgba(255, 178, 36, 0.14);

  /* Category signal hues */
  --sig-ai: #8b93ff;
  --sig-business-solutions: #35d9a9;
  --sig-marketing: #ff7e9e;
  --sig-review: #ffb224;
  --sig-technology: #53c7ff;

  /* Type */
  --font-display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-wordmark: "Archivo Expanded", "Archivo", system-ui, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Geometry */
  --radius: 16px;
  --radius-sm: 10px;
  --shell: 1264px;
  --gutter: clamp(1.1rem, 4vw, 2.25rem);
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

[data-theme="light"] {
  --ink: #f5f6fa;
  --ink-2: #eef0f6;
  --surface: #ffffff;
  --surface-2: #ffffffcc;
  --raise: #ffffff;

  --line: rgba(23, 34, 59, 0.12);
  --line-strong: rgba(23, 34, 59, 0.24);
  --text: #131a2a;
  --muted: #4e5a72;
  --faint: #7d879c;

  --signal: #d98900;
  --signal-ink: #ffffff;
  --signal-soft: rgba(217, 137, 0, 0.12);

  --sig-ai: #4d58e3;
  --sig-business-solutions: #0b9d74;
  --sig-marketing: #d94b70;
  --sig-review: #c07a00;
  --sig-technology: #0b7fbf;

  color-scheme: light;
}

/* ------------------------------------------------------------------ reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

html,
body {
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--signal);
  color: var(--signal-ink);
}

/* -------------------------------------------------------------- utilities */
.shell {
  width: min(var(--shell), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.shell--narrow {
  width: min(820px, 100% - var(--gutter) * 2);
}

.shell--post {
  width: min(860px, 100% - var(--gutter) * 2);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--signal);
  color: var(--signal-ink);
  font-weight: 700;
  border-radius: 999px;
  transform: translateY(-300%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible {
  transform: none;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(255, 178, 36, 0.5);
  animation: ping 2.4s infinite;
  flex: none;
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(255, 178, 36, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(255, 178, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 178, 36, 0); }
}

.sig-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}

.sig-dot--ai { background: var(--sig-ai); }
.sig-dot--business-solutions { background: var(--sig-business-solutions); }
.sig-dot--marketing { background: var(--sig-marketing); }
.sig-dot--review { background: var(--sig-review); }
.sig-dot--technology { background: var(--sig-technology); }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
    color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn--signal {
  background-image: linear-gradient(135deg, #ffc554 0%, var(--signal) 55%, #f09000 100%);
  background-origin: border-box;
  background-repeat: no-repeat;
  color: var(--signal-ink);
  box-shadow: 0 8px 24px -10px rgba(255, 178, 36, 0.55);
}

.btn--signal:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(255, 178, 36, 0.6);
}

[data-theme="light"] .btn--signal {
  background-image: linear-gradient(135deg, #f0a11c 0%, #d98900 60%, #b87300 100%);
  box-shadow: 0 8px 22px -10px rgba(217, 137, 0, 0.55);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.btn--ghost:hover {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 8px 20px -14px rgba(0, 0, 0, 0.7);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* ------------------------------------------------------------------ chips */
.chip {
  --sig: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.78rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sig);
  background: rgba(148, 165, 201, 0.08);
  background: color-mix(in srgb, var(--sig) 13%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sig) 32%, transparent);
  transition: background-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sig);
  flex: none;
}

a.chip:hover {
  background: color-mix(in srgb, var(--sig) 22%, transparent);
  transform: translateY(-1px);
}

.chip--ai { --sig: var(--sig-ai); }
.chip--business-solutions { --sig: var(--sig-business-solutions); }
.chip--marketing { --sig: var(--sig-marketing); }
.chip--review { --sig: var(--sig-review); }
.chip--technology { --sig: var(--sig-technology); }
.chip--tag { --sig: var(--muted); }
.chip--tag::before { display: none; }

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 32px -20px rgba(0, 0, 0, 0.8);
}

.header-shell {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 1 auto;
  min-width: 0;
  margin-right: auto;
}

.brand__pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(255, 178, 36, 0.5);
  animation: ping 2.4s infinite;
}

.brand__mark {
  font-family: var(--font-wordmark);
  font-weight: 800;
  /* Fluid: reaches 1.02rem at ~460px viewport, shrinks in step below it */
  font-size: clamp(0.66rem, 3.4vw, 1.02rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text);
}

.brand__mark em {
  font-style: normal;
  color: var(--signal);
  margin-left: 0.35em;
}

.site-nav {
  display: none;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface);
}

.site-nav .is-active > a,
.site-nav a[aria-current="page"] {
  color: var(--signal);
}

/* Dropdown support for {{ menu.main }} submenus rendered by the engine */
.site-nav li {
  position: relative;
}

.site-nav .menu__submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  display: none;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 210px;
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  background: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line), 0 24px 48px -24px rgba(0, 0, 0, 0.85);
}

.site-nav li:hover > .menu__submenu,
.site-nav li:focus-within > .menu__submenu {
  display: flex;
}

.site-nav .menu__submenu a {
  display: block;
  border-radius: 8px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: none;
  margin-left: 0;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.tool-btn:hover {
  color: var(--text);
  background: var(--surface);
  transform: translateY(-1px);
}

/* Theme toggle icons: dark shows sun (switch to light), light shows moon */
#theme-toggle .icon-moon { display: none; }
[data-theme="light"] #theme-toggle .icon-sun { display: none; }
[data-theme="light"] #theme-toggle .icon-moon { display: block; }

.burger {
  flex-direction: column;
  gap: 4px;
}

.burger span {
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

/* ----------------------------------------------------------------- drawer */
.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(4, 7, 14, 0.6);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.drawer-scrim.is-open {
  opacity: 1;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: min(340px, 88vw);
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  border-left: 1px solid var(--line);
  transform: translateX(105%);
  transition: transform 0.3s var(--ease);
  overflow-y: auto;
  padding: 1.1rem 1.35rem 1.5rem;
}

.drawer.is-open {
  transform: none;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.75rem;
}

.drawer__group {
  margin: 1.15rem 0 0.45rem;
  color: var(--faint);
}

.drawer__link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text);
  transition: background-color 0.16s var(--ease), transform 0.16s var(--ease);
}

.drawer__link:hover {
  background: var(--surface);
  transform: translateX(3px);
}

.drawer__foot {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

/* ------------------------------------------------------------------- hero */
.hero,
.page-hero,
.archive-hero,
.post-head,
.notfound {
  position: relative;
  overflow: hidden;
}

.hero__aurora {
  position: absolute;
  inset: -40% -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 18% 28%, rgba(255, 178, 36, 0.1), transparent 70%),
    radial-gradient(34% 40% at 82% 18%, rgba(83, 199, 255, 0.09), transparent 70%),
    radial-gradient(30% 36% at 68% 82%, rgba(139, 147, 255, 0.08), transparent 70%);
}

[data-theme="light"] .hero__aurora {
  background:
    radial-gradient(38% 42% at 18% 28%, rgba(217, 137, 0, 0.1), transparent 70%),
    radial-gradient(34% 40% at 82% 18%, rgba(11, 127, 191, 0.08), transparent 70%),
    radial-gradient(30% 36% at 68% 82%, rgba(77, 88, 227, 0.07), transparent 70%);
}

.hero > .shell,
.page-hero > .shell,
.archive-hero > .shell,
.post-head > .shell,
.notfound > .shell {
  position: relative;
  z-index: 1;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem;
  padding: clamp(3.25rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem);
}

.hero__eyebrow {
  color: var(--signal);
}

.hero__title {
  margin-top: 1.1rem;
  font-family: var(--font-wordmark);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.4vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.hero__title-accent {
  color: var(--signal);
}

.hero__lede {
  margin-top: 1.35rem;
  max-width: 34rem;
  font-family: var(--font-serif);
  font-size: 1.22rem;
  line-height: 1.65;
  color: var(--muted);
}

.hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* --------------------------------------------------------- radar ornament */
.radar {
  position: relative;
  width: min(360px, 74vw);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 178, 36, 0.05), transparent 65%),
    var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px -40px rgba(0, 0, 0, 0.8);
}

.radar--sm {
  width: min(230px, 60vw);
  margin-bottom: 2rem;
}

.radar__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.radar__ring--1 { inset: 12%; }
.radar__ring--2 { inset: 27%; }
.radar__ring--3 { inset: 41%; border-color: var(--line-strong); }

.radar__grid {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) center / 100% 50.5% no-repeat,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) center / 50.5% 100% no-repeat;
  -webkit-mask: radial-gradient(circle, #000 98%, transparent 100%);
  mask: radial-gradient(circle, #000 98%, transparent 100%);
}

.radar__sweep {
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 300deg,
    rgba(255, 178, 36, 0.02) 310deg,
    rgba(255, 178, 36, 0.28) 352deg,
    var(--signal) 360deg
  );
  animation: sweep 6.5s linear infinite;
  opacity: 0.85;
}

[data-theme="light"] .radar__sweep {
  background: conic-gradient(
    from 0deg,
    transparent 0deg 300deg,
    rgba(217, 137, 0, 0.02) 310deg,
    rgba(217, 137, 0, 0.3) 352deg,
    var(--signal) 360deg
  );
}

@keyframes sweep {
  to { transform: rotate(360deg); }
}

.radar__blip {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  animation: blip 6.5s infinite;
}

.radar__blip--a { top: 26%; left: 62%; animation-delay: 0.8s; }
.radar__blip--b { top: 58%; left: 30%; background: var(--sig-technology); animation-delay: 2.9s; }
.radar__blip--c { top: 70%; left: 68%; background: var(--sig-business-solutions); animation-delay: 4.6s; }

@keyframes blip {
  0%, 8% { opacity: 1; transform: scale(1); }
  16%, 100% { opacity: 0.15; transform: scale(0.72); }
}

/* --------------------------------------------------------------- sections */
.section-head {
  margin-bottom: 2rem;
}

.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.section-title {
  margin-top: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.signals {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--line);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 1rem;
}

.signal-card {
  --sig: var(--signal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.4rem 1.4rem 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.signal-card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sig) 45%, transparent),
    0 24px 48px -28px rgba(0, 0, 0, 0.85);
}

.signal-card--ai { --sig: var(--sig-ai); }
.signal-card--business-solutions { --sig: var(--sig-business-solutions); }
.signal-card--marketing { --sig: var(--sig-marketing); }
.signal-card--review { --sig: var(--sig-review); }
.signal-card--technology { --sig: var(--sig-technology); }

.signal-card__wave {
  position: absolute;
  inset: auto -30% -55% -30%;
  height: 130px;
  background: radial-gradient(50% 100% at 50% 100%, color-mix(in srgb, var(--sig) 22%, transparent), transparent 72%);
  opacity: 0.7;
  transition: opacity 0.22s var(--ease);
  pointer-events: none;
}

.signal-card:hover .signal-card__wave {
  opacity: 1;
}

.signal-card__code {
  color: var(--sig);
}

.signal-card__name {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.signal-card__desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  flex: 1;
}

.signal-card__go {
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sig);
}

/* ------------------------------------------------------------------ cards */
.latest {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--line);
}

.front-grid,
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 26px 52px -30px rgba(0, 0, 0, 0.85);
}

.card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9.6;
  overflow: hidden;
  background: var(--ink-2);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.045);
}

.card__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 80% at 30% 20%, rgba(255, 178, 36, 0.08), transparent 70%),
    radial-gradient(50% 70% at 80% 80%, rgba(83, 199, 255, 0.07), transparent 70%),
    var(--ink-2);
}

.card__fallback-rings {
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle, transparent 34%, var(--line) 34.5%, transparent 35.5%),
    radial-gradient(circle, transparent 60%, var(--line) 60.5%, transparent 61.5%),
    conic-gradient(from 45deg, transparent 0deg 330deg, rgba(255, 178, 36, 0.35) 360deg);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.15rem 1.25rem 1.25rem;
  flex: 1;
}

.card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.card__title {
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

.card__title a {
  transition: color 0.16s var(--ease);
}

.card__title a:hover {
  color: var(--signal);
}

.card__excerpt {
  font-family: var(--font-serif);
  font-size: 0.99rem;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__meta {
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--faint);
}

.card__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  vertical-align: middle;
}

/* Featured first card on the home front grid */
.front-grid .card:first-child .card__title {
  font-size: 1.5rem;
}

/* ------------------------------------------------- category spotlights */
.cat-section {
  --sig: var(--signal);
  padding: clamp(2.5rem, 6vw, 4.25rem) 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(55% 120% at 0% 0%, color-mix(in srgb, var(--sig) 7%, transparent), transparent 62%);
}

.cat-section--ai { --sig: var(--sig-ai); }
.cat-section--business-solutions { --sig: var(--sig-business-solutions); }
.cat-section--marketing { --sig: var(--sig-marketing); }
.cat-section--review { --sig: var(--sig-review); }
.cat-section--technology { --sig: var(--sig-technology); }

.cat-section__code {
  color: var(--sig);
}

.cat-section .section-title {
  max-width: 26ch;
}

.cat-section__desc {
  margin-top: 0.55rem;
  max-width: 34rem;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--muted);
}

.cat-section .card:hover {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sig) 40%, transparent),
    0 26px 52px -30px rgba(0, 0, 0, 0.85);
}

/* ---------------------------------------------------------------- mission */
.mission {
  padding: clamp(2.75rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(50% 90% at 90% 10%, rgba(255, 178, 36, 0.05), transparent 70%),
    var(--ink-2);
}

[data-theme="light"] .mission {
  background:
    radial-gradient(50% 90% at 90% 10%, rgba(217, 137, 0, 0.06), transparent 70%),
    var(--ink-2);
}

.mission-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
}

.mission__text {
  margin: 1.15rem 0 1.6rem;
  max-width: 36rem;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--muted);
}

.mission__points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mission__points li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.97rem;
  color: var(--text);
}

.mission__points .mono-label {
  color: var(--signal);
}

/* --------------------------------------------------------------- cta band */
.cta-band {
  padding: clamp(2.5rem, 6vw, 4.25rem) 0;
  border-top: 1px solid var(--line);
}

.cta-band-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(60% 120% at 12% 0%, rgba(255, 178, 36, 0.1), transparent 65%),
    var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.cta-band__text {
  margin-top: 0.5rem;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ------------------------------------------------------- page/archive hero */
.page-hero,
.archive-hero {
  border-bottom: 1px solid var(--line);
}

.page-hero > .shell,
.archive-hero > .shell {
  padding: clamp(2.75rem, 6.5vw, 4.75rem) 0 clamp(2.25rem, 5vw, 3.5rem);
}

.page-hero__title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 24ch;
}

.page-hero__lede {
  margin-top: 1.1rem;
  max-width: 44rem;
  font-family: var(--font-serif);
  font-size: 1.14rem;
  line-height: 1.68;
  color: var(--muted);
}

.page-hero__lede a {
  color: var(--signal);
}

.page-hero__role {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.archive-hero__row {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.archive-hero__image {
  width: 88px;
  height: 88px;
  flex: none;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: inset 0 0 0 1px var(--line);
}

.archive-hero__image--round {
  border-radius: 50%;
}

.archive-filter {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.archive-body {
  padding: clamp(2.25rem, 5vw, 3.75rem) 0 clamp(2.75rem, 6vw, 4.5rem);
}

.empty-state {
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.empty-state p:last-child {
  margin-top: 0.7rem;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

.empty-state a {
  color: var(--signal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------- author page */
.author-profile {
  margin-top: 1.5rem;
  max-width: 46rem;
}

/* ------------------------------------------------------------- search form */
.search-form {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.6rem;
  max-width: 40rem;
}

.search-form__input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.search-form__input::placeholder {
  color: var(--faint);
}

.search-form__input:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.search-form__submit {
  flex: none;
}

/* ------------------------------------------------------------- post header */
.post-head {
  border-bottom: 1px solid var(--line);
}

.post-head > .shell {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4.5vw, 3rem);
}

.crumbs {
  gap: 0.6rem;
}

.crumbs a {
  color: var(--faint);
  transition: color 0.16s var(--ease);
}

.crumbs a:hover {
  color: var(--signal);
}

.post-head__chips {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.post-head__title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 3.05rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.post-head__standfirst {
  margin-top: 1.15rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.24rem;
  line-height: 1.6;
  color: var(--muted);
}

.post-head__meta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  justify-content: space-between;
}

.byline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.byline__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px var(--line);
}

.byline__avatar--fallback {
  display: inline-block;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 178, 36, 0.5), transparent 55%),
    var(--surface-2);
}

.byline__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.byline__name {
  font-weight: 700;
  font-size: 0.98rem;
}

.byline:hover .byline__name {
  color: var(--signal);
}

.byline__role {
  font-size: 0.82rem;
  color: var(--faint);
}

.post-head__stats {
  color: var(--faint);
  gap: 0.65rem;
}

/* ---------------------------------------------------------- post body/side */
.post-figure {
  margin: 0 0 2rem;
}

.post-figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.8);
}

/* One grid geometry shared by the post header, the body and the prev/next
   nav, so their left edges always align - on every viewport, with or
   without a table of contents. */
.post-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: center;
  gap: 0 2.5rem;
}

.post-head__main,
.adjacent {
  grid-column: 1;
  min-width: 0;
}

.post-layout {
  padding: clamp(2rem, 5vw, 3.25rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  row-gap: 2.5rem;
}

.post-main {
  min-width: 0;
  width: 100%;
}

/* Mobile and tablet: the table of contents reads before the article */
.post-side {
  order: -1;
}

.post-side {
  min-width: 0;
}

.toc-wrap {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.toc-wrap__label {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--signal);
}

.toc-wrap ul,
.toc-wrap ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.toc-wrap ul ul,
.toc-wrap ol ol {
  margin-top: 0.15rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--line);
}

.toc-wrap a {
  display: block;
  padding: 0.3rem 0.4rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.toc-wrap a:hover {
  color: var(--text);
  background: var(--raise);
}

/* ------------------------------------------------------------------ prose */
.prose {
  font-family: var(--font-serif);
  font-size: 1.14rem;
  line-height: 1.85;
  color: var(--text);
  overflow-wrap: break-word;
}

.prose p {
  margin: 0 0 1.35rem;
}

.prose a {
  color: var(--signal);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--signal) 45%, transparent);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.16s var(--ease);
}

.prose a:hover {
  text-decoration-color: var(--signal);
}

.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 2.4rem 0 1rem;
}

.prose h2 {
  font-size: 1.72rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.prose h3 {
  font-size: 1.34rem;
}

.prose h4 {
  font-size: 1.12rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.35rem;
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.prose li::marker {
  color: var(--signal);
}

.prose strong {
  font-weight: 600;
  color: var(--text);
}

.prose em {
  font-style: italic;
}

.prose blockquote {
  margin: 1.9rem 0;
  padding: 0.35rem 0 0.35rem 1.4rem;
  border-left: 3px solid var(--signal);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--muted);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose img {
  margin: 1.9rem 0;
  border-radius: var(--radius-sm);
}

.prose figure {
  margin: 1.9rem 0;
}

.prose figure img {
  margin: 0;
}

.prose figcaption {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.prose hr {
  margin: 2.4rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 0.14em 0.42em;
  border-radius: 6px;
  background: var(--raise);
  box-shadow: inset 0 0 0 1px var(--line);
}

.prose pre {
  margin: 1.9rem 0;
  padding: 1.15rem 1.3rem;
  border-radius: var(--radius-sm);
  background: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.65;
}

.prose pre code {
  padding: 0;
  background: none;
  box-shadow: none;
  font-size: inherit;
}

.prose table {
  width: 100%;
  margin: 1.9rem 0;
  border-collapse: collapse;
  font-family: var(--font-display);
  font-size: 0.94rem;
  line-height: 1.5;
}

.prose th,
.prose td {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
}

.prose iframe {
  max-width: 100%;
  border: 0;
  border-radius: var(--radius-sm);
}

/* Static prose pages (about) */
.prose-section {
  padding: clamp(2.25rem, 5vw, 3.75rem) 0;
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* -------------------------------------------- Ariana injected components */
/* Summary box (engine rules use :where(), zero specificity - ours win) */
.ariana-summary {
  margin: 0 0 2rem;
  padding: 1.3rem 1.5rem;
  border-radius: var(--radius);
  background:
    radial-gradient(70% 130% at 8% 0%, rgba(255, 178, 36, 0.09), transparent 65%),
    var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  border-left: 3px solid var(--signal);
}

.ariana-summary__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 0.7rem;
}

.ariana-summary__text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.ariana-summary__list {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--muted);
}

.ariana-summary__list li::marker {
  color: var(--signal);
}

/* FAQ block appended to content */
.prose .ariana-faq {
  margin-top: 2.5rem;
}

.prose .ariana-faq h3 {
  font-size: 1.16rem;
}

/* Author box appended by the engine when enabled */
.ariana-author-box {
  display: flex;
  gap: 1.1rem;
  margin: 2.5rem 0 0;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-display);
}

.ariana-author-box__avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.ariana-author-box__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 0.3rem;
}

.ariana-author-box__name {
  font-weight: 700;
  font-size: 1.06rem;
  margin: 0;
}

.ariana-author-box__name a {
  color: var(--text);
}

.ariana-author-box__name a:hover {
  color: var(--signal);
}

.ariana-author-box__role {
  font-size: 0.85rem;
  color: var(--faint);
  margin: 0.15rem 0 0;
}

.ariana-author-box__bio {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0.6rem 0 0;
}

.ariana-author-box__more {
  margin: 0.7rem 0 0;
}

.ariana-author-box__more a {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
}

/* Author profile header on author archives */
.ariana-author-profile {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-display);
}

.ariana-author-profile__avatar img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
}

.ariana-author-profile__role {
  font-size: 0.9rem;
  color: var(--faint);
  margin: 0 0 0.5rem;
}

.ariana-author-profile p {
  margin: 0 0 0.5rem;
  color: var(--muted);
  line-height: 1.65;
}

.ariana-author-profile a {
  color: var(--signal);
}

/* ------------------------------------------------------------ post extras */
.post-tags {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.post-updated {
  margin-top: 1.25rem;
  color: var(--faint);
}

.author-card {
  display: flex;
  gap: 1.1rem;
  margin-top: 2.25rem;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-display);
}

.author-card__avatar {
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px var(--line);
}

.author-card__body {
  min-width: 0;
}

.author-card__name {
  margin-top: 0.35rem;
  font-weight: 700;
  font-size: 1.08rem;
}

.author-card__name a:hover {
  color: var(--signal);
}

.author-card__role {
  font-size: 0.86rem;
  color: var(--faint);
}

.author-card__bio {
  margin-top: 0.6rem;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--muted);
}

.author-card__links {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------------------------------------------------------------- adjacent */
.adjacent {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.adjacent__card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.2rem 1.35rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.adjacent__card:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 20px 42px -28px rgba(0, 0, 0, 0.85);
}

.adjacent__card--next {
  text-align: right;
  align-items: flex-end;
}

.adjacent__title {
  font-weight: 700;
  line-height: 1.35;
}

.adjacent__card:hover .adjacent__title {
  color: var(--signal);
}

.related {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-top: 1px solid var(--line);
  background: var(--ink-2);
}

/* -------------------------------------------------------------- pagination */
.pagination {
  margin-top: clamp(2rem, 5vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pagination__pages {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.pagination__page a,
.pagination__page,
.pagination__prev,
.pagination__next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.pagination__page {
  padding: 0;
  min-width: 0;
  min-height: 0;
}

a.pagination__prev,
a.pagination__next,
.pagination__page a {
  box-shadow: inset 0 0 0 1px var(--line);
}

a.pagination__prev:hover,
a.pagination__next:hover,
.pagination__page a:hover {
  color: var(--text);
  background: var(--surface);
}

.pagination__page.is-current {
  min-width: 40px;
  min-height: 40px;
  padding: 0 0.8rem;
  background: var(--signal);
  color: var(--signal-ink);
  font-weight: 700;
}

.pagination__prev.is-disabled,
.pagination__next.is-disabled {
  opacity: 0.35;
  box-shadow: inset 0 0 0 1px var(--line);
}

.pagination__gap {
  color: var(--faint);
}

/* ---------------------------------------------------------------- contact */
.contact-section {
  padding: clamp(2.25rem, 5vw, 3.75rem) 0 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 1.6rem 1.6rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.contact-card__code {
  color: var(--signal);
}

.contact-card__title {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.contact-card__text {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
  flex: 1;
}

.contact-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.contact-card .btn {
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------- notfound */
.notfound-shell {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.notfound .page-hero__title {
  margin-inline: auto;
}

.notfound .page-hero__lede {
  margin-inline: auto;
}

.notfound__actions {
  justify-content: center;
}

/* ----------------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.75rem, 4vw, 2.5rem);
}

.brand--footer .brand__mark {
  font-size: 1.08rem;
}

.footer-note {
  margin-top: 0.85rem;
  max-width: 26rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.footer-social {
  margin-top: 1.15rem;
  display: flex;
  gap: 0.5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col .mono-label {
  margin-bottom: 0.35rem;
  color: var(--faint);
}

.footer-col a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.16s var(--ease);
  width: fit-content;
}

.footer-col a:hover {
  color: var(--signal);
}

.footer-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-menu a {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-menu a:hover {
  color: var(--signal);
}

.footer-menu .menu__submenu {
  margin-top: 0.45rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--line);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.35rem 0 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--faint);
}

.footer-base__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------------- reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* No-JS and reduced-motion safety: content must never stay hidden */
html:not(.js) .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .radar__sweep {
    animation: none;
    opacity: 0.4;
  }
}

/* --------------------------------------------------- small-phone header */
@media (max-width: 480px) {
  .header-shell {
    gap: 0.75rem;
    min-height: 64px;
  }

  .header-tools {
    gap: 0.3rem;
  }

  .tool-btn {
    width: 36px;
    height: 36px;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand__mark {
    letter-spacing: 0.04em;
  }

  .brand__mark em {
    margin-left: 0.3em;
  }
}

@media (max-width: 374px) {
  .brand__pulse {
    display: none;
  }
}

/* ------------------------------------------------------------- responsive */
/* Tablet portrait and up */
@media (min-width: 640px) {
  .front-grid,
  .card-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .front-grid .card:first-child {
    grid-column: span 2;
  }

  .front-grid .card:first-child .card__media {
    aspect-ratio: 21 / 9;
  }

  .adjacent {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .adjacent__card--next:only-child {
    grid-column: 2;
  }
}

/* Small laptop and up */
@media (min-width: 960px) {
  .hero-shell {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .hero-shell .radar {
    justify-self: center;
  }

  .mission-shell {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .post-cols {
    grid-template-columns: minmax(0, var(--post-col, 820px)) var(--side-col, 280px);
  }

  .post-side {
    order: 0;
  }

  .post-side .toc-wrap {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    max-height: calc(100vh - var(--header-h) - 40px);
    overflow-y: auto;
  }
}

/* Desktop nav appears */
@media (min-width: 1080px) {
  .site-nav {
    display: block;
  }

  .burger {
    display: inline-flex;
  }
}

/* Large desktop: 3-column article grids, featured spans 2x2 */
@media (min-width: 1180px) {
  .front-grid,
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
  }

  .front-grid .card:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }

  /* The featured card is stretched by the grid to the height of the two
     stacked cards beside it. A fixed aspect ratio left that extra height as
     dead space under the excerpt, so the media grows instead: the image
     absorbs every leftover pixel and the card is always exactly full. */
  .front-grid .card:first-child .card__media {
    aspect-ratio: auto;
    flex: 1 1 auto;
    min-height: 340px;
  }

  .front-grid .card:first-child .card__media img,
  .front-grid .card:first-child .card__fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .front-grid .card:first-child .card__body {
    flex: 0 0 auto;
  }

  .front-grid .card:first-child .card__title {
    font-size: 1.75rem;
  }

  .front-grid .card:first-child .card__excerpt {
    -webkit-line-clamp: 4;
    font-size: 1.08rem;
  }

  .footer-shell {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.75fr));
  }
}

/* ----------------------------------------------- large-monitor scaling */
/* The whole interface is rem-based, so raising the root font size scales
   type, spacing and components together; the shell and the post columns
   widen in step. The layout keeps growing with the monitor instead of
   floating as a fixed island in whitespace. */
@media (min-width: 1500px) {
  :root {
    --shell: 1400px;
  }
}

@media (min-width: 1720px) {
  html {
    font-size: 106.25%;
  }

  :root {
    --shell: min(1580px, 90vw);
    --post-col: 880px;
    --side-col: 300px;
  }
}

@media (min-width: 2050px) {
  html {
    font-size: 112.5%;
  }

  :root {
    --shell: min(1780px, 88vw);
    --post-col: 940px;
    --side-col: 320px;
  }
}

@media (min-width: 2450px) {
  html {
    font-size: 118.75%;
  }

  :root {
    --shell: min(1960px, 86vw);
    --post-col: 1000px;
  }
}
