
/* Dark theme overrides scoped to .page-data-transparency */
.page-data-transparency {
  --bg: #0e0c0a;
  --bg-elevated: #1a1612;
  --bg-card: #221e19;
  --ink: #f0ece6;
  --paper: #0e0c0a;
  --text: #f0ece6;
  --text-soft: #b8b0a4;
  --text-muted: #7a7168;
  --signal: #c23a22;
  --signal-glow: rgba(194, 58, 34, 0.4);
  --blue: #4a8cc7;
  --blue-glow: rgba(74, 140, 199, 0.3);
  --green: #3d9e6f;
  --green-glow: rgba(61, 158, 111, 0.3);
  --amber: #c9982a;
  --amber-glow: rgba(201, 152, 42, 0.3);
  --rule: rgba(255, 255, 255, 0.06);
  --rule-bright: rgba(255, 255, 255, 0.12);
  --max-w: 1080px;

  background: var(--bg);
  color: var(--text);
}

.page-data-transparency .mast {
  background: rgba(14, 12, 10, 0.85);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(8px);
}
.page-data-transparency .mast .brand,
.page-data-transparency .mast .brand b { color: var(--text); }
.page-data-transparency .mast .brand b { color: var(--signal); }
.page-data-transparency .mast .brand i { color: var(--text-soft); }
.page-data-transparency .mast .brand-mark {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.page-data-transparency .mast .nav-links a,
.page-data-transparency .mast .mast-nav-list a { color: var(--text-soft); }
.page-data-transparency .mast .nav-links a:hover,
.page-data-transparency .mast .mast-nav-list a:hover { color: var(--text); }
.page-data-transparency .mast .nav-links .sub-menu { background: var(--bg-elevated); border-color: var(--rule); }
.page-data-transparency .mast .nav-links .sub-menu a { color: var(--text-soft); }
.page-data-transparency .mast .nav-links .sub-menu a:hover { background: var(--bg-card); color: var(--text); }

.page-data-transparency .site-footer {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  color: var(--text-muted);
  margin-top: 0;
}
.page-data-transparency .site-footer a,
.page-data-transparency .footer-col a,
.page-data-transparency .footer-bottom a,
.page-data-transparency .footer-legal a { color: var(--text-soft); }
.page-data-transparency .site-footer a:hover,
.page-data-transparency .footer-col a:hover,
.page-data-transparency .footer-bottom a:hover,
.page-data-transparency .footer-legal a:hover { color: var(--text); }
.page-data-transparency .footer-brand .brand b { color: var(--signal); }
.page-data-transparency .footer-brand .brand i { color: var(--text-soft); }
.page-data-transparency .footer-brand .brand-mark { background: var(--text); color: var(--bg); border-color: var(--text); }

.page-data-transparency a { color: var(--blue); text-decoration: none; }
.page-data-transparency a:hover { color: var(--signal); }

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

.dt-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 80px 24px 60px;
}

.dt-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.dt-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(194, 58, 34, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(74, 140, 199, 0.06) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

.dt-hero-content {
  position: relative;
  z-index: 2;
}

.dt-hero-eyebrow {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: dtFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.dt-hero-number {
  font-family: var(--mono);
  font-size: clamp(48px, 12vw, 120px);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
  opacity: 0;
  animation: dtFadeIn 0.6s ease 0.1s forwards;
}
.dt-hero-number .plus {
  color: var(--signal);
}

h1.dt-hero-subtitle,
.dt-hero-subtitle {
  font-size: clamp(15px, 2.2vw, 20px);
  font-weight: 400;
  color: var(--ink);
  max-width: 600px;
  margin: 16px auto 0;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  animation: dtFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.dt-hero-sub-desc {
  font-size: clamp(12px, 1.6vw, 14px);
  color: var(--text-muted);
  max-width: 560px;
  margin: 10px auto 0;
  line-height: 1.6;
  opacity: 0;
  animation: dtFadeIn 0.6s ease 0.8s forwards;
}

.dt-hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  opacity: 0;
  transform: translateY(20px);
  animation: dtFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}
.dt-hero-stat {
  text-align: center;
}
.dt-hero-stat-value {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}
.dt-hero-stat-value .unit { font-size: 16px; color: var(--text-muted); font-weight: 400; }
.dt-hero-stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

.dt-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: dtFadeIn 1s ease 1.5s forwards;
}
.dt-scroll-hint span {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.dt-scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: dtScrollPulse 2s ease-in-out infinite;
}
@keyframes dtScrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

.dt-section { padding: 80px 0; position: relative; }
.dt-section--bordered { border-top: 1px solid var(--rule); }

.dt-section-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 16px;
}
.dt-section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}
.dt-section-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 48px;
}

