@charset "utf-8";
/* ==========================================================================
   EMA Advisory — design system
   Plan. Deliver. Achieve.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Sora';
  src: url('../fonts/sora-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --ink-950: #041015;
  --ink-900: #06141a;
  --ink-850: #081a22;
  --ink-800: #0b2028;
  --ink-700: #102d38;
  --ink-600: #16414f;

  --brand: #004d60;
  --brand-400: #367180;

  --accent: #37d2be;
  --accent-2: #58a6d8;
  --accent-text: #52ddc9;
  --accent-on: #032723;

  /* Red call-to-action. Same value in every theme and ink scope so the
     "Get in touch" button reads identically wherever it sits. */
  --red: #d92d20;
  --red-hover: #b42318;
  --red-on: #ffffff;
  --glow-red: 0 0 0 1px rgb(217 45 32 / 30%), 0 22px 60px -26px rgb(217 45 32 / 55%);

  --bg: var(--ink-900);
  --bg-alt: var(--ink-850);
  --surface: #0a1e26;
  --surface-2: #0e2831;
  --surface-3: #123441;
  --border: rgb(255 255 255 / 10%);
  --border-strong: rgb(255 255 255 / 20%);
  --text: #e9f2f4;
  --text-muted: #a2b8c0;
  --text-faint: #7c949d;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 40%);
  --shadow-md: 0 12px 32px -12px rgb(0 0 0 / 65%);
  --shadow-lg: 0 32px 70px -28px rgb(0 0 0 / 75%);
  --glow: 0 0 0 1px rgb(55 210 190 / 22%), 0 22px 60px -26px rgb(55 210 190 / 45%);

  --grid-line: rgb(255 255 255 / 4.5%);
  --scrim: rgb(4 16 21 / 72%);

  --font-display: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --maxw: 1240px;
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

  --ease: cubic-bezier(0.22, 0.85, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme='light'] {
  color-scheme: light;

  --bg: #f2f6f7;
  --bg-alt: #e9f0f2;
  --surface: #ffffff;
  --surface-2: #f6fafb;
  --surface-3: #e6eff1;
  --border: rgb(6 32 40 / 12%);
  --border-strong: rgb(6 32 40 / 26%);
  --text: #072028;
  --text-muted: #46626c;
  --text-faint: #556f78;

  --accent: #00807a;
  --accent-2: #2f7fae;
  --accent-text: #056b68;
  --accent-on: #ffffff;

  --shadow-sm: 0 1px 2px rgb(7 32 40 / 8%);
  --shadow-md: 0 14px 34px -18px rgb(7 32 40 / 30%);
  --shadow-lg: 0 34px 70px -34px rgb(7 32 40 / 34%);
  --glow: 0 0 0 1px rgb(0 134 125 / 25%), 0 22px 58px -30px rgb(0 134 125 / 45%);
  --grid-line: rgb(7 32 40 / 6%);
  --scrim: rgb(242 246 247 / 78%);
}

/* Always-dark scope: hero, ink panels, footer. */
.ink {
  color-scheme: dark;
  --bg: var(--ink-900);
  --bg-alt: var(--ink-850);
  --surface: rgb(255 255 255 / 4%);
  --surface-2: rgb(255 255 255 / 6.5%);
  --surface-3: rgb(255 255 255 / 10%);
  --border: rgb(255 255 255 / 12%);
  --border-strong: rgb(255 255 255 / 24%);
  --text: #e9f2f4;
  --text-muted: #a2b8c0;
  --text-faint: #93aab3;
  --accent: #37d2be;
  --accent-2: #58a6d8;
  --accent-text: #52ddc9;
  --accent-on: #032723;
  --grid-line: rgb(255 255 255 / 5%);
  color: var(--text);
}

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.16vw, 1.0625rem);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

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

img { height: auto; }

input,
button,
textarea,
select { font: inherit; color: inherit; }

