/* ==========================================================================
   Premium WP Hosting — base system
   Light-first. Warm paper, ink, cobalt, signal lime.
   ========================================================================== */

:root {
  color-scheme: light;
  --paper: #f3f1ea;
  --paper-deep: #ece9e0;
  --surface: #fbfaf6;
  --card: #fffefa;
  --card-alt: #f7f5ee;
  --ink: #161618;
  --ink-soft: #3e3d42;
  --muted: #6b675f;
  --faint: #928d82;
  --line: #ddd9ce;
  --line-strong: #c6c1b4;
  --accent: #2447ff;
  --accent-strong: #1633d6;
  --accent-soft: #e8ebff;
  --accent-ink: #ffffff;
  --lime: #d8f25e;
  --lime-bright: #e3fa7a;
  --lime-soft: #eef8bd;
  --lime-ink: #171908;
  --success: #0b7554;
  --success-soft: #dff4ea;
  --warning: #a05f00;
  --warning-soft: #faeed8;
  --danger: #b53d2c;
  --danger-soft: #f8e4df;
  --panel: #121316;
  --panel-2: #1a1c20;
  --panel-3: #25272c;
  --panel-ink: #f5f3eb;
  --panel-muted: #a9a79f;
  --panel-line: #2c2e33;
  --panel-lime: #d8f25e;
  --shadow-sm: 0 1px 2px rgba(24, 22, 14, 0.04), 0 4px 16px rgba(24, 22, 14, 0.04);
  --shadow-md: 0 2px 4px rgba(24, 22, 14, 0.04), 0 18px 44px rgba(24, 22, 14, 0.08);
  --shadow-lg: 0 30px 80px rgba(18, 16, 8, 0.14);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.7, 0.25, 1);
  --shell: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 74px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0c0d0f;
  --paper-deep: #090a0c;
  --surface: #111215;
  --card: #15161a;
  --card-alt: #191a1f;
  --ink: #f3f1e9;
  --ink-soft: #cfccc3;
  --muted: #949087;
  --faint: #77736b;
  --line: #27282d;
  --line-strong: #3b3c42;
  --accent: #8fa5ff;
  --accent-strong: #b0beff;
  --accent-soft: #1b2138;
  --accent-ink: #0d1024;
  --lime: #d8f25e;
  --lime-bright: #e6fb8e;
  --lime-soft: #252c12;
  --lime-ink: #171908;
  --success: #4bcfa0;
  --success-soft: #112b22;
  --warning: #e1a249;
  --warning-soft: #2d2210;
  --danger: #f08a76;
  --danger-soft: #321814;
  --panel: #15161a;
  --panel-2: #1b1d22;
  --panel-3: #272a30;
  --panel-ink: #f3f1e9;
  --panel-muted: #a29f96;
  --panel-line: #2c2e34;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 22px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.35), 0 24px 60px rgba(0, 0, 0, 0.34);
  --shadow-lg: 0 36px 100px rgba(0, 0, 0, 0.5);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01" 1, "cv05" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.024;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

img, svg, video { max-width: 100%; display: block; }
svg { fill: none; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 610;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.9rem, 6.3vw, 5.9rem); line-height: 0.98; letter-spacing: -0.048em; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.7rem); line-height: 1.01; letter-spacing: -0.042em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.85rem); line-height: 1.12; }
h4 { font-size: 1.12rem; letter-spacing: -0.02em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
a:hover { text-decoration-color: currentColor; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.2em; }
li { margin-bottom: 0.35em; }
li::marker { color: var(--faint); }

strong, b { font-weight: 650; }
small { font-size: 0.82em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.6; }

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

/* ---------- Typography helpers ---------- */

.serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.018em;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.muted { color: var(--muted); }
.ink-soft { color: var(--ink-soft); }
.text-balance { text-wrap: balance; }
.no-margin { margin: 0; }

.eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 0.665rem;
  font-weight: 500;
  letter-spacing: 0.115em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot { margin-right: 1px; }
.eyebrow-divider { color: var(--line-strong); }

.kicker {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}
.dot--lime { background: var(--lime); color: var(--lime); }
.dot--accent { background: var(--accent); color: var(--accent); }
.dot--ink { background: var(--lime-ink); color: var(--lime-ink); }
.dot--pulse { animation: pulse 2.4s infinite; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); }
  50% { box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 0%, transparent); }
}

