/* ─────────────────────────────────────────────────────────────
   Ifa Architecture (Ifarch) — ToE Architecture · ArchoE
   The IFA Internet · CENProject
───────────────────────────────────────────────────────────── */

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

:root {
  --bg:        #06080e;
  --surface:   #0b0f1a;
  --surface-2: #111827;
  --surface-3: #1a2338;
  --border:    rgba(255,255,255,0.07);
  --border-2:  rgba(255,255,255,0.13);

  --gold:      #f5c518;
  --gold-2:    #e0a800;
  --gold-dim:  rgba(245,197,24,0.12);
  --gold-glow: rgba(245,197,24,0.22);

  --arch:      #3b82f6;
  --arch-dim:  rgba(59,130,246,0.12);
  --arch-glow: rgba(59,130,246,0.22);

  --text:   #e8ecf5;
  --text-2: #8b92a8;
  --text-3: #464e63;

  --header-h: 68px;
  --max-w:    1200px;
  --r:        10px;
  --r-sm:     6px;
  --r-lg:     16px;
  --r-xl:     24px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow:    0 8px 32px rgba(0,0,0,0.55);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.7);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--r);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn--primary {
  background: var(--gold);
  color: #06080e;
}
.btn--primary:hover { background: var(--gold-2); transform: translateY(-1px); }
.btn--ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); }

/* ── Header ───────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.header--scrolled {
  background: rgba(6,8,14,0.92);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}
.header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.header__back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-2);
  transition: color 0.2s;
  white-space: nowrap;
}
.header__back:hover { color: var(--text); }
.header__back-arrow { font-size: 1rem; }

.header__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}
.header__brand-icon {
  font-size: 1.3rem;
  color: var(--gold);
}
.header__brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 7px 13px;
  border-radius: var(--r-sm);
  font-size: 0.82rem;
  color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-link--cta {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid rgba(245,197,24,0.2);
  margin-left: 4px;
}
.nav-link--cta:hover { background: var(--gold-glow); }

/* ── Sections ─────────────────────────────────────────────── */
.section {
  padding: 100px 0;
}
.section--alt {
  background: var(--surface);
}
.section__header {
  text-align: center;
  margin-bottom: 60px;
}
.section__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 14px;
}
.section__title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
}
.section__desc {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── Hero ─────────────────────────────────────────────────── */
@keyframes ring-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes ring-spin-rev {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(-360deg); }
}
@keyframes blueprint-line {
  0%   { opacity: 0; transform: scaleX(0) rotate(var(--line-angle, 0deg)); }
  30%  { opacity: 0.4; }
  70%  { opacity: 0.2; }
  100% { opacity: 0; transform: scaleX(1.5) rotate(var(--line-angle, 0deg)); }
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__blueprint-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.hero__glow--blue {
  width: 600px; height: 600px;
  background: rgba(59,130,246,0.12);
  top: -100px; right: -100px;
}
.hero__glow--gold {
  width: 500px; height: 500px;
  background: rgba(245,197,24,0.08);
  bottom: -80px; left: -80px;
}

/* Blueprint construction lines */
.hero__lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__line {
  position: absolute;
  top: 50%; left: 50%;
  width: 120%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.25), transparent);
  transform-origin: left center;
  animation: blueprint-line var(--line-dur, 4s) var(--line-delay, 0s) ease-in-out infinite;
}

/* Architectural rings */
.hero__rings {
  position: absolute;
  top: 50%; left: 50%;
  z-index: 0;
  pointer-events: none;
}
.hero__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  transform: translate(-50%, -50%);
}
.hero__ring--1 { width: 300px; height: 300px; border-color: rgba(59,130,246,0.15); animation: ring-spin 20s linear infinite; }
.hero__ring--2 { width: 500px; height: 500px; border-color: rgba(245,197,24,0.1);  animation: ring-spin-rev 30s linear infinite; }
.hero__ring--3 { width: 720px; height: 720px; border-color: rgba(59,130,246,0.07); animation: ring-spin 45s linear infinite; }
.hero__ring--4 { width: 960px; height: 960px; border-color: rgba(245,197,24,0.04); animation: ring-spin-rev 60s linear infinite; }

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--arch);
  margin-bottom: 28px;
}
.hero__eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--arch);
}

.hero__title {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.hero__title-ifa { color: var(--gold); }

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--arch);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

