:root {
  --navy: #0A1628;
  --navy-deep: #060E1C;
  --graphite: #161B26;
  --line: rgba(255,255,255,0.08);
  --line-light: rgba(10,22,40,0.08);
  --green: #5C7563;
  --green-bright: #7A9683;
  --silver: #D4DBE2;
  --silver-dim: #8A96A4;
  --paper: #F4F2EC;
  --paper-pure: #FAFAF7;
  --ink: #0A1628;
  --ink-soft: #4A5568;
  --sans: "DM Sans", "Söhne", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Fraunces", "GT Sectra", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--green); color: var(--paper-pure); }

/* NAV */
nav.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 48px;
  background: rgba(10,22,40,0.55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s ease;
}
nav.top.light { background: rgba(244,242,236,0.78); border-bottom-color: var(--line-light); }
nav.top.light .brand, nav.top.light .nav-links a { color: var(--ink); }
nav.top.light .nav-links a:hover { color: var(--green); }
nav.top.light .status-dot { background: var(--green); }
nav.top.light .status-label { color: var(--ink-soft); }

.brand { font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: 0.32em; color: var(--paper-pure); text-decoration: none; }
.brand .dot { color: var(--green-bright); margin-left: 2px; }
.nav-links { display: flex; gap: 38px; align-items: center; }
.nav-links a { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--silver); text-decoration: none; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--green-bright); }
.status { display: flex; align-items: center; gap: 8px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-bright); animation: pulse 2.4s ease-in-out infinite; }
.status-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--silver-dim); text-transform: uppercase; }

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(122,150,131,0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(122,150,131,0); }
}

/* HERO */
.hero {
  position: relative; min-height: 100vh; background: var(--navy-deep);
  color: var(--paper-pure); overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 48px 80px;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px; background-position: -1px -1px; pointer-events: none;
}
.hero-network { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.55; }
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, transparent 0%, var(--navy-deep) 95%),
    linear-gradient(180deg, transparent 0%, rgba(6,14,28,0.6) 90%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 1320px; margin: 0 auto; width: 100%; z-index: 2; }
.hero-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 90px; padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.hero-meta span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--silver-dim); }
.hero-meta span.right { color: var(--green-bright); }
.hero h1 {
  font-family: var(--sans); font-weight: 200;
  font-size: clamp(40px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -0.025em;
  max-width: 14ch; margin-bottom: 36px; color: var(--paper-pure);
}
.hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--green-bright); letter-spacing: -0.015em; }
.hero-sub { max-width: 56ch; font-size: 17px; line-height: 1.55; color: var(--silver); font-weight: 300; margin-bottom: 56px; }
.cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; font-family: var(--mono); font-size: 11px; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--line); color: var(--paper-pure); background: transparent;
  transition: all 0.3s cubic-bezier(0.2,0.6,0.2,1); cursor: pointer;
}
.btn:hover { border-color: var(--green-bright); background: rgba(122,150,131,0.08); color: var(--green-bright); }
.btn.primary { background: var(--green); border-color: var(--green); color: var(--paper-pure); }
.btn.primary:hover { background: var(--green-bright); border-color: var(--green-bright); color: var(--navy-deep); }
.btn .arrow { transition: transform 0.3s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* TELEMETRY TICKER */
.telemetry {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 22px 48px; border-top: 1px solid var(--line);
  background: rgba(6,14,28,0.6); backdrop-filter: blur(8px);
  display: flex; justify-content: space-between; align-items: center;
  z-index: 2; font-family: var(--mono); font-size: 11px; color: var(--silver-dim); letter-spacing: 0.08em;
}
.telemetry-cell { display: flex; align-items: center; gap: 10px; }
.telemetry-cell .label { color: var(--silver-dim); opacity: 0.65; text-transform: uppercase; letter-spacing: 0.18em; font-size: 10px; }
.telemetry-cell .val { color: var(--silver); font-variant-numeric: tabular-nums; min-width: 60px; }
.telemetry-cell .val.green { color: var(--green-bright); }

/* SECTION BASE */
section.panel { padding: 140px 48px; position: relative; }
.container { max-width: 1320px; margin: 0 auto; width: 100%; }
.light-panel { background: var(--paper); color: var(--ink); }
.dark-panel { background: var(--navy); color: var(--paper-pure); }
.deep-panel { background: var(--navy-deep); color: var(--paper-pure); }

.section-head {
  display: grid; grid-template-columns: 200px 1fr; gap: 60px;
  margin-bottom: 80px; padding-bottom: 32px; border-bottom: 1px solid var(--line-light);
}
.dark-panel .section-head, .deep-panel .section-head { border-bottom-color: var(--line); }
.section-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--green); align-self: start; padding-top: 8px; }
.dark-panel .section-num, .deep-panel .section-num { color: var(--green-bright); }
.section-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; display: block; }
.dark-panel .section-label, .deep-panel .section-label { color: var(--silver-dim); }
.section-title { font-family: var(--sans); font-weight: 200; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.08; letter-spacing: -0.02em; max-width: 22ch; }
.section-title em { font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--green); letter-spacing: -0.01em; }
.dark-panel .section-title em, .deep-panel .section-title em { color: var(--green-bright); }

