/* ═══════════════════════════════════════════════════════
   NDF ARCHITECTURE PAGE — Page Styles
   Inherits global tokens from /style.css
   Accent: teal — matches home page, the fabric overview
   ═══════════════════════════════════════════════════════ */

:root {
  --arch-teal:        #0AB8CC;
  --arch-teal-bright: #12D4EB;
  --arch-teal-dim:    rgba(10, 184, 204, 0.15);
  --arch-teal-border: rgba(10, 184, 204, 0.38);
  --arch-teal-glow:   rgba(10, 184, 204, 0.09);
  --arch-teal-text:   rgba(10, 184, 204, 0.92);
}


/* ── DATA STREAM ──────────────────────────────────────── */
.data-stream-layer {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0.13;
}

.data-column {
  position: absolute; top: 0;
  display: flex; flex-direction: column; gap: 0.55em;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 0.68rem;
  color: rgba(10, 184, 204, 0.65);
  line-height: 1.6; white-space: nowrap;
  animation: streamScroll var(--scroll-duration, 22s) linear infinite;
  animation-delay: var(--scroll-delay, 0s);
}

@keyframes streamScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.data-column:nth-child(1) { left: 2%;  --scroll-duration: 20s; --scroll-delay: 0s;   }
.data-column:nth-child(2) { left: 14%; --scroll-duration: 26s; --scroll-delay: -8s;  }
.data-column:nth-child(3) { left: 28%; --scroll-duration: 18s; --scroll-delay: -3s;  }
.data-column:nth-child(4) { left: 44%; --scroll-duration: 23s; --scroll-delay: -11s; }
.data-column:nth-child(5) { left: 60%; --scroll-duration: 21s; --scroll-delay: -6s;  }
.data-column:nth-child(6) { left: 74%; --scroll-duration: 28s; --scroll-delay: -14s; }
.data-column:nth-child(7) { left: 88%; --scroll-duration: 19s; --scroll-delay: -2s;  }


/* ── GHOST WORD ───────────────────────────────────────── */
.arch-section {
  position: relative; overflow: hidden;
}

.ghost-word {
  position: absolute; bottom: -0.1em; left: -0.05em;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(5rem, 16vw, 14rem);
  text-transform: uppercase; letter-spacing: -0.02em; line-height: 1;
  color: rgba(10, 184, 204, 0.045);
  pointer-events: none; user-select: none; z-index: 0;
  white-space: nowrap;
  opacity: 0; transform: translateY(10px);
  transition: opacity 1.4s ease-out, transform 1.4s ease-out;
}

.ghost-word.visible { opacity: 1; transform: translateY(0); }

.arch-section-inner { position: relative; z-index: 1; }


/* ── PAGE LAYOUT ──────────────────────────────────────── */
.arch-page {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: 6rem 2rem 4rem;
}


/* ── HEADER ───────────────────────────────────────────── */
.arch-header {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem; align-items: center;
  padding-bottom: 5rem;
}

.arch-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  text-transform: uppercase; letter-spacing: -0.02em;
  line-height: 0.95; margin: 0;
  color: var(--arch-teal-text);
}

.arch-intro {
  font-family: 'Barlow', sans-serif; font-weight: 300;
  font-size: 1rem; line-height: 1.75;
  color: var(--text-muted, rgba(255,255,255,0.55));
  opacity: 0.7; margin: 0;
}


/* ── SHARED SECTION ───────────────────────────────────── */
.arch-section {
  padding: 4.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.055);
}

.section-header {
  display: flex; align-items: baseline; gap: 1.25rem;
  margin-bottom: 2.5rem; padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.section-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700; font-size: 0.6rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--arch-teal-text);
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--arch-teal-border);
  background: var(--arch-teal-glow);
}

.section-heading {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
  font-size: clamp(1.1rem, 2.5vw, 1.65rem);
  text-transform: uppercase; letter-spacing: -0.01em; margin: 0;
}

.section-intro {
  font-family: 'Barlow', sans-serif; font-weight: 300;
  font-size: 0.92rem; line-height: 1.75;
  opacity: 0.62; max-width: 72ch; margin: 0 0 2.5rem 0;
}

.body-copy {
  font-family: 'Barlow', sans-serif; font-weight: 300;
  font-size: 0.92rem; line-height: 1.82;
  opacity: 0.62; margin: 0 0 1.3rem 0; max-width: 64ch;
}

.body-copy--lead { font-weight: 500; font-size: 1.02rem; opacity: 0.85; }


/* ── TWO COLUMN LAYOUT ────────────────────────────────── */
.arch-two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem; align-items: start;
}

/* Pillars */
.arch-pillars {
  display: flex; flex-direction: column;
  border: 1px solid rgba(255,255,255,0.07);
}

.pillar-item {
  padding: 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s ease;
}

.pillar-item:last-child { border-bottom: none; }
.pillar-item:hover { background: var(--arch-teal-glow); }

