/* ==========================================================================
   Blue Horseshoe Capital — styles.css
   One stylesheet for every page. Mobile-first: base rules target small
   screens, desktop refinements live in min-width queries inside each section.

   1  Tokens            7  Home: About band + logo strip
   2  Base              8  Portfolio
   3  Utilities         9  Team + bio dialog
   4  Header & nav     10  Legal pages
   5  Page wipe & reveal 11 Footer
   6  Hero slider      12  Reduced motion
   ========================================================================== */


/* 1. Tokens ------------------------------------------------------------- */

:root {
  --page-bg: #0A2A48;
  --page-ink: #061A2E;
  --navy: #0F3C66;
  --navy-deep: #0A2A48;
  --portrait-bg: #303030;
  --white: #FFFFFF;
  --white-70: rgba(255, 255, 255, .7);
  --white-64: rgba(255, 255, 255, .64);
  --white-60: rgba(255, 255, 255, .6);
  --hairline: rgba(255, 255, 255, .12);

  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --text-hero: clamp(1.875rem, 2.64vw, 3.25rem);
  --text-h2: clamp(1.75rem, 2.4vw, 2.8125rem);
  --text-statement: clamp(1.375rem, 2vw, 2rem);
  --text-body: 1rem;
  --text-small: .875rem;

  --gutter: 5vw;
  --container: 1280px;
  --header-h: 5.5rem;
  --section-pad: clamp(4rem, 8vw, 9rem);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-wipe: cubic-bezier(.77, 0, .175, 1);
  --ease-slide: cubic-bezier(.25, .46, .45, .94);
}


/* 2. Base --------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--page-bg);
  color: var(--white);
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-size: 100%;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--page-bg);
  color: var(--white);
  font-size: var(--text-body);
  overflow-x: hidden;
}

/* Scroll lock while the mobile menu is open */
/* iOS Safari ignores overflow-x on body alone; set it on html too */
html { overflow-x: hidden; }
html.menu-open, html.menu-open body { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.14;
  text-wrap: balance;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

::selection { background: var(--white); color: var(--page-bg); }


/* 3. Utilities ---------------------------------------------------------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: .75rem; left: .75rem;
  z-index: 200;
  padding: .625rem 1rem;
  background: var(--white);
  color: var(--navy);
  font-weight: 500;
  transform: translateY(-200%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; outline-color: var(--navy); }

/* Small mono label above a heading or statement */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
}

.section { padding: var(--section-pad) 0; }

/* Craft's primary-button: text + arrow with an underline that slides in */
.text-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding-bottom: .38rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--white);
}
.text-button svg { width: 1.125em; height: 1.125em; flex: none; transition: transform .4s var(--ease-out); }
.text-button::before,
.text-button::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
}
.text-button::before { opacity: .35; }
.text-button::after {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .5s var(--ease-out);
}
.text-button:hover::after,
.text-button:focus-visible::after { transform: scaleX(1); }
.text-button:hover svg { transform: translateX(3px); }
.text-button--external:hover svg { transform: translate(2px, -2px); }


/* 4. Header & nav ------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background-color: transparent;
  /* A soft scrim keeps the lockup and links legible over bright footage */
  background-image: linear-gradient(180deg, rgba(6, 26, 46, .7) 0%, rgba(6, 26, 46, .25) 60%, rgba(6, 26, 46, 0) 100%);
  transition: background-color .4s, box-shadow .4s;
}
.site-header.is-scrolled {
  background-color: var(--page-bg);
  background-image: none;
  box-shadow: inset 0 -1px 0 var(--hairline);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  padding-block: .75rem;
}
.site-logo { position: relative; z-index: 2; display: block; }
.site-logo img { height: 36px; width: auto; }

.site-nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}
.site-nav__link {
  display: inline-block;
  padding-bottom: .15rem;
  border-bottom: 1px solid transparent;
  font-size: 1.125rem;
  text-transform: capitalize;
  color: var(--white);
  opacity: .92;
  transition: opacity .4s, border-color .4s;
}
.site-nav__link:hover,
.site-nav__link:focus-visible { opacity: 1; }
.site-nav__link[aria-current="page"] {
  opacity: 1;
  border-bottom-color: var(--white);
}

