/* ============================================
   GLOBAL OCEAN RESTORATION — DESIGN SYSTEM
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --abyss: #060a10;
  --deep: #0a1018;
  --ocean: #0e1a2b;
  --mid: #162a42;
  --surface: #1e3a5f;
  --teal: #3de8d4;
  --teal-dim: rgba(61,232,212,0.12);
  --teal-glow: rgba(61,232,212,0.05);
  --teal-line: rgba(61,232,212,0.15);
  --coral: #ff6363;
  --coral-dim: rgba(255,99,99,0.08);
  --sand: #f0dfc0;
  --foam: #d6e5eb;
  --text: #a8bec9;
  --text-bright: #d0e0e8;
  --white: #f0f6f8;
  --border: rgba(255,255,255,0.05);
  --border-hover: rgba(61,232,212,0.2);
  --max-w: 1100px;
  --content-w: 720px;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--abyss);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ---- NAV ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 2rem; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(6,10,16,0.8);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-display); font-size: 1.1rem;
  color: var(--white); white-space: nowrap;
}
.nav-logo span { color: var(--teal); }
.nav-links { display: flex; gap: 1.6rem; list-style: none; }
.nav-links a {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text); transition: color 0.3s; position: relative;
}
.nav-links a.active,
.nav-links a:hover { color: var(--teal); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--teal); transition: width 0.3s;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-cta-btn {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.5rem 1.2rem; border: 1px solid var(--teal);
  color: var(--teal); border-radius: 2px; transition: all 0.3s;
  cursor: pointer; background: transparent; display: inline-block;
}
.nav-cta-btn:hover { background: var(--teal); color: var(--abyss); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 26px; height: 18px; position: relative;
}
.nav-toggle span {
  display: block; width: 100%; height: 1.5px;
  background: var(--foam); position: absolute; left: 0; transition: all 0.3s;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links, .nav-cta-btn { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(6,10,16,0.97); backdrop-filter: blur(20px);
    padding: 1.5rem 2rem; gap: 1.2rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-cta-btn.open { display: inline-block; position: absolute; top: 64px; right: 2rem; margin-top: 1.5rem; }
}

/* ---- PAGE HEADER ---- */
.page-header {
  padding: 7rem 2rem 3rem; position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 120% 80% at 50% 100%, rgba(61,232,212,0.04) 0%, transparent 60%);
}
.page-header-inner {
  max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1;
}
.page-tag {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 0.75rem;
}
.page-header h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.1;
  color: var(--white); margin-bottom: 1rem;
}
.page-header h1 em { color: var(--teal); font-style: italic; }
.page-header .lead {
  font-size: 1.1rem; color: var(--text); max-width: 600px;
  font-weight: 300; margin: 0;
}

/* ---- SECTIONS ---- */
.s { padding: 4rem 2rem; }
.s-tight { padding: 2.5rem 2rem; }
.s-inner { max-width: var(--content-w); margin: 0 auto; }
.s-wide { max-width: var(--max-w); margin: 0 auto; }

/* ---- TYPOGRAPHY ---- */
h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem); line-height: 1.15;
  color: var(--white); margin-bottom: 1rem;
}
h2 em { color: var(--teal); font-style: italic; }
h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.3rem; color: var(--white);
  margin-bottom: 0.5rem; margin-top: 1.5rem;
}
p { margin-bottom: 1rem; }
.tag {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.tag::before {
  content: ''; display: block; width: 24px; height: 1px;
  background: var(--teal); opacity: 0.4;
}
.divider { width: 40px; height: 1px; background: var(--teal-line); margin-bottom: 1.5rem; }
.sep { border: none; height: 1px; background: var(--border); margin: 0; }

/* ---- PULLQUOTE ---- */
.pq {
  border-left: 2px solid var(--teal); padding: 1.5rem 0 1.5rem 1.5rem; margin: 2rem 0;
}
.pq p {
  font-family: var(--font-display); font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-style: italic; color: var(--white); line-height: 1.4; margin: 0;
}

/* ---- STAT BAR ---- */
.stat-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
}
.stat-bar .st {
  padding: 1.5rem 1.25rem; text-align: center;
  border-right: 1px solid var(--border);
}
.stat-bar .st:last-child { border-right: none; }
.st-num {
  font-family: var(--font-display); font-size: 2.2rem;
  color: var(--coral); line-height: 1; margin-bottom: 0.3rem;
}
.st-label {
  font-family: var(--font-mono); font-size: 0.58rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text); line-height: 1.5;
}
.st-src { font-size: 0.5rem; color: rgba(168,190,201,0.3); margin-top: 0.25rem; }

