/* ─── Earth-in-360 site — global styles ─── */

:root {
  --primary:   #64a19d;
  --primary-d: #4d8480;
  --secondary: #7464a1;
  --dark:      #212529;
  --black:     #000;
  --teal:      #64a19d;
  --font-varela: 'Varela Round', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-nunito: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-nunito);
  background-color: var(--black);
  color: #fff;
  overflow-x: hidden;
  line-height: 1.5;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ── Bootstrap-ish utilities (the few we use) ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 992px) { .container { padding: 0 2rem; } }
.row { display: flex; flex-wrap: wrap; margin: 0 -.75rem; }
.row > [class*="col-"] { padding: 0 .75rem; }
.col-md-4 { flex: 0 0 100%; }
.col-md-6 { flex: 0 0 100%; }
.col-md-10 { flex: 0 0 100%; }
.col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8 { flex: 0 0 100%; }
.col-6 { flex: 0 0 50%; }
@media (min-width: 768px) {
  .col-md-4 { flex: 0 0 33.3333%; }
  .col-md-6 { flex: 0 0 50%; }
  .col-md-10 { flex: 0 0 83.3333%; }
}
@media (min-width: 992px) {
  .col-lg-4 { flex: 0 0 33.3333%; }
  .col-lg-5 { flex: 0 0 41.6667%; }
  .col-lg-6 { flex: 0 0 50%; }
  .col-lg-7 { flex: 0 0 58.3333%; }
  .col-lg-8 { flex: 0 0 66.6667%; }
}
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; }
.d-flex { display: flex; }
.d-block { display: block; }
.d-inline-flex { display: inline-flex; }
.flex-wrap { flex-wrap: wrap; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.h-100 { height: 100%; }
.w-100 { width: 100%; }
.position-relative { position: relative; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ms-auto { margin-left: auto; }
.my-0 { margin-top: 0; margin-bottom: 0; }
.mt-2 { margin-top: .5rem; } .mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; } .mt-5 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; } .mb-md-0 { margin-bottom: 0; }
.me-1 { margin-right: .25rem; } .me-2 { margin-right: .5rem; }
.gap-3 { gap: 1rem; }
.gx-4 > * { padding-left: 1rem; padding-right: 1rem; }
.g-3 { row-gap: 1rem; } .g-3 > * { padding: 0 .75rem; }
.g-4 { row-gap: 1.5rem; } .gy-4 { row-gap: 1.5rem; }
.g-4 > *, .gy-4 > * { padding: 0 .75rem; }
.gx-lg-5 > * { padding-left: 0; padding-right: 0; }
@media (min-width: 992px) {
  .gx-lg-5 > * { padding-left: 1.5rem; padding-right: 1.5rem; }
  .mb-lg-0 { margin-bottom: 0; }
}
.text-white { color: #fff !important; }
.text-white-50 { color: rgba(255,255,255,.5) !important; }
.text-black-50 { color: rgba(0,0,0,.5) !important; }
.bg-black { background-color: #000 !important; }
.text-primary { color: var(--primary) !important; }
.small { font-size: .875em; }
.lead-text { max-width: 640px; margin: 1rem auto 0; font-size: 1.1rem; line-height: 1.7; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 .1875rem .1875rem 0 rgba(0,0,0,.1);
  padding: 1.25rem 2rem;
  font-family: var(--font-varela);
  font-size: 80%;
  text-transform: uppercase;
  letter-spacing: .15rem;
  border: 0;
  border-radius: .25rem;
  transition: background-color .2s, color .2s;
}
.btn-primary { background-color: var(--primary); color: #fff; }
.btn-primary:hover { background-color: var(--primary-d); }
.btn-outline-reef {
  background: transparent;
  border: 1px solid var(--primary) !important;
  color: var(--primary) !important;
  font-family: var(--font-varela);
  font-size: .75rem; letter-spacing: .12rem;
  text-transform: uppercase;
  padding: .75rem 1.5rem; border-radius: .3rem;
  box-shadow: none;
}
.btn-outline-reef:hover { background: var(--primary) !important; color: #fff !important; }

/* ═══════════════ NAVBAR ═══════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1rem 0;
  background-color: #1a1a1a;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-family: var(--font-varela);
  transition: background-color .3s ease-in-out;
}
.navbar .nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1140px; margin: 0 auto; padding: 0 1.5rem;
}
.navbar-brand {
  color: rgba(255,255,255,.9) !important;
  font-weight: 700;
  letter-spacing: .1rem;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 1rem;
}
.navbar-brand .dim { color: var(--primary); }
.navbar-brand .suffix {
  opacity: .4;
  font-size: .7em;
  font-weight: normal;
  margin-left: .35rem;
}
.nav-links { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 0; }
.nav-link {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  letter-spacing: .08rem;
  text-transform: uppercase;
  font-size: .75rem;
  padding: .5rem 1rem;
  transition: color .2s;
}
.nav-link:hover { color: rgba(255,255,255,.9); }
.nav-link.cta {
  color: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 2rem;
  padding: .35rem 1.1rem;
  margin-left: .5rem;
  transition: background .2s, color .2s, border-color .2s;
}
.nav-link.cta:hover {
  background: rgba(255,255,255,.15) !important;
  border-color: rgba(255,255,255,.85);
}
.navbar.scrolled .nav-link.cta {
  color: var(--primary) !important;
  border: 1px solid var(--primary) !important;
}
.navbar.scrolled .nav-link.cta:hover {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}
@media (min-width: 992px) {
  .navbar { background-color: transparent; padding: 0; border-bottom: none; }
  .navbar.scrolled { background-color: #fff !important; }
  .navbar.scrolled .navbar-brand { color: #000 !important; }
  .navbar.scrolled .navbar-brand .dim { color: var(--primary); }
  .navbar.scrolled .nav-link { color: #000; }
  .navbar.scrolled .nav-link:hover { color: var(--primary); }
  .navbar .nav-link { padding: 2rem 1rem; }
  .navbar.scrolled .nav-link { padding: 1.5rem 1rem 1.25rem; }
}
@media (max-width: 991px) {
  .nav-links { gap: .25rem; }
  .nav-link { padding: .5rem .75rem; font-size: .7rem; }
  .nav-link.cta { padding: .3rem .85rem; }
}

/* ═══════════════ MASTHEAD (parallax hero) ═══════════════ */
.masthead {
  position: relative;
  width: 100%;
  min-height: 35rem;
  overflow: hidden;
  background: #000;
}
@media (min-width: 992px) { .masthead { height: 100vh; } }

.masthead .mobile-bg {
  position: absolute;
  top: -7%; left: -15%;
  width: 130%; height: 115%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}
@media (min-width: 768px) {
  /* On desktop the WebGL canvas takes over; hide the static fallback img */
  .masthead .mobile-bg { display: none; }
}

.masthead-overlay {
  position: relative; z-index: 2;
  width: 100%; height: 100%; min-height: inherit;
  display: flex; align-items: center;
  background: linear-gradient(to bottom, rgba(0,0,0,.15) 0%, rgba(0,0,0,.50) 70%, rgba(0,0,0,.85) 100%);
}
@media (min-width: 992px) { .masthead-overlay { min-height: 100vh; } }

.masthead h1 {
  font-family: var(--font-varela);
  font-size: 2.5rem; line-height: 2.5rem; letter-spacing: .8rem;
  background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,0));
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  margin: 0;
}
.masthead h2 {
  max-width: 20rem; font-size: 1rem; margin: .5rem auto 3rem;
  font-weight: 400;
}
@media (min-width: 768px) {
  .masthead h1 { font-size: 4rem; line-height: 4rem; }
}
@media (min-width: 992px) {
  .masthead h1 { font-size: 6.5rem; line-height: 6.5rem; }
  .masthead h2 { max-width: 30rem; font-size: 1.25rem; }
}

/* ═══════════════ ABOUT ═══════════════ */
.about-section {
  padding: 10rem 0 5rem;
  text-align: center;
  background: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.9) 75%, rgba(0,0,0,.8) 100%);
}
.about-section h2 {
  font-family: var(--font-varela);
  font-size: 1.6rem; letter-spacing: .1rem; text-transform: uppercase;
  margin-bottom: 2rem;
}
.about-section p { margin-bottom: 5rem; max-width: 720px; margin-left: auto; margin-right: auto; }
.about-section .img-fluid { max-width: 100%; margin: 0 auto; }