/* Mobile: the nav becomes a full-screen overlay */
.site-nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--page-bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, visibility .4s;
}
html.menu-open .site-nav { opacity: 1; visibility: visible; transition: opacity .4s, visibility 0s; }

.nav-toggle {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem; height: 2.75rem;
  margin-right: -.5rem;
}
.nav-toggle__bar {
  position: absolute;
  left: 50%;
  width: 1.5rem; height: 1.5px;
  margin-left: -.75rem;
  background: var(--white);
  transition: transform .4s var(--ease-out);
}
.nav-toggle__bar:nth-child(1) { transform: translateY(-4px); }
.nav-toggle__bar:nth-child(2) { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: rotate(-45deg); }

@media (min-width: 992px) {
  .site-header__inner { min-height: var(--header-h); padding-block: 1rem; }
  .site-logo img { height: 44px; }
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    display: block;
    background: none;
    opacity: 1;
    visibility: visible;
    transition: none;
  }
  .site-nav__list { flex-direction: row; gap: 2.5rem; }
  .site-nav__link { font-size: 1rem; }
}


/* 5. Page wipe & scroll reveal ----------------------------------------- */

.page-wipe {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  background: var(--navy);
  pointer-events: none;
}
html.js .page-wipe {
  display: block;
  animation: wipe-out .7s var(--ease-wipe) .05s both;
}
html.js .page-wipe.is-in {
  animation: wipe-in .3s var(--ease-wipe) both;
}
html.js .page-wipe.is-done { display: none; }
@keyframes wipe-out {
  from { transform: translateY(0); }
  to   { transform: translateY(-101%); }
}
@keyframes wipe-in {
  from { transform: translateY(101%); }
  to   { transform: translateY(0); }
}

html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease-out) var(--delay, 0s),
              transform .6s var(--ease-out) var(--delay, 0s);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }


/* 6. Hero slider -------------------------------------------------------- */

.hero-slider-wrapper {
  position: relative;
  overflow: hidden;
  background: var(--page-ink);
  touch-action: pan-y pinch-zoom;
}
.hero-slider-wrapper:focus-visible { outline-offset: -4px; }

/* No JS: slides simply stack, posters visible */
.slider { display: block; }
html.js .slider {
  display: flex;
  height: 100%;
  transition: transform .8s var(--ease-slide);
  will-change: transform;
}
html.js .slider.no-transition { transition: none; }

.slider-slide {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 100%;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
}

.slider-image {
  position: relative;
  flex: none;
  height: 55vh;
  height: 55svh;
  overflow: hidden;
  background: var(--page-ink);
}
.slider-poster,
.slider-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.slider-video { opacity: 0; transition: opacity .6s; }
.is-playing .slider-video { opacity: 1; }

.gradient-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(6, 26, 46, .75) 0%, rgba(6, 26, 46, 0) 45%),
    linear-gradient(90deg, rgba(6, 26, 46, .35) 0%, rgba(6, 26, 46, 0) 55%);
}
.slider-credit {
  position: absolute;
  right: 1.25rem; bottom: .875rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .04em;
  color: var(--white-60);
}

.slider-lockup {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 1.5rem 6.3rem;
}
.slide-number {
  display: flex;
  gap: .62rem;
  margin-bottom: .25rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--white);
}
.slide-number span:last-child { opacity: .9; }
.hero-heading {
  font-size: var(--text-hero);
  line-height: 1.26;
  max-width: 22ch;
}
.hero-para {
  font-size: 1rem;
  line-height: 1.5;
  max-width: 44ch;
}