.hero__desc {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto 44px;
  line-height: 1.8;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.hero__stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.hero__stat-label {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Intro Banner ────────────────────────────────────────────  */
.intro-banner {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.intro-banner__inner {
  text-align: center;
}
.intro-banner__quote {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-style: italic;
  color: var(--text);
  line-height: 1.8;
  max-width: 760px;
  margin: 0 auto 12px;
}
.intro-banner__mark {
  color: var(--gold);
  font-size: 1.6rem;
  line-height: 0;
  vertical-align: -0.2em;
  margin: 0 4px;
}
.intro-banner__attr {
  font-size: 0.8rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

/* ── Identity Grid ───────────────────────────────────────────── */
.identity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 52px;
}

.identity-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.identity-card:hover { border-color: var(--id-accent); transform: translateY(-2px); }

.identity-card__top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--id-accent);
  opacity: 0.7;
}
.identity-card__symbol {
  font-size: 2rem;
  color: var(--id-accent);
  margin-bottom: 12px;
}
.identity-card__abbr {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--id-accent);
  margin-bottom: 6px;
}
.identity-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.identity-card__desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* Ifarch ↔ Orisarch Dual Panel */
.dual-panel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.dual-panel__side {
  padding: 40px 36px;
}
.dual-panel__side--ifa { border-right: 1px solid var(--border); }

.dual-panel__symbol {
  font-size: 2.4rem;
  margin-bottom: 10px;
}
.dual-panel__name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.dual-panel__sub {
  font-size: 0.8rem;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.dual-panel__desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.75;
}

.dual-panel__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  gap: 8px;
}
.dual-panel__arrow {
  font-size: 1.6rem;
  color: var(--gold);
}
.dual-panel__label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  writing-mode: vertical-rl;
}

/* ── Odu Blueprint Grid ──────────────────────────────────────── */
.odu-bp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}

.odu-bp-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 14px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.15s;
  min-height: 90px;
}
.odu-bp-card:hover { border-color: var(--odu-accent); transform: translateY(-1px); }
.odu-bp-card--open {
  border-color: var(--odu-accent);
  background: var(--surface-3);
  min-height: auto;
}

.odu-bp-card__bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--odu-accent);
}
.odu-bp-card__num {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--odu-accent);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.odu-bp-card__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.odu-bp-card__role {
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-top: 8px;
}
.odu-bp-card__hint {
  font-size: 0.62rem;
  color: var(--text-3);
  margin-top: 6px;
  letter-spacing: 0.08em;
}

.odu-bp-stats {
  display: flex;
  justify-content: center;
  gap: 52px;
  padding: 32px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  flex-wrap: wrap;
}
.odu-bp-stat {
  text-align: center;
}
.odu-bp-stat__num {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
}
.odu-bp-stat__label {
  font-size: 0.75rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

/* ── Fields Grid ─────────────────────────────────────────────── */
.fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.field-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.field-card:hover { border-color: var(--field-accent); transform: translateY(-2px); }

.field-card__bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--field-accent);
}
.field-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  padding-left: 4px;
}
.field-card__desc {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.65;
  padding-left: 4px;
}

/* ── Heritage Cards (African / Western / Eastern) ────────────── */
.heritage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.heritage-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.heritage-card:hover {
  border-color: var(--hc-accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 0 1px var(--hc-accent);
}

/* Visual panel */
.heritage-card__visual {
  position: relative;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.heritage-card__visual-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.heritage-card__icon {
  position: relative;
  z-index: 1;
  font-size: 4.2rem;
  color: var(--hc-accent);
  filter: drop-shadow(0 0 28px color-mix(in srgb, var(--hc-accent) 60%, transparent));
  line-height: 1;
  user-select: none;
  transition: transform 0.3s;
}
.heritage-card:hover .heritage-card__icon {
  transform: scale(1.12);
}
.heritage-card__era {
  position: absolute;
  bottom: 10px;
  right: 12px;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.75);
  background: rgba(0,0,0,0.55);
  padding: 3px 8px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
}

/* Heritage card photo (loaded from Wikipedia API) */
.heritage-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.45s ease, opacity 0.3s ease;
}
.heritage-card:hover .heritage-card__photo {
  transform: scale(1.06);
}

/* Card body */
.heritage-card__body {
  padding: 20px 22px 20px;
  border-top: 3px solid var(--hc-accent);
  flex: 1;
}
.heritage-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.heritage-card__region {
  font-size: 0.72rem;
  color: var(--hc-accent);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 13px;
}
.heritage-card__desc {
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 0;
}