button { cursor: pointer; }

a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }

a:hover { text-decoration-color: currentColor; }

ul, ol { padding-left: 1.15rem; }

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

::selection { background: var(--accent); color: var(--accent-on); }

hr { border: 0; border-top: 1px solid var(--border); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 1.4rem + 4.9vw, 5rem); }
h2 { font-size: clamp(1.95rem, 1.25rem + 2.8vw, 3.35rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + 0.85vw, 1.7rem); letter-spacing: -0.02em; }
h4 { font-size: 1.1rem; letter-spacing: -0.012em; }

p { text-wrap: pretty; }

.lede {
  font-size: clamp(1.075rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.55;
  color: var(--text-muted);
  font-weight: 350;
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1.15rem;
}

.eyebrow::before {
  content: '';
  inline-size: 1.75rem;
  block-size: 1px;
  background: currentColor;
  opacity: 0.65;
}

.eyebrow--center { justify-content: center; }

.muted { color: var(--text-muted); }

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

/* ---------- Layout ---------- */
.wrap {
  inline-size: min(100% - (var(--pad) * 2), var(--maxw));
  margin-inline: auto;
}

.wrap--narrow { inline-size: min(100% - (var(--pad) * 2), 900px); }

.section { padding-block: var(--section-y); position: relative; }

.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section--alt { background: var(--bg-alt); }

.section--ink {
  background: var(--ink-900);
  color: var(--text);
}

.section-head { max-width: 66ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.section-head--center { margin-inline: auto; text-align: center; }

.section-head--center .lede { margin-inline: auto; }

.stack > * + * { margin-top: 1rem; }

.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.65rem); }

.skip-link {
  position: absolute;
  inset-block-start: -100%;
  inset-inline-start: 1rem;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-on);
  padding: 0.7rem 1.2rem;
  border-radius: var(--r-xs);
  font-weight: 600;
}

.skip-link:focus { inset-block-start: 1rem; }

/* ---------- Decorative background ---------- */
.iso-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 8%, transparent 72%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 8%, transparent 72%);
}

.aurora {
  position: absolute;
  inset: -20% -10% auto -10%;
  block-size: 130%;
  pointer-events: none;
  filter: blur(72px);
  opacity: 0.55;
  z-index: 0;
}

.aurora span {
  position: absolute;
  display: block;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: drift 26s var(--ease) infinite alternate;
}

.aurora span:nth-child(1) {
  inline-size: 46vw; block-size: 46vw;
  inset-block-start: 2%; inset-inline-start: 4%;
  background: radial-gradient(circle, rgb(0 122 140 / 85%), transparent 66%);
}
.aurora span:nth-child(2) {
  inline-size: 40vw; block-size: 40vw;
  inset-block-start: 24%; inset-inline-end: 2%;
  background: radial-gradient(circle, rgb(55 210 190 / 55%), transparent 68%);
  animation-duration: 32s; animation-delay: -8s;
}
.aurora span:nth-child(3) {
  inline-size: 34vw; block-size: 34vw;
  inset-block-start: 46%; inset-inline-start: 32%;
  background: radial-gradient(circle, rgb(88 166 216 / 45%), transparent 70%);
  animation-duration: 38s; animation-delay: -16s;
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(4%, -6%, 0) scale(1.12); }
  100% { transform: translate3d(-5%, 5%, 0) scale(0.94); }
}

.noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-on);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: 0.925rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.btn:active { transform: translateY(0); }

.btn svg { inline-size: 1.05em; block-size: 1.05em; flex: none; }

.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  --btn-bg: var(--surface-2);
  border-color: var(--accent);
  box-shadow: none;
}

.btn--red {
  --btn-bg: var(--red);
  --btn-fg: var(--red-on);
  border-color: transparent;
}

.btn--red:hover {
  --btn-bg: var(--red-hover);
  box-shadow: var(--glow-red);
}