/* Lockup entrance on first paint (after the wipe) */
html.js .slider-lockup > * {
  animation: rise .9s var(--ease-out) both;
  animation-delay: .55s;
}
html.js .slider-lockup > :nth-child(2) { animation-delay: .65s; }
html.js .slider-lockup > :nth-child(3) { animation-delay: .75s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* Arrows */
.slider-controls {
  position: absolute;
  left: 1.5rem; bottom: 2.25rem;
  z-index: 3;
  display: none;
  gap: .75rem;
}
html.js .slider-controls { display: flex; }
.slider-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem; height: 2.25rem;
  color: var(--white);
  opacity: .85;
  transition: opacity .3s, transform .4s var(--ease-out);
}
.slider-arrow svg { width: 2.75rem; height: 1rem; }
.slider-arrow:hover { opacity: 1; }
.slider-arrow--prev:hover { transform: translateX(-3px); }
.slider-arrow--next:hover { transform: translateX(3px); }
.slider-pause { width: 2.25rem; margin-left: .25rem; }
.slider-pause svg { width: .875rem; height: .875rem; }
.slider-pause .icon-play { display: none; }
.slider-pause[aria-pressed="true"] .icon-pause { display: none; }
.slider-pause[aria-pressed="true"] .icon-play { display: block; }

@media (min-width: 768px) {
  /* With JS the wrapper is one viewport tall; without it the slides stack. */
  html.js .hero-slider-wrapper { height: 100vh; height: 100svh; min-height: 560px; }
  .slider-slide { display: block; height: 100vh; height: 100svh; min-height: 560px; }
  .slider-image { position: absolute; inset: 0; height: auto; }
  .gradient-overlay {
    background:
      linear-gradient(180deg, rgba(6, 26, 46, .45) 0%, rgba(6, 26, 46, 0) 28%),
      linear-gradient(90deg, rgba(6, 26, 46, .6) 0%, rgba(6, 26, 46, 0) 60%),
      linear-gradient(0deg, rgba(6, 26, 46, .45) 0%, rgba(6, 26, 46, 0) 40%);
  }
  .slider-lockup {
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 46vw;
    gap: 1vw;
    padding: 2vw 3.333vw;
    background: rgba(10, 42, 72, .9);
  }
  .slide-number { margin-bottom: 1.25rem; }
  .hero-heading { line-height: 1.16; }
  .slider-controls { left: 3.333vw; bottom: 2.5vw; }
  .slider-credit { right: 1.5rem; bottom: 1.25rem; }
}
@media (min-width: 992px) {
  .slider-lockup { width: max(30vw, 24rem); }
}


/* 7. Home: About band + logo strip ------------------------------------- */

.about-band { border-bottom: 1px solid var(--hairline); }
.about-band__grid { display: grid; gap: 2rem; }
.statement {
  font-size: var(--text-statement);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.35;
  max-width: 40ch;
}
.about-band .text-button { margin-top: 2.5rem; }

.logo-strip__head {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 3rem;
}
.logo-strip__title { font-size: var(--text-h2); }

.logo-grid {
  --gap: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.75rem var(--gap);
}
.logo-grid li {
  flex: 0 0 calc(50% - var(--gap));
  display: flex;
  justify-content: center;
}
.logo-grid a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: .25rem;
  opacity: .65;
  transition: opacity .4s;
}
.logo-grid a:hover,
.logo-grid a:focus-visible { opacity: 1; }
.logo-grid img {
  width: auto;
  max-width: 100%;
  height: var(--lh-sm, 20px);
  object-fit: contain;
  object-position: center;
}

/* Per-logo heights so the wordmarks share a visual cap height
   (--lh-sm phones, --lh from 600px, --lh-lg portfolio sections) */
.logo--figure     { --lh-sm: 17px; --lh: 24px; --lh-lg: 34px; }
.logo--spacex     { --lh-sm: 15px; --lh: 22px; --lh-lg: 30px; }
.logo--boom       { --lh-sm: 24px; --lh: 30px; --lh-lg: 40px; }
.logo--mach       { --lh-sm: 24px; --lh: 30px; --lh-lg: 40px; }
.logo--blueorigin { --lh-sm: 17px; --lh: 24px; --lh-lg: 32px; }
.logo--prentis    { --lh-sm: 22px; --lh: 28px; --lh-lg: 38px; }
.logo--ironstead  { --lh-sm: 12px; --lh: 18px; --lh-lg: 28px; }
.logo--saronic    { --lh-sm: 26px; --lh: 32px; --lh-lg: 42px; }