/* ---------- Layout ---------- */

.shell {
  width: min(var(--shell), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: 960px; }
.shell--article { max-width: 1160px; }

.section {
  padding-block: clamp(68px, 9vw, 124px);
  position: relative;
}
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--top-line { border-top: 1px solid var(--line); }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 60px);
}
.section-head h2 { max-width: 16ch; }
.section-head-side {
  padding-bottom: 7px;
  max-width: 42ch;
  justify-self: end;
}
.section-head-side p { color: var(--muted); font-size: 1.02rem; line-height: 1.65; }
.section-head-side .text-link { margin-top: 14px; }

.section-head--center {
  display: block;
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}
.section-head--center h2 { margin-inline: auto; max-width: 17ch; }
.section-head--center .section-head-side { margin: 18px auto 0; justify-self: center; padding: 0; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: gap 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.text-link svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 1.7; transition: transform 0.25s var(--ease); }
.text-link:hover { border-color: var(--ink); gap: 10px; }
.text-link:hover svg { transform: translate(1px, -1px); }

/* Provider names outside body copy link out to /go/ or /plans/. */
.provider-link {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.provider-link-icon {
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  margin-right: 0.28em;
  vertical-align: -0.04em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  opacity: 0.7;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.provider-link:hover { color: var(--accent); }
.provider-link:hover .provider-link-icon,
.provider-link:focus-visible .provider-link-icon {
  opacity: 1;
  transform: translate(1px, -1px);
}
.provider-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Buttons, pills, tags ---------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-border: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 23px;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.9rem;
  font-weight: 620;
  letter-spacing: -0.012em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.8; transition: transform 0.25s var(--ease); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: translateY(-1px); box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 24%, transparent); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 40px; padding: 0 17px; font-size: 0.8rem; gap: 7px; }
.btn--sm svg { width: 13px; height: 13px; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--line-strong); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: none; }
.btn--light { --btn-bg: var(--panel-ink); --btn-fg: var(--panel); --btn-border: var(--panel-ink); }
.btn--light:hover { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); box-shadow: 0 8px 30px rgba(216, 242, 94, 0.2); }
.btn--lime { --btn-bg: var(--lime); --btn-fg: var(--lime-ink); --btn-border: var(--lime); }
.btn--lime:hover { background: var(--lime-bright); border-color: var(--lime-bright); color: var(--lime-ink); box-shadow: 0 10px 30px rgba(216, 242, 94, 0.18); }
.btn--block { width: 100%; }

