/* ==========================================================================
   ABAY-GERMES — Design tokens
   ========================================================================== */
:root {
  --white: #ffffff;
  --graphite: #14181c;
  --graphite-soft: #1c2229;
  --blue: #1b3358;
  --slate: #5b6672;
  --slate-light: #8b939c;
  --hairline: #e3e6e9;
  --hairline-strong: #c9cfd4;
  --tint: #f4f6f7;
  --gold: #b08d3e;
  --gold-soft: #d9c496;

  --line: rgba(255, 255, 255, 0.18);
  --line-dashed: rgba(255, 255, 255, 0.32);
  --line-strong: rgba(255, 255, 255, 0.55);
  --panel-gold: rgba(176, 141, 62, 0.14);

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --shell-width: 1200px;
  --radius: 3px;
}

/* Diagrams on light backgrounds use dark line tokens */
.section:not(.section--graphite) .dg-eyebrow,
.section:not(.section--graphite) .dg-label,
.section:not(.section--graphite) .dg-label-sm {
  fill: var(--graphite);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@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; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--graphite);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--graphite);
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg text { font-family: var(--font-mono); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--graphite);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.shell {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 720px) {
  .shell { padding: 0 20px; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--graphite);
}
.brand-mark { color: var(--graphite); display: flex; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-size: 14px;
  color: var(--slate);
  transition: color 0.15s ease;
  position: relative;
}
.main-nav a:hover { color: var(--graphite); }

.header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
}
.lang-sep { color: var(--hairline-strong); }
.lang-btn {
  background: none;
  border: none;
  padding: 4px 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--slate-light);
  cursor: pointer;
  border-radius: 2px;
  transition: color 0.15s ease;
}
.lang-btn:hover { color: var(--graphite); }
.lang-btn.is-active {
  color: var(--gold);
  font-weight: 600;
}
.lang-switch--mobile {
  margin-top: 12px;
  padding-top: 12px;
  gap: 10px;
}
.lang-switch--mobile .lang-btn { font-size: 14px; padding: 6px 4px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--graphite);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.main-nav-mobile {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
  padding: 8px 20px 20px;
}
.main-nav-mobile a {
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
  color: var(--graphite);
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-controls .lang-switch { display: none; }
  .nav-toggle { display: flex; }
  .main-nav-mobile.is-open { display: flex; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }

.btn--gold {
  background: var(--gold);
  color: var(--white);
}
.btn--gold:hover { background: #9a7935; }

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}
.btn--outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }

.btn--text-light {
  color: var(--white);
  padding: 13px 4px;
}
.btn--text-light span { transition: transform 0.15s ease; display: inline-block; }
.btn--text-light:hover span { transform: translateX(3px); }

.btn--full { width: 100%; justify-content: center; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--graphite);
  color: var(--white);
  padding-top: 96px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 85%);
  pointer-events: none;
}

.hero-inner { position: relative; padding-bottom: 72px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 20px;
  display: block;
}
.eyebrow--light { color: var(--gold-soft); }

.hero-title {
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.08;
  max-width: 16ch;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  max-width: 58ch;
  margin-bottom: 40px;
}

.hero-thesis {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  max-width: 62ch;
}
.hero-thesis-arrow {
  color: var(--gold-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-diagram-wrap {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 36px 0 44px;
}

.hero-diagram { margin: 0; }
.hero-diagram-svg { width: 100%; height: auto; display: block; }
.hero-diagram-caption {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-light);
}

.dg-eyebrow {
  font-size: 8.5px;
  letter-spacing: 0.06em;
  fill: rgba(255,255,255,0.55);
}
.dg-eyebrow--gold { fill: var(--gold-soft); }
.dg-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  fill: var(--white);
}
.dg-label-sm {
  font-size: 11px;
  fill: rgba(255,255,255,0.6);
}

@media (max-width: 860px) {
  .hero-diagram-svg { display: none; }
  .hero-diagram-caption { display: none; }
  .hero-diagram-wrap { padding: 28px 0 40px; }
}

/* ==========================================================================
   Sections — shared
   ========================================================================== */
.section {
  padding: 100px 0;
  border-bottom: 1px solid var(--hairline);
}
.section--graphite {
  background: var(--graphite);
  color: var(--white);
  border-bottom-color: rgba(255,255,255,0.08);
}
.section--graphite h2 { color: var(--white); }
.section--tint { background: var(--tint); }

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--slate);
  margin-top: 16px;
}
.section-head--light .section-lede { color: rgba(255,255,255,0.66); }

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.about-grid--three { grid-template-columns: repeat(3, 1fr); margin-top: 56px; }