.dt-matrix-wrap {
  position: relative;
  margin: 48px 0;
}

.dt-matrix-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: center;
}

.dt-matrix-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.3s ease, background 0.3s ease;
  cursor: default;
  position: relative;
}
.dt-matrix-dot.is-cctld {
  background: var(--text-muted);
  opacity: 0 !important;
}
.dt-matrix-dot.revealed {
  opacity: 0.6;
}
.dt-matrix-dot.is-cctld.revealed {
  opacity: 0.15 !important;
}
.dt-matrix-dot:hover {
  opacity: 1 !important;
  transform: scale(2);
  z-index: 10;
}

.dt-matrix-legend {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
}
.dt-matrix-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dt-matrix-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.dt-matrix-legend-dot--gtld { background: var(--blue); opacity: 0.6; }
.dt-matrix-legend-dot--cctld { background: var(--text-muted); opacity: 0.2; }

.dt-matrix-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-bright);
  border-bottom: 1px solid var(--rule-bright);
  padding: 24px 0;
  margin-top: 48px;
}
.dt-matrix-stat {
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid var(--rule);
}
.dt-matrix-stat:last-child { border-right: none; }
.dt-matrix-stat-value {
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
}
.dt-matrix-stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

.dt-cctld-note {
  max-width: 640px;
  margin: 32px auto 0;
}
.dt-cctld-note p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  opacity: 0.7;
}
.dt-cctld-note strong {
  color: #c9982a;
  font-weight: 700;
}

.dt-flow-container {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 48px auto;
  aspect-ratio: 1;
}
.dt-flow-svg {
  width: 100%;
  height: 100%;
}

.dt-flow-dims {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.dt-flow-dim {
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg-elevated);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.dt-flow-dim:hover {
  border-color: var(--rule-bright);
  transform: translateY(-2px);
}
.dt-flow-dim-icon {
  font-size: 20px;
  margin-bottom: 8px;
}
.dt-flow-dim-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.dt-flow-dim-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.dt-principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  perspective: 1000px;
}
.dt-principle-card {
  padding: 32px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  border-radius: 8px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
  opacity: 0;
  transform: translateY(30px);
}
.dt-principle-card.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.dt-principle-card:nth-child(2).revealed { transition-delay: 0.1s; }
.dt-principle-card:nth-child(3).revealed { transition-delay: 0.2s; }

.dt-principle-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 1px solid var(--rule-bright);
}
.dt-principle-icon--signal { background: rgba(194, 58, 34, 0.1); border-color: rgba(194, 58, 34, 0.3); }
.dt-principle-icon--blue { background: rgba(74, 140, 199, 0.1); border-color: rgba(74, 140, 199, 0.3); }
.dt-principle-icon--green { background: rgba(61, 158, 111, 0.1); border-color: rgba(61, 158, 111, 0.3); }

