/* Subspace Training: chrome, cyan and an orbital console. */
:root.subspace-scifi {
  --background: 216 57% 7%;
  --foreground: 197 45% 95%;
  --card: 214 53% 9%;
  --card-foreground: 197 45% 95%;
  --primary: 187 100% 46%;
  --primary-foreground: 216 57% 7%;
  --accent: 208 100% 56%;
  --accent-foreground: 197 45% 95%;
  --muted-foreground: 207 26% 76%;
  --border: 201 36% 26%;
  --ring: 187 95% 58%;
  --cyan: 187 95% 58%;
  --violet: 209 98% 60%;
  --gradient-primary: linear-gradient(115deg, #00d6ed, #1e8bff);
  --gradient-text: linear-gradient(115deg, #c4f7ff, #50e6f5 63%, #4cb0ff);
  --gradient-card: linear-gradient(145deg, #12283c, #08121e);
  --gradient-hero: radial-gradient(ellipse at 78% 33%, #123e62aa, transparent 58%), linear-gradient(145deg, #07101b, #0d1c32 68%, #07101b);
  --gradient-hero-subtle: linear-gradient(145deg, #07101b, #10283c);
  --shadow-elevated: 0 12px 40px -25px #7be2f3;
}
.subspace-scifi body { background: #07101b; }
.subspace-scifi a:focus-visible, .subspace-scifi button:focus-visible {
  outline: 3px solid #48dff5;
  outline-offset: 5px;
}
.subspace-scifi h1, .subspace-scifi h2, .subspace-scifi h3 { letter-spacing: -.035em; }
.sf-command-header {
  isolation: isolate;
  background: rgba(7, 16, 27, .97);
  border-bottom-color: #31576f;
  box-shadow: 0 6px 35px #0005;
}
.sf-command-header::before {
  animation: none !important;
  width: 100% !important;
  background: linear-gradient(90deg, #092436, #07121e 60%, #102b46) !important;
}
.sf-command-header::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  height: 3px;
  width: max(22%, 80px);
  background: linear-gradient(90deg, #00d6ed, #1e8bff);
  border-radius: 0 8px 8px 0;
}
.sf-command-header > div:first-child { min-height: 74px; height: auto; gap: 12px; }
.sf-command-header nav { gap: clamp(10px, 1.4vw, 22px); }
.sf-command-header nav a {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #c3d8e5;
  padding: 12px 0;
  white-space: nowrap;
}
.sf-command-header nav a:hover { color: #82eeff; }
.sf-command-header a[href="#home"] { flex-shrink: 0; }
.sf-header-s { width: 57px; height: 44px; object-fit: contain; }
.sf-brand-text { color: #f6fbff; font-size: 1.12rem; font-weight: 750; font-style: italic; white-space: nowrap; }
.sf-brand-text span, .sf-hero-brand h1 span, .sf-portfolio-brand strong span { color: #00d6ed; }
.sf-command-header a[href="#contact"] > button { border-radius: 4px 18px 18px 4px; }
.sf-menu-panel { display: none; max-height: calc(100vh - 75px); overflow: auto; }

.subspace-scifi .hero-anim { min-height: 676px; padding: 136px 0 90px; }
.subspace-scifi .hero-anim > img { opacity: .12; }
.subspace-scifi .hero-anim > canvas { opacity: .39; }
.subspace-scifi .hero-anim > .container { position: relative; }
.subspace-scifi .hero-anim .max-w-3xl { max-width: 64%; }
.subspace-scifi .hero-anim .max-w-3xl > p:first-of-type {
  font-size: clamp(1.35rem, 2.3vw, 2.1rem);
  line-height: 1.38;
  color: #e9f6fb;
  max-width: 680px;
}
.subspace-scifi .hero-anim .max-w-3xl > p { color: #c1d5e0; max-width: 630px; }
.subspace-scifi .hero-anim .max-w-3xl > div:first-child {
  border-color: #37627b;
  border-radius: 3px 22px 22px 3px;
  margin-bottom: 0;
  padding-inline: 14px;
}
.subspace-scifi .hero-anim .animate-pulse { animation: none; background: #00d6ed; }
.sf-hero-brand { display: flex; align-items: center; gap: 16px; margin: 20px 0 26px; }
.sf-hero-s { width: clamp(100px, 14vw, 185px); height: auto; object-fit: contain; flex: none; }
.subspace-scifi .sf-hero-brand h1 {
  color: #f6fbff;
  font-size: clamp(2.2rem, 4.3vw, 4.8rem);
  line-height: 1.03;
  font-style: italic;
  text-wrap: balance;
  margin: 0;
}
.sf-orbit-panel {
  position: absolute;
  right: 2rem;
  top: 22px;
  width: 28%;
  min-height: 332px;
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  border: 1px solid #31586d;
  border-top: 6px solid #00d6ed;
  border-radius: 36px 4px 30px 4px;
  background: linear-gradient(145deg, #113654, #081321 75%);
  box-shadow: inset 0 0 50px #1a65aa33, 0 20px 44px #0004;
  overflow: hidden;
}
.sf-orbit-panel::before, .sf-orbit-panel::after {
  content: "";
  position: absolute;
  width: 78px;
  height: 6px;
  background: #65dce8;
  left: 20px;
  bottom: 18px;
  border-radius: 6px;
}
.sf-orbit-panel::after { left: auto; right: 20px; width: 44px; background: #1e8bff; }
.sf-orbit-panel .sf-label, .sf-orbit-panel .sf-orbit-title {
  font: 600 .72rem/1.5 ui-monospace, Consolas, monospace;
  color: #9ddff0;
  letter-spacing: .14em;
  text-align: center;
}
.sf-orbit-panel .sf-orbit-title { color: #eafaff; margin: 0 0 12px; }
.sf-orbit-panel img { width: min(100%, 230px); height: auto; display: block; }
.subspace-scifi .surface-card {
  border-color: #284b60;
  border-radius: 24px 5px 24px 5px !important;
  background: linear-gradient(135deg, #10283a, #091522);
  box-shadow: inset 0 1px #6bafc41a;
  transition: border-color .2s, transform .2s;
}
.subspace-scifi .surface-card:hover { border-color: #74d1e2; transform: translateY(-3px); }
.subspace-scifi section[id] { scroll-margin-top: 92px; }
.subspace-scifi section:not(.hero-anim) h2::before,
body[data-subspace-portfolio] .section-head h2::before {
  content: "";
  display: block;
  width: 58px;
  height: 5px;
  background: linear-gradient(90deg, #00d6ed, #1e8bff);
  border-radius: 5px;
  margin-bottom: 18px;
}
.subspace-scifi .grid-bg {
  background-image: linear-gradient(to right, #3b738d18 1px, transparent 1px), linear-gradient(to bottom, #3b738d18 1px, transparent 1px);
  background-size: 56px 56px;
}
.subspace-scifi .sf-capability-word { font-size: clamp(1rem, 2.2vw, 1.65rem); line-height: 1.3; letter-spacing: -.04em; }
.sf-founder-link { margin: 26px 0 0; }
.sf-founder-link a {
  display: inline-flex;
  border: 1px solid #73dcea;
  color: #b5f6ff;
  padding: 12px 18px;
  border-radius: 4px 22px 22px 4px;
  font-size: .92rem;
}
.sf-founder-link a:hover { background: #153449; }
.subspace-scifi footer { background: #060d17; border-top-color: #28475d; }

/* The founder's portfolio uses the same mark and console palette. */
body[data-subspace-portfolio] {
  --bg: #07101b; --surface: #0c1a2a; --surface2: #10263a; --ink: #e9f7fb;
  --muted: #b8d0de; --accent: #8ae8f7; --line: #2d5065;
  background: radial-gradient(ellipse at 80% 15%, #12385266, transparent 50%), #07101b;
}
body[data-subspace-portfolio] .topbar { background: #071321f5; }
body[data-subspace-portfolio] .hero { position: relative; background: linear-gradient(130deg, #08111d, #10273a88); }
body[data-subspace-portfolio] .hero-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr); gap: 48px; }
body[data-subspace-portfolio] h1 { font-size: clamp(2.5rem, 5.4vw, 4.7rem); }
body[data-subspace-portfolio] .sf-orbit-panel { position: relative; inset: auto; width: 100%; align-self: center; }
body[data-subspace-portfolio] .card { border-radius: 25px 4px 25px 4px; border-top: 3px solid #00d6ed; }
body[data-subspace-portfolio] .button.primary { background: #00d6ed; color: #07101b; border-color: #00d6ed; border-radius: 4px 22px 22px 4px; }
body[data-subspace-portfolio] .button.primary:hover { background: #9cf4fc; color: #07101b; }
body[data-subspace-portfolio] .eyebrow { color: #56e4f5; }
.sf-portfolio-brand { display: flex; align-items: center; gap: 16px; margin: 0 0 30px; }
.sf-portfolio-brand img { width: 125px; height: auto; flex: none; }
.sf-portfolio-brand strong { color: #f6fbff; font-size: clamp(1.45rem, 3vw, 2.2rem); font-style: italic; line-height: 1.1; letter-spacing: -.04em; }
.sf-portfolio-brand p { color: #b3d7e1; font: .66rem/1.45 ui-monospace, Consolas, monospace; letter-spacing: .11em; margin: 7px 0 0; }

@media (max-width: 1000px) {
  .subspace-scifi .hero-anim { min-height: auto; }
  .subspace-scifi .hero-anim .max-w-3xl { max-width: 740px; }
  .subspace-scifi .hero-anim .sf-orbit-panel { display: none; }
  .sf-command-header nav, .sf-command-header > div:first-child > a[href="#contact"] { display: none; }
  .sf-command-header button[aria-label="Menu"] { display: inline-flex; padding: 12px; }
  .sf-menu-panel { display: block; }
}
@media (max-width: 820px) {
  body[data-subspace-portfolio] .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  body[data-subspace-portfolio] .sf-orbit-panel { min-height: 240px; max-width: 390px; }
  body[data-subspace-portfolio] .sf-orbit-panel img { max-width: 157px; }
}
@media (max-width: 620px) {
  .subspace-scifi .hero-anim { padding: 108px 0 54px; }
  .sf-command-header > div:first-child { min-height: 65px; }
  .sf-header-s { width: 45px; height: 37px; }
  .sf-hero-brand { gap: 10px; }
  .sf-hero-s { width: clamp(75px, 23vw, 100px); }
  .subspace-scifi .sf-hero-brand h1 { font-size: clamp(1.65rem, 7.9vw, 2.4rem); }
  .subspace-scifi .hero-anim .section-label { font-size: .57rem; letter-spacing: .075em; }
  .subspace-scifi section[id] { scroll-margin-top: 80px; }
  .subspace-scifi .surface-card.p-6 { padding: 15px; }
  .sf-portfolio-brand { gap: 10px; }
  .sf-portfolio-brand img { width: 82px; }
  body[data-subspace-portfolio] .sf-orbit-panel { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .subspace-scifi *, .subspace-scifi *::before, .subspace-scifi *::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
  }
}