.btn--quiet {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  border-color: var(--border);
}

.btn--sm { padding: 0.55rem 1.05rem; font-size: 0.85rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent-text);
  text-decoration: none;
}

.link-arrow::after {
  content: '→';
  transition: transform 0.3s var(--ease);
}

.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.progress-bar {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  block-size: 2px;
  inline-size: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 120;
}

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
  border-block-end: 1px solid transparent;
}

.site-header.is-stuck {
  background: var(--scrim);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-block-end-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-block-size: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
  margin-inline-end: auto;
}

.brand-lockup {
  display: block;
  inline-size: clamp(148px, 16vw, 186px);
  aspect-ratio: 780 / 216;
  background-color: currentColor;
  color: var(--text);
  -webkit-mask: url('../img/logo.png') no-repeat center / contain;
  mask: url('../img/logo.png') no-repeat center / contain;
  transition: color 0.3s var(--ease);
}

.brand:hover .brand-lockup { color: var(--accent-text); }

.nav { display: flex; align-items: center; gap: 0.15rem; }

.nav a {
  position: relative;
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: var(--r-xs);
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.22s var(--ease);
}

.nav a::after {
  content: '';
  position: absolute;
  inset-block-end: 0.28rem;
  inset-inline-start: 0.85rem;
  inline-size: calc(100% - 1.7rem);
  block-size: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.32s var(--ease);
}

.nav a:hover,
.nav a[aria-current='page'] { color: var(--text); }

.nav a:hover::after,
.nav a[aria-current='page']::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; flex: none; }

.icon-btn {
  display: grid;
  place-items: center;
  inline-size: 2.5rem;
  block-size: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.22s var(--ease), background-color 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.icon-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.icon-btn svg { inline-size: 1.15rem; block-size: 1.15rem; }

.theme-toggle .sun { display: none; }
[data-theme='light'] .theme-toggle .sun { display: block; }
[data-theme='light'] .theme-toggle .moon { display: none; }

.nav-toggle { display: none; }

.nav a.nav-cta { display: none; }

/* Before the header sticks it floats over the always-dark hero, so it keeps
   dark-surface colours regardless of the chosen theme. */
[data-theme='light'] .site-header:not(.is-stuck) {
  color-scheme: dark;
  --text: #e9f2f4;
  --text-muted: #b3c6cd;
  --text-faint: #93aab3;
  --surface: rgb(255 255 255 / 6%);
  --surface-2: rgb(255 255 255 / 12%);
  --border: rgb(255 255 255 / 16%);
  --border-strong: rgb(255 255 255 / 28%);
  --accent: #37d2be;
  --accent-2: #58a6d8;
  --accent-text: #52ddc9;
  --accent-on: #032723;
  color: var(--text);
}

/* Mobile navigation */
@media (max-width: 940px) {
  .nav-toggle { display: grid; }

  .header-cta { display: none; }

  .nav {
    position: fixed;
    inset: 4.75rem 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 1rem var(--pad) 1.75rem;
    background: var(--bg);
    border-block-end: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

  .nav a { padding: 0.85rem 0.5rem; font-size: 1.05rem; border-block-end: 1px solid var(--border); border-radius: 0; }
  .nav a::after { display: none; }

  .nav a.nav-cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 1.25rem;
    padding: 0.85rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    background: var(--accent);
    color: var(--accent-on);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
  }

  /* The open drawer is a solid panel, so it always uses page-theme colours. */
  [data-theme='light'] .site-header:not(.is-stuck) .nav.is-open {
    color-scheme: light;
    --text: #072028;
    --text-muted: #46626c;
    --border: rgb(6 32 40 / 12%);
    --accent-on: #ffffff;
    --accent: #00867d;
    --accent-text: #056b68;
    color: var(--text);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(140% 100% at 50% -10%, #0a2e3a 0%, var(--ink-900) 52%, var(--ink-950) 100%);
  padding-block: clamp(4rem, 9vw, 7.5rem) clamp(4rem, 8vw, 7rem);
  margin-block-start: -4.75rem;
  padding-block-start: clamp(8.5rem, 13vw, 12rem);
}

.hero__content { position: relative; z-index: 2; max-width: 58rem; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.5rem 0.42rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 5%);
  backdrop-filter: blur(8px);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.9rem;
  text-decoration: none;
}

.hero__badge b { color: var(--text); font-weight: 600; }

.hero__badge .pip {
  inline-size: 0.5rem;
  block-size: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgb(55 210 190 / 18%);
  animation: pulse 2.6s ease-in-out infinite;
}

.hero__badge .chip {
  padding: 0.15rem 0.6rem;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 8%);
  font-size: 0.75rem;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgb(55 210 190 / 22%); }
  50% { box-shadow: 0 0 0 8px rgb(55 210 190 / 0%); }
}

