/* =========================================================
   TERA AG - Stylesheet
   Pure CSS. Glassmorphism on dark navy. RTL-aware.
   ========================================================= */

:root {
  --navy-900: #0a0e27;
  --navy-800: #0e1431;
  --navy-700: #151a3a;
  --navy-600: #1e2452;
  --navy-500: #252b66;

  --blue: #4a9eff;
  --blue-dim: #7bb8ff;
  --silver: #c0c4d1;
  --silver-dim: #8a90a3;
  --gold: #d4af37;
  --gold-dim: #e8c963;

  --text: #e6e9f2;
  --text-muted: #a4abc0;
  --text-faint: #6b7287;

  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-bg-strong: rgba(255, 255, 255, 0.075);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-border-strong: rgba(255, 255, 255, 0.18);
  --glass-blur: 20px;

  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 26px;

  --max-w: 1200px;
  --pad: clamp(20px, 4vw, 56px);

  --font-display: "Cormorant Garamond", "Noto Serif", Georgia, serif;
  --font-body: "DM Sans", "Inter", "Noto Sans SC", "Noto Sans TC", "Noto Sans Hebrew", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { 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:
    radial-gradient(1100px 700px at 12% -10%, rgba(74,158,255,0.18), transparent 60%),
    radial-gradient(900px 600px at 95% 8%, rgba(212,175,55,0.10), transparent 60%),
    radial-gradient(1200px 800px at 50% 110%, rgba(123,184,255,0.10), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-700) 38%, var(--navy-600) 72%, var(--navy-800) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.01em;
}

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

/* ---- Background orbs ---- */
.orb-field {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}
.orb-1 { width: 520px; height: 520px; left: -120px; top: 8vh;
  background: radial-gradient(circle at 30% 30%, rgba(74,158,255,0.55), transparent 65%);
  animation: drift1 22s ease-in-out infinite alternate; }
.orb-2 { width: 460px; height: 460px; right: -100px; top: 22vh;
  background: radial-gradient(circle at 70% 30%, rgba(212,175,55,0.30), transparent 65%);
  animation: drift2 28s ease-in-out infinite alternate; }
.orb-3 { width: 600px; height: 600px; left: 30%; top: 60vh;
  background: radial-gradient(circle at 40% 60%, rgba(123,184,255,0.30), transparent 65%);
  animation: drift3 34s ease-in-out infinite alternate; }
.orb-4 { width: 380px; height: 380px; right: 10%; bottom: -120px;
  background: radial-gradient(circle at 50% 50%, rgba(74,158,255,0.30), transparent 65%);
  animation: drift1 26s ease-in-out infinite alternate-reverse; }

@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(60px, 80px) scale(1.08); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-80px, 50px) scale(0.95); } }
@keyframes drift3 { from { transform: translate(0,0) scale(1); } to { transform: translate(40px, -60px) scale(1.05); } }

/* ---- Layout helpers ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); position: relative; z-index: 2; }

.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; z-index: 2; }
.section-eyebrow {
  font-size: 11px; letter-spacing: 0.28em; font-weight: 600;
  color: var(--blue-dim); text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--text);
  margin-bottom: 18px;
  max-width: 18ch;
}
.section-lede {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: 48px;
  line-height: 1.55;
}

/* ---- Glass card ---- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 34px);
  position: relative;
  transition: transform .55s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
  overflow: hidden;
}
.glass-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), transparent 40%);
  pointer-events: none; border-radius: inherit;
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-strong);
  background: var(--glass-bg-strong);
}

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 14, 39, 0.65);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--glass-border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 14px var(--pad);
  display: flex; align-items: center; gap: 28px;
}
.nav-brand { display: inline-flex; align-items: center; gap: 12px; }
.nav-logo { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.nav-wordmark {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 14px;
  color: var(--silver);
}
.nav-links {
  display: flex; align-items: center; gap: 26px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px; color: var(--text-muted);
  position: relative; padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: linear-gradient(90deg, var(--blue), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Lang */
