/* =========================================================
   TERA AG - Stylesheet v3
   Glassmorphism on deep navy. Dynamic chart visualisation.
   ========================================================= */

:root {
  --navy-900: #0a0e27;
  --navy-800: #0f1431;
  --navy-700: #151a3a;
  --navy-600: #1e2452;
  --navy-500: #252c64;
  --gold: #d4af37;
  --gold-bright: #f5d478;
  --gold-dim: #a88a2c;
  --blue: #4a9eff;
  --blue-dim: #2d6bc4;
  --silver: #c0c4d1;
  --silver-dim: #8890a5;
  --text: #edf0f8;
  --text-muted: #b4bbd0;
  --text-faint: #6a7290;
  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-bg-strong: rgba(255, 255, 255, 0.075);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-strong: rgba(255, 255, 255, 0.14);
  --glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-smooth: cubic-bezier(.4, 0, .2, 1);
  --container: 1200px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--navy-900);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(74, 158, 255, 0.10), transparent 60%),
    radial-gradient(ellipse 70% 55% at 80% 100%, rgba(212, 175, 55, 0.08), transparent 55%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-700) 50%, var(--navy-600) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* =========================================================
   AMBIENT ORBS
   ========================================================= */
.orbs {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55;
  animation: orbFloat 22s ease-in-out infinite;
}
.orb-1 {
  width: 520px; height: 520px; top: -160px; left: -180px;
  background: radial-gradient(circle, rgba(74, 158, 255, 0.55), transparent 70%);
}
.orb-2 {
  width: 460px; height: 460px; top: 40%; right: -160px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.38), transparent 70%);
  animation-delay: -7s; animation-duration: 28s;
}
.orb-3 {
  width: 380px; height: 380px; bottom: -140px; left: 40%;
  background: radial-gradient(circle, rgba(120, 90, 220, 0.30), transparent 70%);
  animation-delay: -14s; animation-duration: 32s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -60px) scale(1.08); }
  66% { transform: translate(-40px, 50px) scale(0.94); }
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 14px; left: 14px; right: 14px;
  z-index: 50; border-radius: 18px;
  transition: all .35s var(--ease);
}
.glass-nav {
  background: rgba(15, 20, 49, 0.55);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.nav.scrolled { background: rgba(15, 20, 49, 0.82); }
.nav-inner {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 18px; max-width: var(--container); margin: 0 auto;
}
.nav-brand { display: inline-flex; align-items: center; gap: 10px; }
.nav-logo { height: 42px; width: auto; display: block; filter: drop-shadow(0 2px 8px rgba(74,158,255,0.25)); }
.nav-wordmark {
  display: none;
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
  letter-spacing: 0.08em; color: var(--text);
}
.nav-links {
  display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: nowrap;
}
.nav-links a {
  position: relative; padding: 8px 14px; font-size: 14px; font-weight: 500;
  color: var(--text-muted); letter-spacing: 0.02em;
  transition: color .3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

.lang-wrap { position: relative; margin-left: 14px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 10px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; color: var(--text);
  background: var(--glass-bg-strong); border: 1px solid var(--glass-border-strong);
  transition: all .3s var(--ease);
}
.lang-btn:hover { background: rgba(212, 175, 55, 0.15); border-color: rgba(212, 175, 55, 0.4); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 180px;
  max-width: calc(100vw - 28px);
  background: rgba(15, 20, 49, 0.94);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-border-strong);
  border-radius: 14px; padding: 6px;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  max-height: 320px; overflow-y: auto;
}
.lang-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.lang-menu li {
  padding: 9px 12px; border-radius: 8px; font-size: 13.5px; color: var(--text-muted);
  cursor: pointer; transition: all .2s var(--ease);
}
.lang-menu li:hover, .lang-menu li.active {
  color: var(--text); background: rgba(212, 175, 55, 0.16);
}

.nav-toggle {
  display: none; margin-left: 8px; padding: 8px;
  flex-direction: column; gap: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px;
  transition: all .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 140px 0 100px; text-align: center; z-index: 1;
  background-image:
    linear-gradient(180deg,
      rgba(10, 14, 39, 0.78) 0%,
      rgba(10, 14, 39, 0.62) 45%,
      rgba(10, 14, 39, 0.78) 100%),
    url("hero.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}
.hero-inner { max-width: 980px; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 26px;
}
.hero-tagline {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(38px, 6.5vw, 82px); line-height: 1.08;
  background: linear-gradient(135deg, #ffffff 0%, #d4af37 50%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin-bottom: 30px; letter-spacing: -0.01em;
  animation: shimmerText 8s ease-in-out infinite;
}
@keyframes shimmerText {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-subtitle {
  font-size: clamp(16px, 1.7vw, 20px);
  color: var(--text-muted); max-width: 720px; margin: 0 auto 40px;
  line-height: 1.65;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; font-weight: 600; font-size: 14px;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 999px; transition: all .35s var(--ease);
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: var(--navy-900);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(212, 175, 55, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 44px; border: 1.5px solid var(--silver-dim);
  border-radius: 14px; display: flex; justify-content: center; padding-top: 6px;
}
.scroll-cue span {
  width: 3px; height: 9px; background: var(--gold); border-radius: 2px;
  animation: scrollCue 1.8s var(--ease) infinite;
}
@keyframes scrollCue {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section { position: relative; padding: 120px 0; z-index: 1; }
.section-alt::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(74, 158, 255, 0.03) 50%, transparent 100%);
}
.section-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(32px, 4.2vw, 54px); line-height: 1.1;
  margin-bottom: 22px; color: var(--text); letter-spacing: -0.005em;
  max-width: 100%;
}
.section-lede {
  font-size: clamp(16px, 1.5vw, 19px); color: var(--text-muted);
  max-width: 100%; margin-bottom: 56px;
}

.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 38px; margin-top: 20px;
}
.about-col p {
  font-size: 17px; color: var(--text-muted); line-height: 1.75;
  padding-left: 20px; border-left: 1.5px solid var(--gold-dim);
}

/* =========================================================
   GLASS CARDS (shared)
   ========================================================= */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  transition: all .45s var(--ease);
  position: relative; overflow: hidden;
}
.glass-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 0%, rgba(212, 175, 55, 0.08), transparent 60%);
  opacity: 0; transition: opacity .5s var(--ease);
  pointer-events: none;
}
.glass-card:hover::before { opacity: 1; }
.card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border-strong);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* =========================================================
   DOMAINS
   ========================================================= */