.about-block {
  background: var(--white);
  padding: 32px;
}
.about-block h3 {
  font-size: 16px;
  margin-bottom: 12px;
}
.about-block p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--slate);
}

@media (max-width: 720px) {
  .about-grid, .about-grid--three { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Ecosystem diagram
   ========================================================================== */
.ecosystem-diagram { margin: 0; }
.ecosystem-svg { width: 100%; height: auto; display: block; }
.ecosystem-note {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-light);
}

.ecosystem-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 32px;
}
.ecosystem-legend span {
  color: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   Flow diagram (reusable multi-step process strip)
   ========================================================================== */
.flow-diagram {
  margin: 0 0 8px;
  position: relative;
}
.flow-svg {
  width: 100%;
  height: 8px;
  display: block;
}
.flow-steps {
  display: grid;
  grid-template-columns: repeat(var(--n, 6), 1fr);
  gap: 8px;
  margin-top: -8px;
}
.flow-steps li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 2px solid var(--hairline-strong);
}
.flow-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
}
.flow-label {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
}
.flow-label--gold { color: var(--gold); }

.section--graphite .flow-steps li { border-top-color: rgba(255, 255, 255, 0.3); }
.section--graphite .flow-index { color: var(--gold-soft); }
.section--graphite .flow-label { color: var(--white); }

@media (max-width: 900px) {
  .flow-diagram { overflow-x: auto; padding-bottom: 8px; }
  .flow-steps { grid-template-columns: repeat(var(--n, 6), 130px); width: max-content; min-width: 100%; }
  .flow-svg { width: 100%; min-width: 100%; }
}

/* ==========================================================================
   Platform roadmap
   ========================================================================== */
.platform-roadmap {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--hairline);
}
.platform-roadmap-title {
  font-size: 13px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate);
  margin-bottom: 28px;
  font-weight: 500;
}

/* ==========================================================================
   HouseMaster positioning badge
   ========================================================================== */
.housemaster-position {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

/* ==========================================================================
   Vision timeline
   ========================================================================== */
.vision-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--hairline-strong);
  max-width: 720px;
}
.vision-timeline li {
  position: relative;
  padding: 0 0 40px 32px;
}
.vision-timeline li:last-child { padding-bottom: 0; }
.vision-timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--tint);
  border: 2px solid var(--gold);
}
.vision-year {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.vision-title {
  font-size: 17px;
  margin-bottom: 8px;
}
.vision-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--slate);
}

/* ==========================================================================
   Research ecosystem diagram
   ========================================================================== */
.research-diagram {
  margin: 0 auto 56px;
  max-width: 460px;
}
.research-svg { width: 100%; height: auto; display: block; }
.rd-line { stroke: var(--hairline-strong); stroke-width: 1; }
.rd-node { fill: var(--white); stroke: var(--slate-light); stroke-width: 1.4; }
.rd-node-label {
  font-family: var(--font-mono);
  font-size: 15px;
  fill: var(--graphite);
}
.rd-center { fill: var(--panel-gold); stroke: var(--gold); stroke-width: 1.6; }
.rd-center-label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  fill: var(--graphite);
}

@media (max-width: 720px) {
  .research-diagram { display: none; }
}

/* ==========================================================================
   Capability grid (AJAU AI)
   ========================================================================== */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.capability-card {
  background: var(--white);
  padding: 32px;
}
.capability-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 20px;
}
.capability-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}
.capability-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--slate);
}

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

/* ==========================================================================
   HouseMaster workflow
   ========================================================================== */
.workflow-diagram {
  margin: 0 0 64px;
  position: relative;
}
.workflow-svg {
  width: 100%;
  height: 8px;
  display: block;
}
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 8px;
  margin-top: -8px;
}
.workflow-steps li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 2px solid var(--hairline-strong);
}
.wf-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
}
.wf-label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}
.wf-label--gold { color: var(--gold); }

@media (max-width: 900px) {
  .workflow-diagram { overflow-x: auto; padding-bottom: 8px; }
  .workflow-steps { grid-template-columns: repeat(9, 120px); width: max-content; min-width: 100%; }
  .workflow-svg { width: 1080px; min-width: 100%; }
}