/* ═══════════════ EXPLORE / PUBLIC SECTION ═══════════════ */
.explore-section {
  padding: 8rem 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.8) 0%, rgba(10,30,40,.95) 100%);
}
.section-header h2 {
  font-family: var(--font-varela);
  letter-spacing: .1rem; text-transform: uppercase;
  font-size: 1.8rem;
  margin: 0 0 1rem;
}
.explore-card {
  padding: 2.5rem 2rem;
  border: 1px solid rgba(100,161,157,.25);
  border-radius: .5rem;
  height: 100%;
  background: rgba(100,161,157,.04);
  transition: border-color .3s, background .3s;
}
.explore-card:hover {
  border-color: rgba(100,161,157,.6);
  background: rgba(100,161,157,.08);
}
.explore-icon { font-size: 2rem; color: var(--primary); margin-bottom: 1.25rem; }
.explore-card h4 {
  color: #fff;
  font-family: var(--font-varela);
  font-size: 1rem; text-transform: uppercase; letter-spacing: .1rem;
  margin: 0 0 .75rem;
}
.explore-card p { color: rgba(255,255,255,.55); font-size: .95rem; line-height: 1.75; margin: 0; }

/* ═══════════════ REEF / VR CAMPAIGN ═══════════════ */
.reef-section {
  position: relative;
  padding: 8rem 0;
  background: linear-gradient(135deg, #0a1628 0%, #0d2b2a 100%);
  overflow: hidden;
}
.reef-bg-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(100,161,157,.12) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(28,171,196,.08) 0%, transparent 50%);
  pointer-events: none;
}
.campaign-tag {
  display: inline-block;
  background: rgba(100,161,157,.15);
  border: 1px solid rgba(100,161,157,.4);
  color: var(--primary);
  font-family: var(--font-varela);
  font-size: .7rem; letter-spacing: .15rem; text-transform: uppercase;
  padding: .3rem .9rem; border-radius: 2rem;
}
.reef-section h2 {
  font-family: var(--font-varela);
  font-size: 2rem; letter-spacing: .05rem;
  margin: 1rem 0 1.5rem;
}
.reef-section p { line-height: 1.75; }
.stat-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(100,161,157,.2);
  border-radius: .5rem;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: border-color .3s;
}
.stat-card:hover { border-color: rgba(100,161,157,.6); }
.stat-number {
  font-family: var(--font-varela);
  font-size: 2.2rem; color: var(--primary);
  line-height: 1; margin-bottom: .4rem;
}
.stat-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1rem; color: rgba(255,255,255,.45); }
.timeline { border-left: 2px solid rgba(100,161,157,.3); padding-left: 1.25rem; }
.timeline-title {
  font-family: var(--font-varela);
  font-size: .7rem; text-transform: uppercase; letter-spacing: .15rem;
  color: var(--primary); margin-bottom: 1rem;
}
.timeline-item { position: relative; padding-bottom: .85rem; font-size: .9rem; }
.timeline-dot {
  position: absolute; left: -1.44rem; top: .35rem;
  width: .6rem; height: .6rem;
  background: var(--primary); border-radius: 50%;
}