.logo-strip__cta { margin-top: 3.5rem; text-align: center; }

@media (min-width: 600px) {
  .logo-grid li { flex-basis: calc(33.333% - var(--gap)); }
  .logo-grid img { height: var(--lh, 26px); }
}
@media (min-width: 992px) {
  .about-band__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    gap: 3rem;
  }
  .logo-strip__head {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 4.5rem;
  }
  .logo-grid { --gap: 3rem; justify-content: center; }
  .logo-grid li { flex: 0 0 calc(25% - var(--gap)); }
  .logo-grid img { height: calc(var(--lh, 26px) + 2px); }
  .logo-strip__cta { margin-top: 5rem; }
}


/* 8. Portfolio ---------------------------------------------------------- */

/* Top band shared by Portfolio, Team and the legal pages */
.page-hero {
  padding: 8.5rem 0 3.5rem;
}
.page-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.page-hero__title {
  font-size: var(--text-h2);
  max-width: 24ch;
}
.page-hero--wide .page-hero__title { max-width: 30ch; }
.page-hero__sub {
  max-width: 50ch;
  font-size: 1.0625rem;
  line-height: 1.55;
}
.page-hero__meta {
  font-family: var(--font-mono);
  font-size: .875rem;
  color: var(--white);
}

@media (min-width: 992px) {
  .page-hero { padding: 13.12rem 0 6rem; }
  .page-hero__inner { gap: 1.5rem; }
}

.company {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 60vh;
  min-height: 60svh;
  overflow: hidden;
  background: var(--navy);
  border-top: 1px solid var(--hairline);
}
.company--goldbelly {
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 196, 87, .34), transparent 32%),
    linear-gradient(135deg, #6f1f18 0%, #b84a21 45%, #0A2A48 100%);
}
.company--goldbelly .company__overlay {
  background:
    linear-gradient(90deg, rgba(10, 42, 72, .88) 0%, rgba(10, 42, 72, .38) 58%, rgba(10, 42, 72, .12) 100%),
    linear-gradient(0deg, rgba(10, 42, 72, .68) 0%, rgba(10, 42, 72, 0) 52%);
}
.company__wordmark {
  margin: 0;
  font-size: clamp(1.35rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1;
}

.company__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: var(--media-fit, cover);
  object-position: var(--media-position, 50% 50%);
  transform: scale(1.001);
  transition: transform 6s var(--ease-out);
}
.company__video { opacity: 0; pointer-events: none; }
.company.is-video-playing .company__video { opacity: 1; }
.company__video-toggle {
  position: absolute;
  top: 1.25rem;
  right: var(--gutter);
  z-index: 2;
  min-height: 44px;
  padding: .6rem .9rem;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 2rem;
  background: rgba(6, 26, 46, .7);
  color: var(--white);
  font-size: .75rem;
}
.company__video-toggle[hidden] { display: none; }
.company__media-credit {
  position: absolute;
  right: var(--gutter);
  bottom: 1rem;
  z-index: 2;
  max-width: calc(100% - 2 * var(--gutter));
  padding: .35rem .5rem;
  background: rgba(6, 26, 46, .72);
  color: var(--white);
  font-size: .625rem;
  line-height: 1.4;
  text-underline-offset: .2em;
}
.company__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 60, 102, .92) 0%, rgba(15, 60, 102, .55) 45%, rgba(15, 60, 102, .15) 100%),
    linear-gradient(0deg, rgba(10, 42, 72, .75) 0%, rgba(10, 42, 72, 0) 50%);
}
.company__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  max-width: 36rem;
  padding: 5rem var(--gutter) 3.5rem;
}
.company__logo { width: auto; height: calc(var(--lh-lg, 32px) * .85); }
.company__name { font-size: var(--text-h2); margin-top: .5rem; }
.company__desc { max-width: 42ch; line-height: 1.5; }
.company__content .text-button { margin-top: .75rem; }