@media (max-width: 768px) {
  .stat-bar { grid-template-columns: 1fr 1fr; }
  .stat-bar .st:nth-child(2) { border-right: none; }
  .stat-bar .st:nth-child(1), .stat-bar .st:nth-child(2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 480px) {
  .stat-bar { grid-template-columns: 1fr; }
  .stat-bar .st { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-bar .st:last-child { border-bottom: none; }
}

/* ---- CARDS ---- */
.card-grid { display: grid; gap: 1rem; margin: 1.5rem 0; }
.card-grid-2 { grid-template-columns: 1fr 1fr; }
.card-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 768px) { .card-grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .card-grid-2 { grid-template-columns: 1fr; } }

.card {
  background: rgba(255,255,255,0.02); border: 1px solid var(--border);
  padding: 1.75rem; border-radius: 2px; transition: border-color 0.3s, transform 0.3s;
}
.card:hover { border-color: var(--border-hover); transform: translateY(-1px); }
.card h4 {
  font-family: var(--font-display); font-size: 1.15rem;
  color: var(--white); margin-bottom: 0.5rem;
}
.card p { font-size: 0.9rem; color: var(--text); margin-bottom: 0.5rem; line-height: 1.6; }
.card .card-tag {
  font-family: var(--font-mono); font-size: 0.58rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 0.6rem;
}
.card .card-src {
  font-family: var(--font-mono); font-size: 0.55rem;
  color: rgba(61,232,212,0.35);
}
.card-coral { background: var(--coral-dim); border-color: rgba(255,99,99,0.08); }
.card-teal { background: var(--teal-dim); border-color: rgba(61,232,212,0.08); }
.card-coral .card-tag { color: var(--coral); }

.card ul { list-style: none; }
.card li {
  font-size: 0.9rem; margin-bottom: 0.5rem; padding-left: 1rem;
  position: relative; color: var(--text);
}
.card li::before {
  content: ''; position: absolute; left: 0; top: 0.55rem;
  width: 3px; height: 3px; border-radius: 50%;
}
.card-coral li::before { background: var(--coral); opacity: 0.5; }
.card-teal li::before { background: var(--teal); opacity: 0.5; }
.card li strong { color: var(--text-bright); font-weight: 600; }

/* ---- STEPS ---- */
.steps { counter-reset: stp; margin: 1.5rem 0; }
.stp {
  counter-increment: stp;
  display: grid; grid-template-columns: 3.5rem 1fr; margin-bottom: 0;
}
.stp-n { position: relative; display: flex; flex-direction: column; align-items: center; }
.stp-n::before {
  content: counter(stp); font-family: var(--font-display);
  font-size: 1.3rem; color: var(--teal); opacity: 0.4; line-height: 1;
}
.stp-n::after {
  content: ''; flex: 1; width: 1px;
  background: linear-gradient(to bottom, var(--teal-line), rgba(61,232,212,0.03));
  margin-top: 0.5rem;
}
.stp:last-child .stp-n::after { display: none; }
.stp-c { padding-bottom: 1.75rem; }
.stp-c h4 {
  font-family: var(--font-body); font-weight: 600;
  font-size: 0.95rem; color: var(--white); margin-bottom: 0.25rem;
}
.stp-c p { font-size: 0.9rem; color: var(--text); margin: 0; }

/* ---- TIMELINE ---- */
.tl { margin: 1.5rem 0; position: relative; }
.tl::before {
  content: ''; position: absolute; left: 2.5rem; top: 0; bottom: 0;
  width: 1px; background: var(--teal-line);
}
.tl-row {
  display: grid; grid-template-columns: 5rem 1fr;
  gap: 1rem; margin-bottom: 2rem; position: relative;
}
.tl-mark { text-align: center; }
.tl-yr {
  font-family: var(--font-mono); font-size: 0.68rem;
  color: var(--teal); letter-spacing: 0.05em;
}
.tl-dot {
  width: 7px; height: 7px; background: var(--teal); border-radius: 50%;
  margin: 0.4rem auto 0; box-shadow: 0 0 10px rgba(61,232,212,0.3);
}
.tl-body h4 {
  font-family: var(--font-body); font-weight: 600;
  font-size: 0.95rem; color: var(--white); margin-bottom: 0.25rem;
}
.tl-body p { font-size: 0.9rem; color: var(--text); margin: 0; }

/* ---- INVOLVE CARDS ---- */
.involve-card {
  padding: 2rem; border: 1px solid var(--border); border-radius: 2px;
  text-align: center; transition: all 0.3s;
}
.involve-card:hover {
  border-color: var(--border-hover); background: var(--teal-glow);
  transform: translateY(-2px);
}
.involve-card .ic-icon { font-size: 1.6rem; margin-bottom: 0.75rem; display: block; }
.involve-card h4 {
  font-family: var(--font-display); font-size: 1.1rem;
  color: var(--white); margin-bottom: 0.5rem;
}
.involve-card p { font-size: 0.85rem; color: var(--text); margin: 0; line-height: 1.6; }

/* ---- CTA BLOCK ---- */
.cta-block {
  text-align: center; padding: 5rem 2rem; position: relative; overflow: hidden;
}
.cta-block::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 60% at 50% 90%, rgba(61,232,212,0.05) 0%, transparent 60%);
}
.cta-block h2, .cta-block p, .cta-block .tagline { position: relative; z-index: 1; }
.cta-block p { max-width: 460px; margin: 0 auto 1.5rem; }
.tagline {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem); color: var(--teal);
}