/* CONTEXT / FLOW */
.context-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.context-copy p { font-size: 17px; line-height: 1.65; font-weight: 300; color: var(--ink-soft); margin-bottom: 22px; max-width: 52ch; }
.context-copy p.lead { font-size: 22px; line-height: 1.45; color: var(--ink); font-weight: 300; margin-bottom: 32px; max-width: 32ch; }
.flow-card { border: 1px solid var(--line-light); background: var(--paper-pure); padding: 40px 36px; }
.flow-card .flow-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 28px; }
.flow-diagram { width: 100%; height: auto; }
.flow-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line-light); }
.flow-legend div { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; }
.flow-legend div::before { content: ""; display: inline-block; width: 8px; height: 1px; background: var(--green); }

/* PLATFORM BLOCKS */
.platform-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.platform-tile {
  background: var(--navy); padding: 36px 30px 30px;
  min-height: 220px; display: flex; flex-direction: column; justify-content: space-between;
  transition: background 0.4s ease; cursor: pointer; position: relative; overflow: hidden;
}
.platform-tile:hover { background: var(--graphite); }
.platform-tile::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: var(--green-bright); transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.2,0.6,0.2,1);
}
.platform-tile:hover::after { transform: scaleX(1); }
.tile-num { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; color: var(--silver-dim); margin-bottom: 18px; }
.tile-name { font-family: var(--sans); font-weight: 300; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; color: var(--paper-pure); margin-bottom: 14px; }
.tile-desc { font-size: 13px; line-height: 1.5; color: var(--silver-dim); font-weight: 300; }

/* MINERALS */
.minerals-scroll {
  display: flex; gap: 24px; overflow-x: auto; padding-bottom: 24px;
  margin: 0 -48px; padding-left: 48px; padding-right: 48px;
  scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--green) transparent;
}
.minerals-scroll::-webkit-scrollbar { height: 4px; }
.minerals-scroll::-webkit-scrollbar-track { background: var(--line-light); }
.minerals-scroll::-webkit-scrollbar-thumb { background: var(--green); }
.mineral-card {
  flex: 0 0 360px; border: 1px solid var(--line-light); background: var(--paper-pure);
  padding: 32px; scroll-snap-align: start; display: flex; flex-direction: column;
  min-height: 460px; transition: transform 0.4s cubic-bezier(0.2,0.6,0.2,1), border-color 0.3s ease;
}
.mineral-card:hover { transform: translateY(-4px); border-color: var(--green); }
.mineral-symbol { height: 140px; margin-bottom: 28px; position: relative; border-bottom: 1px solid var(--line-light); display: flex; align-items: center; justify-content: center; }
.mineral-symbol svg { width: 110px; height: 110px; opacity: 0.85; }
.mineral-symbol .atomic { position: absolute; top: 0; right: 0; font-family: var(--mono); font-size: 11px; color: var(--ink-soft); letter-spacing: 0.15em; }
.mineral-symbol .symbol-large { position: absolute; bottom: 12px; left: 0; font-family: var(--serif); font-weight: 200; font-size: 48px; color: var(--green); letter-spacing: -0.02em; }
.mineral-name { font-family: var(--sans); font-weight: 300; font-size: 28px; letter-spacing: -0.015em; margin-bottom: 16px; }
.mineral-desc { font-size: 14px; line-height: 1.6; color: var(--ink-soft); font-weight: 300; margin-bottom: 24px; }
.mineral-apps { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line-light); }
.mineral-apps .apps-label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.mineral-apps .apps-list { font-family: var(--mono); font-size: 11px; color: var(--ink); line-height: 1.6; letter-spacing: 0.04em; }