/* ==========================================================================
   Why it matters
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  border-top: 2px solid var(--graphite);
  padding-top: 20px;
}
.why-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}
.why-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--slate);
}

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

/* ==========================================================================
   Technology grid
   ========================================================================== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
}
.tech-item {
  background: var(--graphite);
  padding: 24px 28px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 14.5px;
  color: rgba(255,255,255,0.8);
}
.tech-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold-soft);
  min-width: 32px;
}

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

/* ==========================================================================
   Product grid
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  border: 1px solid var(--hairline);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.product-card:hover {
  border-color: var(--graphite);
  transform: translateY(-2px);
}
.product-status {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate-light);
  border: 1px solid var(--hairline-strong);
  padding: 4px 8px;
  border-radius: var(--radius);
}
.product-status--live {
  color: var(--gold);
  border-color: var(--gold);
}
.product-card h3 { font-size: 18px; }
.product-card p { font-size: 14.5px; line-height: 1.6; color: var(--slate); flex-grow: 1; }
.product-link {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--graphite);
}

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

/* ==========================================================================
   Publications
   ========================================================================== */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline-strong);
  border: 1px solid var(--hairline-strong);
}
.pub-card {
  background: var(--tint);
  padding: 24px 20px;
}
.pub-card h3 { font-size: 15px; margin-bottom: 8px; }
.pub-card p { font-size: 13.5px; line-height: 1.55; color: var(--slate); }

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

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.contact-grid h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 8px 0 16px; }

.contact-details {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-details dt {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-light);
  margin-bottom: 4px;
}
.contact-details dd {
  margin: 0;
  font-size: 16px;
}
.contact-details a:hover { color: var(--gold); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 13px;
  color: var(--slate);
}
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--graphite);
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-status {
  font-size: 13px;
  color: var(--slate);
  min-height: 18px;
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--graphite);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 48px;
  flex-wrap: wrap;
}
.footer-brand .brand-word {
  color: var(--white);
  display: block;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 14px;
  max-width: 32ch;
  color: rgba(255,255,255,0.55);
}
.footer-cols {
  display: flex;
  gap: 64px;
}
.footer-cols h4 {
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-cols a {
  display: block;
  font-size: 14px;
  padding: 6px 0;
  color: rgba(255,255,255,0.75);
}
.footer-cols a:hover { color: var(--gold-soft); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

@media (max-width: 720px) {
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-cols { gap: 40px; }
}

/* ==========================================================================
   Vertical cards (Ecosystem roadmap verticals)
   ========================================================================== */
.vertical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 28px;
}
.vertical-card {
  background: var(--graphite);
  padding: 24px;
}
.vertical-status {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 14px;
}
.vertical-card h3 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 8px;
}
.vertical-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
}

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

.ecosystem-future-note {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line-dashed);
  border-radius: var(--radius);
  padding: 4px 9px;
}

/* ==========================================================================
   Expanded why-grid (four columns for Why Kazakhstan)
   ========================================================================== */
.why-grid--four {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 960px) {
  .why-grid--four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .why-grid--four { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Photo evidence placeholders
   ========================================================================== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.photo-card {
  margin: 0;
  border: 1px solid var(--hairline);
}
.photo-slot {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tint);
  color: var(--slate-light);
  border-bottom: 1px solid var(--hairline);
}
.photo-slot svg { width: 40px; height: 40px; }
.photo-card figcaption {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.photo-card figcaption span:first-child {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--graphite);
}
.photo-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--slate-light);
}

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

/* ==========================================================================
   National map diagram
   ========================================================================== */
.map-diagram {
  margin: 0 0 20px;
}
.map-svg { width: 100%; height: auto; display: block; }
.map-node--pilot { fill: var(--gold); stroke: var(--gold-soft); stroke-width: 2; }
.map-node--future { fill: var(--graphite); stroke: var(--line-dashed); stroke-width: 2; }
.map-link { stroke: var(--line-dashed); stroke-width: 1; stroke-dasharray: 3 4; }

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.map-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.map-swatch--pilot { background: var(--gold); }
.map-swatch--future { background: var(--graphite); border: 2px solid var(--line-dashed); }
.map-swatch--layer { background: none; border: 1px solid var(--line-strong); }

@media (max-width: 720px) {
  .map-svg { height: 260px; }
}

/* ==========================================================================
   Trust layer ("Designed for")
   ========================================================================== */
.trust-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.trust-item {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--graphite);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  padding: 12px 18px;
}