.grid-domains {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  padding: 36px 28px 30px; min-height: 200px;
}
.card-index {
  font-family: var(--font-display); font-size: 38px; font-weight: 500;
  color: var(--gold); opacity: 0.65; line-height: 1;
  margin-bottom: 18px; letter-spacing: 0.02em;
}
.card h3 {
  font-family: var(--font-display); font-size: 26px; font-weight: 600;
  margin-bottom: 12px; color: var(--text); letter-spacing: -0.005em;
}
.card p { font-size: 15.5px; color: var(--text-muted); line-height: 1.65; }

/* =========================================================
   TERAHERTZ SPOTLIGHT
   ========================================================= */
.grid-thz-apps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
.thz-app {
  padding: 32px 26px 28px; min-height: 180px;
}
.thz-app .card-index {
  font-family: var(--font-display); font-size: 32px; font-weight: 500;
  color: var(--gold); opacity: 0.55; line-height: 1;
  margin-bottom: 14px; letter-spacing: 0.02em;
}
.thz-app h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  margin-bottom: 10px; color: var(--text); letter-spacing: -0.005em;
}
.thz-app p {
  font-size: 14.5px; color: var(--text-muted); line-height: 1.6;
}
/* Card 03 (Medical Diagnostics) spans full width so its inline
   properties grid has room to breathe. */
.thz-app-wide {
  grid-column: 1 / -1;
}
/* 2x2 properties grid rendered INSIDE the Medical Diagnostics card,
   visually separated from the body text by a thin gold divider. */
