/* ============================================================
   ISHARA MAHANAMA — Executive identity system
   Deep-neutral foundation · restrained luminous accents
   No frameworks. System-first, fast, accessible.
   ============================================================ */
:root {
  --bg: #060a13;
  --bg-soft: #0a1120;
  --card: #0c1528;
  --card-2: #0e1930;
  --ink: #edf1f7;
  --muted: #a4b0c6;
  --faint: #7c89a1;
  --line: rgba(237, 241, 247, 0.12);
  --line-soft: rgba(237, 241, 247, 0.07);
  --gold: #c9a86a;
  --gold-ink: #0a0e18;
  --gold-soft: rgba(201, 168, 106, 0.13);
  --teal: #7fe3d4;
  --teal-soft: rgba(127, 227, 212, 0.1);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtle architectural grid backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(237, 241, 247, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 241, 247, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(1100px 480px at 85% -8%, rgba(201, 168, 106, 0.09), transparent 60%),
    radial-gradient(900px 520px at 8% 4%, rgba(127, 227, 212, 0.07), transparent 60%),
    var(--bg);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }

p { margin: 0 0 1.1em; }

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: #fff; }

img { max-width: 100%; height: auto; }

::selection { background: rgba(201, 168, 106, 0.4); }

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

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 10px 10px;
  transition: top 0.2s ease;
  text-decoration: none;
}
.skip-link:focus { top: 0; color: #000; }

/* Layout */
.wrap {
  width: min(var(--max), 100% - 3rem);
  margin-inline: auto;
}
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tight { padding: clamp(2.2rem, 4vw, 3.5rem) 0; }

/* Eyebrow + lede */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.lede {
  font-size: clamp(1.1rem, 1.8vw, 1.32rem);
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.65;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 10, 19, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(201, 168, 106, 0.6);
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold);
  background: rgba(201, 168, 106, 0.07);
  flex: none;
}
.brand-text { line-height: 1.2; }
.brand-text strong { display: block; font-size: 0.98rem; letter-spacing: 0.01em; }
.brand-text span { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.site-nav a[aria-current="page"] { color: var(--gold); }

.nav-cta {
  border: 1px solid rgba(201, 168, 106, 0.55);
  color: var(--gold) !important;
  margin-left: 0.5rem;
}
.nav-cta:hover { background: var(--gold) !important; color: #0a0e18 !important; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  font-size: 0.95rem;
  cursor: pointer;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  overflow: clip;
}
/* Static hero visual (zero-CPU orbital diagram) */
.hero-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
}
.hero-visual svg { width: 100%; height: 100%; display: block; }