/* ═══════════════ SIGNUP ═══════════════ */
.signup-section {
  padding: 10rem 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.1) 0%, rgba(0,0,0,.5) 75%, #000 100%),
    url('/static/site/img/bg-signup.jpg') center / cover no-repeat;
}
.signup-section h2 {
  font-family: var(--font-varela);
  font-size: 1.5rem; letter-spacing: .1rem; text-transform: uppercase;
}
.signup-section .input-group-newsletter { display: flex; gap: .5rem; max-width: 600px; margin: 0 auto; }
.signup-section .input-group-newsletter > .col { flex: 1; }
.signup-section input.form-control {
  width: 100%;
  box-shadow: 0 .1875rem .1875rem 0 rgba(0,0,0,.1);
  padding: 1.25rem 2rem;
  height: auto;
  font-family: var(--font-varela);
  font-size: 80%;
  text-transform: uppercase;
  letter-spacing: .15rem;
  border: 0;
  border-radius: .25rem;
}

/* ═══════════════ CONTACT ═══════════════ */
.contact-section { padding: 5rem 0 0; }
.contact-section .card {
  background: #fff; color: #212529;
  border: 0; border-bottom: .25rem solid var(--primary);
  border-radius: .25rem;
  padding: 1.5rem 1rem;
  text-align: center;
  height: 100%;
}
.contact-section .card h4 {
  font-size: .8rem;
  font-family: var(--font-varela);
  text-transform: uppercase;
  letter-spacing: .15rem;
  color: #212529;
  margin: .5rem 0 0;
}
.contact-section .card hr {
  opacity: 1;
  border-color: var(--primary);
  border-width: .25rem;
  border-style: solid;
  width: 3rem;
  margin: 1rem auto;
}
.contact-section .card a { color: rgba(0,0,0,.5); text-decoration: none; }
.contact-section .card .text-primary { color: var(--primary) !important; }
.contact-section .card i.text-primary { font-size: 1.4rem; }
.contact-section .social { margin-top: 5rem; padding-bottom: 5rem; }
.contact-section .social a {
  text-align: center;
  height: 3rem; width: 3rem;
  background: rgba(255,255,255,.1);
  border-radius: 100%;
  line-height: 3rem;
  color: rgba(255,255,255,.3);
  display: inline-block;
  text-decoration: none;
  margin: 0 .25rem;
}
.contact-section .social a:hover { color: rgba(255,255,255,.5); }