#blueorigin { --media-position: 45% center; }
#colossal { --media-position: 65% center; }
[id="1x-tech"] { --media-position: 52% center; }
#ironstead { --media-position: 50% 20%; }
#ironstead .company__bg { filter: brightness(1.45); }
#prentis { --media-fit: contain; --media-position: center top; }
#prentis .company__overlay {
  background: linear-gradient(0deg, var(--navy-deep) 0%, rgba(10, 42, 72, .96) 38%, rgba(10, 42, 72, .2) 75%, rgba(10, 42, 72, .08) 100%);
}
#saronic { --media-position: 52% center; }

/* Keep the entire demonstration visible on narrow screens. */
:is(#neuralink, #agility-robotics) { flex-direction: column; align-items: stretch; }
:is(#neuralink, #agility-robotics) .company__media {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
:is(#neuralink, #agility-robotics) .company__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
}
:is(#neuralink, #agility-robotics) .company__overlay { display: none; }
:is(#neuralink, #agility-robotics) .company__content { padding-top: 2rem; }

/* Preserve Replit's embedded campaign headline without cropping. */
#replit { flex-direction: column; align-items: stretch; }
#replit .company__bg {
  position: relative;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  transform: none;
}
#replit .company__overlay { display: none; }
#replit .company__content { padding-top: 2rem; }

@media (hover: hover) and (pointer: fine) {
  .company:hover .company__bg { transform: scale(1.06); }
}
@media (min-width: 768px) {
  .company { min-height: 70vh; }
  .company__content { padding: 6rem var(--gutter) 5rem; gap: 1.125rem; }
  .company__logo { height: var(--lh-lg, 32px); }
  #blueorigin, #cerebras, #colossal {
    --media-fit: contain;
    --media-position: right center;
    background: var(--page-ink);
  }
  #prentis { --media-position: right center; background: var(--page-ink); }
  #prentis .company__overlay {
    background: linear-gradient(90deg, var(--navy) 0%, rgba(15, 60, 102, .92) 35%, rgba(15, 60, 102, .3) 65%, rgba(15, 60, 102, .08) 100%);
  }
  #replit { flex-direction: row; align-items: center; }
  #replit .company__bg {
    position: absolute;
    inset: 0 0 0 auto;
    width: 58%;
    height: 100%;
    object-position: right center;
  }
  #replit .company__content {
    max-width: 42%;
    padding: 5rem 2.5vw 5rem var(--gutter);
  }
}