.thz-props-inline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(212,175,55,0.22);
}
.thz-prop-mini h4 {
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  color: var(--gold); margin: 0 0 4px 0; letter-spacing: 0.01em;
}
.thz-prop-mini p {
  font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 0;
}
.thz-quote {
  text-align: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: rgba(255,255,255,0.82);
  max-width: 720px;
  margin: 56px auto 0;
  line-height: 1.5;
  padding: 0 20px;
  border: none;
  quotes: none;
}
@media (max-width: 900px) {
  .thz-quote { font-size: 19px; margin-top: 40px; }
}
@media (max-width: 720px) {
  .grid-thz-apps { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .thz-props-inline { grid-template-columns: 1fr; gap: 10px; }
}


/* =========================================================
   PORTFOLIO ENTITIES (Terrera AG, TERRA-A AG)
   ========================================================= */
.grid-portfolio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
}
.portfolio-entity {
  padding: 36px 32px 32px;
  min-height: 260px;
}
.portfolio-entity h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: var(--text);
  letter-spacing: -0.005em;
}
.portfolio-subtitle {
  font-size: 11.5px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 22px 0;
  font-weight: 500;
}
.portfolio-entity p:not(.portfolio-subtitle) {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}
.portfolio-closing {
  text-align: center;
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
  color: rgba(255,255,255,0.78);
  max-width: 720px;
  margin: 48px auto 0;
  line-height: 1.55;
  padding: 0 20px;
}
@media (max-width: 900px) {
  .grid-portfolio { grid-template-columns: 1fr; gap: 20px; }
  .portfolio-closing { font-size: 17px; margin-top: 36px; }
}

/* =========================================================
   ESG / RESPONSIBILITY
   ========================================================= */
.grid-esg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.esg-pillar {
  padding: 32px 28px 28px;
  min-height: 240px;
}
.esg-icon {
  font-size: 28px;
  color: var(--gold);
  opacity: 0.85;
  line-height: 1;
  margin-bottom: 18px;
}
.esg-pillar h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: var(--text);
  letter-spacing: -0.005em;
}
.esg-pillar p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}
.esg-closing {
  text-align: center;
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
  color: rgba(255,255,255,0.78);
  max-width: 720px;
  margin: 48px auto 0;
  line-height: 1.55;
  padding: 0 20px;
}
@media (max-width: 900px) {
  .grid-esg { grid-template-columns: 1fr; gap: 18px; }
  .esg-closing { font-size: 17px; margin-top: 36px; }
}

/* =========================================================
   GROWTH - HEADLINE STATS
   ========================================================= */
.chart-card {
  padding: 36px 12px 22px;
  background: rgba(255, 255, 255, 0.03);
  position: relative;
}
.chart-card::after {
  content: ""; position: absolute; inset: 1px;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(212, 175, 55, 0.05) 60deg, transparent 120deg, transparent 360deg);
  border-radius: 19px; pointer-events: none;
  animation: conicShine 14s linear infinite;
  opacity: 0.7;
}
@keyframes conicShine {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}
.chart-card > * { position: relative; z-index: 1; }

.chart-stats {
  display: flex; flex-wrap: wrap; gap: 28px 48px;
  padding: 8px 24px 30px;
  justify-content: center; text-align: center;
  align-items: flex-end;
}
.stat { flex: 0 0 auto; }
.stat-value {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 5vw, 64px); line-height: 1; color: var(--text);
  display: inline-flex; align-items: baseline; gap: 6px;
  margin-bottom: 10px; letter-spacing: -0.01em;
}
.stat-value-sm { font-size: clamp(28px, 3vw, 38px); }
.stat-currency { font-size: 0.4em; color: var(--silver-dim); letter-spacing: 0.14em; }
.stat-number { color: var(--gold); text-shadow: 0 0 24px rgba(212, 175, 55, 0.45); }
.stat-suffix { font-size: 0.5em; color: var(--gold-dim); }
.stat-label {
  font-size: 11.5px; color: var(--text-faint);
  letter-spacing: 0.16em; text-transform: uppercase;
}
.stat-sub .stat-label { color: var(--silver-dim); }

/* =========================================================
   CHART - the centerpiece
   ========================================================= */
.chart-wrap {
  position: relative; padding: 20px 18px 8px;
  margin-top: 10px;
}
#growthChart {
  width: 100%; height: auto; display: block;
  min-height: 340px; overflow: visible;
}

/* Grid lines animate in */
.grid-line {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
  stroke-dasharray: 2 4;
  opacity: 0;
  transition: opacity .8s var(--ease);
}
.chart-wrap.in .grid-line { opacity: 1; transition-delay: var(--delay, 0s); }

/* Axis labels */
.axis-label {
  fill: var(--text-faint);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity .8s var(--ease);
}
.chart-wrap.in .axis-label { opacity: 1; transition-delay: var(--delay, 0s); }

