/* ============================================================
   N.O GROUP — DESIGN SYSTEM
   Institutional editorial (60) + futuristic cinematic (40)
   ============================================================ */

:root {
  --black: #000000;
  --ink: #030712;
  --navy: #0a1128;
  --charcoal: #0b0f1a;
  --white: #ffffff;

  --blue: #00d4ff;
  --violet: #9d4edd;
  --azure: #3b82f6;
  --emerald: #22d3a7;

  --t-1: rgba(255, 255, 255, 0.92);
  --t-2: rgba(255, 255, 255, 0.62);
  --t-3: rgba(255, 255, 255, 0.45);
  --t-4: rgba(255, 255, 255, 0.3);
  --t-5: rgba(255, 255, 255, 0.16);

  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);

  --font-sans: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);

  --container: 1320px;
  --narrow: 920px;
  --header-h: 96px;
  --header-h-sm: 64px;
}

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

html {
  background: var(--black);
  color: var(--t-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--black);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 16px;
}

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

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

ul,
ol {
  list-style: none;
}

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

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

::selection {
  background: rgba(0, 212, 255, 0.25);
  color: #fff;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--black);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 255, 0.4);
}

:focus-visible {
  outline: 2px solid rgba(0, 212, 255, 0.6);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 200;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.6rem 1.25rem;
  background: #fff;
  color: #000;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ---- Typography scale ---- */
.t-hero-xl {
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.t-hero-lg {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 500;
}
.t-hero-md {
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.t-section {
  font-size: clamp(1.75rem, 3.5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.t-lg {
  font-size: 1.1875rem;
  line-height: 1.7;
}
.t-md {
  font-size: 1.0625rem;
  line-height: 1.7;
}
.t-sm {
  font-size: 0.9375rem;
  line-height: 1.65;
}
.t-xs {
  font-size: 0.8125rem;
  line-height: 1.6;
}

.balance {
  text-wrap: balance;
}
.pretty {
  text-wrap: pretty;
}
.mono {
  font-family: var(--font-mono);
}

.muted {
  color: var(--t-2);
}
.muted-2 {
  color: var(--t-3);
}
.muted-3 {
  color: var(--t-4);
}

.label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 212, 255, 0.78);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.label::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: rgba(0, 212, 255, 0.5);
  flex-shrink: 0;
}
.label.no-rule::before {
  display: none;
}
.label.center {
  justify-content: center;
}

.eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t-4);
  font-weight: 500;
}

.gradient-text {
  background: linear-gradient(135deg, #00d4ff 0%, #9d4edd 50%, #00d4ff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Layout ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
}
.container-narrow {
  max-width: var(--narrow);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
}

.section {
  padding-block: clamp(5rem, 11vw, 11rem);
}
.section-sm {
  padding-block: clamp(3.5rem, 7vw, 7rem);
}
.section-t {
  border-top: 1px solid var(--line);
}
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.grid-lines {
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 88px 88px;
}

/* ---- Surfaces ---- */
.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.glass-strong {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.45);
}

.ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
}
.ambient-blue {
  background: rgba(0, 212, 255, 0.07);
}
.ambient-violet {
  background: rgba(157, 78, 221, 0.06);
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--blue));
  z-index: 60;
  will-change: transform;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.35s var(--ease-expo), box-shadow 0.35s var(--ease-expo),
    border-color 0.35s, background 0.35s, color 0.35s;
  white-space: nowrap;
}
.btn-sm {
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
}
.btn-primary {
  background: #fff;
  color: #000;
}
.btn-primary:hover {
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
  color: var(--t-1);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  border-color: rgba(0, 212, 255, 0.45);
  background: rgba(0, 212, 255, 0.06);
  transform: translateY(-1px);
}
.btn-text {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
  color: var(--t-2);
}
.btn-text:hover {
  color: #fff;
}
.btn-block {
  width: 100%;
}

.pill-link {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--t-3);
  transition: border-color 0.3s, color 0.3s;
}
.pill-link:hover {
  border-color: rgba(0, 212, 255, 0.45);
  color: #fff;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--t-1);
}
.arrow-link svg {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform 0.5s var(--ease-expo);
}
.arrow-link:hover svg {
  transform: translateX(5px);
}