/* AI / PROVENANCE */
.ai-visual { margin-top: 40px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); padding: 50px 40px; position: relative; }
.ai-pipeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; }
.pipeline-stage { text-align: center; padding: 20px 8px; position: relative; }
.pipeline-stage::after { content: ""; position: absolute; top: 50%; right: -8px; width: 16px; height: 1px; background: var(--green-bright); opacity: 0.4; }
.pipeline-stage:last-child::after { display: none; }
.pipeline-icon { width: 44px; height: 44px; margin: 0 auto 18px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--green-bright); transition: all 0.3s ease; }
.pipeline-stage:hover .pipeline-icon { border-color: var(--green-bright); background: rgba(122,150,131,0.08); }
.pipeline-num { font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em; color: var(--silver-dim); margin-bottom: 8px; }
.pipeline-name { font-size: 13px; color: var(--paper-pure); font-weight: 300; letter-spacing: 0.02em; }
.ai-capabilities { margin-top: 60px; padding-top: 50px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.capability { border-left: 1px solid var(--green-bright); padding-left: 22px; }
.capability-num { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; color: var(--green-bright); margin-bottom: 12px; }
.capability-title { font-size: 17px; font-weight: 400; color: var(--paper-pure); margin-bottom: 8px; letter-spacing: -0.005em; }
.capability-desc { font-size: 13px; line-height: 1.55; color: var(--silver-dim); font-weight: 300; }

/* UAE */
.uae-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.uae-visual { aspect-ratio: 1 / 1; background: var(--navy-deep); position: relative; overflow: hidden; border: 1px solid var(--line-light); }
.uae-attrs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); margin-top: 40px; }
.uae-attr { background: var(--paper-pure); padding: 24px 22px; }
.uae-attr-num { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; color: var(--green); margin-bottom: 10px; }
.uae-attr-name { font-size: 15px; font-weight: 400; color: var(--ink); letter-spacing: -0.005em; }

/* GOVERNANCE */
.gov-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.gov-cell { background: var(--paper-pure); padding: 36px 28px 32px; min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; }
.gov-glyph { width: 24px; height: 24px; color: var(--green); margin-bottom: 28px; }
.gov-name { font-size: 16px; font-weight: 400; color: var(--ink); letter-spacing: -0.005em; line-height: 1.3; }

/* CONTACT */
.contact { padding: 140px 48px 60px; background: var(--navy-deep); color: var(--paper-pure); position: relative; }
.contact-inner { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
.contact-large { font-family: var(--sans); font-weight: 200; font-size: clamp(40px, 5.4vw, 76px); line-height: 1.05; letter-spacing: -0.025em; }
.contact-large em { font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--green-bright); }
.contact-details { padding-bottom: 16px; }
.contact-block { margin-bottom: 36px; }
.contact-block .label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--silver-dim); margin-bottom: 12px; }
.contact-block .value { font-size: 16px; font-weight: 300; color: var(--paper-pure); line-height: 1.55; }
.contact-block .value a { color: var(--green-bright); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.3s ease; }
.contact-block .value a:hover { border-bottom-color: var(--green-bright); }

footer {
  max-width: 1320px; margin: 100px auto 0; padding-top: 40px;
  border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--silver-dim);
}
footer .legal { display: flex; gap: 32px; }
footer .legal span { color: var(--silver-dim); }

/* REVEAL */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 1.1s cubic-bezier(0.2,0.6,0.2,1), transform 1.1s cubic-bezier(0.2,0.6,0.2,1); }
.js .reveal.in { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 980px) {
  nav.top { padding: 18px 24px; }
  .nav-links { display: none; }
  .hero, section.panel, .contact { padding-left: 24px; padding-right: 24px; }
  .telemetry { padding: 16px 24px; flex-wrap: wrap; gap: 14px; }
  .telemetry-cell:nth-child(n+4) { display: none; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .context-grid, .uae-grid, .contact-inner { grid-template-columns: 1fr; gap: 50px; }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-pipeline { grid-template-columns: repeat(3, 1fr); gap: 24px 8px; }
  .pipeline-stage::after { display: none; }
  .ai-capabilities { grid-template-columns: 1fr; }
  .gov-grid { grid-template-columns: repeat(2, 1fr); }
  .uae-attrs { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 18px; text-align: center; }
}