/* Main line with draw animation */
#chartLine {
  stroke-dasharray: 5000;
  stroke-dashoffset: 5000;
  transition: stroke-dashoffset 3s var(--ease);
}
.chart-wrap.in #chartLine { stroke-dashoffset: 0; }

/* Area fill */
#chartArea {
  opacity: 0;
  transition: opacity 1.8s var(--ease) 1s;
}
.chart-wrap.in #chartArea { opacity: 1; }

/* Shimmer overlay that runs along the line */
#chartShimmer {
  stroke-dasharray: 120 5000;
  stroke-dashoffset: 5000;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.chart-wrap.in #chartShimmer {
  opacity: 1;
  animation: lineShimmer 4.5s var(--ease) infinite;
  animation-delay: 3.2s;
}
@keyframes lineShimmer {
  0% { stroke-dashoffset: 5000; }
  100% { stroke-dashoffset: -120; }
}

/* Vertical scan beam sweeps once */
.scan-beam {
  filter: blur(2px);
}
.chart-wrap.in .scan-beam {
  animation: scanSweep 2.5s var(--ease) .3s forwards;
}
@keyframes scanSweep {
  0% { transform: translateX(-60px); opacity: 0; }
  15% { opacity: 0.55; }
  80% { opacity: 0.55; }
  100% { transform: translateX(1060px); opacity: 0; }
}

/* Data points - all 14, subtle */
.data-pt {
  fill: var(--navy-800);
  stroke: var(--blue);
  stroke-width: 1.5;
  opacity: 0;
  transition: opacity .5s var(--ease), r .3s var(--ease);
  cursor: pointer;
}
.chart-wrap.in .data-pt { opacity: 1; transition-delay: var(--delay, 0s); }
.data-pt.milestone {
  fill: var(--navy-800);
  stroke: var(--gold);
  stroke-width: 2.5;
}
.data-pt:hover { r: 9; }

/* Pulse ring on milestones */
.pulse-ring {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.chart-wrap.in .pulse-ring {
  animation: pulseRing 2.6s var(--ease) infinite;
  animation-delay: var(--delay, 3s);
}
@keyframes pulseRing {
  0% { opacity: 0.7; r: 5; }
  80% { opacity: 0; r: 18; }
  100% { opacity: 0; r: 18; }
}

/* Milestone labels */
.milestone-label {
  fill: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity .6s var(--ease);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}
.chart-wrap.in .milestone-label { opacity: 1; transition-delay: var(--delay, 0s); }
.milestone-year {
  fill: var(--silver-dim);
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.chart-wrap.in .milestone-year { opacity: 1; transition-delay: var(--delay, 0s); }

/* Comet */
.comet { filter: blur(0.5px); }
.chart-wrap.in .comet, .chart-wrap.in .comet-core {
  animation: cometTravel 3s var(--ease) forwards;
}
@keyframes cometTravel {
  0% { opacity: 0; }
  4% { opacity: 1; }
  96% { opacity: 1; }
  100% { opacity: 0; }
}

/* Endpoint glow (permanent) */
.endpoint-glow {
  fill: url(#endpointGlow);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 1s var(--ease);
}
.chart-wrap.in .endpoint-glow {
  opacity: 1;
  transition-delay: 3s;
  animation: endpointPulse 3.5s var(--ease) 3s infinite;
}
@keyframes endpointPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.25); opacity: 0.5; }
}

.endpoint-core {
  fill: var(--gold-bright);
  opacity: 0;
  transition: opacity 1s var(--ease);
}
.chart-wrap.in .endpoint-core { opacity: 1; transition-delay: 3s; }