.tag {
  display: inline-block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: var(--t-2);
}
.tag-outline {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease-expo), border-color 0.5s, backdrop-filter 0.5s;
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: height 0.5s var(--ease-expo);
  gap: 1rem;
}
.site-header.is-scrolled .header-inner {
  height: var(--header-h-sm);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
}
.logo-mark {
  height: 2rem;
  width: auto;
  transition: height 0.5s var(--ease-expo);
}
.site-header.is-scrolled .logo-mark {
  height: 1.75rem;
}
.logo-word {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.header-logo:hover {
  opacity: 0.8;
}

.nav-desktop {
  display: none;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  border-radius: 0;
  font-size: 0.875rem;
  font-weight: 800;
  color: #000;
  transition: color 0.2s, background 0.2s, box-shadow 0.15s, border-color 0.2s;
  border: 2px solid #000;
  background: #fff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: 3px 3px 0 #000;
}
.nav-link:hover {
  color: #000;
  background: #f0f0f0;
  box-shadow: 5px 5px 0 #000;
  transform: translate(1px, 1px);
}
.nav-link.is-active {
  color: #fff;
  background: #000;
  border-color: #000;
  box-shadow: 5px 5px 0 #000;
  transform: translate(2px, 2px);
}
.nav-caret {
  width: 0.6rem;
  height: 0.6rem;
  transition: transform 0.3s;
}
.nav-has-menu:hover .nav-caret {
  transform: rotate(180deg);
}

.nav-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  padding-top: 0.75rem;
  width: 26rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease-expo), transform 0.28s var(--ease-expo), visibility 0.28s;
}
.nav-has-menu:hover .nav-menu,
.nav-has-menu:focus-within .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-menu-inner {
  border-radius: 0;
  padding: 0.5rem;
  background: #fff;
  border: 2px solid #000;
  box-shadow: 6px 6px 0 #000;
  backdrop-filter: none;
}
.nav-menu-link {
  display: block;
  border-radius: 0;
  padding: 0.8rem 1.1rem;
  transition: background 0.2s, color 0.2s;
  border: 2px solid transparent;
  color: #000;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.nav-menu-link:hover {
  background: #000;
  color: #fff;
  border-color: #000;
  box-shadow: 4px 4px 0 #000;
}
.nav-menu-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.nav-menu-desc {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #333;
  font-weight: 600;
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}
.header-wa {
  border: 2px solid #000;
  border-radius: 0;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 800;
  color: #000;
  background: #fff;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.15s;
  box-shadow: 3px 3px 0 #000;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.header-wa:hover {
  border-color: #000;
  color: #000;
  background: #f0f0f0;
  box-shadow: 5px 5px 0 #000;
  transform: translate(1px, 1px);
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0;
  border: 2px solid #000;
  position: relative;
  z-index: 60;
  background: #fff;
  box-shadow: 3px 3px 0 #000;
}
.menu-bars {
  position: relative;
  display: block;
  width: 1.35rem;
  height: 0.8rem;
}
.menu-bars span {
  position: absolute;
  left: 0;
  display: block;
  width: 1.35rem;
  height: 2px;
  background: #000;
  transition: transform 0.2s, top 0.2s;
}
.menu-bars span:first-child {
  top: 0;
}
.menu-bars span:last-child {
  top: 0.75rem;
}
.menu-toggle[aria-expanded="true"] .menu-bars span:first-child {
  top: 0.375rem;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-bars span:last-child {
  top: 0.375rem;
  transform: rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(24px);
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-nav.is-open {
  opacity: 1;
}
.mobile-nav-inner {
  padding-top: 7rem;
  padding-bottom: 3rem;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.mnav-row {
  border-bottom: 1px solid var(--line);
  padding-block: 1.25rem;
}
.mnav-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
}
.mnav-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--t-5);
}
.mnav-children {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-left: 0.25rem;
}
.mnav-children a {
  font-size: 0.875rem;
  color: var(--t-3);
}
.mnav-children a:hover {
  color: var(--blue);
}
.mnav-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.mnav-contact {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--t-3);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 7rem;
  padding-bottom: 3rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
#hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-fallback {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 60% at 50% 20%, rgba(0, 212, 255, 0.13), transparent 65%),
    radial-gradient(ellipse 70% 50% at 72% 78%, rgba(157, 78, 221, 0.1), transparent 68%);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.35) 40%, var(--black));
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
}
.hero-inner {
  width: 100%;
  position: relative;
}
.hero-top {
  display: grid;
  gap: 3rem;
  align-items: end;
}
.hero-title span.line {
  display: block;
  overflow: hidden;
}
.hero-title span.line > span {
  display: block;
  transform: translateY(110%);
  animation: line-up 1.15s var(--ease-expo) forwards;
}
@keyframes line-up {
  to {
    transform: translateY(0);
  }
}
.hero-lede {
  max-width: 26rem;
  color: var(--t-2);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}