.hero h1 { margin-bottom: 1.6rem; }

.hero h1 .line { display: block; overflow: hidden; }

.hero h1 .line > span {
  display: block;
  transform: translateY(100%);
  opacity: 0;
  animation: rise 1s var(--ease-out) forwards;
}

.hero h1 .line:nth-child(1) > span { animation-delay: 0.1s; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.22s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.34s; }

@keyframes rise {
  to { transform: translateY(0); opacity: 1; }
}

.hero .lede { max-width: 46rem; }

.hero__fade-in {
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.5s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__marks {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.5rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.hero__marks li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.hero__marks svg { inline-size: 1.05rem; block-size: 1.05rem; color: var(--accent); flex: none; }

.hero__marks { list-style: none; padding: 0; }

/* Floating isometric cube */
.hero__cube {
  position: absolute;
  inset-block-start: 12%;
  inset-inline-end: -6%;
  inline-size: min(46vw, 520px);
  aspect-ratio: 300 / 262;
  z-index: 1;
  background: linear-gradient(150deg, rgb(55 210 190 / 34%), rgb(88 166 216 / 12%) 55%, transparent 85%);
  -webkit-mask: url('../img/mark.png') no-repeat center / contain;
  mask: url('../img/mark.png') no-repeat center / contain;
  animation: float 12s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -22px, 0) rotate(-1.6deg); }
}

@media (max-width: 900px) {
  .hero__cube { opacity: 0.35; inset-inline-end: -22%; inset-block-start: 4%; }
}

/* ---------- Stat band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.stat {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--surface);
  transition: background-color 0.3s var(--ease);
}

.stat:hover { background: var(--surface-2); }

.stat__value {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 1.6rem + 2.6vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--text);
}

.stat__value .pre { font-size: 0.52em; color: var(--accent-text); margin-inline-end: 0.1em; }
.stat__value .suf { font-size: 0.62em; color: var(--accent-text); }

.stat__label {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.6vw, 2.15rem);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease), background-color 0.4s var(--ease);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(
    32rem circle at var(--mx, 50%) var(--my, 0%),
    rgb(55 210 190 / 12%),
    transparent 45%
  );
  transition: opacity 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.card:hover::before { opacity: 1; }

.card > * { position: relative; }

.card__num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent-text);
  margin-bottom: 1.1rem;
}

.card h3 { margin-bottom: 0.75rem; }

.card p { color: var(--text-muted); font-size: 0.965rem; }

.card__icon {
  display: grid;
  place-items: center;
  inline-size: 3rem;
  block-size: 3rem;
  margin-bottom: 1.35rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: linear-gradient(150deg, rgb(55 210 190 / 16%), transparent 70%);
  color: var(--accent-text);
  flex: none;
}

[data-theme='light'] .card__icon {
  background: linear-gradient(150deg, rgb(0 134 125 / 12%), transparent 70%);
}

.card__icon svg { inline-size: 1.4rem; block-size: 1.4rem; }

.ticks {
  list-style: none;
  padding: 0;
  margin-top: 1.35rem;
  display: grid;
  gap: 0.6rem;
}

.ticks li {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ticks li::before {
  content: '';
  inline-size: 1.15rem;
  block-size: 1.15rem;
  margin-top: 0.2rem;
  border-radius: 50%;
  background: currentColor;
  color: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 0.8rem;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 0.8rem;
  background-color: var(--accent);
  flex: none;
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1rem, 1.8vw, 1.4rem);
}

.bento > * { grid-column: span 6; }

@media (min-width: 720px) {
  .bento > * { grid-column: span 3; }
  .bento > .span-2 { grid-column: span 6; }
}

@media (min-width: 1040px) {
  .bento > * { grid-column: span 3; }
  .bento > .span-2 { grid-column: span 3; }
}

/* ---------- Capability list (services) ---------- */
.cap {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  padding-block: clamp(2.25rem, 4vw, 3.25rem);
  border-top: 1px solid var(--border);
}

