/* ==========================================================================
   Ayni Solutions — site styles
   Design language: editorial serif (Fraunces) + telemetry mono (Plex Mono)
   on a deep-navy / warm-paper foundation with a volt "signal" accent.
   ========================================================================== */

/* ---- Fonts (self-hosted) ------------------------------------------------ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-var.woff2') format('woff2');
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/fraunces-var.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plexmono-400.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/plexmono-500.woff2') format('woff2');
}

/* ---- Tokens ------------------------------------------------------------- */

:root {
  --navy-950: #070b16;
  --navy-900: #0a101f;
  --navy-800: #111a30;
  --navy-700: #1c244b;
  --steel-700: #324a6d;
  --steel-500: #46618c;
  --steel-300: #8fb3d9;
  --steel-200: #b9d0e8;
  --signal: #c9ef5a;

  --paper: #f7f5ef;
  --paper-deep: #efece2;
  --card: #fffdf8;
  --line: #e2ddd0;
  --ink: #131a2c;
  --ink-soft: #4b5266;

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --container: 74rem;
  --radius: 10px;
  --shadow: 0 12px 30px -14px rgba(19, 26, 44, 0.22);
  --shadow-hover: 0 20px 44px -16px rgba(19, 26, 44, 0.32);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- Base --------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--signal); color: var(--navy-900); }

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

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  margin: 0 0 1rem;
  color: var(--navy-700);
  text-wrap: balance;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(2.3rem, 6vw, 4.6rem); font-weight: 640; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }

h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0 0 0.6rem;
  color: var(--navy-700);
}

p { margin: 0 0 1rem; text-wrap: pretty; }

/* keeps compounds like "e-mobility" from breaking at their hyphen */
.nb { white-space: nowrap; }

a { color: var(--steel-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-700); }

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Editorial section opener: hairline + mono eyebrow with index */

.section-head {
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  margin-bottom: 2.2rem;
}

.section-dark .section-head { border-top-color: rgba(185, 208, 232, 0.22); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.9rem;
}

.section-dark .eyebrow { color: var(--steel-200); }

.idx {
  color: var(--steel-500);
  margin-right: 1.1em;
}

.section-dark .idx { color: var(--signal); }

.section-lead {
  font-size: clamp(1.02rem, 1.8vw, 1.16rem);
  color: var(--ink-soft);
  max-width: 46rem;
  margin-bottom: 0;
}

.section-dark .section-lead { color: rgba(255, 255, 255, 0.78); }