.hero-facts {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.hero-facts dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
}
.hero-facts dt {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--t-4);
}
.hero-facts dd {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--t-1);
}
.scroll-hint {
  display: none;
  align-items: center;
  gap: 0.75rem;
  color: var(--t-4);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.scroll-hint i {
  display: block;
  width: 1px;
  height: 2rem;
  background: linear-gradient(to bottom, rgba(0, 212, 255, 0.6), transparent);
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}
.live-dot {
  position: relative;
  display: inline-flex;
  width: 0.375rem;
  height: 0.375rem;
  flex-shrink: 0;
}
.live-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--blue);
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.live-dot::after {
  content: "";
  position: relative;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: var(--blue);
}
@keyframes ping {
  75%,
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* ---- Page hero ---- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: 10rem;
  padding-bottom: 4rem;
}
.page-hero-glow {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--t-4);
  margin-bottom: 2rem;
}
.crumbs a:hover {
  color: #fff;
}
.crumbs .sep {
  color: var(--t-5);
}
.page-hero h1 {
  max-width: 56rem;
}
.page-hero .lede {
  margin-top: 2rem;
  max-width: 40rem;
  color: var(--t-2);
}

/* ---- Marquee ---- */
.marquee {
  border-block: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.5);
  padding-block: 1.25rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 3.5rem;
  animation: marquee 45s linear infinite;
}
.marquee-track span {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  flex-shrink: 0;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--t-4);
  white-space: nowrap;
}
.marquee-track span::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.4);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---- Metrics ---- */
.metrics-band {
  border-block: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.6);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.metric {
  padding: 3rem 0.5rem;
  border-bottom: 1px solid var(--line);
}
.metric dd {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}
.metric dt {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--t-3);
}

/* ---- Section heading ---- */
.sec-head {
  max-width: 48rem;
}
.sec-head.center {
  margin-inline: auto;
  text-align: center;
}
.sec-head h2 {
  margin-top: 1.25rem;
}
.sec-head .lede {
  margin-top: 1.5rem;
  color: var(--t-2);
}
.head-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ---- Cards / cells ---- */
.cell-grid {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
}
.cell {
  background: var(--ink);
  padding: 1.75rem;
  height: 100%;
  transition: background 0.5s;
  display: flex;
  flex-direction: column;
}
a.cell:hover,
button.cell:hover {
  background: rgba(255, 255, 255, 0.03);
}
.cell h3 {
  font-size: 1.0625rem;
  font-weight: 500;
  color: #fff;
  margin-top: 1rem;
}
.cell p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--t-3);
}
.cell-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--t-5);
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(20px);
  padding: 2rem;
  transition: border-color 0.5s var(--ease-expo), transform 0.5s var(--ease-expo);
}
a.card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}
.card-glow {
  position: absolute;
  top: -6rem;
  right: -6rem;
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.4;
  transition: opacity 0.7s;
  pointer-events: none;
}
a.card:hover .card-glow {
  opacity: 0.9;
}
.card-body {
  position: relative;
}