.lang-wrap { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 13px; color: var(--text);
  backdrop-filter: blur(12px);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.lang-btn:hover { border-color: var(--glass-border-strong); background: var(--glass-bg-strong); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 180px;
  max-width: calc(100vw - 28px);
  background: rgba(15, 20, 49, 0.92);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border-strong);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
  z-index: 110;
}
.lang-menu[hidden] { display: none; }
.lang-menu li button {
  display: block; width: 100%; text-align: start;
  padding: 9px 12px; border-radius: 9px;
  font-size: 13.5px; color: var(--text-muted);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.lang-menu li button:hover,
.lang-menu li button.active { background: rgba(74,158,255,0.14); color: var(--text); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--silver);
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 140px 0 80px;
  position: relative; z-index: 2;
}
.hero-inner { text-align: center; max-width: 880px; }
.hero-eyebrow {
  font-size: 11px; letter-spacing: 0.32em; font-weight: 600;
  color: var(--blue-dim); margin-bottom: 28px;
  text-transform: uppercase;
}
.hero-logo {
  width: clamp(160px, 22vw, 240px);
  margin: 0 auto 32px;
  border-radius: 22px;
  filter: drop-shadow(0 24px 60px rgba(74,158,255,0.35));
}
.hero-tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 5.6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #c0c4d1 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-subtitle {
  font-size: clamp(16px, 1.7vw, 20px);
  color: var(--text-muted);
  max-width: 64ch;
  margin: 0 auto 40px;
  line-height: 1.55;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
  background: linear-gradient(135deg, rgba(74,158,255,0.18), rgba(212,175,55,0.12));
  border: 1px solid var(--glass-border-strong);
  border-radius: 999px;
  color: var(--text);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .35s var(--ease);
}
.btn-primary:hover {
  transform: translateY(-2px);
  border-color: rgba(74,158,255,0.55);
  box-shadow: 0 18px 40px rgba(74,158,255,0.22);
}
.scroll-cue {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1px solid var(--glass-border-strong);
  border-radius: 12px;
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-cue span {
  display: block; width: 2px; height: 8px;
  background: var(--blue-dim); border-radius: 2px;
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue { 0%,100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(8px); opacity: 0; } }

/* =========================================================
   DOMAINS
   ========================================================= */
.grid-domains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.domain-card { display: flex; flex-direction: column; gap: 14px; min-height: 240px; }
.domain-icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(74,158,255,0.15), rgba(212,175,55,0.10));
  border: 1px solid var(--glass-border);
  color: var(--blue-dim);
}
.domain-icon svg { width: 26px; height: 26px; }
.domain-card h3 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
}
.domain-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }

/* =========================================================
   GROWTH
   ========================================================= */
.growth-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.stat-card { padding: 28px 26px; }
.stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1; color: var(--text);
  display: inline-flex; align-items: baseline; gap: 6px;
  margin-bottom: 10px;
}
.stat-currency { font-size: 0.45em; color: var(--silver-dim); letter-spacing: 0.12em; }
.stat-number { color: var(--gold); }
.stat-suffix { font-size: 0.55em; color: var(--gold-dim); }
.stat-label { font-size: 13px; color: var(--text-muted); letter-spacing: 0.04em; }

.chart-wrap { padding: 26px 18px 14px; }
#growthChart { width: 100%; height: auto; display: block; }
#chartLine { stroke-dasharray: 4000; stroke-dashoffset: 4000; transition: stroke-dashoffset 2.4s var(--ease); }
.chart-wrap.in #chartLine { stroke-dashoffset: 0; }
.chart-wrap.in #chartArea { opacity: 1; transition: opacity 1.6s var(--ease) .8s; }