.skip-link {
  position: absolute;
  top: -3.5rem;
  left: 1rem;
  z-index: 100;
  background: var(--navy-700);
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus-visible { top: 0; color: #fff; }

/* ---- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn-arrow { display: inline-block; transition: transform 0.18s var(--ease); }

.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--signal);
  color: var(--navy-900);
  box-shadow: 0 10px 26px -12px rgba(201, 239, 90, 0.55);
}

.btn-primary:hover {
  background: #d8f77d;
  color: var(--navy-900);
  box-shadow: 0 16px 32px -12px rgba(201, 239, 90, 0.65);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover { color: #fff; border-color: rgba(255, 255, 255, 0.75); background: rgba(255, 255, 255, 0.06); }

.btn-lg { padding: 1rem 2rem; font-size: 0.9rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 16, 31, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand img { border-radius: 50%; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: #fff;
}

.brand-sub {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.58em;
  letter-spacing: 0.3em;
  color: var(--steel-300);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a:not(.btn) {
  position: relative;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: 0.35rem;
}

.nav-menu a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--signal);
  transition: right 0.22s var(--ease);
}

.nav-menu a:not(.btn):hover { color: #fff; }

.nav-menu a:not(.btn):hover::after,
.nav-menu a.is-active:not(.btn)::after { right: 0; }

.nav-menu a.is-active:not(.btn) { color: #fff; }

.btn-nav {
  background: var(--signal);
  color: var(--navy-900);
  padding: 0.55rem 1.1rem;
  font-size: 0.74rem;
}

.btn-nav:hover { background: #d8f77d; color: var(--navy-900); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: #fff;
  margin-top: -4.25rem;
  padding-top: 4.25rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/hero.jpg') center 65% / cover no-repeat;
  filter: grayscale(1);
  opacity: 0.3;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(185, 208, 232, 0.07) 0 1px, transparent 1px 76px),
    repeating-linear-gradient(0deg, rgba(185, 208, 232, 0.07) 0 1px, transparent 1px 76px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 78%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(75% 90% at 18% 8%, rgba(28, 36, 75, 0.6), transparent 62%),
    linear-gradient(180deg, rgba(10, 16, 31, 0.62) 0%, rgba(10, 16, 31, 0.4) 45%, var(--navy-900) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 58rem;
  padding-block: clamp(6.5rem, 14vh, 11rem) clamp(4.5rem, 9vh, 7rem);
}

.hero .eyebrow { color: var(--steel-200); }

/* dash hangs to the left, so wrapped eyebrow lines stay aligned */
.hero .eyebrow {
  position: relative;
  padding-left: 2.9rem;
}

.hero .eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 2rem;
  height: 1px;
  background: var(--signal);
}

.hero h1 { color: #fff; max-width: 17ch; }

.hero h1 em {
  font-style: normal;
  color: var(--signal);
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 41rem;
  margin-block: 1.4rem 2.2rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* mono telemetry rail pinned to the hero's bottom edge */

.hero-rail {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(185, 208, 232, 0.18);
  background: rgba(7, 11, 22, 0.55);
}

.hero-rail-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 2rem;
  padding-block: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.rail-live {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--signal);
}

.rail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.rail-scope { margin-left: auto; color: rgba(255, 255, 255, 0.55); }

/* ---- Sections ----------------------------------------------------------- */

.section { padding-block: clamp(4.5rem, 9vh, 7rem); }

.section-dark {
  background:
    radial-gradient(80% 100% at 82% 0%, rgba(50, 74, 109, 0.42), transparent 60%),
    var(--navy-900);
  color: rgba(255, 255, 255, 0.88);
}

.section-dark h2 { color: #fff; }
.section-dark h3 { color: #fff; }

/* ---- Platform flow diagram ---------------------------------------------- */

.flow {
  display: grid;
  /* connector columns share one fixed width so the centre node stays centred
     even though the two labels differ in length */
  grid-template-columns: 1fr 9rem 1.12fr 9rem 1fr;
  align-items: stretch;
  gap: 0.4rem;
  margin-block: 3rem 3.4rem;
}

.flow-node {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}

.flow-node h3 { font-size: 1.02rem; margin-bottom: 0.4rem; }

.flow-node p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0.8rem; }

.flow-node ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.flow-node ul li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.35rem;
}

.flow-node ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 2px;
  background: var(--steel-500);
}

.flow-core {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  border: 1px solid var(--steel-500);
  box-shadow: 0 18px 44px -16px rgba(28, 36, 75, 0.55);
}

.flow-core .flow-brand {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 0.9rem;
}

.flow-core ul { color: var(--steel-200); }

.flow-core ul li::before { background: var(--signal); }

.flow-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 0.55rem;
  color: var(--steel-500);
}

.flow-link svg { width: 52px; height: 20px; }

/* label floats above the arrow, so the arrow itself sits on the row midline */
.flow-label {
  position: absolute;
  bottom: calc(50% + 0.7rem);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ---- Features (numbered) ------------------------------------------------ */

.feature-list { display: grid; gap: 1.1rem; }

.feature {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.8rem;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--steel-300);
}

.feature-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--steel-500);
}

.feature h3 { margin-bottom: 0.4rem; }
.feature p { margin: 0; color: var(--ink-soft); }

/* ---- Intelligence section ----------------------------------------------- */

.intel-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(21rem, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.intel-copy .section-lead strong { color: var(--signal); font-weight: 600; }

.domains {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem 1.6rem;
  margin-top: 2.4rem;
}

.domain {
  border-top: 1px solid rgba(185, 208, 232, 0.22);
  padding-top: 0.8rem;
}

.domain-idx {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--signal);
}

.domain h3 { font-size: 0.96rem; margin: 0.3rem 0 0.25rem; }

.domain p { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); margin: 0; }

/* Flywheel */

.flywheel svg {
  width: 100%;
  height: auto;
  display: block;
}