/* Explore button */
.heritage-card__explore-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--hc-accent);
  background: transparent;
  border: 1.5px solid var(--hc-accent);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.heritage-card__explore-btn:hover {
  background: var(--hc-accent);
  color: #06080e;
}
.heritage-card--open .heritage-card__explore-btn {
  background: rgba(255,255,255,0.06);
}

/* Expandable explore panel */
.heritage-card__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 1px solid transparent;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s;
}
.heritage-card--open .heritage-card__panel {
  max-height: 800px;
  border-top-color: var(--border);
}

/* Highlights list */
.heritage-card__highlights {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 22px 12px;
}
.heritage-card__hl-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.81rem;
  color: var(--text-2);
  line-height: 1.65;
}
.heritage-card__hl-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hc-accent);
  margin-top: 6px;
}

/* More info paragraph */
.heritage-card__more {
  margin: 4px 22px 16px;
  padding: 10px 14px;
  font-size: 0.81rem;
  color: var(--text-2);
  line-height: 1.78;
  font-style: italic;
  border-left: 2px solid var(--hc-accent);
  background: rgba(255,255,255,0.025);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* Wikipedia link */
.heritage-card__wiki-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 22px 20px;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--hc-accent);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.heritage-card__wiki-link:hover {
  border-color: var(--hc-accent);
  background: rgba(255,255,255,0.07);
}

/* ── Orisa Models Grid ───────────────────────────────────────── */
.orisa-models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 44px;
}

.orisa-model-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}
.orisa-model-card:hover { border-color: var(--om-accent); }

.orisa-model-card__bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--om-accent);
}
.orisa-model-card__header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.orisa-model-card__orisa {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--om-accent);
}
.orisa-model-card__role {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.orisa-model-card__arch {
  font-size: 0.75rem;
  color: var(--text-3);
  font-style: italic;
  margin-bottom: 14px;
  line-height: 1.6;
  border-left: 2px solid var(--om-accent);
  padding-left: 10px;
}
.orisa-model-card__desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.75;
}

/* ── Modelling CTA ───────────────────────────────────────────── */
.modelling-cta {
  background: var(--surface-2);
  border: 1px solid rgba(245,197,24,0.25);
  border-radius: var(--r-xl);
  padding: 32px 36px;
  margin-bottom: 52px;
}
.modelling-cta__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.modelling-cta__icon {
  font-size: 2.4rem;
  color: var(--gold);
  flex-shrink: 0;
}
.modelling-cta__text { flex: 1; min-width: 200px; }
.modelling-cta__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.modelling-cta__sub {
  font-size: 0.85rem;
  color: var(--text-2);
}