.milestone-dot {
  fill: var(--navy-900);
  stroke: var(--gold);
  stroke-width: 2.5;
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.milestone-dot.show { opacity: 1; }
.milestone-label {
  fill: var(--silver);
  font-size: 11px;
  font-family: var(--font-body);
  font-weight: 500;
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.milestone-label.show { opacity: 1; }
.milestone-year {
  fill: var(--gold-dim);
  font-size: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.milestone-year.show { opacity: 1; }

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

/* =========================================================
   APPROACH
   ========================================================= */
.grid-approach {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.approach-card { padding-top: 30px; min-height: 200px; }
.approach-num {
  font-family: var(--font-display);
  font-size: 38px; 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
   ========================================================= */
.section-contact { padding-bottom: clamp(80px, 10vw, 130px); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
}
.contact-card { padding: 32px; }
.contact-label {
  font-size: 11px; letter-spacing: 0.28em; font-weight: 600;
  color: var(--blue-dim); text-transform: uppercase;
  margin-bottom: 16px;
}
.contact-value {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 500;
  color: var(--text); line-height: 1.5;
}
.contact-email {
  color: var(--gold-dim);
  border-bottom: 1px solid rgba(212,175,55,0.3);
  padding-bottom: 2px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.contact-email:hover { color: var(--gold); border-color: var(--gold); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 36px 0 40px;
  position: relative; z-index: 2;
  background: rgba(10,14,39,0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
}
.footer-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--silver); font-weight: 600; letter-spacing: 0.18em; font-size: 13px; }
.footer-logo { width: 28px; height: 28px; border-radius: 6px; }
.footer-line { font-size: 12.5px; color: var(--text-faint); letter-spacing: 0.02em; }

/* =========================================================
   RTL
   ========================================================= */
html[dir="rtl"] .nav-links { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .lang-menu { right: auto; left: 0; }
html[dir="rtl"] .nav-links a::after { transform-origin: right; }
html[dir="rtl"] .section-title,
html[dir="rtl"] .section-lede { margin-left: 0; margin-right: 0; }
html[dir="rtl"] .scroll-cue { transform: translateX(50%); right: 50%; left: auto; }
html[dir="rtl"] .approach-num { letter-spacing: 0; }
html[dir="rtl"] .axis-y text { text-anchor: start; }

/* RTL fonts */
html[lang="he"] body, html[lang="he"] .hero-tagline, html[lang="he"] .section-title, html[lang="he"] .approach-card h3, html[lang="he"] .domain-card h3, html[lang="he"] .stat-value, 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"] .approach-card h3, html[lang="ar"] .domain-card h3, html[lang="ar"] .stat-value, html[lang="ar"] .contact-value {
  font-family: "Noto Sans Arabic", "DM Sans", system-ui, sans-serif;
  font-weight: 600;
}
html[lang="hi"] body { font-family: "Noto Sans Devanagari", "DM Sans", system-ui, sans-serif; }
html[lang="ko"] body { font-family: "Noto Sans KR", "DM Sans", system-ui, sans-serif; }
html[lang="zh-TW"] body { font-family: "Noto Sans TC", "DM Sans", system-ui, sans-serif; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; top: 64px; 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) {
  .contact-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  #growthChart { min-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  #chartLine { stroke-dashoffset: 0; transition: none; }
  #chartArea { opacity: 1; transition: none; }
  .scroll-cue span { animation: none; }
}

/* =========================================================
   TERA AG - Extended Styles (new sections)
   Extends the base stylesheet. Same design language.
   ========================================================= */

/* ---- Hero stats bar ---- */
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin: 36px auto 36px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  max-width: 640px;
  overflow: hidden;
}
.hero-stat {
  flex: 1; padding: 22px 20px; text-align: center;
}
.hero-stat-divider {
  width: 1px; align-self: stretch;
  background: var(--glass-border);
}
.hero-stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1;
  color: var(--text);
  background: linear-gradient(180deg, #fff 0%, var(--gold-dim) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-flex; align-items: baseline; gap: 2px;
}
.hero-stat-suffix {
  font-size: 0.5em;
  color: var(--gold-dim);
  -webkit-text-fill-color: var(--gold-dim);
}
.hero-stat-label {
  font-size: 11px; color: var(--text-faint);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-top: 6px;
}

/* ---- Terahertz section ---- */
.section-thz { position: relative; }
.section-thz::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74,158,255,0.3), rgba(212,175,55,0.2), transparent);
}
.thz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.thz-intro {
  font-size: 16px; color: var(--text-muted); line-height: 1.65;
  max-width: 56ch;
}
.thz-why {
  padding: clamp(24px, 3vw, 36px);
}
.thz-props {
  display: flex; flex-direction: column; gap: 18px;
  margin-bottom: 28px;
}
.thz-prop {
  display: flex; flex-direction: column; gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--glass-border);
}
.thz-prop:last-child { border-bottom: none; padding-bottom: 0; }
.thz-prop-name {
  font-size: 13px; font-weight: 600;
  color: var(--blue-dim); letter-spacing: 0.06em; text-transform: uppercase;
}
.thz-prop-desc {
  font-size: 14px; color: var(--text-muted); line-height: 1.55;
}
.thz-quote {
  border-left: 2px solid var(--gold);
  padding-left: 18px;
  margin-top: 4px;
}
.thz-quote p {
  font-family: var(--font-display);
  font-size: 15px; font-style: italic;
  color: var(--silver-dim); line-height: 1.6;
}