.fw-ring {
  fill: none;
  stroke: rgba(185, 208, 232, 0.3);
  stroke-width: 1.5;
  stroke-dasharray: 2 7;
}

.fw-ring-inner { stroke: rgba(185, 208, 232, 0.18); }

.fw-arcs path {
  fill: none;
  stroke: var(--signal);
  stroke-width: 2;
  opacity: 0.85;
}

.fw-arrowhead { stroke: var(--signal); }

.fw-station circle {
  fill: var(--navy-800);
  stroke: var(--steel-300);
  stroke-width: 1.5;
}

.fw-station text {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  fill: var(--signal);
  text-anchor: middle;
}

.fw-label text {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  fill: var(--steel-200);
}

.fw-core text {
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.3em;
  fill: #fff;
}

.fw-core .fw-core-sub {
  font-family: var(--font-body);
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.02em;
  fill: var(--steel-300);
}

/* Intelligence module cards */

.intel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 3.2rem;
}

.intel-card {
  background: rgba(17, 26, 48, 0.65);
  border: 1px solid rgba(143, 179, 217, 0.2);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.intel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 239, 90, 0.5);
  background: rgba(17, 26, 48, 0.9);
}

.intel-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 0.7rem;
}

.intel-card h3 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.32rem;
  line-height: 1.18;
  margin-bottom: 0.9rem;
}

.intel-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.68);
}

.intel-card ul li {
  position: relative;
  padding-left: 1.05rem;
  margin-bottom: 0.4rem;
}

.intel-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 5px;
  height: 5px;
  background: var(--signal);
}

/* ---- Cards (who we serve) ----------------------------------------------- */

.card-grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 2.4rem;
}

.card-grid.three { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--steel-300);
}

.card p { margin: 0; color: var(--ink-soft); }

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-700), var(--steel-700));
  color: var(--steel-200);
}

.card-icon svg { width: 25px; height: 25px; }

/* Why strip */

.why-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  margin-top: 3.2rem;
}

.why-item {
  border-top: 2px solid var(--navy-700);
  padding-top: 0.9rem;
}

.why-item h3 { font-size: 0.98rem; margin-bottom: 0.3rem; }

.why-item p { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }

/* ---- Vision ------------------------------------------------------------- */

.vision-grid {
  display: grid;
  grid-template-columns: minmax(0, 48rem) minmax(16rem, 21rem);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.vision-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.82);
}

.vision-mission {
  margin-block: 1.6rem;
  padding-left: 1.2rem;
  border-left: 3px solid var(--signal);
  color: var(--steel-200);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.12rem;
  line-height: 1.5;
}

.vision-assets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.vision-assets span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(185, 208, 232, 0.28);
  border-radius: 4px;
  padding: 0.35rem 0.7rem;
}

.vision-panel {
  background: rgba(17, 26, 48, 0.65);
  border: 1px solid rgba(143, 179, 217, 0.25);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
}

.vision-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 0.6rem;
}

.vision-apps {
  list-style: none;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.93rem;
}

.vision-apps li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.45rem;
}

.vision-apps li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 5px;
  height: 5px;
  background: var(--signal);
}

.vision-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 239, 90, 0.45), transparent);
  margin-block: 1.3rem;
}

/* ---- News carousel ------------------------------------------------------ */

.news-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.2rem;
}

.news-head h2 { margin-bottom: 0; }

.news-controls { display: flex; gap: 0.6rem; }

.news-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--navy-700);
  background: none;
  border: 1px solid var(--navy-700);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}

.news-btn:hover {
  background: var(--navy-700);
  color: var(--signal);
  transform: translateY(-2px);
}

.news-track {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* breathing room so hover-lift isn't clipped by overflow */
  padding-block: 0.5rem;
  margin-block: -0.5rem;
}

.news-track::-webkit-scrollbar { display: none; }

.news-card {
  flex: 0 0 calc((100% - 2.8rem) / 3);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--steel-300);
  color: inherit;
}

.news-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.news-img-empty {
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: var(--steel-300);
  background:
    radial-gradient(70% 90% at 25% 15%, rgba(50, 74, 109, 0.55), transparent 60%),
    linear-gradient(160deg, var(--navy-700), var(--navy-900));
}