/* ---- Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-expo), transform 0.85s var(--ease-expo);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---- Divisions showcase ---- */
.div-showcase {
  display: grid;
  gap: 2.5rem;
  margin-top: 4rem;
}
.div-rail {
  display: flex;
  flex-direction: column;
}
.div-tab {
  position: relative;
  width: 100%;
  text-align: left;
  border-top: 1px solid var(--line);
  padding-block: 1.75rem;
  color: var(--t-3);
  transition: color 0.4s;
}
.div-tab:last-child {
  border-bottom: 1px solid var(--line);
}
.div-tab:hover {
  color: var(--t-1);
}
.div-tab.is-active {
  color: #fff;
}
.div-tab-bar {
  position: absolute;
  left: -1rem;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 2px;
  height: 2.5rem;
  border-radius: 999px;
  transition: transform 0.45s var(--ease-expo);
}
.div-tab.is-active .div-tab-bar {
  transform: translateY(-50%) scaleY(1);
}
.div-tab-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.div-tab h3 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.div-tab p {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: var(--t-4);
}
.div-panel {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(20px);
  padding: 2rem;
}
.div-panel[hidden] {
  display: none;
}
.div-panel-glow {
  position: absolute;
  top: -6rem;
  right: -6rem;
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid;
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.div-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.div-metrics dd {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.div-metrics dt {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--t-3);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

/* ---- Thesis ---- */
.thesis {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
}
.thesis-mark {
  position: absolute;
  right: -8rem;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}
.thesis-mark svg {
  height: 42rem;
  width: auto;
}
.thesis-inner {
  position: relative;
  z-index: 1;
  max-width: 48rem;
}
.thesis-list {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
  margin-top: 2.5rem;
}
.thesis-item {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 2rem;
}
.thesis-item h3 {
  margin-top: 1rem;
}
.thesis-item p {
  margin-top: 1.5rem;
  max-width: 36rem;
  color: var(--t-2);
}

/* ---- Map ---- */
.map-wrap {
  position: relative;
}
.map-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.map-node {
  cursor: pointer;
}
.map-node .dot {
  transition: r 0.3s;
}
.map-node:hover .dot,
.map-node:focus .dot {
  r: 4;
}
.map-arc {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2s var(--ease-expo) forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.map-card {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  border-radius: 1rem;
  padding: 0.9rem 1.5rem;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.map-card.is-visible {
  opacity: 1;
}
.map-card .region {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(0, 212, 255, 0.8);
}
.map-card .city {
  margin-top: 0.35rem;
  font-size: 1.0625rem;
  font-weight: 500;
  color: #fff;
}
.map-card .role {
  margin-top: 0.15rem;
  font-size: 0.875rem;
  color: var(--t-3);
}
.region-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}
.region-list .r-name {
  font-size: 0.875rem;
  color: var(--t-1);
}
.region-list .r-cities {
  font-size: 0.75rem;
  color: var(--t-4);
  text-align: right;
}

/* ---- Forms ---- */
.field {
  width: 100%;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  font-size: 0.9375rem;
  color: #fff;
  transition: border-color 0.25s, background 0.25s;
}
.field::placeholder {
  color: var(--t-4);
}
.field:focus {
  outline: none;
  border-color: rgba(0, 212, 255, 0.5);
  background: rgba(0, 212, 255, 0.04);
}
select.field {
  appearance: none;
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23888' stroke-width='1.5'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 0.75rem;
  padding-right: 2.5rem;
}
textarea.field {
  resize: vertical;
}
.field-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t-3);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.field-row {
  display: grid;
  gap: 1.25rem;
}
.form-card {
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  backdrop-filter: blur(20px);
  padding: 2rem;
}
.dept-grid {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.dept-btn {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.8rem 1rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--t-2);
  transition: all 0.3s;
}
.dept-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.dept-btn.is-active {
  border-color: rgba(0, 212, 255, 0.5);
  background: rgba(0, 212, 255, 0.08);
  color: #fff;
}
.dept-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--t-3);
}
.sla-pill {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.1rem 0.65rem;
  font-size: 0.75rem;
  color: rgba(0, 212, 255, 0.8);
}
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--t-3);
}
.consent-row input {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: var(--blue);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 0;
  height: 0;
  opacity: 0;
}
.form-note {
  font-size: 0.75rem;
  color: var(--t-4);
}
.alert {
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
}
.alert-error {
  border: 1px solid rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
}
.alert-success {
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.08);
  color: #a7f3d0;
}
.success-panel {
  border-radius: 1.5rem;
  border: 1px solid rgba(52, 211, 153, 0.25);
  background: rgba(52, 211, 153, 0.05);
  padding: 3rem 2rem;
  text-align: center;
}
.success-icon {
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
}