@media (min-width: 992px) {
  :is(#neuralink, #agility-robotics) { flex-direction: row; align-items: flex-end; }
  :is(#neuralink, #agility-robotics) .company__media { position: absolute; inset: 0; aspect-ratio: auto; }
  #neuralink .company__bg { object-fit: cover; object-position: center 42%; }
  #agility-robotics .company__media { background: #080d12; }
  :is(#neuralink, #agility-robotics) .company__overlay { display: block; }
  :is(#neuralink, #agility-robotics) .company__content { padding-top: 6rem; }
}


/* 9. Team + bio dialog -------------------------------------------------- */

.team-section { padding-bottom: var(--section-pad); }
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.team-grid > li { display: flex; }
.team-card {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  background: var(--navy);
  overflow: hidden;
}
.team-card__media {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--navy);
}
.team-portrait {
  position: relative;
  width: 72%;
  height: 72%;
  overflow: hidden;
  border-radius: 50%;
  background: var(--portrait-bg);
}
.team-portrait img {
  position: absolute;
  top: var(--portrait-y, 0%);
  left: var(--portrait-x, 0%);
  width: var(--portrait-scale, 100%);
  max-width: none;
  height: auto;
  filter: grayscale(1);
  transition: transform .6s var(--ease-out);
}
[data-portrait="lance"] {
  --portrait-scale: 96%;
  --portrait-x: 2%;
  --portrait-y: 4%;
}
[data-portrait="shane"] {
  --portrait-scale: 150%;
  --portrait-x: -29.5%;
  --portrait-y: 4%;
}
[data-portrait="candice"] {
  --portrait-scale: 140%;
  --portrait-x: -16.3%;
  --portrait-y: -5%;
}
[data-portrait="ritch"] {
  --portrait-scale: 145%;
  --portrait-x: -20%;
  --portrait-y: -3%;
}
[data-portrait="evan"] {
  --portrait-scale: 100%;
  --portrait-x: 0%;
  --portrait-y: 0%;
}
.team-card__body {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1.5rem;
}
.team-card__name { font-size: 1.125rem; font-weight: 500; letter-spacing: -.01em; }
.team-card__title { font-size: .875rem; color: var(--white-70); }
.team-card__hint {
  margin-top: .75rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white-70);
  transition: color .4s;
}
.team-card__bio { display: none; }
/* Without JS there is no dialog, so the bio reads inline on the card */
html:not(.js) .team-card__bio {
  display: block;
  padding: 0 1.5rem 1.5rem;
  font-size: .9375rem;
  line-height: 1.6;
}
html:not(.js) .team-card__bio p + p { margin-top: .75rem; }
html:not(.js) .team-card__hint { display: none; }

.team-card--interactive { position: relative; cursor: pointer; }
/* The name is a real button; its hit area is stretched over the whole card */
.team-card__trigger {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-align: left;
}
.team-card__trigger::after { content: ""; position: absolute; inset: 0; }
.team-card__trigger:focus-visible { outline-offset: 4px; }
.team-card--interactive:hover .team-card__media img,
.team-card--interactive:focus-within .team-card__media img { transform: scale(1.04); }
.team-card--interactive:hover .team-card__hint,
.team-card--interactive:focus-within .team-card__hint { color: var(--white); }

@media (min-width: 600px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .team-grid { grid-template-columns: repeat(5, 1fr); } }

/* Bio dialog */
.team-dialog {
  width: min(42rem, calc(100vw - 2rem));
  max-height: min(88vh, 88svh);
  margin: auto;
  padding: 0;
  border: 0;
  outline: none;
  color-scheme: dark;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.team-dialog::backdrop { background: rgba(10, 42, 72, .72); }
.team-dialog:not([open]) { display: none; }
.team-dialog[open] { display: block; }
/* Browsers without <dialog> support: the script toggles [open] itself */
html.dialog-open .team-dialog[open] { position: fixed; inset: 0; z-index: 500; height: fit-content; }
/* Scroll lock behind the open dialog */
html.dialog-open, html.dialog-open body { overflow: hidden; }
.team-dialog__inner {
  position: relative;
  padding: 2.5rem 1.5rem 2rem;
  max-height: inherit;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #476784 var(--navy);
}
.team-dialog:focus,
.team-dialog__inner:focus { outline: none; }
.team-dialog__inner::-webkit-scrollbar { width: 8px; }
.team-dialog__inner::-webkit-scrollbar-track { background: var(--navy); }
.team-dialog__inner::-webkit-scrollbar-thumb {
  background: #476784;
  border: 2px solid var(--navy);
  border-radius: 8px;
}
.team-dialog__close {
  position: absolute;
  top: .75rem; right: .75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem; height: 2.75rem;
  color: var(--white);
  opacity: .8;
  transition: opacity .3s;
}
.team-dialog__close:hover { opacity: 1; }
.team-dialog__close svg { width: 1.25rem; height: 1.25rem; }
.team-dialog__head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.team-dialog__portrait {
  width: 6.5rem; height: 6.5rem;
  flex: none;
}
.team-dialog__name { font-size: 1.5rem; }
.team-dialog__title { margin-top: .25rem; font-size: .9375rem; color: var(--white-70); }
.team-dialog__bio { font-size: 1rem; line-height: 1.65; }
.team-dialog__bio p + p { margin-top: 1rem; }

@media (min-width: 600px) {
  .team-dialog__inner { padding: 3rem 3rem 2.75rem; }
  .team-dialog__head { flex-direction: row; align-items: center; gap: 1.5rem; }
}


/* 10. Legal pages ------------------------------------------------------- */

.legal-body { padding-bottom: var(--section-pad); }
.prose {
  max-width: 44rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  margin-top: 2.6em;
  margin-bottom: .55em;
  font-size: 1.375rem;
  letter-spacing: -.015em;
}
.prose ul { padding-left: 1.25rem; list-style: disc; }
.prose li + li { margin-top: .35em; }
.prose a { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-color: var(--white-60); }
.prose strong { font-weight: 500; }


/* 11. Footer ------------------------------------------------------------ */

.site-footer {
  background: var(--navy-deep);
  padding: 4rem 0 2rem;
}
.footer-main-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.footer-left { max-width: 22rem; }
.footer-logo { display: inline-block; }
.footer-logo img { height: 44px; width: auto; }
.footer-right {
  display: flex;
  gap: clamp(3rem, 8vw, 8rem);
  max-width: 51.1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .75rem; }
.footer-link {
  display: inline-block;
  font-size: .875rem;
  line-height: 1.4;
  color: var(--white);
  transition: color .4s;
}
.footer-link:hover { color: var(--white-64); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--white-70);
}

@media (min-width: 768px) {
  .site-footer { padding: 5rem 0 2.5rem; }
  .footer-main-wrapper { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .footer-logo img { height: 52px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; gap: 2rem; margin-top: 5rem; }
}


/* 12. Reduced motion ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html.js .page-wipe { display: none; animation: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html.js .slider { transition: none; }
  html.js .slider-lockup > * { animation: none; }
  /* Hero video still plays under reduced motion; the Pause button controls it */
  .slider-video { transition: none; }
  .company:hover .company__bg,
  .team-card--interactive:hover .team-card__media img { transform: none; }
}

/* ===== 11V-LOGO-SIZES ===== */
/* Per-logo cap heights for the remaining portfolio sections (generated) */
.logo--1x-tech { --lh-lg: 40px; }
.logo--aalo-atomics { --lh-lg: 40px; }
.logo--agility-robotics { --lh-lg: 40px; }
.logo--angellist { --lh-lg: 52px; }
.logo--apptronik { --lh-lg: 24px; }
.logo--astranis { --lh-lg: 40px; }
.logo--basic-capital { --lh-lg: 40px; }
.logo--bloom-energy { --lh-lg: 40px; }
.logo--blueorigin { --lh-lg: 40px; }
.logo--boom { --lh-lg: 40px; }
.logo--cerebras { --lh-lg: 40px; }
.logo--colossal { --lh-lg: 40px; }
.logo--databricks { --lh-lg: 40px; }
.logo--epic-games { --lh-lg: 56px; }
.logo--epirus { --lh-lg: 40px; }
.logo--erebor { --lh-lg: 52px; }
.logo--facebook { --lh-lg: 52px; }
.logo--figure { --lh-lg: 40px; }
.logo--flexport { --lh-lg: 40px; }
.logo--forge { --lh-lg: 40px; }
.logo--groq { --lh-lg: 40px; }
.logo--hark { --lh-lg: 40px; }
.logo--harmattan-ai { --lh-lg: 40px; }
.logo--illumio { --lh-lg: 40px; }
.logo--impulse-space { --lh-lg: 40px; }
.logo--linkedin { --lh-lg: 40px; }
.logo--lmnt { --lh-lg: 56px; }
.logo--loyal { --lh-lg: 40px; }
.logo--mach { --lh-lg: 40px; }
.logo--neuralink { --lh-lg: 40px; }
.logo--onerail { --lh-lg: 40px; }
.logo--palantir { --lh-lg: 40px; }
.logo--perplexity-ai { --lh-lg: 40px; }
.logo--redwood-materials { --lh-lg: 40px; }
.logo--replit { --lh-lg: 52px; }
.logo--rescale { --lh-lg: 40px; }
.logo--scout-ai { --lh-lg: 40px; }
.logo--shield-ai { --lh-lg: 40px; }
.logo--spacex { --lh-lg: 38px; }
.logo--transastra { --lh-lg: 40px; }
.logo--twitter { --lh-lg: 52px; }
.logo--varda-space { --lh-lg: 40px; }
.logo--x-ai { --lh-lg: 52px; }
/* Sections without a usable brand photo use a soft navy wash */
.company--wash .company__bg { opacity: .9; }