.dt-principle-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.dt-principle-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.dt-timeline {
  position: relative;
  max-width: 600px;
  margin: 48px auto 0;
  padding-left: 48px;
}
.dt-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--signal), var(--blue), var(--green), transparent);
}
.dt-timeline-item {
  position: relative;
  padding: 0 0 40px 0;
  opacity: 0;
  transform: translateX(-20px);
}
.dt-timeline-item.revealed {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.dt-timeline-item:nth-child(2).revealed { transition-delay: 0.15s; }
.dt-timeline-item:nth-child(3).revealed { transition-delay: 0.3s; }
.dt-timeline-item:last-child { padding-bottom: 0; }

.dt-timeline-dot {
  position: absolute;
  left: -40px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid;
  background: var(--bg);
}
.dt-timeline-dot--signal { border-color: var(--signal); box-shadow: 0 0 8px var(--signal-glow); }
.dt-timeline-dot--blue { border-color: var(--blue); box-shadow: 0 0 8px var(--blue-glow); }
.dt-timeline-dot--green { border-color: var(--green); box-shadow: 0 0 8px var(--green-glow); }

.dt-timeline-freq {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.dt-timeline-detail {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.dt-cta-section {
  text-align: center;
  padding: 80px 0;
  border-top: 1px solid var(--rule);
}
.dt-cta-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  margin-bottom: 12px;
}
.dt-cta-desc {
  font-size: 14px;
  color: var(--text-soft);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.dt-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dt-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}
a.dt-btn--signal { background: var(--signal); color: #fff; border-color: var(--signal); }
a.dt-btn--signal:hover { background: #a83220; color: #fff; }
a.dt-btn--outline { background: transparent; color: var(--ink); border-color: var(--text-muted); }
a.dt-btn--outline:hover { border-color: var(--ink); background: rgba(255,255,255,0.05); color: var(--ink); }

@keyframes dtFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dtFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (max-width: 768px) {
  .dt-hero-stats { flex-direction: column; gap: 20px; }
  .dt-principles-grid { grid-template-columns: 1fr; }
  .dt-matrix-stats { grid-template-columns: 1fr; gap: 20px; }
  .dt-matrix-stat { border-right: none; border-bottom: 1px solid var(--rule); padding-bottom: 16px; }
  .dt-matrix-stat:last-child { border-bottom: none; padding-bottom: 0; }
  .dt-river-stages { flex-wrap: wrap; gap: 16px; }
  .dt-river-stage { flex: 1 1 40%; }
  .dt-flow-container { aspect-ratio: auto; }
}

@media (max-width: 480px) {
  .dt-section { padding: 80px 0; }
  .dt-matrix-dot { width: 6px; height: 6px; }
  .dt-matrix-grid { gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-data-transparency *,
  .page-data-transparency *::before,
  .page-data-transparency *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.2s !important;
  }
}

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

.page-data-transparency-v3 {
  background: #000;
}

.page-data-transparency-v3 .dt-hero-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.page-data-transparency-v3 .dt-hero {
  min-height: auto;
  padding: 140px 24px 80px;
  background: transparent;
}

.page-data-transparency-v3 .dt-hero::after {
  display: none;
}

.page-data-transparency-v3 .dt-section,
.page-data-transparency-v3 .dt-cta-section {
  background: transparent;
  position: relative;
  z-index: 1;
}

.page-data-transparency-v3 .dt-section--bordered {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.page-data-transparency-v3 .dt-container,
.page-data-transparency-v3 .dt-hero-content,
.page-data-transparency-v3 .dt-scroll-hint {
  position: relative;
  z-index: 1;
}

.page-data-transparency-v3 .dt-scroll-hint span {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.page-data-transparency-v3 .dt-scroll-line {
  background: linear-gradient(to bottom, var(--text), transparent);
}

.page-data-transparency-v3 .site-nav,
.page-data-transparency-v3 .site-footer {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.page-data-transparency-v3 .dt-cctld-note {
  max-width: 720px;
  margin-top: 40px;
}
.page-data-transparency-v3 .dt-cctld-note p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
  opacity: 1;
}

.page-data-transparency-v3 .dt-matrix-wrap,
.page-data-transparency-v3 .dt-principle-card,
.page-data-transparency-v3 .dt-timeline-item,
.page-data-transparency-v3 .dt-cta-section {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.page-data-transparency-v3.page-data-transparency::before {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-data-transparency-v3 .dt-hero-canvas {
    display: none;
  }
  .page-data-transparency-v3 {
    background:
      radial-gradient(ellipse at 30% 30%, rgba(74, 140, 199, 0.08) 0%, transparent 60%),
      radial-gradient(ellipse at 70% 70%, rgba(194, 58, 34, 0.08) 0%, transparent 60%),
      #000;
    background-attachment: fixed;
  }
}
