/* ==========================================================================
   global.css — shared base for every page
   Dark theme · Outfit · Fift Group accent gradient #003F95 → #002A63
   GLOBAL RULE: no visible borders anywhere. Separation via space / fill / shadow.
   Page-specific rules live in <page>/<page>.css
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* Tokens ------------------------------------------------------------------ */
:root {
  /* Brand — accent is a gradient */
  --accent-a: #003F95;
  --accent-b: #002A63;
  --accent: #003F95;                              /* solid fallback for single-colour uses */
  --accent-grad: linear-gradient(135deg, var(--accent-a) 0%, var(--accent-b) 100%);
  --accent-text: #6ea2ec;                         /* lightened tint for legible accent text on dark */
  --accent-ink: #ffffff;                          /* text sitting on the accent fill */

  /* Surface — dark grey gradient 8→15 */
  --bg-0: #080808;
  --bg-1: #0f0f0f;

  /* Ink */
  --fg: #f4f2ee;
  --muted: #a2a09b;
  --faint: #6f6d69;

  /* Fills (replace all borders) */
  --glass-bg: rgba(17, 17, 18, 0.55);
  --panel-bg: rgba(20, 20, 22, 0.92);
  --field-bg: rgba(255, 255, 255, 0.05);
  --hover-bg: rgba(255, 255, 255, 0.08);
  --hover-bg-2: rgba(255, 255, 255, 0.14);

  /* Type */
  --font: 'Outfit', system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: 'Outfit', ui-monospace, Consolas, monospace;

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
  --header-h: 74px;
  --section-y: 120px;
  --radius: 14px;
  --radius-sq: 6px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: auto; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 60%, var(--bg-0) 100%);
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; cursor: pointer; }

/* Focus ring kept for accessibility (a focus indicator, not a resting border) */
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* Floating background blobs ---------------------------------------------- */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  will-change: transform;
}
body::before {
  width: 46vw;
  height: 46vw;
  top: -8vw;
  left: -6vw;
  background: radial-gradient(circle, rgba(0, 63, 149, 0.28), transparent 70%);
  animation: blob-a 26s var(--ease) infinite alternate;
}
body::after {
  width: 40vw;
  height: 40vw;
  bottom: -10vw;
  right: -6vw;
  background: radial-gradient(circle, rgba(0, 42, 99, 0.26), transparent 70%);
  animation: blob-b 32s var(--ease) infinite alternate;
}
@keyframes blob-a { to { transform: translate3d(8vw, 6vw, 0) scale(1.15); } }
@keyframes blob-b { to { transform: translate3d(-7vw, -5vw, 0) scale(1.1); } }

/* Lenis ------------------------------------------------------------------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Type helpers ------------------------------------------------------------ */
.h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.lede { color: var(--muted); max-width: 62ch; font-weight: 300; font-size: 18px; }
.small { font-size: 14px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* Layout ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section .eyebrow { margin-bottom: 12px; }
.section .lede { margin-top: 18px; }

.site-main { padding-top: var(--header-h); }

/* ==========================================================================
   Buttons — reusable (borderless)
   ========================================================================== */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  margin: 1px;
  border-radius: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  background-size: 220% 100%;            /* room for the swipe */
  background-position: 0% 0;
  transition: background-position 0.55s var(--ease), color 0.25s var(--ease), filter 0.25s var(--ease);
}
.btn:active { filter: brightness(0.96); }

/* Primary — accent gradient, swipes on hover */
.btn--primary {
  background-image: linear-gradient(120deg, var(--accent-b) 0%, var(--accent-a) 50%, var(--accent-b) 100%);
  color: var(--accent-ink);
}
.btn--primary:hover { background-position: 100% 0; }

/* Secondary — subtle fill, swipes on hover */
.btn--secondary {
  background-image: linear-gradient(120deg, var(--hover-bg) 0%, var(--hover-bg-2) 50%, var(--hover-bg) 100%);
  color: var(--fg);
}
.btn--secondary:hover { background-position: 100% 0; }

/* Ghost — text only */
.btn--ghost { background: transparent; color: var(--muted); padding-inline: 6px; }
.btn--ghost:hover { color: var(--fg); }

.btn--lg { height: 42px; padding: 0 12px; font-size: 15px; border-radius: 10px; }

/* ==========================================================================
   Form controls — reusable (borderless)
   ========================================================================== */