/* ---- Modal ---- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  padding-block: 2.5rem;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s;
}
.modal.is-open {
  opacity: 1;
}
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 42rem;
  margin: auto;
  border-radius: 1.5rem;
  padding: 2rem;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.4s var(--ease-expo);
}
.modal.is-open .modal-panel {
  transform: none;
}
.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--t-2);
}
.modal-close:hover {
  color: #fff;
}
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), transparent);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--t-2);
  transition: border-color 0.5s, color 0.5s;
}
.cell:hover .avatar {
  border-color: rgba(0, 212, 255, 0.4);
  color: #fff;
}
.avatar-lg {
  width: 5rem;
  height: 5rem;
  font-size: 1.25rem;
  border-color: rgba(0, 212, 255, 0.3);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), transparent);
  color: #fff;
}
.upload-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 0.75rem;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
  padding: 1.5rem 1.25rem;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}
.upload-zone:hover {
  border-color: rgba(0, 212, 255, 0.45);
  background: rgba(0, 212, 255, 0.04);
}
.upload-name {
  font-size: 0.875rem;
  color: var(--t-2);
  word-break: break-all;
}
.upload-btn {
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  color: var(--t-2);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Insights explorer ---- */
.explorer-bar {
  position: sticky;
  top: var(--header-h-sm);
  z-index: 30;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(24px);
  padding: 1rem;
}
.explorer-top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.search-wrap {
  position: relative;
  flex: 1;
}
.search-wrap svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--t-4);
  pointer-events: none;
}
.search-wrap .field {
  padding-left: 2.75rem;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.filter-btn {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--t-3);
  transition: all 0.3s;
}
.filter-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.filter-btn.is-active {
  border-color: rgba(0, 212, 255, 0.5);
  background: rgba(0, 212, 255, 0.1);
  color: #fff;
}
.tag-btn {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: var(--t-3);
  transition: all 0.3s;
}
.tag-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}
.tag-btn.is-active {
  background: #fff;
  color: #000;
}
.tags-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.clear-btn {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--blue);
}
.clear-btn:hover {
  text-decoration: underline;
}
.card-grid {
  display: grid;
  gap: 1.5rem;
}
.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent);
  padding: 1.75rem;
  transition: border-color 0.5s var(--ease-expo), background 0.5s;
}
.article-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.article-cat {
  color: rgba(0, 212, 255, 0.85);
}
.article-date {
  color: var(--t-5);
}
.article-card h3 {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
}
.article-card p {
  margin-top: 1rem;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--t-3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.75rem;
  color: var(--t-3);
}
.empty-state {
  border-radius: 1rem;
  border: 1px solid var(--line);
  padding: 5rem 1.5rem;
  text-align: center;
  color: var(--t-2);
}

/* ---- Roles ---- */
.role-list {
  border-block: 1px solid var(--line);
}
.role-item {
  border-bottom: 1px solid var(--line);
}
.role-item:last-child {
  border-bottom: none;
}
.role-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-block: 2rem;
}
.role-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}
.role-item h3 a {
  font-size: 1.25rem;
  font-weight: 500;
  color: #fff;
  transition: color 0.3s;
}
.role-item h3 a:hover {
  color: var(--blue);
}
.role-summary {
  margin-top: 0.5rem;
  max-width: 44rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--t-3);
}
.role-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--t-4);
}
.role-actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.75rem;
}

/* ---- Prose (articles + legal) ---- */
.prose > * + * {
  margin-top: 1.75rem;
}
.prose p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--t-2);
}
.prose p.lead {
  font-size: 1.1875rem;
  color: var(--t-1);
}
.legal-sec + .legal-sec {
  margin-top: 3rem;
}
.legal-sec h2 {
  font-size: 1.25rem;
  font-weight: 500;
  color: #fff;
}
.legal-sec h2 .num {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: rgba(0, 212, 255, 0.6);
  margin-right: 0.75rem;
}
.legal-sec p {
  margin-top: 1rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--t-2);
}
.bullet-list {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.bullet-list li {
  display: flex;
  gap: 1rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--t-2);
}
.bullet-list li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 0.7rem;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.6);
}
.legal-side {
  position: sticky;
  top: calc(var(--header-h-sm) + 2rem);
}
.legal-nav a {
  display: block;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
  font-size: 0.875rem;
  color: var(--t-3);
  transition: all 0.3s;
  margin-bottom: 0.5rem;
}
.legal-nav a:hover {
  border-left-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.legal-nav a.is-current {
  border-left-color: var(--blue);
  color: #fff;
  font-weight: 500;
}
.toc a {
  display: block;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--t-4);
  margin-bottom: 0.5rem;
}
.toc a:hover {
  color: #fff;
}
.info-box {
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 1.75rem;
}

/* ---- Tables ---- */
.table-wrap {
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid var(--line);
}
table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}
thead tr {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
th {
  padding: 1rem 1.25rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--t-3);
  font-weight: 500;
}
td {
  padding: 1rem 1.25rem;
  color: var(--t-2);
  border-bottom: 1px solid var(--line-soft);
}
tbody tr:last-child td {
  border-bottom: none;
}

/* ---- Trackers ---- */
.tracker + .tracker {
  margin-top: 2rem;
}
.tracker-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.tracker-bar {
  margin-top: 1rem;
  height: 6px;
  width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.tracker-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.8), var(--blue));
  width: 0;
  transition: width 1.4s var(--ease-expo);
}