/* Hover tooltip */
.chart-tooltip {
  position: absolute; pointer-events: none;
  background: rgba(10, 14, 39, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity .2s var(--ease);
  z-index: 2;
  white-space: nowrap;
  transform: translate(-50%, -100%);
}
.chart-tooltip.show { opacity: 1; }
.chart-tooltip .tt-year {
  color: var(--silver-dim); font-weight: 600;
  font-size: 10.5px; letter-spacing: 0.15em; margin-bottom: 2px;
}
.chart-tooltip .tt-value {
  color: var(--gold-bright); font-weight: 700;
  font-family: var(--font-display); font-size: 18px;
}

.hover-zone { fill: transparent; cursor: pointer; }

.chart-legend {
  text-align: center; margin-top: 16px;
  font-size: 11px; color: var(--text-faint);
  letter-spacing: 0.2em; text-transform: uppercase;
}

/* =========================================================
   APPROACH
   ========================================================= */
.grid-approach {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.approach-card { padding-top: 34px; min-height: 210px; }
.approach-num {
  font-family: var(--font-display); font-size: 40px; font-weight: 500;
  color: var(--gold); opacity: 0.7; line-height: 1;
  margin-bottom: 14px; letter-spacing: 0.02em;
}
.approach-card h3 {
  font-family: var(--font-display); font-size: 24px; font-weight: 600;
  margin-bottom: 10px; color: var(--text);
}
.approach-card p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px; margin-top: 10px;
}
.contact-block { padding: 32px 28px; }
.contact-label {
  font-size: 11px; font-weight: 600; color: var(--gold);
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 14px;
}
.contact-value {
  font-family: var(--font-display); font-size: 20px; font-weight: 500;
  color: var(--text); line-height: 1.55; letter-spacing: 0.01em;
}
.contact-value a {
  color: var(--gold-bright); transition: color .3s var(--ease);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}
.contact-value a:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding: 44px 0;
  border-top: 1px solid var(--glass-border);
  background: rgba(10, 14, 39, 0.4);
  position: relative; z-index: 1;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.footer-copy, .footer-credit {
  font-size: 12.5px; color: var(--text-faint);
  letter-spacing: 0.06em;
}

/* =========================================================
   RTL
   ========================================================= */
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .about-col p { padding-left: 0; padding-right: 20px; border-left: none; border-right: 1.5px solid var(--gold-dim); }
html[dir="rtl"] .nav-links { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .lang-wrap { margin-left: 0; margin-right: 14px; }
html[dir="rtl"] .btn { flex-direction: row-reverse; }

/* =========================================================
   NON-LATIN FONT STACKS
   ========================================================= */
html[lang="he"] body, html[lang="he"] .hero-tagline, html[lang="he"] .section-title, html[lang="he"] .card h3, html[lang="he"] .contact-value {
  font-family: "Noto Sans Hebrew", "DM Sans", system-ui, sans-serif;
  font-weight: 600;
}
html[lang="ar"] body, html[lang="ar"] .hero-tagline, html[lang="ar"] .section-title, html[lang="ar"] .card h3, html[lang="ar"] .contact-value {
  font-family: "Noto Sans Arabic", "DM Sans", system-ui, sans-serif;
  font-weight: 600;
}
html[lang="hi"] body, html[lang="hi"] .hero-tagline, html[lang="hi"] .section-title, html[lang="hi"] .card h3 {
  font-family: "Noto Sans Devanagari", "DM Sans", system-ui, sans-serif;
}
html[lang="ko"] body, html[lang="ko"] .hero-tagline, html[lang="ko"] .section-title, html[lang="ko"] .card h3 {
  font-family: "Noto Sans KR", "DM Sans", system-ui, sans-serif;
}
html[lang="zh-TW"] body, html[lang="zh-TW"] .hero-tagline, html[lang="zh-TW"] .section-title, html[lang="zh-TW"] .card h3 {
  font-family: "Noto Sans TC", "DM Sans", system-ui, sans-serif;
}
html[lang="ja"] body, html[lang="ja"] .hero-tagline, html[lang="ja"] .section-title, html[lang="ja"] .card h3 {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", "DM Sans", system-ui, sans-serif;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; top: 68px; left: 14px; right: 14px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(15, 20, 49, 0.95);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid var(--glass-border-strong);
    border-radius: 16px;
    padding: 8px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 14px; font-size: 15px; }
  .nav-links a::after { display: none; }
  .lang-wrap { margin-left: auto; }
  .nav-wordmark { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .hero { padding-top: 120px; }
  .chart-stats { gap: 18px 28px; }
  .stat-value { font-size: 36px; }
  .stat-value-sm { font-size: 26px; }
  #growthChart { min-height: 280px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .orb, .stat-number, .hero-tagline { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  #chartLine { stroke-dashoffset: 0; transition: none; }
  #chartArea, .data-pt, .axis-label, .grid-line, .milestone-label, .milestone-year, .endpoint-core, .endpoint-glow { opacity: 1; transition: none; }
  .comet, .comet-core, .pulse-ring, .scan-beam, #chartShimmer, .chart-card::after { display: none; }
  .scroll-cue span { animation: none; }
}