/* At-a-Glance executive briefing panel */
.glance {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1.8rem;
}
.glance > div { background: rgba(10, 17, 32, 0.88); padding: 1.25rem 1.35rem; }
.glance dt {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.glance dd { margin: 0; font-size: 0.99rem; color: var(--ink); font-weight: 600; }
.glance dd span { display: block; margin-top: 0.25rem; font-weight: 400; font-size: 0.88rem; color: var(--muted); }

/* Key-facts tables (venture profiles, comparisons) */
.facts-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0;
  font-size: 0.96rem;
}
.facts-table th, .facts-table td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-soft);
  vertical-align: top;
}
.facts-table th {
  width: 11rem;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(201, 168, 106, 0.06);
}
.facts-table td { color: #c6cfdf; }
.table-scroll { overflow-x: auto; }

/* Plain-language explainer boxes */
.explainer {
  border: 1px solid rgba(127, 227, 212, 0.32);
  background: var(--teal-soft);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin: 1.4em 0;
  font-size: 0.94rem;
  color: var(--muted);
}
.explainer strong { color: var(--teal); }

/* Client-side filter bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 1.6rem 0 0; }
.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 1.05rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.filter-btn:hover { color: #fff; border-color: var(--gold); }
.filter-btn[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #0a0e18; }
.venture-card[hidden] { display: none; }
.filter-count { font-size: 0.86rem; color: var(--faint); margin-top: 0.9rem; }
.no-results { color: var(--muted); }

/* Site search */
.search-box { display: flex; gap: 0.6rem; margin-top: 1.4rem; }
.search-box input {
  flex: 1;
  background: rgba(6, 10, 19, 0.7);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  padding: 0.85rem 1rem;
}
.search-box input:focus { border-color: var(--gold); outline: 2px solid rgba(201, 168, 106, 0.35); }
.search-results { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 0.8rem; }
.search-results li[hidden] { display: none; }
.search-results a {
  display: block;
  text-decoration: none;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  background: rgba(12, 21, 40, 0.55);
}
.search-results a:hover { border-color: var(--gold); }
.search-results strong { color: var(--ink); }
.search-results p { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.93rem; }
.search-results .path { font-size: 0.76rem; color: var(--faint); font-family: var(--mono); }
.search-count { font-size: 0.86rem; color: var(--faint); margin-top: 0.9rem; }

/* Business map diagram */
.map-wrap {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(6, 10, 19, 0.6);
  padding: 1rem;
  margin-top: 1.6rem;
  overflow-x: auto;
}
.map-wrap svg { min-width: 640px; width: 100%; height: auto; display: block; }
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { margin: 0.15em 0 0.35em; }
.hero h1 .accent { color: var(--gold); font-style: italic; }
.hero-role {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero-domains {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
}
.hero-domains li {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 12px;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--gold); color: #0a0e18; }
.btn-solid:hover { background: #d9bc82; color: #000; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-small { padding: 0.6rem 1.05rem; font-size: 0.9rem; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 1.5rem;
  justify-content: start;
  margin: 2.2rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line-soft);
}
.hero-facts div { line-height: 1.45; }
.hero-facts dt { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.hero-facts dd { margin: 0.2rem 0 0; font-weight: 600; font-size: 0.98rem; }

/* Portrait */
.portrait-frame { position: relative; justify-self: center; width: min(380px, 100%); }
.portrait-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(201, 168, 106, 0.4);
  box-shadow: var(--shadow);
  background: #0a1120;
}
.portrait-badge {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: -1.1rem;
  background: rgba(10, 17, 32, 0.92);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 1.1rem;
  font-size: 0.85rem;
  color: var(--muted);
  backdrop-filter: blur(8px);
}
.portrait-badge strong { color: var(--ink); display: block; font-size: 0.92rem; }

/* ============ Cards ============ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }

.card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.7rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover { border-color: rgba(201, 168, 106, 0.45); transform: translateY(-3px); }
.card .kicker {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.card h3 { margin: 0 0 0.5rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--gold); }
.card p { color: var(--muted); font-size: 0.99rem; margin-bottom: 1rem; }
.card .meta { font-size: 0.85rem; color: var(--faint); margin-bottom: 1.1rem; }
.card-link {
  font-weight: 650;
  font-size: 0.93rem;
  color: var(--teal);
  text-decoration: none;
}
.card-link:hover { color: var(--gold); }

.venture-role {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-ink);
  background: var(--gold);
  border-radius: 999px;
  padding: 0.22rem 0.8rem;
  margin-bottom: 0.9rem;
}
.venture-cat { font-size: 0.85rem; color: var(--faint); margin-bottom: 0.9rem; }

/* Snapshot band */
.band {
  background: linear-gradient(180deg, rgba(201, 168, 106, 0.06), rgba(201, 168, 106, 0.015));
  border-block: 1px solid var(--line-soft);
}
.snap-list {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}
.snap-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  background: rgba(6, 10, 19, 0.5);
}
.snap-list a:hover { border-color: rgba(201, 168, 106, 0.5); }
.snap-list strong { font-size: 1.02rem; }
.snap-list span { font-size: 0.85rem; color: var(--faint); text-align: right; }

/* ============ Tech map ============ */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 1.8rem; }
.tech-domain {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: rgba(12, 21, 40, 0.6);
}
.tech-domain h3 { font-size: 1.1rem; color: var(--gold); margin-bottom: 0.6rem; }
.tech-domain ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.95rem; }
.tech-domain li { margin-bottom: 0.25rem; }
.tech-domain.primary { border-color: rgba(201, 168, 106, 0.4); background: var(--gold-soft); }
.tech-domain.primary ul { color: var(--ink); }

