/* ============ Tokens ============ */
:root{
  --charcoal: #211f1d;
  --charcoal-soft: #2b2825;
  --cream: #f3ede3;
  --cream-soft: #ece4d5;
  --white: #ffffff;
  --orange: #d9502b;
  --orange-bright: #ef6a3f;
  --ink: #1c1a18;
  --muted: #7a746c;
  --line: rgba(28,26,24,0.12);
  --line-light: rgba(255,255,255,0.14);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3,p{ margin:0; }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.grain{
  position: fixed; inset:0; pointer-events:none; z-index: 999;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ Buttons ============ */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 14px 26px; border-radius: 3px; font-weight: 600; font-size: .95rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.btn-primary{
  background: var(--orange); color: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,.05);
}
.btn-primary:hover{ background: var(--orange-bright); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(217,80,43,.55); }
.btn-dark{
  background: var(--charcoal); color: var(--white);
}
.btn-dark:hover{ background: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); }
.btn-link{
  padding: 14px 4px; color: var(--ink); position: relative; font-weight: 600;
}
.btn-link::after{
  content:""; position:absolute; left:4px; right:4px; bottom:8px; height:2px; background: var(--orange);
  transform: scaleX(1); transform-origin: left; transition: transform .35s var(--ease);
}
.btn-link:hover::after{ transform: scaleX(0); transform-origin: right; }
.btn-small{ padding: 10px 18px; font-size: .85rem; }