.cap:last-of-type { border-bottom: 1px solid var(--border); }

@media (min-width: 880px) {
  .cap { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}

.cap__index {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent-text);
  margin-bottom: 0.9rem;
}

.cap__title { margin-bottom: 1rem; }

.cap p { color: var(--text-muted); }

/* ---------- Feature / split ---------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--wide-right { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}

.panel {
  position: relative;
  padding: clamp(1.75rem, 4vw, 3.25rem);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  overflow: hidden;
}

.panel--ink {
  background:
    radial-gradient(120% 130% at 12% 0%, #0d3541 0%, var(--ink-900) 58%, var(--ink-950) 100%);
  border-color: rgb(255 255 255 / 12%);
}

.quote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2.1rem);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -0.025em;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.step {
  position: relative;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.step:hover { transform: translateY(-4px); border-color: var(--accent); }

.step::before {
  counter-increment: step;
  content: '0' counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent-text);
  margin-bottom: 0.85rem;
}

.step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.925rem; color: var(--text-muted); }

/* ---------- Kinetic word band ---------- */
.band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5rem);
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
}

.band__track {
  display: flex;
  inline-size: max-content;
  gap: 3rem;
  animation: marquee 34s linear infinite;
}

.band:hover .band__track { animation-play-state: paused; }

.band__track span {
  display: flex;
  align-items: center;
  gap: 3rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1rem + 3vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-strong);
  white-space: nowrap;
}

.band__track span:nth-child(odd) {
  color: var(--text);
  -webkit-text-stroke: 0;
}

.band__track span::after {
  content: '';
  inline-size: 0.6rem;
  block-size: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.person {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: start;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  inline-size: 100%;
}

.person:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.person__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface-3);
}

.person__media img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.02);
  transition: filter 0.5s var(--ease), transform 0.6s var(--ease);
}

.person:hover .person__media img { filter: grayscale(0); transform: scale(1.045); }

.person__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgb(4 16 21 / 62%) 100%);
  opacity: 0.9;
}

.person__body { padding: 1.15rem 1.25rem 1.35rem; }

.person__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}

.person__role {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.person__more {
  margin-top: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--accent-text);
}

.person__more::after { content: '→'; transition: transform 0.3s var(--ease); }
.person:hover .person__more::after { transform: translateX(4px); }

/* Bio dialog */
dialog.bio {
  inline-size: min(100% - 2rem, 640px);
  max-block-size: min(88vh, 800px);
  margin: auto; /* the global margin reset removes the UA centring */
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

dialog.bio::backdrop {
  background: rgb(3 12 16 / 72%);
  backdrop-filter: blur(6px);
}

.bio__head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.5rem 1.65rem;
  border-block-end: 1px solid var(--border);
  background: var(--surface-2);
}

.bio__head img {
  inline-size: 4.25rem;
  block-size: 4.25rem;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 1px solid var(--border);
}

