/* Hidden SVG sprite holding reusable <symbol> icons. */
.svg-sprite { position: absolute; }

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --night: #070D18;
  --navy: #0C1A30;
  --ink: #0E1116;
  --paper: #FFFFFF;
  --muted: #5A6272;
  --muted-dark: #9AA6BA;
  --line: #E1E5EC;
  --line-dark: rgba(255, 255, 255, 0.14);
  --accent: #2A6FE0;
  --accent-hover: #1F5FCC;
  --accent-light: #7FB2FF;
  --font-display: 'Inter Tight', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg, canvas { display: block; max-width: 100%; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Visible only when focused, so keyboard users can jump past the header. */
.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* ==========================================================================
   Type
   ========================================================================== */
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; }
.display { font-weight: 300; font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.02; }
.heading { font-weight: 300; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.06; }
.display strong, .heading strong { font-weight: 700; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn .arrow { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--night); border-color: #fff; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.site-header.scrolled {
  background: rgba(7, 13, 24, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-dark);
}
.site-header.solid {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  border-bottom-color: var(--line);
}
/* Without JavaScript the header can't turn solid, so keep it in the hero. */
html:not(.js) .site-header { position: absolute; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { position: relative; width: 30px; height: 30px; flex: none; }
.brand-mark span { position: absolute; width: 12px; height: 12px; }
.brand-mark span:nth-child(1) { left: 0; top: 0; background: currentColor; }
.brand-mark span:nth-child(2) { right: 0; top: 0; border: 1.5px solid currentColor; }
.brand-mark span:nth-child(3) { right: 0; bottom: 0; background: var(--accent); }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand-word em { font-style: normal; font-weight: 300; }

.site-nav { display: flex; gap: 32px; }
.site-nav a { position: relative; padding: 6px 0; font-family: var(--font-display); font-weight: 500; font-size: 15px; }
.site-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav a:hover::after { transform: scaleX(1); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--night);
  color: #fff;
}
.hero-sky { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.js .hero-sky-static { display: none; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 13, 24, .92) 0%, rgba(7, 13, 24, .7) 30%, rgba(7, 13, 24, 0) 58%),
    radial-gradient(ellipse 80% 60% at 75% 30%, rgba(61, 139, 255, .14), transparent 60%),
    linear-gradient(180deg, rgba(7, 13, 24, .2) 0%, rgba(7, 13, 24, .1) 40%, rgba(7, 13, 24, .92) 100%);
}
/* Constellation name shown on hover; above the hero's darkening overlay so it stays legible. */
.sky-label {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(235, 243, 255, .92);
}
.hero-content { position: relative; z-index: 2; width: 100%; padding: 140px 0 72px; }
.hero .display { max-width: 15ch; }
.hero-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: 48px; }
.hero-sub { max-width: 540px; font-size: 18px; line-height: 1.65; color: rgba(255, 255, 255, .78); }
.hero-sub strong { color: #fff; font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-foot { display: flex; justify-content: flex-end; margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line-dark); }

.sky-toggle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--muted-dark);
}
.sky-toggle:hover { color: #fff; }
.sky-toggle svg { width: 10px; height: 10px; }
.sky-toggle .icon-play, .sky-toggle[aria-pressed="true"] .icon-pause { display: none; }
.sky-toggle[aria-pressed="true"] .icon-play { display: block; }
html:not(.js) .sky-toggle { visibility: hidden; }

/* ==========================================================================
   Approach
   ========================================================================== */
.approach { padding: 140px 0 120px; }
.approach-head { margin-bottom: 64px; }
.approach-head .heading { margin-top: 22px; }

.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tab {
  position: relative;
  flex: 1 1 0;
  display: flex;
  align-items: baseline;
  margin-right: 24px;
  padding: 0 12px 22px 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  color: var(--muted);
  transition: color .2s;
}
.tab-num { flex: none; margin-right: 12px; font-size: 13px; letter-spacing: .1em; }
.tab::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.tab:hover, .tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }

.panels { margin-top: 56px; }
.panel { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.panel[hidden] { display: none; }
html:not(.js) .tabs { display: none; }
html:not(.js) .panel[hidden] { display: grid; }
html:not(.js) .panel + .panel { margin-top: 64px; padding-top: 56px; border-top: 1px solid var(--line); }
.panel.enter .panel-text { animation: rise .6s var(--ease) both; }
.panel.enter .panel-chart { animation: fade .8s var(--ease) both; }
.panel .panel-num { font-family: var(--font-display); font-weight: 300; font-size: 96px; line-height: 1; letter-spacing: -0.04em; color: var(--accent); }
.panel h3 { margin: 20px 0; font-weight: 600; font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.15; }
.panel p { max-width: 520px; font-size: 18px; line-height: 1.7; color: var(--muted); }
.panel-chart { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 4px; background: var(--navy); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { position: relative; padding: 140px 0; overflow: hidden; background: var(--navy); color: #fff; }
.contact-grid {
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 80% 50%, #000 20%, transparent 75%);
}
.contact-glow {
  position: absolute;
  top: 50%;
  right: -120px;
  width: 640px;
  height: 640px;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(61, 139, 255, .35), transparent 65%);
  filter: blur(10px);
}
.contact .wrap { position: relative; z-index: 1; }
.contact .display { max-width: 14ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 48px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding: 28px 0; border-top: 1px solid var(--line-dark); background: var(--night); color: var(--muted-dark); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; }
/* White and underlined against the grey footer text, so the privacy link stands out (CalOPPA). */
.site-footer a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { text-decoration-thickness: 2px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.page-head { padding: 160px 0 72px; background: var(--night); color: #fff; }
.page-head .eyebrow { color: var(--accent-light); }
.page-head .heading { margin-top: 22px; }
.page-meta { margin-top: 20px; font-size: 14px; color: var(--muted-dark); }
.prose { max-width: 760px; margin: 72px auto 120px; }
.prose .lead { font-size: 20px; line-height: 1.6; }
.prose h2 { margin: 56px 0 14px; font-weight: 600; font-size: 1.6rem; line-height: 1.2; }
.prose h3 { margin: 28px 0 8px; font-weight: 600; font-size: 1.15rem; }
.prose p, .prose li { color: var(--muted); font-size: 17px; line-height: 1.7; }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 14px 0; padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Motion
   ========================================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.hero-in { opacity: 0; transform: translateY(24px); animation: rise 1s var(--ease) forwards; }
.hero-in.delay-1 { animation-delay: .15s; }
.hero-in.delay-2 { animation-delay: .3s; }
.hero-in.delay-3 { animation-delay: .45s; }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in-view { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .reveal, .hero-in { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .hero::after {
    background:
      radial-gradient(ellipse 90% 40% at 50% 8%, rgba(61, 139, 255, .14), transparent 70%),
      linear-gradient(180deg, rgba(7, 13, 24, 0) 0%, rgba(7, 13, 24, .55) 30%, rgba(7, 13, 24, .94) 55%, rgba(7, 13, 24, .98) 100%);
  }
  .hero-content { padding: 120px 0 48px; }
  .hero-row { margin-top: 32px; gap: 32px; }
  .hero-foot { margin-top: 40px; }

  /* On small screens the steps are listed in order instead of tabbed. */
  .approach { padding: 96px 0 88px; }
  .approach-head { margin-bottom: 40px; }
  .tabs { display: none; }
  .panels { margin-top: 8px; }
  .panel, .panel[hidden] { display: grid; grid-template-columns: 1fr; gap: 28px; }
  .panel + .panel { margin-top: 64px; padding-top: 56px; border-top: 1px solid var(--line); }
  .panel .panel-num { font-size: 64px; }
  .panel h3 { margin: 14px 0; }
  .panel p { font-size: 17px; }

  .contact { padding: 100px 0; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
}

@media (max-width: 480px) {
  .site-nav { gap: 20px; }
  .brand-word { font-size: 16px; }
}

@media (max-width: 420px) {
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; justify-content: center; padding: 15px 18px; }
  .contact .btn { width: 100%; justify-content: center; }
}
