/* SAFE Labs — shared styles */
:root {
  --navy: #0A1628;
  --navy-mid: #122040;
  --teal: #00B4A0;
  --teal-dim: #007A6E;
  --gold: #D4A843;
  --gold-dim: #A07820;
  --cream: #F5F0E8;
  --cream-dark: #EAE4D8;
  --white: #FFFFFF;
  --text-dark: #0A1628;
  --text-mid: #3D4F6B;
  --text-light: #7A8FA8;
  --border: rgba(10,22,40,0.12);
  --border-light: rgba(10,22,40,0.06);
  --card-bg: #FFFFFF;
  --section-alt: #F8F6F2;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: 36px; height: 36px;
  background: var(--teal);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.logo-mark span {
  font-family: 'DM Mono', monospace;
  font-size: 11px; font-weight: 500;
  color: var(--navy); letter-spacing: -0.5px;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700;
  color: var(--white); letter-spacing: 0.5px;
}

.logo-text em { color: var(--teal); font-style: normal; }

.nav-links { display: flex; gap: 2rem; list-style: none; }

.nav-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 13px; font-weight: 400;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--teal); }

.nav-cta {
  background: var(--teal);
  color: var(--navy) !important;
  font-weight: 500 !important;
  padding: 8px 20px;
  border-radius: 4px;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: #00CDB8 !important; color: var(--navy) !important; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 120px 2rem 80px;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,180,160,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,160,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
}

.hero-accent {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,180,160,0.12) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}

.hero-accent-2 {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(212,168,67,0.08) 0%, transparent 70%);
  bottom: 0; left: 20%;
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,180,160,0.1);
  border: 1px solid rgba(0,180,160,0.3);
  border-radius: 2px;
  padding: 6px 14px;
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: 1.5px;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-title .line-teal { color: var(--teal); }
.hero-title .line-gold { color: var(--gold); font-style: italic; }

.hero-body {
  font-size: 17px; font-weight: 300;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  background: var(--teal);
  color: var(--navy);
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 500; font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: all 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  background: #00CDB8;
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.8);
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 400; font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: all 0.2s;
  display: inline-block;
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-outline.light {
  border-color: var(--border);
  color: var(--text-mid);
}

.btn-outline.light:hover { border-color: var(--teal); color: var(--teal); }

.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 28px 24px;
  position: relative; overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--teal);
}

.stat-card.gold::before { background: var(--gold); }

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 42px; font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-num span { color: var(--teal); }
.stat-card.gold .stat-num span { color: var(--gold); }

.stat-label {
  font-size: 13px; font-weight: 300;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.3px;
}

/* ── SECTIONS ── */
.section { padding: 100px 2rem; }
.section.alt { background: var(--section-alt); }
.section.dark { background: var(--navy); color: var(--white); }

.container { max-width: 1200px; margin: 0 auto; }

.section-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.section.dark .section-title { color: var(--white); }

.section-sub {
  font-size: 17px; font-weight: 300;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.75;
}

.section.dark .section-sub { color: rgba(255,255,255,0.6); }

.section-header { margin-bottom: 60px; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 140px 2rem 80px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.page-hero .hero-grid { position: absolute; inset: 0; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .section-eyebrow { color: var(--teal); }
.page-hero .section-title { color: var(--white); }
.page-hero .section-sub { color: rgba(255,255,255,0.6); max-width: 640px; }

/* ── ABOUT / FOUNDER ── */
.founder-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}

.founder-img-wrap { position: relative; }

.founder-img-frame {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--cream-dark);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.founder-img-frame img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
}

.founder-img-accent {
  position: absolute;
  bottom: -20px; right: -20px;
  width: 120px; height: 120px;
  border: 3px solid var(--teal);
  border-radius: 4px;
  z-index: -1;
}

.founder-badge {
  position: absolute;
  bottom: 24px; left: -20px;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 16px 20px;
  z-index: 2;
}

.founder-badge-title {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 1.5px;
  color: var(--teal); text-transform: uppercase;
  margin-bottom: 4px;
}

.founder-badge-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px; color: var(--white); font-weight: 700;
}

.founder-content h3, .contact-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 700;
  color: var(--text-dark); margin-bottom: 16px;
}

.founder-content p, .contact-info p {
  font-size: 16px; font-weight: 300;
  color: var(--text-mid); line-height: 1.8;
  margin-bottom: 16px;
}

.contact-info p { font-size: 15px; margin-bottom: 40px; }

.credentials { display: flex; flex-direction: column; gap: 12px; margin: 32px 0; }

.cred-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 6px;
}

.cred-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: rgba(0,180,160,0.08);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 12px; font-weight: 500;
  color: var(--teal);
}

.cred-text strong {
  display: block; font-size: 14px; font-weight: 500;
  color: var(--text-dark); margin-bottom: 2px;
}

.cred-text span { font-size: 13px; color: var(--text-light); }

/* ── MODEL BLOCK (think tank + video) ── */
.model-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.model-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px 36px;
  transition: box-shadow 0.2s;
}

.model-card:hover { box-shadow: 0 12px 32px rgba(10,22,40,0.08); }

.model-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.model-card p {
  font-size: 15px; font-weight: 300;
  color: var(--text-mid);
  line-height: 1.75;
}

.model-card .teal { border-top: 3px solid var(--teal); }
.model-card .gold { border-top: 3px solid var(--gold); }

/* ── PILLARS ── */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }

.pillar-card {
  background: var(--navy);
  padding: 48px 36px;
  position: relative; overflow: hidden;
  cursor: default;
  transition: background 0.3s;
}