/* ============ Nav ============ */
.nav{
  position: fixed; top:0; left:0; right:0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled{
  background: rgba(243,237,227,.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  max-width: 1180px; margin: 0 auto; padding: 18px 32px;
  display:flex; align-items:center; gap: 40px;
}
.brand{ display:flex; align-items:center; gap:8px; font-weight:600; color: var(--ink); margin-right:auto; }
.brand-logo{ height: 42px; width: auto; display: block; }
.brand-logo-footer{ height: 30px; background: var(--white); padding: 8px 14px; border-radius: 6px; }
.nav-links{ display:flex; gap: 32px; font-size: .92rem; font-weight: 500; }
.nav-links a{ position: relative; padding: 4px 0; color: var(--ink); opacity: .8; transition: opacity .25s; }
.nav-links a:hover{ opacity: 1; }
.nav-links a::after{
  content:""; position:absolute; left:0; bottom:-2px; width:0; height:1.5px; background: var(--orange);
  transition: width .3s var(--ease);
}
.nav-links a:hover::after{ width:100%; }
.nav-toggle{ display:none; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; padding:6px; }
.nav-toggle span{ width:22px; height:2px; background: var(--ink); border-radius:2px; transition: transform .3s var(--ease), opacity .3s; }
.nav-mobile{
  display:none; flex-direction:column; gap: 4px; padding: 6px 32px 22px;
  max-height:0; overflow:hidden; opacity:0; transition: max-height .4s var(--ease), opacity .3s var(--ease);
}
.nav-mobile a{ padding: 12px 0; border-bottom: 1px solid var(--line); font-weight:500; }
.nav-mobile .btn{ margin-top: 10px; width: fit-content; }
.nav.open .nav-mobile{ max-height: 400px; opacity: 1; }

/* ============ Layout helpers ============ */
.section{ padding: 130px 32px; }
.eyebrow{
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em;
  font-size: .78rem; color: var(--orange); font-weight: 600; margin-bottom: 18px;
}
.eyebrow-light{ color: var(--orange-bright); }
.eyebrow.center{ text-align:center; }
h2{ font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.center{ text-align:center; margin-left:auto; margin-right:auto; }
.lead{ font-size: 1.05rem; line-height: 1.65; color: var(--muted); max-width: 46ch; }
.fine-print{ font-family: var(--font-mono); font-size: .8rem; color: var(--muted); margin-top: 22px; letter-spacing: .02em; }

.reveal{ opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view{ opacity: 1; transform: translateY(0); }

/* ============ Hero ============ */
.hero{
  position: relative; min-height: 100vh; display:flex; align-items:center;
  padding: 150px 32px 90px; background: var(--cream);
  overflow: hidden;
}
.frost-canvas{ position:absolute; inset:0; width:100%; height:100%; opacity:.55; }
.hero-inner{
  position: relative; z-index:2; max-width: 1180px; margin: 0 auto; width:100%;
  display:grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items:center;
}
.hero-copy h1{ font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 22px; }
.hero-copy .lead{ max-width: 48ch; margin-bottom: 34px; font-size: 1.1rem; }
.hero-actions{ display:flex; gap: 10px; align-items:center; flex-wrap: wrap; }

.hero-visual{ position: relative; max-width: 480px; margin: 0 auto; width:100%; }
.cryostat-figure{ width:100%; animation: floatY 7s ease-in-out infinite; }
.hero-photo{
  width: 100%; border-radius: 12px; border: 1px solid var(--line);
  box-shadow: 0 40px 70px -30px rgba(28,26,24,.4);
}

@keyframes floatY{ 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-10px);} }

/* ============ Vision video ============ */
.vision{ background: var(--charcoal); text-align: center; }
.vision h2{ margin-bottom: 44px; }
.video-wrap{
  position: relative; max-width: 900px; margin: 0 auto; aspect-ratio: 16/9;
  border-radius: 10px; overflow: hidden; background: #000;
  box-shadow: 0 40px 80px -36px rgba(0,0,0,.65), 0 0 0 1px var(--line-light);
}
.video-wrap video{ width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play{
  position: absolute; inset: 0; margin: auto; width: 78px; height: 78px; border-radius: 50%;
  background: var(--orange); color: var(--white); border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 34px -10px rgba(217,80,43,.65);
  transition: transform .3s var(--ease), background .3s var(--ease), opacity .3s var(--ease);
}
.video-play svg{ transform: translateX(2px); }
.video-play:hover{ transform: scale(1.08); background: var(--orange-bright); }
.video-play.hidden{ opacity: 0; pointer-events: none; transform: scale(.85); }

/* ============ Why cards ============ */
.why{ max-width: 1180px; margin: 0 auto; }
.why h2{ margin-bottom: 60px; }
.card-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card{
  padding: 34px 28px; background: var(--white); border-radius: 6px; border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  will-change: transform;
}
.feature-card:hover{ transform: translateY(-6px); box-shadow: 0 22px 40px -20px rgba(28,26,24,.22); }
.feature-icon{ display:inline-flex; color: var(--orange); margin-bottom: 18px; }
.feature-icon .draw{ stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset 1s var(--ease); }
.feature-card.in-view .draw{ stroke-dashoffset: 0; }
.feature-card h3{ font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -.01em; }
.feature-card p{ color: var(--muted); font-size: .95rem; line-height: 1.6; }

/* ============ Specs ============ */
.specs{ background: var(--charcoal); color: var(--white); }
.specs-inner{ max-width: 1180px; margin:0 auto; display:grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items:center; }
.specs h2{ color: var(--white); margin-bottom: 16px; }
.lead-light{ color: rgba(255,255,255,.6); }
.specs-stats{ display:grid; grid-template-columns: 1fr 1fr; gap: 34px 30px; }
.stat-label{ display:block; font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.45); margin-bottom: 8px; }
.stat-value{ display:block; font-size: 1.5rem; font-weight: 700; color: var(--orange-bright); letter-spacing: -.01em; }
.temp-track{ margin-top: 14px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #7cc5e0, var(--orange-bright)); position: relative; max-width: 220px; }
.temp-fill{ position:absolute; inset:0; }
.temp-marker{
  position:absolute; top:50%; left:100%; width:10px; height:10px; border-radius:50%;
  background: var(--white); box-shadow: 0 0 0 3px rgba(255,255,255,.18);
  transform: translate(-50%,-50%); transition: left 1.6s var(--ease);
}
.stat.in-view .temp-marker{ left: 0%; }

/* ============ About ============ */
.about-inner{ max-width: 1180px; margin:0 auto; display:grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items:center; }
.about-visual{ position: relative; }
.lattice{
  aspect-ratio: 4/3; background: var(--charcoal-soft); border-radius: 8px; overflow:hidden;
}
.sem-img{ width: 100%; height: 100%; object-fit: cover; }
.visual-caption{ display:block; margin-top: 14px; font-family: var(--font-mono); font-size: .75rem; color: var(--muted); letter-spacing: .02em; }
.about-copy h2{ margin-bottom: 20px; }
.about-copy .lead{ max-width: 52ch; }

/* ============ Team ============ */
.team{ max-width: 1000px; margin: 0 auto; }
.team h2{ margin-bottom: 60px; }
.team-grid{ display:grid; grid-template-columns: repeat(2, 1fr); max-width: 700px; margin: 0 auto; gap: 26px; }
.team-card{
  display: flex; flex-direction: column;
  background: var(--white); border-radius: 8px; border: 1px solid var(--line); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.team-card:hover{ transform: translateY(-6px); box-shadow: 0 22px 40px -20px rgba(28,26,24,.2); }

.member-panel{
  position: relative; height: 104px; display:flex; align-items:center; justify-content:center;
  background: var(--charcoal);
}
.team-grid > article:nth-child(even) .member-panel{ background: var(--orange); }
.member-initials{
  font-size: 2.1rem; font-weight: 800; letter-spacing: .02em; color: var(--orange-bright);
}
.team-grid > article:nth-child(even) .member-initials{ color: var(--white); }
.member-tag{
  position: absolute; top: 12px; right: 12px;
  font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--white); background: rgba(255,255,255,.18); padding: 3px 9px; border-radius: 20px;
}

.member-body{ flex: 1; display: flex; flex-direction: column; padding: 26px 24px 24px; }
.team-card h3{ font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 10px; }
.team-role{
  display: inline-block; font-family: var(--font-mono); font-size: .7rem; color: var(--orange);
  letter-spacing: .01em; line-height: 1.5; margin-bottom: 14px;
  background: rgba(217,80,43,.08); padding: 5px 12px; border-radius: 20px;
}
.team-links{
  display:flex; flex-wrap: wrap; gap: 12px 18px; margin-top: auto;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.team-links a{ font-size: .82rem; font-weight: 600; color: var(--ink); position: relative; padding-bottom: 2px; }
.team-links a::after{
  content:""; position:absolute; left:0; bottom:0; width:100%; height:1.5px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.team-links a:hover::after{ transform: scaleX(1); }

.mentor-divider{ display:flex; align-items:center; gap:16px; max-width: 460px; margin: 56px auto 34px; }
.mentor-divider::before, .mentor-divider::after{ content:""; flex:1; height:1px; background: var(--line); }
.mentor-divider span{ font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.mentor-grid{ grid-template-columns: 1fr; max-width: 320px; }
.mentor-card .member-panel{ background: var(--orange); }
.mentor-card .member-initials{ color: var(--white); }

/* ============ News ============ */
.news{ max-width: 900px; margin: 0 auto; }
.news h2{ margin-bottom: 44px; }
.news-list{ display: grid; gap: 18px; }
.news-item{
  display: block; background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  padding: 26px 28px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.news-item:hover{ transform: translateY(-4px); box-shadow: 0 22px 40px -20px rgba(28,26,24,.18); border-color: var(--orange); }
.news-date{
  display: block; font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--orange); margin-bottom: 12px;
}
.news-item h3{ font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 10px; }
.news-item p{ color: var(--muted); font-size: .9rem; line-height: 1.6; margin-bottom: 16px; }
.news-link{ display: inline-block; font-size: .85rem; font-weight: 700; color: var(--ink); position: relative; padding-bottom: 2px; }
.news-link::after{
  content:""; position:absolute; left:0; bottom:0; width:100%; height:1.5px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.news-item:hover .news-link::after{ transform: scaleX(1); }

/* ============ CTA ============ */
.cta{ background: var(--orange); color: var(--white); padding: 130px 32px; text-align:left; }
.cta-inner{ max-width: 1180px; margin: 0 auto; }
.cta h2{ color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 18px; }
.cta p{ font-size: 1.1rem; color: rgba(255,255,255,.85); margin-bottom: 20px; max-width: 46ch; }
.cta-alt{ font-size: .95rem !important; }
.cta-alt a{ font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.cta-grid{ display:grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: start; }
.interest-form{
  background: var(--white); border-radius: 8px; padding: 12px; color: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.35);
}
.ms-form-frame{ display: block; width: 100%; height: 600px; border: none; border-radius: 6px; }
.form-fallback{ text-align: center; margin-top: 12px !important; font-size: .85rem !important; }
.form-fallback a{ font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ============ Footer ============ */
.footer{ background: var(--charcoal); color: rgba(255,255,255,.6); padding: 30px 32px; }
.footer-inner{ max-width: 1180px; margin: 0 auto; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap: 14px; }
.brand-footer{ color: var(--white); }
.footer-fine{ font-family: var(--font-mono); font-size: .78rem; }

/* ============ Responsive ============ */
@media (max-width: 900px){
  .hero-inner, .specs-inner, .about-inner, .cta-grid{ grid-template-columns: 1fr; }
  .hero-visual{ order:-1; max-width: 420px; }
  .card-grid, .team-grid{ grid-template-columns: 1fr; }
  .specs-stats{ grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta{ display:none; }
  .nav-toggle{ display:flex; }
  .nav-mobile{ display:flex; }
  .section{ padding: 90px 24px; }
  .hero{ padding: 130px 24px 70px; }
  .ms-form-frame{ height: 520px; }
}

@media (max-width: 480px){
  .specs-stats{ grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior:auto !important; }
}