/* ---- CTA ---- */
.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(24px);
  padding: 4rem 1.75rem;
  text-align: center;
}
.cta-panel .grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
}
.cta-inner {
  position: relative;
  max-width: 42rem;
  margin-inline: auto;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

/* ---- Footer ---- */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  background: var(--ink);
}
.footer-hairline {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
}
.footer-inner {
  padding-block: 5rem;
}
.footer-grid {
  display: grid;
  gap: 3.5rem;
}
.logo-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  color: #fff;
}
.logo-mark-lg {
  height: 4rem;
  width: auto;
}
.logo-lockup-word {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--t-2);
}
.footer-desc {
  margin-top: 1.75rem;
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--t-3);
}
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
.footer-cols {
  display: grid;
  gap: 2.5rem;
}
.footer-heading {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--t-4);
  font-weight: 500;
}
.footer-list {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-list a,
.footer-list li {
  font-size: 0.875rem;
  color: var(--t-2);
  transition: color 0.3s;
  word-break: break-word;
}
.footer-list a:hover {
  color: #fff;
}
.footer-muted {
  color: var(--t-4) !important;
}
.footer-base {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}
.footer-base p {
  font-size: 0.75rem;
  color: var(--t-4);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.footer-legal a {
  font-size: 0.75rem;
  color: var(--t-4);
}
.footer-legal a:hover {
  color: #fff;
}
.footer-kg {
  margin-top: 1.5rem;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.2);
}

/* ---- Cookie banner ---- */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  max-width: 42rem;
  margin-inline: auto;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-expo), transform 0.5s var(--ease-expo);
}
.cookie-banner.is-visible {
  opacity: 1;
  transform: none;
}
.cookie-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: 1rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(20, 24, 34, 0.98), rgba(8, 10, 16, 0.98));
  backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
}
.cookie-inner p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--t-2);
}
.cookie-inner a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.5rem;
}

/* ---- 404 ---- */
.err-page {
  display: flex;
  align-items: center;
  min-height: 80svh;
  padding-block: 8rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (min-width: 640px) {
  .field-row.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
  .dept-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cell-grid.sm-2 {
    grid-template-columns: 1fr 1fr;
  }
  .card-grid.sm-2 {
    grid-template-columns: 1fr 1fr;
  }
  .cookie-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .footer-cols {
    grid-template-columns: repeat(4, 1fr);
  }
  .div-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
  .card,
  .div-panel,
  .form-card,
  .modal-panel {
    padding: 2.5rem;
  }
  .cta-panel {
    padding: 5rem 4rem;
  }
}

@media (min-width: 768px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .head-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .cell-grid.md-2 {
    grid-template-columns: 1fr 1fr;
  }
  .cell-grid.md-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .card-grid.md-2 {
    grid-template-columns: 1fr 1fr;
  }
  .card-grid.md-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .dept-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .scroll-hint {
    display: flex;
  }
  .role-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .footer-base {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .page-hero {
    padding-top: 13rem;
    padding-bottom: 6rem;
  }
  .explorer-top {
    flex-direction: row;
    align-items: center;
  }
  .cell {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .nav-desktop,
  .header-actions {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .metric {
    border-bottom: none;
    border-right: 1px solid var(--line);
    padding-inline: 2rem;
  }
  .metric:last-child {
    border-right: none;
  }
  .hero-top {
    grid-template-columns: 2fr 1fr;
  }
  .div-showcase {
    grid-template-columns: 5fr 7fr;
    gap: 2.5rem;
  }
  .cell-grid.lg-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .cell-grid.lg-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .card-grid.lg-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .split {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3.5rem;
  }
  .split-4-8 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3.5rem;
  }
  .split-5-7 {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 3.5rem;
  }
  .split-8-4 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3.5rem;
  }
  .split-map {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3.5rem;
    align-items: center;
  }
  .legal-layout {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 3.5rem;
  }
  .thesis-item {
    padding-left: 3rem;
  }
  .footer-grid {
    grid-template-columns: 4fr 8fr;
  }
  .div-metrics {
    gap: 1.5rem;
  }
}

/* ---- Motion preferences ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero-title span.line > span {
    transform: none;
  }
  .marquee-track {
    animation: none;
  }
}

/* ---- Print ---- */
@media print {
  .site-header,
  .site-footer,
  .cookie-banner,
  .noise-overlay,
  .scroll-progress,
  .hero-bg {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