.pillar-card:hover { background: #162035; }

.pillar-card a {
  color: inherit;
  text-decoration: none;
}

.pillar-num {
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: 2px;
  color: rgba(255,255,255,0.2);
  margin-bottom: 40px;
  display: block;
}

.pillar-icon { width: 48px; height: 48px; margin-bottom: 24px; }
.pillar-icon svg { width: 100%; height: 100%; }

.pillar-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700;
  color: var(--white); margin-bottom: 16px;
  line-height: 1.25;
}

.pillar-body {
  font-size: 14px; font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  margin-bottom: 28px;
}

.pillar-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.pillar-tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.8px;
  color: var(--teal);
  border: 1px solid rgba(0,180,160,0.3);
  padding: 4px 10px; border-radius: 2px;
}

.pillar-card:nth-child(2) .pillar-tag {
  color: var(--gold); border-color: rgba(212,168,67,0.3);
}

/* ── PROJECTS / VENTURES ── */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(10,22,40,0.08);
}

.project-top { padding: 28px; border-bottom: 1px solid var(--border-light); }

.project-type {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}

.project-type::before {
  content: '';
  width: 20px; height: 1px;
  background: currentColor;
}

.project-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700;
  color: var(--text-dark); margin-bottom: 12px;
  line-height: 1.2;
}

.project-desc {
  font-size: 14px; font-weight: 300;
  color: var(--text-mid); line-height: 1.7;
}

.project-bottom { padding: 20px 28px; display: flex; flex-direction: column; gap: 12px; }

.project-metrics { display: flex; gap: 20px; }

.metric { display: flex; flex-direction: column; }

.metric-val {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700;
  color: var(--text-dark); line-height: 1;
}

.metric-key {
  font-size: 11px; font-weight: 300;
  color: var(--text-light); margin-top: 3px;
}

.project-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--teal);
  text-decoration: none;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
  transition: gap 0.2s;
}

.project-link:hover { gap: 12px; }
.project-link svg { width: 14px; height: 14px; }

/* ── RESEARCH AREAS ── */
.research-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }

.research-item {
  padding: 40px 48px;
  border: 1px solid var(--border-light);
  position: relative;
  transition: background 0.2s;
}

.research-item:hover { background: var(--cream); }

.research-num {
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: 1px;
  color: var(--teal); margin-bottom: 20px;
}

.research-title {
  font-family: 'Playfair Display', serif;
  font-size: 21px; font-weight: 700;
  color: var(--text-dark); margin-bottom: 12px;
}

.research-desc {
  font-size: 14px; font-weight: 300;
  color: var(--text-mid); line-height: 1.75;
}

/* ── IMPACT ── */
.impact-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
}

.impact-cell {
  padding: 48px 32px;
  background: var(--white);
  text-align: center;
  border-right: 1px solid var(--border-light);
}

.impact-cell:last-child { border-right: none; }

.impact-num {
  font-family: 'Playfair Display', serif;
  font-size: 52px; font-weight: 900;
  color: var(--navy); line-height: 1;
  margin-bottom: 10px;
}

.impact-num sup { font-size: 28px; vertical-align: super; }
.impact-num span { color: var(--teal); }

.impact-label {
  font-size: 13px; font-weight: 300;
  color: var(--text-light); letter-spacing: 0.3px;
}

/* ── MEDIA / VIDEO ── */
.media-intro {
  max-width: 640px;
  margin-bottom: 48px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.media-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(10,22,40,0.08);
}

.media-card .thumb {
  aspect-ratio: 16/9;
  background: var(--navy-mid);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
}

.media-card .body { padding: 24px; }
.media-card .body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.media-card .body p {
  font-size: 14px; font-weight: 300;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ── CONTACT ── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-label {
  font-size: 12px; font-weight: 500;
  color: var(--text-mid); letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 300;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--teal);
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-submit {
  background: var(--navy);
  color: var(--white);
  border: none; cursor: pointer;
  padding: 14px 36px;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 500;
  letter-spacing: 0.3px;
  align-self: flex-start;
  transition: background 0.2s;
}

.form-submit:hover { background: var(--teal); color: var(--navy); }

.form-feedback {
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
}
.form-feedback-success {
  background: rgba(0, 180, 160, 0.1);
  border: 1px solid rgba(0, 180, 160, 0.3);
  color: var(--teal-dim);
}
.form-feedback-error {
  background: rgba(180, 0, 0, 0.06);
  border: 1px solid rgba(180, 0, 0, 0.2);
  color: #8b2635;
}

.contact-details { display: flex; flex-direction: column; gap: 20px; }

.contact-detail { display: flex; align-items: flex-start; gap: 16px; }

.contact-detail-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--cream);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
}

.contact-detail-icon svg { width: 18px; height: 18px; }

.contact-detail strong { display: block; font-size: 14px; font-weight: 500; color: var(--text-dark); }
.contact-detail span { font-size: 14px; font-weight: 300; color: var(--text-mid); }

/* ── FOOTER ── */
footer {
  background: #060E1A;
  padding: 60px 2rem 40px;
}

.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px;
}

.footer-brand p {
  font-size: 14px; font-weight: 300;
  color: rgba(255,255,255,0.4);
  line-height: 1.7; margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 40px; margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center;
}

.footer-bottom span { font-size: 13px; color: rgba(255,255,255,0.25); }

/* ── SCROLL ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner, .founder-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .pillars-grid, .projects-grid { grid-template-columns: 1fr; }
  .research-list { grid-template-columns: 1fr; }
  .impact-row { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .model-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
}