/* ---- Contact CTA ---- */
.contact-cta {
  margin-top: 52px;
  display: flex; flex-direction: column; align-items: center;
  gap: 20px; text-align: center;
}
.contact-cta-text {
  font-size: 17px; color: var(--text-muted);
  max-width: 44ch; line-height: 1.5;
}

/* ---- ESG icon override ---- */
.esg-icon {
  font-size: 28px !important;
  opacity: 1 !important;
  font-family: inherit !important;
}

/* ---- Responsive additions ---- */
@media (max-width: 860px) {
  .thz-grid { grid-template-columns: 1fr; }
  .future-grid { grid-template-columns: 1fr; }
  .hero-stats { max-width: 100%; }
}
@media (max-width: 640px) {
  .hero-stats { flex-direction: column; }
  .hero-stat-divider { width: auto; height: 1px; align-self: stretch; }
}

/* ---- Japanese font ---- */
html[lang="ja"] body,
html[lang="ja"] .section-title,
html[lang="ja"] .domain-card h3,
html[lang="ja"] .approach-card h3,
html[lang="ja"] .contact-value {
  font-family: "Noto Sans JP", "DM Sans", system-ui, sans-serif;
}

/* ── Future section card grids ──────────────────────────────────────── */
.future-grid { display: flex; flex-direction: column; gap: 44px; }

.future-cards-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}

.future-num {
  font-size: 22px !important;
  color: var(--gold) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.future-diamond {
  font-size: 18px !important;
}

/* ── THz section: gap between app cards and Why panel ───────────────── */
.thz-grid {
  gap: 32px;
}

.thz-apps .grid-approach {
  margin-top: 28px;
}

/* Space between the app-cards block and the Why panel */
.thz-why {
  margin-top: 0;
  align-self: start;
}

/* On narrow screens the Why panel drops below — add top gap */
@media (max-width: 860px) {
  .thz-why { margin-top: 52px; }
  .future-cards-grid { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 580px) {
  .future-cards-grid { grid-template-columns: 1fr !important; }
}

/* ── Chart: animate area on reveal ─────────────────────────────────── */
#chartArea { opacity: 0; transition: opacity 1.6s var(--ease) 0.8s; }
.chart-wrap.in #chartLine { stroke-dashoffset: 0; }
.chart-wrap.in #chartArea { opacity: 1; }

/* ── Contact grid spacing ───────────────────────────────────────────── */
.contact-cta { text-align: left; }
.contact-cta .contact-grid { max-width: 100%; }

/* ── THz app-cards bottom gap (for single-col layout on iPad) ─── */
.thz-apps .grid-approach {
  margin-bottom: 8px;
}