/* Axiom blockquote */
.arch-axiom {
  border-left: 3px solid var(--gold);
  padding: 20px 28px;
  background: var(--gold-dim);
  border-radius: 0 var(--r) var(--r) 0;
  font-style: italic;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
}
.arch-axiom cite {
  display: block;
  font-size: 0.78rem;
  color: var(--text-3);
  font-style: normal;
  margin-top: 10px;
  letter-spacing: 0.05em;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 36px;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer__logo-icon {
  font-size: 1.5rem;
  color: var(--gold);
}
.footer__logo-name {
  font-size: 1.1rem;
  font-weight: 700;
}
.footer__tagline {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.6;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}
.footer__link {
  font-size: 0.82rem;
  color: var(--text-2);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}
.footer__link:hover { color: var(--text); border-color: var(--border-2); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.footer__copy { font-size: 0.78rem; color: var(--text-3); }
.footer__axiom { font-size: 0.75rem; color: var(--text-3); font-style: italic; }

/* ── Smart Homes Section ─────────────────────────────────────── */
.smarthomes__tagline {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-2);
  font-style: italic;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

/* Tech cards grid */
.smarthomes__tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.smarthomes__tech-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.smarthomes__tech-card--ifa:hover {
  border-color: #f5c518;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,197,24,0.3);
}
.smarthomes__tech-card--orisa:hover {
  border-color: #4361ee;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(67,97,238,0.3);
}

.smarthomes__tc-bar {
  height: 4px;
  width: 100%;
  flex-shrink: 0;
}
.smarthomes__tc-inner {
  padding: 28px 28px 32px;
}
.smarthomes__tc-symbol {
  font-size: 2.4rem;
  margin-bottom: 12px;
  line-height: 1;
}
.smarthomes__tc-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 5px;
}
.smarthomes__tc-sub {
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
}
.smarthomes__tc-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 20px;
}
.smarthomes__tc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.smarthomes__tc-list li {
  font-size: 0.8rem;
  color: var(--text-2);
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}
.smarthomes__tc-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  font-size: 0.72rem;
}
.smarthomes__tc-list--ifa li::before  { color: #f5c518; }
.smarthomes__tc-list--orisa li::before { color: #4361ee; }

/* Nexus bridge panel */
.smarthomes__nexus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 60px;
}

.smarthomes__nexus-col {
  padding: 36px 32px;
}
.smarthomes__nexus-col:first-child { border-right: 1px solid var(--border); }
.smarthomes__nexus-col--right      { border-left: 1px solid var(--border); }

.smarthomes__nexus-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.smarthomes__nexus-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.smarthomes__nexus-tag {
  display: block;
  font-size: 0.8rem;
  color: var(--text-2);
  padding: 6px 11px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  line-height: 1.5;
  transition: background 0.2s;
}
.smarthomes__nexus-tag--ifa:hover  { background: rgba(245,197,24,0.06); border-color: rgba(245,197,24,0.25); }
.smarthomes__nexus-tag--orisa:hover { background: rgba(67,97,238,0.06); border-color: rgba(67,97,238,0.25); }

.smarthomes__nexus-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 32px;
  text-align: center;
  gap: 8px;
  min-width: 168px;
  background: linear-gradient(180deg, rgba(245,197,24,0.05) 0%, rgba(67,97,238,0.06) 100%);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.smarthomes__nexus-icon {
  font-size: 2.2rem;
  background: linear-gradient(135deg, #f5c518 0%, #4361ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}
.smarthomes__nexus-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.45;
}
.smarthomes__nexus-sub {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 2px;
}

/* 8-feature grid */
.smarthomes__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(256px, 1fr));
  gap: 18px;
  margin-bottom: 52px;
}
.smarthomes__feature {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 22px 26px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.smarthomes__feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--shf-accent);
}
.smarthomes__feature:hover {
  border-color: var(--shf-accent);
  transform: translateY(-3px);
}
.smarthomes__feature-icon {
  font-size: 1.7rem;
  color: var(--shf-accent);
  margin-bottom: 12px;
  line-height: 1;
}
.smarthomes__feature-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 9px;
}
.smarthomes__feature-desc {
  font-size: 0.81rem;
  color: var(--text-2);
  line-height: 1.75;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .identity-grid { grid-template-columns: 1fr 1fr; }
  .heritage-grid { grid-template-columns: repeat(2, 1fr); }
  .orisa-models-grid { grid-template-columns: 1fr; }
  .dual-panel {
    grid-template-columns: 1fr;
  }
  .dual-panel__side--ifa { border-right: none; border-bottom: 1px solid var(--border); }
  .dual-panel__center { flex-direction: row; writing-mode: horizontal-tb; padding: 16px 24px; }
  .dual-panel__label { writing-mode: horizontal-tb; }
  .odu-bp-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .odu-bp-stats { gap: 28px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .smarthomes__tech-grid { grid-template-columns: 1fr; }
  .smarthomes__nexus {
    grid-template-columns: 1fr;
  }
  .smarthomes__nexus-col:first-child { border-right: none; border-bottom: 1px solid var(--border); }
  .smarthomes__nexus-col--right { border-left: none; border-top: 1px solid var(--border); }
  .smarthomes__nexus-center { border-left: none; border-right: none; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
}

@media (max-width: 640px) {
  .section { padding: 70px 0; }

  /* ── Mobile header: two-row layout with scrollable nav ── */
  .header { height: auto; }
  .header__inner {
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 14px 0;
    gap: 0;
    row-gap: 2px;
  }
  .header__back { display: none; }
  .header__brand { padding: 4px 0 6px; }
  .header__nav {
    display: flex;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 2px;
    padding: 2px 0 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .header__nav::-webkit-scrollbar { display: none; }
  .nav-link {
    font-size: 0.72rem;
    padding: 5px 9px;
    white-space: nowrap;
  }
  .nav-link--cta { margin-left: 2px; }

  /* Push hero down to clear the taller two-row header (~88px) */
  .hero { padding-top: 90px; }

  .hero__rings { display: none; }
  .identity-grid { grid-template-columns: 1fr; }
  .fields-grid { grid-template-columns: 1fr; }
  .heritage-grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 24px; }
  .modelling-cta__inner { flex-direction: column; align-items: flex-start; }
  .odu-bp-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .smarthomes__nexus-col { padding: 24px 20px; }
  .smarthomes__nexus-center { padding: 24px 20px; }
  .smarthomes__features-grid { grid-template-columns: 1fr; }
}