[data-theme="dark"] .btn { --btn-bg: var(--lime); --btn-fg: var(--lime-ink); --btn-border: var(--lime); }
[data-theme="dark"] .btn:hover { background: var(--lime-bright); border-color: var(--lime-bright); color: var(--lime-ink); box-shadow: 0 8px 28px rgba(216, 242, 94, 0.14); }
[data-theme="dark"] .btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--line-strong); }
[data-theme="dark"] .btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
[data-theme="dark"] .btn--light { --btn-bg: var(--panel-ink); --btn-fg: var(--panel); --btn-border: var(--panel-ink); }
[data-theme="dark"] .btn--light:hover { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 27px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.61rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  background: color-mix(in srgb, var(--card) 60%, transparent);
  white-space: nowrap;
}
.pill--lime { background: var(--lime); border-color: transparent; color: var(--lime-ink); }
.pill--accent { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.pill--success { background: var(--success-soft); border-color: transparent; color: var(--success); }
.pill--warning { background: var(--warning-soft); border-color: transparent; color: var(--warning); }
.pill--danger { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.pill .dot { width: 5px; height: 5px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Signal bar ---------- */

.signal-bar {
  background: #111214;
  color: #e9e7de;
  border-bottom: 1px solid #25262a;
  position: relative;
  z-index: 110;
}
.signal-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 34px;
  padding-block: 6px;
}
.signal-brand, .signal-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.585rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #b6b3aa;
  white-space: nowrap;
}
.signal-brand { color: #e6e3da; }
.signal-meta .signal-live { color: #d8f25e; }
.signal-sep { color: #4b4d53; }
.signal-inner .dot { width: 5px; height: 5px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  backdrop-filter: blur(18px) saturate(1.35);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 30px rgba(20, 18, 10, 0.06); }
[data-theme="dark"] .site-header.is-scrolled { box-shadow: 0 6px 30px rgba(0, 0, 0, 0.32); }

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: 0 0 auto;
  line-height: 1;
}
.logo-mark {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--lime);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transition: transform 0.4s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(90deg); background: var(--accent); color: #fff; }
.logo-mark svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; }
[data-theme="dark"] .logo-mark { background: var(--lime); color: var(--lime-ink); }
[data-theme="dark"] .logo:hover .logo-mark { background: var(--accent); color: #fff; }
.logo-type { display: flex; flex-direction: column; gap: 3px; }
.logo-word {
  font-size: 1.22rem;
  font-weight: 680;
  letter-spacing: -0.05em;
  color: var(--ink);
}
.logo-slash { color: var(--accent); font-weight: 500; margin-inline: 1px; }
.logo-tag {
  font-family: var(--font-mono);
  font-size: 0.47rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-item { position: relative; }
.nav-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 40px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 0.805rem;
  font-weight: 540;
  letter-spacing: -0.008em;
  color: var(--ink-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.nav-trigger:hover, .nav-trigger.is-active { background: var(--card); color: var(--ink); }
.nav-trigger.is-active { box-shadow: inset 0 0 0 1px var(--line); }
.nav-trigger .chev { width: 11px; height: 11px; stroke: currentColor; stroke-width: 1.7; opacity: 0.55; transition: transform 0.25s var(--ease); }
.nav-item.is-open .nav-trigger { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.nav-item.is-open .chev { transform: rotate(180deg); }

.nav-drop {
  position: absolute;
  top: calc(100% + 13px);
  left: 50%;
  width: 570px;
  max-width: calc(100vw - 32px);
  transform: translate(-50%, 7px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  z-index: 20;
  overflow: hidden;
}
.nav-drop::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 220px at 85% -20%, color-mix(in srgb, var(--lime) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.nav-item.is-open .nav-drop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav-drop-grid { display: grid; grid-template-columns: 0.85fr 1.55fr; gap: 4px; position: relative; }
.nav-drop-intro {
  padding: 17px 16px 15px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.nav-drop-intro .mono { color: var(--accent); font-size: 0.58rem; }
.nav-drop-intro p { font-size: 0.8rem; line-height: 1.5; color: var(--muted); margin: 0; }
.nav-drop-intro .nav-count { font-family: var(--font-mono); font-size: 0.58rem; color: var(--faint); letter-spacing: 0.08em; text-transform: uppercase; }
.nav-drop-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 4px; }
.nav-drop-links--single { grid-template-columns: 1fr; }
.nav-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 11px;
  border-radius: 9px;
  text-decoration: none;
  transition: background 0.2s var(--ease);
}
.nav-link:hover { background: var(--paper); }
.nav-link-title { font-size: 0.815rem; font-weight: 590; letter-spacing: -0.01em; color: var(--ink); line-height: 1.3; }
.nav-link-desc { font-size: 0.68rem; line-height: 1.35; color: var(--muted); }
.nav-link:hover .nav-link-title { color: var(--accent); }

.header-tools { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
  flex: 0 0 auto;
}
.icon-btn:hover { background: var(--card); border-color: var(--line-strong); color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.65; }
.header-data { margin-left: 4px; }
.menu-btn { display: none; position: relative; }
.menu-btn span {
  position: absolute;
  width: 15px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 18.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 18.5px; transform: rotate(-45deg); }

.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Nav backdrop on mobile */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 10, 11, 0.45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.nav-scrim.is-open { opacity: 1; visibility: visible; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-top: clamp(54px, 7vw, 88px);
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(4, minmax(0, 0.7fr));
  gap: 32px;
  padding-bottom: 60px;
}
.footer-brand { max-width: 310px; }
.footer-brand .logo { margin-bottom: 17px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.65; color: var(--muted); margin-bottom: 18px; }
.footer-signal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-col h3 {
  margin: 2px 0 15px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col li { margin: 0; }
.footer-col a {
  display: inline-block;
  font-size: 0.79rem;
  line-height: 1.4;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-col a:hover { color: var(--accent); transform: translateX(2px); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-block: 20px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
}
.footer-legal { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-legal a { text-decoration: none; color: var(--muted); }
.footer-legal a:hover { color: var(--ink); }
.footer-note {
  margin: 0;
  max-width: 720px;
  font-size: 0.62rem;
  line-height: 1.6;
  letter-spacing: 0.015em;
  text-transform: none;
  color: var(--faint);
}
.footer-wordmark {
  margin-top: 34px;
  margin-bottom: -0.22em;
  font-size: clamp(4rem, 15vw, 12rem);
  font-weight: 680;
  letter-spacing: -0.075em;
  line-height: 0.8;
  color: color-mix(in srgb, var(--ink) 7%, transparent);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.footer-wordmark .logo-slash { color: color-mix(in srgb, var(--accent) 26%, transparent); }

/* ---------- Forms / newsletter ---------- */

.newsletter-form { position: relative; display: grid; gap: 9px; }
.field-row { display: flex; gap: 8px; }
.field-row input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 15px;
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--panel-ink);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field-row input::placeholder { color: var(--panel-muted); }
.field-row input:focus { border-color: var(--lime); background: rgba(255, 255, 255, 0.07); }
.field-row .btn { flex: 0 0 auto; }
.form-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--panel-muted);
}
.form-message {
  margin: 0;
  padding: 10px 13px;
  border: 1px solid color-mix(in srgb, var(--lime) 40%, transparent);
  border-radius: 9px;
  background: rgba(216, 242, 94, 0.08);
  color: var(--lime);
  font-size: 0.78rem;
  line-height: 1.45;
}
.form-message[hidden] { display: none; }

/* ---------- Search dialog ---------- */

.search-dialog {
  width: min(720px, calc(100vw - 28px));
  max-height: min(78vh, 660px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin: auto;
}
.search-dialog::backdrop {
  background: rgba(12, 12, 14, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.search-dialog[open] { animation: dialogIn 0.24s var(--ease); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
.search-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.search-top svg { width: 18px; height: 18px; stroke: var(--muted); stroke-width: 1.7; flex: 0 0 auto; }
.search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 1rem;
  outline: none;
  color: var(--ink);
}
.search-input::placeholder { color: var(--faint); }
.search-top kbd {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 6px;
  white-space: nowrap;
}
.search-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.search-close:hover { background: var(--paper); color: var(--ink); }
.search-close svg { width: 14px; height: 14px; stroke: currentColor; }
.search-body { padding: 12px; overflow-y: auto; max-height: calc(78vh - 72px); }
.search-status {
  padding: 9px 10px 11px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.search-group-label {
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.search-result {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 12px;
  border-radius: 11px;
  text-decoration: none;
  transition: background 0.16s var(--ease);
}
.search-result:hover, .search-result.is-selected { background: var(--paper); }
.search-result-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
}
.search-result-body { min-width: 0; }
.search-result-title { display: block; font-size: 0.84rem; font-weight: 590; color: var(--ink); line-height: 1.3; }
.search-result-desc { display: block; font-size: 0.68rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
.search-result-arrow { margin-left: auto; color: var(--faint); font-size: 0.8rem; }
.search-empty { padding: 36px 18px; text-align: center; color: var(--muted); font-size: 0.86rem; }
.search-empty strong { color: var(--ink); display: block; margin-bottom: 3px; }

/* ---------- Utility ---------- */

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.noscript-note {
  padding: 12px 16px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 0.8rem;
  text-align: center;
}

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.in { 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;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