/* ═══════════════ FOOTER ═══════════════ */
.footer { padding: 3rem 0; }

/* ═══════════════ /APP PAGE ═══════════════ */
.dev-notice {
  position: fixed;
  top: 57px; left: 0; right: 0;
  z-index: 999;
  background: linear-gradient(90deg, #2a1f00, #3d2e00, #2a1f00);
  border-bottom: 1px solid rgba(228,198,98,.4);
  color: rgba(228,198,98,.9);
  font-family: var(--font-varela);
  font-size: .75rem; letter-spacing: .08rem;
  text-align: center;
  padding: .55rem 1rem;
}
@media (min-width: 992px) { .dev-notice { top: 64px; } }
.dev-notice a { color: #e4c662; text-decoration: underline; text-underline-offset: 2px; }
.dev-notice a:hover { color: #fff; }

.app-page {
  background: #0a0f14;
  min-height: 100vh;
  padding-top: calc(5rem + 2.25rem);
  color: #fff;
}
@media (min-width: 992px) { .app-page { padding-top: calc(4rem + 2.25rem); } }
.app-hero {
  padding: 6rem 0 4rem;
  background: linear-gradient(to bottom, #0d1f2d, #0a0f14);
  text-align: center;
}
.app-hero h1 {
  font-family: var(--font-varela);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: .15rem; text-transform: uppercase;
  background: linear-gradient(rgba(255,255,255,.95), rgba(100,161,157,.7));
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  margin: 0 0 1.25rem;
}
.app-hero .hero-sub {
  max-width: 600px; margin: 0 auto;
  color: rgba(255,255,255,.55);
  font-size: 1.05rem; line-height: 1.75;
}

.platform-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(100,161,157,.2);
  border-radius: .75rem;
  padding: 3rem;
  margin-bottom: 2rem;
  transition: border-color .3s;
}
.platform-card:hover { border-color: rgba(100,161,157,.5); }
.platform-header { display: flex; align-items: flex-start; gap: 1.25rem; margin-bottom: 1rem; }
.platform-icon { font-size: 2.5rem; color: var(--primary); margin-top: .2rem; flex-shrink: 0; }
.platform-header h2 {
  font-family: var(--font-varela);
  font-size: 1.25rem; text-transform: uppercase; letter-spacing: .08rem;
  margin: 0;
}
.platform-badge {
  display: inline-block;
  font-size: .65rem; font-family: var(--font-varela);
  text-transform: uppercase; letter-spacing: .1rem;
  padding: .2rem .7rem; border-radius: 2rem;
  margin-bottom: .4rem;
}
.badge-primary { background: rgba(100,161,157,.2); color: var(--primary); border: 1px solid rgba(100,161,157,.4); }
.badge-success  { background: rgba(103,194,156,.15); color: #67c29c; border: 1px solid rgba(103,194,156,.3); }
.platform-desc { color: rgba(255,255,255,.55); line-height: 1.75; margin-bottom: 1.5rem; }
.btn-platform {
  display: inline-flex; align-items: center;
  background: var(--primary); color: #fff;
  font-family: var(--font-varela); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .1rem;
  padding: .85rem 2rem; border-radius: .35rem; border: none;
  box-shadow: 0 4px 15px rgba(100,161,157,.3);
  transition: background .2s, box-shadow .2s;
  text-decoration: none;
}
.btn-platform:hover { background: var(--primary-d); color: #fff; box-shadow: 0 6px 20px rgba(100,161,157,.45); }
.steps-box {
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: .5rem;
  padding: 2rem;
}
.steps-title {
  font-family: var(--font-varela);
  font-size: .7rem; text-transform: uppercase; letter-spacing: .15rem;
  color: var(--primary); margin-bottom: 1rem;
}
.steps-list { margin: 0; padding-left: 1.4rem; color: rgba(255,255,255,.6); line-height: 2; font-size: .9rem; }
.steps-list a { color: var(--primary); }
.steps-list code {
  background: rgba(100,161,157,.1); color: var(--primary);
  padding: .1rem .4rem; border-radius: .25rem; font-size: .85em;
}
.requirements-box {
  font-size: .85rem;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: .5rem;
  text-align: center;
}

/* ═══════════════ /RESEARCHERS PAGE ═══════════════ */
.researchers-page {
  background: #0a0f14;
  min-height: 100vh;
  padding-top: 5rem;
  color: #fff;
}
.page-hero { padding: 6rem 0 3.5rem; background: linear-gradient(to bottom, #0d1f2d, #0a0f14); text-align: center; }
.page-tag {
  display: inline-block;
  background: rgba(100,161,157,.12);
  border: 1px solid rgba(100,161,157,.35);
  color: var(--primary);
  font-family: var(--font-varela);
  font-size: .7rem; letter-spacing: .15rem; text-transform: uppercase;
  padding: .3rem .9rem; border-radius: 2rem;
  margin-bottom: 1.25rem;
}
.page-hero h1 {
  font-family: var(--font-varela);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  text-transform: uppercase; letter-spacing: .15rem;
  background: linear-gradient(rgba(255,255,255,.95), rgba(100,161,157,.6));
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  margin: 0 0 1rem;
}
.hero-sub {
  max-width: 580px; margin: 0 auto;
  color: rgba(255,255,255,.5);
  font-size: 1rem; line-height: 1.75;
}
.researcher-card {
  display: flex; gap: 1.5rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(100,161,157,.18);
  border-radius: .75rem;
  padding: 2rem;
  height: 100%;
  transition: border-color .3s;
}
.researcher-card:hover { border-color: rgba(100,161,157,.5); }
.researcher-avatar {
  flex-shrink: 0;
  width: 3.5rem; height: 3.5rem;
  background: rgba(100,161,157,.2);
  border: 1px solid rgba(100,161,157,.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-varela);
  font-size: 1.4rem;
  color: var(--primary);
}
.researcher-info h3 { font-family: var(--font-varela); font-size: 1.1rem; margin: 0 0 .2rem; }
.researcher-role { font-size: .78rem; text-transform: uppercase; letter-spacing: .1rem; color: var(--primary); margin-bottom: .15rem; }
.researcher-unit { font-size: .78rem; color: rgba(255,255,255,.35); margin-bottom: .85rem; }
.researcher-bio { font-size: .875rem; color: rgba(255,255,255,.55); line-height: 1.75; margin-bottom: 1rem; }
.researcher-links { display: flex; gap: .75rem; }
.researcher-links a { color: rgba(255,255,255,.35); font-size: .9rem; text-decoration: none; transition: color .2s; }
.researcher-links a:hover { color: var(--primary); }
.section-divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 3rem 0 1.5rem;
  color: rgba(255,255,255,.3);
  font-family: var(--font-varela);
  font-size: .7rem; text-transform: uppercase; letter-spacing: .2rem;
}
.section-divider::before, .section-divider::after {
  content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.1);
}
.partner-card {
  display: block; position: relative;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: .5rem;
  padding: 1.5rem 2.5rem 1.5rem 1.5rem;
  text-decoration: none;
  transition: border-color .3s, background .3s;
}
.partner-card:hover { border-color: rgba(100,161,157,.4); background: rgba(100,161,157,.05); }
.partner-card.sponsor { border-color: rgba(228,198,98,.12); }
.partner-card.sponsor:hover { border-color: rgba(228,198,98,.4); }
.partner-name { color: #fff; font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.partner-role { color: rgba(255,255,255,.4); font-size: .8rem; }
.partner-link-icon { position: absolute; top: 1rem; right: 1rem; color: rgba(255,255,255,.2); font-size: .75rem; }

/* ═══════════════ /PROJECT PAGE ═══════════════ */
.project-page { background: #0a0f14; min-height: 100vh; padding-top: 4.5rem; }

.project-hero {
  min-height: 55vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  display: flex; align-items: center;
}
.project-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.45) 0%,
    rgba(10,22,40,.85) 70%,
    #0a0f14 100%
  );
  display: flex; align-items: center;
  padding: 6rem 0 4rem;
  width: 100%;
}
.project-hero h1 {
  font-family: var(--font-varela);
  font-size: clamp(2rem, 5vw, 3.8rem);
  letter-spacing: .12rem; text-transform: uppercase;
  background: linear-gradient(rgba(255,255,255,.95), rgba(100,161,157,.7));
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  margin: 1rem 0 1.25rem;
}

.project-body { padding: 3rem 1.5rem 5rem; max-width: 860px; }

.project-section { margin-bottom: 3.5rem; }

.section-label {
  font-family: var(--font-varela);
  font-size: .7rem; text-transform: uppercase;
  letter-spacing: .2rem; color: var(--primary);
  border-left: 3px solid var(--primary);
  padding-left: .85rem;
  margin-bottom: 1.25rem;
}

.project-cta-strip {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-top: 3rem; padding-top: 3rem;
  border-top: 1px solid rgba(100,161,157,.15);
}

/* ── Simplified contact strip ── */
.contact-simple {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 3.5rem 0 2rem;
}
.contact-item {
  display: flex; align-items: center; gap: .75rem;
  color: rgba(255,255,255,.45); font-size: .95rem;
}
.contact-item i { color: var(--primary); font-size: 1.1rem; width: 1.25rem; text-align: center; }
.contact-item a { color: rgba(255,255,255,.45); text-decoration: none; transition: color .2s; }
.contact-item a:hover { color: var(--primary); }

/* ── Researcher card — photo support ── */
.researcher-avatar img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  border-radius: 50%;
  display: block;
}

/* ── Project page masthead (parallax, shorter than home hero) ── */
.project-masthead {
  min-height: 28rem !important;
}
@media (min-width: 992px) {
  .project-masthead { height: 55vh !important; }
}
.project-masthead-overlay {
  padding: 2rem 0;
  min-height: inherit !important;
  align-items: center !important;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.08) 0%,
    rgba(0,0,0,.45) 50%,
    rgba(10,15,20,.88) 100%
  ) !important;
}
.project-masthead-title {
  font-family: var(--font-varela);
  font-size: clamp(1.8rem, 4vw, 3.2rem) !important;
  letter-spacing: .12rem;
  text-transform: uppercase;
  text-align: center;
  background: linear-gradient(rgba(255,255,255,.95), rgba(100,161,157,.65));
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  margin: .75rem 0 .85rem;
}
.project-masthead-sub {
  max-width: 600px;
  margin: 0 auto;
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  line-height: 1.75;
}

/* ── Masthead bleed: mirrored-blur fill when viewport > image width ─────
   Sits behind the WebGL canvas (z-index 0). The canvas now outputs
   transparent pixels for out-of-bounds areas, letting this show through.
   mask-image fades the bleed to nothing at the horizontal edges.        */
.masthead-bleed {
  position: absolute;
  inset: -8%;                       /* overshoot prevents blur-edge halos  */
  z-index: 0;
  background-size: 100% auto;       /* match image aspect, fill width      */
  background-position: center center;
  background-repeat: no-repeat;
  filter: blur(64px) saturate(1.25) brightness(0.55);
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      rgba(0,0,0,0.7) 10%,
      black 22%,
      black 78%,
      rgba(0,0,0,0.7) 90%,
      transparent 100%
    );
  mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      rgba(0,0,0,0.7) 10%,
      black 22%,
      black 78%,
      rgba(0,0,0,0.7) 90%,
      transparent 100%
    );
}

/* ── Project page: pull-quote below the banner ── */
.project-lede {
  background: #0a0f14;
  padding: 2.75rem 0 0;
}
.project-quote {
  margin: 0 auto;
  max-width: 680px;
  text-align: center;
  padding: .5rem 2rem;
  font-family: var(--font-varela);
  font-size: clamp(.95rem, 1.8vw, 1.15rem);
  letter-spacing: .06rem;
  line-height: 1.85;
  font-style: italic;
  background: linear-gradient(rgba(255,255,255,.82), rgba(100,161,157,.55));
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

/* ── Project bleed: radial mask — strong at centre, fades to window edges ── */
.project-masthead .masthead-bleed {
  filter: blur(80px) saturate(0.55) brightness(0.75) !important;
  -webkit-mask-image: radial-gradient(
    ellipse 85% 120% at 50% 50%,
    black 10%,
    rgba(0,0,0,.7) 40%,
    rgba(0,0,0,.2) 65%,
    transparent 80%
  ) !important;
  mask-image: radial-gradient(
    ellipse 85% 120% at 50% 50%,
    black 10%,
    rgba(0,0,0,.7) 40%,
    rgba(0,0,0,.2) 65%,
    transparent 80%
  ) !important;
}