.bio__head h3 { font-size: 1.25rem; }
.bio__head p { font-size: 0.87rem; color: var(--text-muted); margin-top: 0.15rem; }

.bio__close {
  margin-inline-start: auto;
  align-self: flex-start;
}

.bio__body {
  padding: 1.5rem 1.65rem 2rem;
  overflow-y: auto;
  max-block-size: 56vh;
}

.bio__body p + p { margin-top: 0.9rem; }
.bio__body p { color: var(--text-muted); font-size: 0.97rem; }

/* ---------- Insights ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
}

.chip-btn {
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.25s var(--ease);
}

.chip-btn:hover { border-color: var(--border-strong); color: var(--text); }

.chip-btn[aria-pressed='true'] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-on);
}

.article-list { display: grid; gap: 0.9rem; list-style: none; padding: 0; }

.article {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: clamp(1.15rem, 2.2vw, 1.6rem) clamp(1.25rem, 2.4vw, 1.85rem);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.article:hover {
  transform: translateX(4px);
  border-color: var(--accent);
  background: var(--surface-2);
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}

.article__meta .dot { color: var(--accent-text); }

.article__title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.28rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.article__go {
  display: grid;
  place-items: center;
  inline-size: 2.6rem;
  block-size: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--accent-text);
  flex: none;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.article:hover .article__go {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-on);
  transform: rotate(0deg) scale(1.06);
}

.article__go svg { inline-size: 1.1rem; block-size: 1.1rem; }

.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: clamp(1rem, 2vw, 1.4rem); }

.doc {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.doc:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow-md); }

.doc__tag {
  align-self: flex-start;
  padding: 0.2rem 0.65rem;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.doc h3 { font-size: 1.15rem; }
.doc p { font-size: 0.92rem; color: var(--text-muted); }

/* ---------- Timeline (events) ---------- */
.timeline { position: relative; list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(1.25rem, 2.6vw, 2rem); }

.timeline::before {
  content: '';
  position: absolute;
  inset-block: 0.75rem 1rem;
  inset-inline-start: 0.44rem;
  inline-size: 1px;
  background: linear-gradient(180deg, var(--accent), var(--border) 70%, transparent);
}

.tl-item { position: relative; padding-inline-start: 2.5rem; }

.tl-item::before {
  content: '';
  position: absolute;
  inset-block-start: 0.75rem;
  inset-inline-start: 0;
  inline-size: 0.9rem;
  block-size: 0.9rem;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.tl-date {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.55rem;
  display: block;
}

.tl-item h3 { margin-bottom: 0.6rem; }
.tl-item p { color: var(--text-muted); font-size: 0.965rem; }
.tl-item p + p { margin-top: 0.7rem; }

/* ---------- Accordion ---------- */
.acc {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}

.acc + .acc { margin-top: 0.75rem; }

.acc[open] { border-color: var(--border-strong); }

.acc summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem clamp(1.1rem, 2.2vw, 1.6rem);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}

.acc summary::-webkit-details-marker { display: none; }

.acc summary::after {
  content: '';
  margin-inline-start: auto;
  inline-size: 0.7rem;
  block-size: 0.7rem;
  border-inline-end: 2px solid var(--accent);
  border-block-end: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
  flex: none;
}

.acc[open] summary::after { transform: rotate(-135deg); }

.acc summary:hover { background: var(--surface-2); }

.acc__body { padding: 0 clamp(1.1rem, 2.2vw, 1.6rem) 1.5rem; color: var(--text-muted); }

.acc__body p + p, .acc__body ul { margin-top: 0.8rem; }

/* ---------- Definition rows ---------- */
.rows { display: grid; gap: 0; border-top: 1px solid var(--border); }

.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem 1.5rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

@media (min-width: 620px) {
  .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
}