.news-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.2rem 1.3rem 1.4rem;
}

.news-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-500);
  margin: 0;
}

.news-source {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-meta time { flex-shrink: 0; color: var(--ink-soft); }

.news-title {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Team --------------------------------------------------------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.6rem;
  margin-top: 2.4rem;
}

.team-card { text-align: center; }

.team-card img {
  width: min(150px, 68%);
  border-radius: 50%;
  margin-inline: auto;
  margin-bottom: 1rem;
  border: 3px solid var(--card);
  box-shadow: var(--shadow);
  filter: grayscale(100%) contrast(1.04);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.team-card:hover img {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.team-card h3 { font-size: 1.03rem; margin-bottom: 0.15rem; }

.team-role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-500);
  margin-bottom: 0.5rem;
}

.team-bio { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* ---- CTA band ----------------------------------------------------------- */

.cta-band {
  background: var(--signal);
  color: var(--navy-900);
}

.cta-inner { text-align: center; max-width: 44rem; }

.cta-band h2 { color: var(--navy-900); }

.cta-band p { color: rgba(10, 16, 31, 0.75); margin-bottom: 1.8rem; }

.cta-band .btn-primary {
  background: var(--navy-900);
  color: var(--signal);
  box-shadow: 0 14px 30px -12px rgba(10, 16, 31, 0.5);
}

.cta-band .btn-primary:hover { background: var(--navy-700); color: var(--signal); }

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

.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  padding-block: 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand img { border-radius: 50%; margin-bottom: 0.9rem; }

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--steel-300);
  margin: 0;
}

.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: #fff; }

.footer-legal { text-align: right; }

.footer-coords {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
}

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

/* Hidden state is only applied once JS confirms IntersectionObserver support
   (html.has-observer), so content stays visible without JS. */
.has-observer .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.has-observer .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .has-observer .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn-arrow, .nav-toggle span, .card, .feature, .intel-card, .team-card img { transition: none; }
  .rail-dot { animation: none; }
}

/* ---- Responsive --------------------------------------------------------- */

@media (max-width: 1080px) {
  .intel-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .flow {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    max-width: 30rem;
    margin-inline: auto;
  }

  .flow-link {
    flex-direction: column;
    padding-block: 0.5rem;
  }

  /* stacked layout: static label above the rotated arrow */
  .flow-label {
    position: static;
    transform: none;
    margin-bottom: 0.9rem;
  }

  .flow-link svg { transform: rotate(90deg); width: 34px; height: 14px; }

  .intel-top { grid-template-columns: 1fr; }

  .flywheel { max-width: 30rem; margin-inline: auto; }

  .vision-grid { grid-template-columns: 1fr; }

  .vision-panel { max-width: 26rem; margin-inline: auto; }

  /* the region indicator gets its own line once the rail starts wrapping */
  .rail-scope { margin-left: 0; width: 100%; }
}

@media (max-width: 900px) {
  .why-strip { grid-template-columns: repeat(2, 1fr); }
  .news-card { flex-basis: calc((100% - 1.4rem) / 2); }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand img { margin-inline: auto; }
  .footer-legal { text-align: center; }
}

@media (max-width: 760px) {
  .card-grid.three { grid-template-columns: 1fr; }

  .domains { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1.5rem 1.25rem;
    display: none;
  }

  .nav-menu.is-open { display: flex; }

  .nav-menu li { padding: 0.4rem 0; }

  .nav-menu a:not(.btn) { display: block; padding: 0.45rem 0; font-size: 0.9rem; }

  .nav-menu a:not(.btn)::after { content: none; }

  .btn-nav { text-align: center; justify-content: center; margin-top: 0.6rem; }

}

@media (max-width: 560px) {
  .intel-grid { grid-template-columns: 1fr; }
  .news-card { flex-basis: 86%; }
  .news-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  /* SVG text scales with the viewBox, so enlarge for small screens */
  .fw-label text { font-size: 16px; }
  .fw-station text { font-size: 17px; }
  .fw-core text { font-size: 24px; }
  .fw-core .fw-core-sub { font-size: 18px; }
  .why-strip { grid-template-columns: 1fr; gap: 1.1rem; }
  .feature { flex-direction: column; gap: 0.7rem; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}