.pillar-name {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 0.06em; margin: 0 0 0.5rem 0;
  color: var(--arch-teal-text);
}

.pillar-desc {
  font-family: 'Barlow', sans-serif; font-weight: 300;
  font-size: 0.82rem; line-height: 1.65; opacity: 0.55;
  margin: 0;
}


/* ── GOVERN DIMENSIONS ────────────────────────────────── */
.gov-dimensions {
  display: flex; gap: 0;
  border: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 0;
}

.gov-dim {
  flex: 1; padding: 1.75rem 1.25rem;
  border-right: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s ease;
}

.gov-dim:last-child { border-right: none; }
.gov-dim:hover { background: rgba(255,255,255,0.015); }

.gov-dim--action {
  border-left: 2px solid var(--arch-teal-border);
  background: var(--arch-teal-glow);
}

.gov-dim-icon {
  font-size: 0.8rem; color: var(--arch-teal-text);
  opacity: 0.5; margin-bottom: 0.75rem; display: block;
}

.gov-dim-name {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.08em; margin: 0 0 0.6rem 0;
}

.gov-dim-desc {
  font-family: 'Barlow', sans-serif; font-weight: 300;
  font-size: 0.78rem; line-height: 1.6; opacity: 0.5; margin: 0;
}

.gov-outcome {
  display: grid;
  grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start;
  padding: 1.5rem 1.75rem;
  background: var(--arch-teal-glow);
  border: 1px solid var(--arch-teal-border);
  border-top: none;
}

.outcome-label {
  font-family: 'IBM Plex Mono', monospace; font-weight: 700;
  font-size: 0.65rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--arch-teal-text);
  white-space: nowrap; padding-top: 0.1rem;
}

.outcome-text {
  font-family: 'Barlow', sans-serif; font-weight: 300;
  font-size: 0.82rem; line-height: 1.65; opacity: 0.62;
}


/* ── MANIFESTO LINES ──────────────────────────────────── */
.arch-manifesto { max-width: 72ch; }

.arch-manifesto-lines {
  display: flex; flex-direction: column; gap: 0.2rem;
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.arch-mline {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
  font-size: clamp(1.6rem, 3.5vw, 3.2rem);
  text-transform: uppercase; letter-spacing: -0.01em;
  line-height: 1.2; opacity: 0.82;
}

.arch-mi1 { padding-left: clamp(1.5rem, 4vw, 4rem); }
.arch-mi2 { padding-left: clamp(3rem, 8vw, 8rem); }
.arch-mi3 { padding-left: clamp(4.5rem, 12vw, 12rem); }

.arch-mcoda { color: var(--arch-teal-text); opacity: 0.95; }


/* ── CTA ──────────────────────────────────────────────── */
.arch-cta {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 3rem; align-items: start;
  padding: 4rem 0 6rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.cta-heading {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-transform: uppercase; letter-spacing: -0.01em;
  margin: 0 0 1rem 0;
}

.cta-body {
  font-family: 'Barlow', sans-serif; font-weight: 300;
  font-size: 0.88rem; line-height: 1.68;
  opacity: 0.6; max-width: 55ch; margin: 0;
}

.cta-button {
  display: block; width: fit-content;
  padding: 0.9rem 1.8rem;
  font-family: 'IBM Plex Mono', monospace; font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none;
  color: var(--arch-teal-text);
  border: 1px solid var(--arch-teal-border);
  background: var(--arch-teal-glow);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.cta-button:hover {
  border-color: var(--arch-teal);
  background: var(--arch-teal-dim);
  color: var(--arch-teal-bright);
}


/* ── SCROLL DOTS ──────────────────────────────────────── */
.scroll-dots {
  position: fixed; right: 1.5rem; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 0.6rem; z-index: 100;
}

.scroll-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none; cursor: pointer; padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.scroll-dot.active {
  background: var(--arch-teal);
  transform: scale(1.4);
  box-shadow: 0 0 8px var(--arch-teal-dim);
}

.scroll-dot:hover { background: var(--arch-teal-text); }


/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 960px) {
  .arch-header { grid-template-columns: 1fr; gap: 2rem; }
  .arch-two-col { grid-template-columns: 1fr; gap: 3rem; }
  .gov-dimensions { flex-direction: column; }
  .gov-dim { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .gov-dim:last-child { border-bottom: none; }
  .gov-outcome { grid-template-columns: 1fr; gap: 0.75rem; }
}

@media (max-width: 768px) {
  .arch-cta { grid-template-columns: 1fr; }
  .scroll-dots { display: none; }
  .arch-mline { font-size: clamp(1.2rem, 6vw, 2rem); }
  .arch-mi1 { padding-left: 1rem; }
  .arch-mi2 { padding-left: 2rem; }
  .arch-mi3 { padding-left: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .ghost-word { opacity: 1; transform: none; }
  .data-stream-layer { opacity: 0.04; }
}