/* ---- BUTTONS ---- */
.btn-primary {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.8rem 1.8rem; background: var(--teal);
  color: var(--abyss); border: none; border-radius: 2px;
  cursor: pointer; font-weight: 500; transition: all 0.3s;
  display: inline-block;
}
.btn-primary:hover {
  background: var(--white); transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(61,232,212,0.2);
}
.btn-ghost {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.8rem 1.8rem; background: transparent;
  color: var(--foam); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px; cursor: pointer; transition: all 0.3s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---- SOURCES ---- */
.sources { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.sources h3 {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text); margin: 0 0 1rem; font-weight: 500;
}
.src-list { columns: 2; column-gap: 2rem; }
@media (max-width: 640px) { .src-list { columns: 1; } }
.src-item {
  break-inside: avoid; display: flex; gap: 0.4rem;
  margin-bottom: 0.4rem; font-size: 0.72rem;
  color: rgba(168,190,201,0.4); line-height: 1.5;
}
.src-item .sn {
  font-family: var(--font-mono); font-size: 0.6rem;
  color: rgba(61,232,212,0.3); flex-shrink: 0; width: 1.2rem;
}
.src-item a {
  color: rgba(168,190,201,0.4); border-bottom: 1px solid rgba(168,190,201,0.1);
  transition: all 0.2s;
}
.src-item a:hover { color: var(--teal); border-color: var(--teal); }

sup.ref {
  font-family: var(--font-mono); font-size: 0.5rem;
  color: var(--teal); opacity: 0.4; margin-left: 1px;
}

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--border); padding: 2rem;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-brand { font-family: var(--font-display); font-size: 0.95rem; color: var(--foam); }
.footer-brand span { color: var(--teal); }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text); transition: color 0.3s;
}
.footer-links a:hover { color: var(--teal); }
.footer-copy {
  width: 100%; text-align: center; font-size: 0.65rem;
  color: rgba(168,190,201,0.25); margin-top: 1rem;
  font-family: var(--font-mono);
}

/* ---- ANIMATIONS ---- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0% { transform: translateY(110vh) translateX(0); opacity: 0; }
  5% { opacity: 0.4; }
  95% { opacity: 0.25; }
  100% { transform: translateY(-10vh) translateX(50px); opacity: 0; }
}
.particle {
  position: absolute; border-radius: 50%;
  background: var(--teal); opacity: 0; animation: float linear infinite;
}