.field { display: grid; gap: 8px; }
.field > label { font-size: 13px; font-weight: 500; color: var(--muted); }

.input,
.textarea,
.select {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  color: var(--fg);
  background: var(--field-bg);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: background 0.2s var(--ease);
}
.input::placeholder,
.textarea::placeholder { color: var(--faint); }

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.09);   /* no glow — background shift only */
}
.textarea { resize: vertical; min-height: 140px; }
.select { appearance: none; cursor: pointer; }

/* ==========================================================================
   Header / navigation — glassmorphic, borderless
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  z-index: -1;
}

.nav-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;      /* brand left, CTAs right */
  gap: 20px;
  width: 100%;
}

/* Brand — logo + "Group", logo matches text cap height */
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
}
.nav-brand__logo {
  height: 1.1em;
  width: auto;
  filter: brightness(0) invert(1);
}
.nav-brand__text { line-height: 1; font-weight: 600; font-size: 16px; }   /* slightly bigger */

/* Menu wrapper — transparent to layout on desktop */
.nav-menu { display: contents; }

/* Page links — squared pill, aligned to the right (beside the CTAs) */
.nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);     /* centred on screen */
  display: flex;
  align-items: stretch;
  gap: 6px;                             /* breathing room between buttons */
  height: 36px;                         /* same height as the CTA buttons */
  padding: 3px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06); /* glassmorphic container, no border */
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}

.nav-item { position: static; display: flex; }

.nav-item > a {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: var(--radius-sq);
  font-weight: 400;
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-item:hover > a,
.nav-item:focus-within > a { background: var(--hover-bg-2); }
.nav a[aria-current="page"] { color: var(--accent-text); }

/* Right-hand CTAs — identical to the page buttons */
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { height: 36px; font-weight: 400; }   /* match pill height; not bold */

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--hover-bg);
  border-radius: var(--radius-sq);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
}

/* Mega menu --------------------------------------------------------------- */
.mega {
  position: absolute;
  top: calc(100% - 10px);               /* overlap the pill; no dead gap */
  left: 50%;
  right: auto;
  width: 600px;
  max-width: calc(100vw - 32px);
  padding-top: 22px;                    /* transparent bridge across the gap */
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  z-index: 60;
}
.nav-item:hover .mega,
.nav-item:focus-within .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega__grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
  height: 300px;                        /* fixed 600 × 300, no scroll */
  overflow: hidden;
  padding: 14px;
  border-radius: 16px;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(40px) saturate(1.2) brightness(0.5);   /* more blur + darkened */
  -webkit-backdrop-filter: blur(40px) saturate(1.2) brightness(0.5);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