/* ============ Timeline ============ */
.timeline {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.65rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: linear-gradient(var(--gold), rgba(201, 168, 106, 0.05));
}
.timeline li {
  position: relative;
  padding: 0 0 2rem 2.8rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 0.32rem;
  top: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--gold);
}
.timeline .stage {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.timeline h3 { margin: 0.3rem 0 0.4rem; font-size: 1.3rem; }
.timeline p { color: var(--muted); max-width: 68ch; margin-bottom: 0; }

/* ============ Q&A / FAQ ============ */
.qa { border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; margin-top: 1.6rem; }
.qa-block { padding: 1.4rem 1.6rem; border-bottom: 1px solid var(--line-soft); }
.qa-block:last-child { border-bottom: 0; }
.qa-block h3 { font-size: 1.05rem; color: var(--gold); margin-bottom: 0.4rem; }
.qa-block p, .qa-block ul { color: var(--muted); font-size: 0.99rem; margin-bottom: 0; }
.qa-block ul { padding-left: 1.15rem; }

details.faq {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 0.7rem;
  background: rgba(12, 21, 40, 0.55);
}
details.faq summary {
  cursor: pointer;
  padding: 1.05rem 1.25rem;
  font-weight: 650;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.4rem;
  line-height: 1;
  flex: none;
}
details.faq[open] summary::after { content: "–"; }
details.faq .faq-body { padding: 0 1.25rem 1.2rem; color: var(--muted); }
details.faq .faq-body p:last-child { margin-bottom: 0; }

/* ============ Breadcrumb ============ */
.breadcrumb { padding: 1.2rem 0 0; font-size: 0.86rem; color: var(--faint); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--faint); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

/* Page hero */
.page-hero { padding: clamp(2.5rem, 5vw, 4rem) 0 0.5rem; }
.page-hero h1 { margin: 0.15em 0 0.4em; font-size: clamp(2.3rem, 5vw, 3.6rem); }

/* Article */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  font-size: 0.88rem;
  color: var(--faint);
  border-block: 1px solid var(--line-soft);
  padding: 0.9rem 0;
  margin: 1.4rem 0 2rem;
}
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.prose h3 { margin-top: 1.8em; }
.prose p, .prose li { color: #c6cfdf; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose blockquote {
  border-left: 3px solid var(--gold);
  margin: 1.6em 0;
  padding: 0.4em 0 0.4em 1.2em;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.15rem;
}
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1.5em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.6rem 0.8rem; text-align: left; }
.prose th { background: rgba(201, 168, 106, 0.1); }

/* Related */
.related { margin-top: 2.5rem; }

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.8rem;
  align-items: start;
}
.contact-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.8rem;
  background: linear-gradient(180deg, var(--card-2), var(--card));
}
.contact-card h2, .contact-card h3 { margin-top: 0; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.4rem; }
.field input, .field textarea, .field select {
  width: 100%;
  background: rgba(6, 10, 19, 0.7);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  padding: 0.75rem 0.9rem;
}
.field input:focus, .field textarea:focus { border-color: var(--gold); outline: 2px solid rgba(201, 168, 106, 0.35); }
.field .hint { font-size: 0.83rem; color: var(--faint); margin-top: 0.3rem; }
.form-note {
  border: 1px solid rgba(201, 168, 106, 0.4);
  background: var(--gold-soft);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-size: 0.93rem;
  color: var(--ink);
}
.channel-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.8rem; }
.channel-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line-soft);
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
}
.channel-list a:hover { border-color: var(--gold); }
.channel-list small { color: var(--faint); display: block; }

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: rgba(4, 7, 13, 0.9);
  margin-top: 2rem;
  padding: 3rem 0 2rem;
  font-size: 0.93rem;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-grid h2, .footer-grid h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.9rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--gold); }
.footer-identity strong { color: var(--ink); font-family: var(--display); font-size: 1.2rem; display: block; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  border-top: 1px solid var(--line-soft);
  margin-top: 2.2rem;
  padding-top: 1.3rem;
  font-size: 0.84rem;
  color: var(--faint);
}

/* Back to top */
.to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 90;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 106, 0.5);
  background: rgba(10, 17, 32, 0.9);
  color: var(--gold);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.to-top.visible { opacity: 1; pointer-events: auto; }

/* Reveal on scroll (progressive enhancement only) */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait-frame { order: -1; width: min(300px, 80%); justify-self: start; }
  .grid-2, .grid-3, .snap-list, .contact-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(6, 10, 19, 0.98);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 0.8rem 1.2rem 1.2rem; }
  .site-nav a { display: block; padding: 0.75rem 0.6rem; }
  .nav-cta { margin: 0.4rem 0 0; text-align: center; }
  .hero-facts { grid-template-columns: 1fr 1fr; row-gap: 1rem; }
  .glance { grid-template-columns: 1fr 1fr; }
  .hero-visual { opacity: 0.3; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .wrap { width: min(var(--max), 100% - 2rem); }
  .grid-4, .tech-grid { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr; gap: 0.9rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1 1 100%; justify-content: center; }
  .glance { grid-template-columns: 1fr; }
  .facts-table th { width: 7.5rem; }
  .search-box { flex-direction: column; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* Print */
@media print {
  .site-header, .site-nav, .menu-toggle, .hero-ctas, .to-top, .hero-visual, .site-footer { display: none !important; }
  body { background: #fff; color: #111; }
  body::before, body::after { display: none; }
  a { color: #111; }
  .card, .tech-domain, .qa-block, details.faq { border-color: #ccc; background: #fff; }
}