.row dt { font-weight: 500; color: var(--text); font-size: 0.95rem; }
.row dd { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.row dd code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  padding: 0.1rem 0.45rem;
  border-radius: var(--r-xs);
  background: var(--surface-3);
  color: var(--accent-text);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}

@media (min-width: 940px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}

.field { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
}

.field .hint { font-size: 0.8rem; color: var(--text-faint); }

.field input,
.field select,
.field textarea {
  inline-size: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.97rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.field textarea { min-block-size: 8.5rem; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(55 210 190 / 20%);
}

[data-theme='light'] .field input:focus,
[data-theme='light'] .field select:focus,
[data-theme='light'] .field textarea:focus {
  box-shadow: 0 0 0 3px rgb(0 134 125 / 18%);
}

.form-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.contact-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.contact-card .card__icon { margin: 0; inline-size: 2.6rem; block-size: 2.6rem; }
.contact-card .card__icon svg { inline-size: 1.2rem; block-size: 1.2rem; }
.contact-card h3 { font-size: 1rem; margin-bottom: 0.15rem; }
.contact-card p { font-size: 0.92rem; color: var(--text-muted); }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.25s var(--ease);
}

.copy-btn:hover { border-color: var(--accent); color: var(--text); }
.copy-btn svg { inline-size: 0.9rem; block-size: 0.9rem; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 6vw, 5rem);
  text-align: center;
  background:
    radial-gradient(120% 140% at 50% 0%, #0e3b48 0%, #072028 55%, #041015 100%);
  border: 1px solid rgb(255 255 255 / 12%);
}

.cta h2 { margin-bottom: 1.15rem; }
.cta .lede { margin-inline: auto; }
.cta .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink-950);
  border-block-start: 1px solid rgb(255 255 255 / 10%);
  padding-block: clamp(3.25rem, 6vw, 5rem) 2rem;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}

@media (min-width: 780px) {
  .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); }
}

.footer-brand .brand-lockup { inline-size: 210px; color: #fff; }

.footer-tag {
  margin-top: 1.35rem;
  max-width: 34ch;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-h {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.1rem;
}

.footer-list { list-style: none; padding: 0; display: grid; gap: 0.6rem; }

.footer-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.94rem;
  transition: color 0.22s var(--ease);
}

.footer-list a:hover { color: var(--accent-text); }

.social {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.5rem;
  padding: 0.55rem 1.05rem;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: var(--r-pill);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.25s var(--ease);
}

.social:hover { border-color: var(--accent); color: var(--text); }
.social svg { inline-size: 1.05rem; block-size: 1.05rem; }

.footer-base {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgb(255 255 255 / 10%);
  font-size: 0.85rem;
  color: var(--text-faint);
}

.footer-base p { margin: 0; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(120% 120% at 15% -20%, #0b3140 0%, var(--ink-900) 55%, var(--ink-950) 100%);
  padding-block: clamp(8rem, 12vw, 11rem) clamp(3.5rem, 6vw, 5.5rem);
  margin-block-start: -4.75rem;
}

.page-hero__inner { position: relative; z-index: 2; max-width: 56rem; }

.crumbs {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-faint);
}

.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-text); }
.crumbs li + li::before { content: '/'; margin-inline-end: 0.5rem; opacity: 0.5; }

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.error-page {
  min-block-size: 78vh;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(120% 110% at 50% -10%, #0b3140 0%, var(--ink-900) 55%, var(--ink-950) 100%);
  margin-block-start: -4.75rem;
  padding-block: 10rem 5rem;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 3rem + 12vw, 11rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.75rem; }
.mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; }
.flex-wrap { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.pill-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; }

.pill-list li {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] { opacity: 1; transform: none; }

  .hero h1 .line > span { opacity: 1; transform: none; }
  .hero__fade-in { opacity: 1; }
}

@media print {
  .site-header, .site-footer, .progress-bar, .aurora, .noise, .iso-grid, .hero__cube { display: none !important; }
  body { background: #fff; color: #000; }
}