.mega__list { display: grid; gap: 2px; align-content: center; }
.mega__list a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 10px;
  border-radius: 10px;
  color: var(--fg);
  transition: background 0.2s var(--ease);
}
.mega__list a::after {                  /* arrow reveals on hover */
  content: "→";
  margin-left: auto;
  padding-left: 8px;
  font-size: 15px;
  color: var(--accent-text);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.mega__list a:hover { background: var(--hover-bg); }
.mega__list a:hover::after { opacity: 1; transform: translateX(0); }
.mega__txt { display: grid; gap: 1px; min-width: 0; }
.mega__txt strong { font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.mega__txt small { color: var(--muted); font-size: 12px; }

/* Graphic thumbnails — flat tiles */
.mega__ico {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  background: var(--accent-grad);
}
.mega__ico[data-gfx="2"] { background: linear-gradient(135deg, #9aa4c0, #23262f); }
.mega__ico[data-gfx="3"] { background: linear-gradient(135deg, #7fa0cf, #1c2430); }
.mega__ico[data-gfx="4"] { background: linear-gradient(135deg, #6f86b8, #202634); }
.mega__ico[data-gfx="5"] { background: linear-gradient(135deg, #8ea6d6, #242a38); }
.mega__ico[data-gfx="6"] { background: linear-gradient(135deg, #a7bce0, #2a3040); }

/* Featured panel — flat */
.mega__feature {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: end;
  gap: 6px;
  padding: 18px;
  border-radius: 12px;
  color: #fff;
  background:
    radial-gradient(120% 100% at 15% 10%, rgba(0, 63, 149, 0.5), transparent 60%),
    #121317;
  transition: background 0.3s var(--ease);
}
.mega__feature:hover {
  background:
    radial-gradient(120% 100% at 15% 10%, rgba(0, 63, 149, 0.7), transparent 60%),
    #141621;
}
.mega__feature strong { position: relative; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.mega__feature small { position: relative; color: var(--accent-text); font-size: 13px; }

/* ---- Lucide icons + enriched dropdown chrome ---- */
:root {
  --ic-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
}

/* icon containers centre a Lucide glyph, gradient background kept */
.mega__ico { display: flex; align-items: center; justify-content: center; }
.mega__ico > svg { width: 56%; height: 56%; color: #fff; }

/* base option arrow rendered as a Lucide glyph */
.mega__list a::after {
  content: "";
  width: 16px;
  height: 16px;
  padding: 0;
  -webkit-mask: var(--ic-arrow) center / contain no-repeat;
  mask: var(--ic-arrow) center / contain no-repeat;
  background-color: var(--accent-text);
}

/* feature graphic cards (Research, About): badge + arrow + hover */
.mega__feature { transition: background 0.3s var(--ease), transform 0.3s var(--ease); }
.mega__feature:hover { transform: translateY(-2px); }
.mega__feature::before {
  content: "Overview";
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.mega[aria-label="Research menu"] .mega__feature::before { content: "Programme"; }
.mega[aria-label="About menu"] .mega__feature::before { content: "The group"; }
.mega__feature::after {
  content: "";
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 1;
  width: 22px;
  height: 22px;
  -webkit-mask: var(--ic-arrow) center / contain no-repeat;
  mask: var(--ic-arrow) center / contain no-repeat;
  background-color: var(--accent-text);
  transition: transform 0.3s var(--ease);
}
.mega__feature:hover::after { transform: translateX(4px); }

/* Research (5) — rows share the full panel height evenly */
.mega[aria-label="Research menu"] .mega__list {
  align-content: stretch;
  grid-auto-rows: 1fr;
  gap: 4px;
}
.mega[aria-label="Research menu"] .mega__list li { display: flex; }
.mega[aria-label="Research menu"] .mega__list a { flex: 1; }

/* ===== Our Companies — two 50/50 image cards + a wide short card ===== */
.mega[aria-label="Our Companies menu"] .mega__grid { grid-template-columns: 1fr; }
.mega[aria-label="Our Companies menu"] .mega__feature { display: none; }
.mega[aria-label="Our Companies menu"] .mega__list {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  gap: 12px;
  align-content: stretch;
}
.mega[aria-label="Our Companies menu"] .mega__list li { display: flex; }
.mega[aria-label="Our Companies menu"] .mega__list li:nth-child(3) { grid-column: 1 / -1; }

/* image cards */
.mega[aria-label="Our Companies menu"] .mega__list a {
  position: relative;
  overflow: hidden;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  padding: 0;
  border-radius: 12px;
  background: none;
  transition: transform 0.3s var(--ease);
}
.mega[aria-label="Our Companies menu"] .mega__list li:nth-child(-n+2) a:hover { transform: translateY(-2px); }

.mega[aria-label="Our Companies menu"] .mega__ico {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  background-repeat: no-repeat;
  transition: transform 0.5s var(--ease);
}
.mega[aria-label="Our Companies menu"] .mega__list a:hover .mega__ico { transform: scale(1.06); }

/* Nexuss — purple gradient (swap url() for a real photo) */
.mega[aria-label="Our Companies menu"] .mega__list li:nth-child(1) .mega__ico {
  background-image:
    linear-gradient(to top, rgba(14, 5, 30, 0.92) 0%, rgba(14, 5, 30, 0.25) 55%, transparent 100%),
    url(assets/img/Nexusslogo.png),
    linear-gradient(160deg, #8b5cf6 0%, #3a1d78 100%);
  background-size: auto, 44%, cover;
  background-position: center, center 38%, center;
}
/* Nemoss — light-blue pastel gradient */
.mega[aria-label="Our Companies menu"] .mega__list li:nth-child(2) .mega__ico {
  background-image:
    linear-gradient(to top, rgba(6, 14, 28, 0.9) 0%, rgba(6, 14, 28, 0.18) 55%, transparent 100%),
    url(assets/img/Nemosslogo.png),
    linear-gradient(160deg, #d3e6ff 0%, #93c0f2 100%);
  background-size: auto, 44%, cover;
  background-position: center, center 38%, center;
}

/* badge (top-left) */
.mega[aria-label="Our Companies menu"] .mega__list li:nth-child(-n+2) a::before {
  content: "Company";
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.mega[aria-label="Our Companies menu"] .mega__list li:nth-child(1) a::before { content: "Flagship"; }
.mega[aria-label="Our Companies menu"] .mega__list li:nth-child(2) a::before { content: "Emerging"; }

/* arrow (top-right, reveals on hover) */
.mega[aria-label="Our Companies menu"] .mega__list li:nth-child(-n+2) a::after {
  content: "";
  display: block;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  margin: 0;
  -webkit-mask: var(--ic-arrow) center / contain no-repeat;
  mask: var(--ic-arrow) center / contain no-repeat;
  background-color: #fff;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 2;
}
.mega[aria-label="Our Companies menu"] .mega__list li:nth-child(-n+2) a:hover::after { opacity: 1; transform: translateX(0); }

/* text over the image */
.mega[aria-label="Our Companies menu"] .mega__txt {
  position: relative;
  z-index: 1;
  padding: 12px 14px;
  gap: 2px;
}
.mega[aria-label="Our Companies menu"] .mega__txt strong { font-size: 16px; color: #fff; }
.mega[aria-label="Our Companies menu"] .mega__txt small { color: rgba(255, 255, 255, 0.82); }
.mega[aria-label="Our Companies menu"] .mega__list li:nth-child(-n+2) .mega__txt::after {
  display: block;
  font-size: 12px;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.66);
}
.mega[aria-label="Our Companies menu"] .mega__list li:nth-child(1) .mega__txt::after { content: "Core platform & infrastructure"; }
.mega[aria-label="Our Companies menu"] .mega__list li:nth-child(2) .mega__txt::after { content: "Emerging products & ventures"; }

/* wide short card — text left, badge + arrow right */
.mega[aria-label="Our Companies menu"] .mega__list li:nth-child(3) a {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 16px;
  background: var(--hover-bg);
  border-radius: 12px;
}
.mega[aria-label="Our Companies menu"] .mega__list li:nth-child(3) a:hover { background: var(--hover-bg-2); }
.mega[aria-label="Our Companies menu"] .mega__list li:nth-child(3) .mega__ico { display: none; }
.mega[aria-label="Our Companies menu"] .mega__list li:nth-child(3) .mega__txt { padding: 0; }
.mega[aria-label="Our Companies menu"] .mega__list li:nth-child(3) .mega__txt strong { color: var(--fg); font-size: 15px; }
.mega[aria-label="Our Companies menu"] .mega__list li:nth-child(3) .mega__txt small { color: var(--muted); }
.mega[aria-label="Our Companies menu"] .mega__list li:nth-child(3) a::before {
  content: "Group";
  order: 2;
  margin-left: auto;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--hover-bg-2);
  color: var(--fg);
  font-size: 11px;
  font-weight: 600;
}
.mega[aria-label="Our Companies menu"] .mega__list li:nth-child(3) a::after {
  content: "";
  order: 3;
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 0 0 10px;
  flex: none;
  -webkit-mask: var(--ic-arrow) center / contain no-repeat;
  mask: var(--ic-arrow) center / contain no-repeat;
  background-color: var(--accent-text);
  opacity: 1;
  transform: none;
  transition: transform 0.25s var(--ease);
}
.mega[aria-label="Our Companies menu"] .mega__list li:nth-child(3) a:hover::after { transform: translateX(4px); }

/* ===== About — wide graphic left, single-column options right ===== */
.mega[aria-label="About menu"] .mega__grid { grid-template-columns: 300px 1fr; }
.mega[aria-label="About menu"] .mega__feature { order: -1; }
.mega[aria-label="About menu"] .mega__list {
  grid-template-columns: 1fr;
  align-content: stretch;
  grid-auto-rows: 1fr;
  gap: 2px;
}
.mega[aria-label="About menu"] .mega__list li { display: flex; }
.mega[aria-label="About menu"] .mega__list a { flex: 1; gap: 10px; }
.mega[aria-label="About menu"] .mega__txt small { display: none; }
.mega[aria-label="About menu"] .mega__ico { width: 26px; height: 26px; border-radius: 7px; }

/* Flat items (single-section pages) have no mega */
.nav-item--flat .mega { display: none; }

/* ==========================================================================
   Footer — borderless
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: 0;                        /* no gap between CTA and footer */
  padding-block: 64px 32px;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(0, 63, 149, 0.16), transparent 60%),
    rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.site-footer .container { container-type: inline-size; }

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr);
  gap: 48px;
  padding-bottom: 40px;
}

.site-footer__brand { display: grid; gap: 16px; align-content: start; }
.site-footer__tag { color: var(--muted); max-width: 34ch; font-weight: 300; }

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--hover-bg);
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.25s var(--ease), transform 0.2s var(--ease);
}
.footer-social:hover { background: var(--accent-grad); color: #fff; transform: translateY(-1px); }
.footer-social svg { display: block; }

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.site-footer__col { display: grid; gap: 10px; align-content: start; }
.site-footer__col h3 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faint);
  margin-bottom: 2px;
}
.site-footer__col a { color: var(--muted); font-size: 14px; width: fit-content; transition: color 0.2s var(--ease); }
.site-footer__col a:hover { color: var(--accent-text); }

/* Oversized wordmark */
.site-footer__wordmark {
  font-size: clamp(56px, 24cqw, 300px);   /* scales to span the 1200px container */
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  padding-block: 8px 4px;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--faint);
}
.site-footer__legal-links { display: flex; gap: 16px; }
.site-footer__legal-links a { color: var(--muted); }
.site-footer__legal-links a:hover { color: var(--fg); }
.site-footer__reg { margin-left: auto; }

@media (max-width: 860px) {
  .site-footer__top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .site-footer__reg { margin-left: 0; width: 100%; }
}

/* ==========================================================================
   CTA section — full-screen animated Silk background
   ========================================================================== */
.cta-silk {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
/* Always-animating CSS aurora (fallback + base beneath the WebGL silk) */
.cta-silk__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #090d16;
  transform: scale(1.12);
  transform-origin: center;
  will-change: transform;
}
.cta-silk__bg::before {
  content: "";
  position: absolute;
  inset: -45%;
  background: conic-gradient(from 0deg at 50% 50%,
    #06284f, #4b2ea0, #002a63, #0a3a86, #123f7a, #06284f);
  filter: blur(70px);
  animation: cta-aurora 24s linear infinite;
}
@keyframes cta-aurora { to { transform: rotate(360deg); } }

.endcap__bg .silk {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 1;                           /* silk fully visible */
  filter: blur(1px);                    /* light softness only */
  transform: scale(1.12);               /* cover blurred edges + mouse drift (JS overrides) */
  transform-origin: center;
  will-change: transform;
}
.endcap__bg .silk canvas { width: 100% !important; height: 100% !important; display: block; }

/* CTA + footer share one continuous silk background */
.endcap { position: relative; overflow: hidden; }
.endcap__bg { position: absolute; inset: 0; z-index: 0; }
.endcap__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 80% at 50% 30%, transparent 0%, rgba(8, 8, 8, 0.5) 100%),
    linear-gradient(to bottom, rgba(8, 8, 8, 0.4), rgba(8, 8, 8, 0.72));
}
.endcap__cta { position: relative; z-index: 2; min-height: 82vh; display: grid; place-items: center; }
.site-footer--onsilk { position: relative; z-index: 2; background: transparent; }
.cta-silk__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(120% 80% at 50% 50%, transparent 0%, rgba(8, 8, 8, 0.55) 100%),
    linear-gradient(to bottom, rgba(8, 8, 8, 0.35), rgba(8, 8, 8, 0.65));
}
.cta-silk__inner {
  position: relative;
  z-index: 3;
  text-align: center;
  display: grid;
  gap: 22px;
  justify-items: center;
  padding-block: var(--section-y);
}
.cta-silk__inner .lede { margin-inline: auto; }
.cta-silk__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 6px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  :root { --section-y: 80px; }

  .nav-toggle { display: inline-block; }

  .nav-menu {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 24px var(--gutter) 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
  }
  .nav-menu[data-open="true"] { display: flex; }

  .nav {
    position: static;
    transform: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    height: auto;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-item { width: 100%; }
  .nav-item > a { width: 100%; padding: 12px 4px; font-size: 16px; border-radius: 8px; }
  .mega { display: none; }

  .nav-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .nav-cta .btn { width: 100%; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
  * { scroll-behavior: auto !important; }
}
