/* ============================================================
   OpenTrop — neurotech landing
   ============================================================ */

:root{
  --bg:           #050506;
  --bg-soft:      #0b0b0f;
  --ink:          #f5f5f7;
  --muted:        #97979f;
  --muted-dim:    #66666e;
  --accent:       #15cba3;   /* mint */
  --accent-2:     #5fe6cf;   /* light mint */
  --line:         rgba(255,255,255,.10);
  --maxw:         1320px;
  --pad:          clamp(20px, 4vw, 64px);
  --ease:         cubic-bezier(.22,1,.36,1);
}

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

html{ -webkit-text-size-adjust:100%; }

body{
  background:var(--bg);
  color:var(--ink);
  font-family:"Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight:400;
  line-height:1.5;
  letter-spacing:-0.01em;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}

/* Lenis */
html.lenis,html.lenis body{ height:auto; }
.lenis.lenis-smooth{ scroll-behavior:auto !important; }

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

/* ── Background canvas + grain ─────────────────────────────── */
#scene{
  position:fixed; inset:0;
  width:100vw; height:100vh;
  z-index:0;
  display:block;
  pointer-events:none;
}
.grain{
  position:fixed; inset:0; z-index:1;
  pointer-events:none; opacity:.05; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Everything that scrolls sits above the canvas */
.nav, main{ position:relative; z-index:2; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  font-weight:600; letter-spacing:0; cursor:pointer; border:0;
  font-family:inherit; color:#fff; white-space:nowrap;
  transition:transform .4s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.btn--pill{
  background:var(--accent); border-radius:100px;
  padding:.85em 1.6em; font-size:.92rem;
  box-shadow:0 8px 30px -10px rgba(21,203,163,.7);
}
.btn--pill:hover{ background:var(--accent-2); transform:translateY(-2px); }
.btn--lg{ padding:1.05em 2em; font-size:1rem; }
.btn--sm{ padding:.55em 1.15em; font-size:.82rem; }

/* ── Nav ───────────────────────────────────────────────────── */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:30;
  display:flex; align-items:center; justify-content:space-between;
  gap:24px;
  padding:22px var(--pad);
  transition:background .4s var(--ease), backdrop-filter .4s var(--ease), padding .4s var(--ease);
}
.nav.is-scrolled{
  background:rgba(5,5,6,.72);
  backdrop-filter:blur(14px);
  padding-top:14px; padding-bottom:14px;
  border-bottom:1px solid var(--line);
}
.brand{ display:flex; align-items:center; gap:10px; font-weight:600; }
.brand__mark{ width:30px; height:30px; display:block; }
.brand__mark svg{ width:100%; height:100%; }
.brand__name{ font-size:1.25rem; letter-spacing:-0.02em; }
.nav__links{ display:flex; gap:34px; margin-left:auto; }
.nav__links a{
  font-size:.86rem; font-weight:600; letter-spacing:.02em;
  text-transform:uppercase; color:var(--ink);
  opacity:.8; transition:opacity .3s var(--ease);
}
.nav__links a:hover{ opacity:1; }
.nav__cta{ margin-left:8px; }

/* ── Section scaffold ──────────────────────────────────────── */
.section{
  position:relative;
  padding-block:clamp(90px, 13vh, 160px);
  padding-inline:var(--pad);
}
.panel{ min-height:100vh; display:flex; align-items:center; }
.panel__copy{ width:min(540px, 100%); }
.panel--right .panel__copy{ margin-left:auto; }        /* copy right, particles left */
.panel--left  .panel__copy{ margin-right:auto; }        /* copy left, particles right */

/* ── Typography ────────────────────────────────────────────── */
.h2{
  font-size:clamp(2.3rem, 5vw, 4.1rem);
  font-weight:500; line-height:1.02; letter-spacing:-0.035em;
  margin-bottom:.7em;
}
.lead{ font-size:clamp(1.05rem,1.5vw,1.32rem); color:var(--ink); opacity:.92; margin-bottom:1.4em; max-width:34ch; }
.stack p{ color:var(--muted); font-size:clamp(.98rem,1.15vw,1.08rem); margin-bottom:1.1em; max-width:40ch; }
.eyebrow{
  text-transform:uppercase; letter-spacing:.13em; font-weight:700;
  font-size:.8rem; color:var(--accent-2); margin:2.2rem 0 1.3rem;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero{
  min-height:100vh; display:flex; align-items:center;
  padding-top:140px;
}
.hero__scrim{
  position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(100deg, var(--bg) 18%, rgba(5,5,6,.55) 42%, transparent 68%);
}
.hero__inner{ width:min(620px, 100%); }
.hero__title{
  font-size:clamp(3.2rem, 9.2vw, 8.2rem);
  font-weight:500; line-height:.92; letter-spacing:-0.045em;
}
.hero__title .line{ display:block; overflow:hidden; }
.line--accent{
  background:linear-gradient(92deg,#fff 0%, #bdeede 60%, var(--accent-2) 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero__lede{ font-size:clamp(1.05rem,1.5vw,1.28rem); color:var(--muted); max-width:36ch; margin-bottom:2.2rem; }

/* ── Team ──────────────────────────────────────────────────── */
.team{ overflow:hidden; }
.team__head{ display:flex; align-items:baseline; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-bottom:48px; }
.team__title{ margin:0; }
.team__sub{ font-size:clamp(1.4rem,2.6vw,2rem); color:var(--muted); font-weight:500; letter-spacing:-0.02em; }

.carousel{ position:relative; }
.carousel__track{ display:flex; gap:22px; transition:transform .8s var(--ease); will-change:transform; }
.member{
  flex:0 0 clamp(230px, 26vw, 300px);
  background:rgba(255,255,255,.03);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,.1);
  border-radius:18px;
  padding:18px; padding-bottom:24px;
  box-shadow:0 8px 32px rgba(0,0,0,.12);
}
.member__photo{
  aspect-ratio:1/1.05; border-radius:12px; margin-bottom:18px;
  background:rgba(255,255,255,.02);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.1);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
  display:flex; align-items:center; justify-content:center;
  position:relative; overflow:hidden;
}
.member__photo::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(90% 90% at 28% 18%, color-mix(in srgb, var(--c1) 12%, transparent) 0%, transparent 65%),
    radial-gradient(70% 70% at 85% 90%, color-mix(in srgb, var(--c2) 8%, transparent) 0%, transparent 60%);
}
.member__photo::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(135deg, rgba(255,255,255,.04) 0%, transparent 50%);
}
.member__photo span{
  font-size:2rem; font-weight:700; color:rgba(255,255,255,.92);
  letter-spacing:.06em; position:relative; z-index:1;
  text-shadow:0 1px 12px rgba(0,0,0,.35);
}
.member__name{ font-size:1.35rem; font-weight:600; line-height:1.1; letter-spacing:.04em; margin-bottom:14px; }
.member__social{ display:flex; gap:8px; }
.member__social a{
  width:34px; height:34px; border-radius:50%; border:1px solid var(--line);
  display:grid; place-items:center; font-size:.74rem; color:var(--muted);
  transition:.3s var(--ease);
}
.member__social a:hover{ border-color:var(--accent); color:#fff; background:rgba(21,203,163,.15); }

.carousel__nav{ display:flex; gap:14px; justify-content:center; margin-top:44px; }
.round-btn{
  width:54px; height:54px; border-radius:50%; cursor:pointer;
  background:var(--accent); color:#fff; border:0; font-size:1.1rem;
  display:grid; place-items:center;
  transition:transform .3s var(--ease), background .3s var(--ease);
}
.round-btn:hover{ background:var(--accent-2); transform:translateY(-2px); }
.round-btn:disabled{ opacity:.35; cursor:not-allowed; transform:none; }

.hire{ margin-top:80px; max-width:520px; }
.hire p{ color:var(--muted); font-size:1.05rem; margin-bottom:.8em; }
.hire a{ color:var(--accent-2); border-bottom:1px solid transparent; transition:border-color .3s; }
.hire a:hover{ border-color:var(--accent-2); }

/* ── Investors ─────────────────────────────────────────────── */
.investors__grid{
  display:grid; grid-template-columns:1fr 1fr; gap:clamp(30px,6vw,90px);
  align-items:start; max-width:var(--maxw); margin-inline:auto;
}
.investors__intro .lead{ max-width:30ch; }
.investors__list{ list-style:none; border-top:1px solid var(--line); }
.investors__list li{
  display:flex; align-items:baseline; justify-content:space-between; gap:16px;
  padding:24px 4px; border-bottom:1px solid var(--line);
}
.investors__name{ font-size:clamp(1.2rem,2vw,1.7rem); font-weight:500; letter-spacing:-0.02em; }
.investors__role{ color:var(--muted-dim); font-size:.92rem; text-align:right; }

/* ── Final CTA ─────────────────────────────────────────────── */
.cta{ position:relative; min-height:100vh; display:flex; align-items:center; justify-content:center; text-align:center; }
.cta::before{
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:radial-gradient(60% 45% at 50% 45%, rgba(5,5,6,.78) 0%, rgba(5,5,6,.35) 45%, transparent 72%);
}
.cta__inner{ position:relative; max-width:900px; }
.cta__title{
  font-size:clamp(2.2rem,6vw,5rem); font-weight:500;
  line-height:1.02; letter-spacing:-0.04em; margin-bottom:2rem;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer{
  position:relative; z-index:2;
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
  padding:46px var(--pad);
  border-top:1px solid var(--line);
  background:rgba(5,5,6,.6); backdrop-filter:blur(6px);
}
.footer__copy{ color:var(--muted-dim); font-size:.82rem; line-height:1.5; }
.footer__links, .footer__social{ display:flex; gap:26px; }
.footer__links a, .footer__social a{
  font-size:.78rem; text-transform:uppercase; letter-spacing:.08em;
  color:var(--muted); transition:color .3s var(--ease);
}
.footer__links a:hover, .footer__social a:hover{ color:#fff; }

/* ── Language switch ───────────────────────────────────────── */
.lang{ display:flex; align-items:center; gap:6px; }
.lang__btn{
  font-family:inherit; cursor:pointer;
  background:transparent; border:1px solid var(--line); color:var(--muted);
  font-size:.74rem; letter-spacing:.03em;
  padding:.5em 1.05em; border-radius:100px;
  transition:color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.lang__btn:hover{ color:#fff; border-color:var(--accent); }
.lang__btn.is-active{
  background:var(--accent); border-color:var(--accent);
  color:#04110d; font-weight:700;
}

/* ── Reveal animation base states ──────────────────────────── */
[data-reveal]{ opacity:0; transform:translateY(26px); }
.is-ready [data-reveal]{ will-change:transform,opacity; }

/* Hero load cascade (CSS-driven, independent of scroll) */
.hero__title .line{ transform:translateY(110%); }
.is-ready .hero__title .line{
  animation:riseIn 1s var(--ease) forwards;
}
.is-ready .hero__title .line:nth-child(1){ animation-delay:.15s; }
.is-ready .hero__title .line:nth-child(2){ animation-delay:.27s; }
.is-ready .hero__title .line:nth-child(3){ animation-delay:.39s; }
@keyframes riseIn{ to{ transform:translateY(0); } }

/* Hero supporting elements fade after the headline */
.hero [data-reveal]{ opacity:0; transform:translateY(20px); }
.is-ready .hero [data-reveal]{ animation:fadeUp .9s var(--ease) forwards; }
.is-ready .hero .eyebrow{ animation-delay:.6s; }
.is-ready .hero__lede{ animation-delay:.72s; }
.is-ready .hero .btn{ animation-delay:.84s; }
@keyframes fadeUp{ to{ opacity:1; transform:translateY(0); } }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 880px){
  .nav__links{ display:none; }
  .panel{ min-height:auto; }
  .panel__copy{ width:100%; margin:0; }
  .hero__scrim{ background:linear-gradient(180deg, transparent 0%, rgba(5,5,6,.65) 55%, var(--bg) 100%); }
  .hero__inner{ width:100%; }
  .investors__grid{ grid-template-columns:1fr; gap:36px; }
  .footer{ flex-direction:column; align-items:flex-start; gap:18px; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; transition-duration:.12s !important; }
  [data-reveal]{ opacity:1 !important; transform:none !important; }
  .hero__title .line{ transform:none !important; }
}

/* ── Legal pages (privacy, terms) ──────────────────────────── */
.legal-page{
  min-height:100vh;
  background:var(--bg);
}
.skip-link{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  position:fixed; left:var(--pad); top:16px; z-index:50;
  width:auto; height:auto; overflow:visible;
  padding:.65em 1em; background:var(--accent); color:#04110d;
  font-size:.85rem; font-weight:600; border-radius:8px;
}
.legal-nav{
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  padding:22px var(--pad);
  border-bottom:1px solid var(--line);
  background:rgba(5,5,6,.72);
  backdrop-filter:blur(14px);
}
.legal-nav__back{
  font-size:.86rem; font-weight:600; color:var(--muted);
  transition:color .3s var(--ease);
}
.legal-nav__back:hover{ color:#fff; }
.legal{
  max-width:720px; margin:0 auto;
  padding:clamp(56px, 10vh, 96px) var(--pad) clamp(80px, 12vh, 120px);
}
.legal__eyebrow{
  font-size:.78rem; font-weight:600; letter-spacing:.12em;
  text-transform:uppercase; color:var(--accent); margin-bottom:1rem;
}
.legal__title{
  font-size:clamp(2rem, 4.5vw, 3rem);
  font-weight:500; line-height:1.05; letter-spacing:-0.03em;
  margin-bottom:.75rem;
}
.legal__updated{
  font-size:.9rem; color:var(--muted); margin-bottom:2.5rem;
}
.legal__intro{
  color:var(--muted); font-size:1rem; line-height:1.65;
  margin-bottom:2.5rem;
}
.legal__section{ margin-bottom:2.25rem; }
.legal__section h2{
  font-size:1.15rem; font-weight:600; letter-spacing:-0.02em;
  margin-bottom:.85rem;
}
.legal__section h3{
  font-size:1rem; font-weight:600; color:var(--ink);
  margin:1.25rem 0 .65rem;
}
.legal__section p{
  color:var(--muted); font-size:.98rem; line-height:1.65;
  margin-bottom:1rem;
}
.legal__section ul{
  color:var(--muted); font-size:.98rem; line-height:1.65;
  margin:.5rem 0 1rem 1.25rem;
}
.legal__section li{ margin-bottom:.45rem; }
.legal__section a{ color:var(--accent-2); text-decoration:underline; text-underline-offset:2px; }
.legal__section a:hover{ color:var(--accent); }
.legal-footer{
  border-top:1px solid var(--line);
  padding:46px var(--pad);
  background:rgba(5,5,6,.6);
}
.legal-footer__inner{
  max-width:720px; margin:0 auto;
  display:flex; flex-direction:column; gap:14px;
}
.legal-footer__brand{ font-size:1.1rem; font-weight:600; }
.legal-footer__tagline{ font-size:.9rem; color:var(--muted); max-width:36ch; }
.legal-footer__links{ display:flex; gap:20px; flex-wrap:wrap; }
.legal-footer__links a{
  font-size:.78rem; text-transform:uppercase; letter-spacing:.08em;
  color:var(--muted); transition:color .3s var(--ease);
}
.legal-footer__links a:hover{ color:#fff; }
.legal-footer__copy{
  font-size:.82rem; color:var(--muted-dim); line-height:1.5;
}
