/* RESERVE — shared design system */

/* Responsive view switch: each page contains both a .reserve-desktop
   markup tree (.page) and a .reserve-mobile tree (.device); show
   exactly one based on viewport width. Breakpoint: 768px. */
@media (max-width: 767px) {
  .reserve-desktop { display: none !important; }
}
@media (min-width: 768px) {
  .reserve-mobile { display: none !important; }
}

/* Light/medium subpages share a single .page tree (no separate mobile DOM).
   At mobile widths, restyle their .shell.nav header to mirror index.html's m-nav:
   brand left, hamburger right, no inline About/Contact/Request Access links. */
@media (max-width: 767px) {
  .light-page > .shell.nav {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding-top: 18px;
    padding-bottom: 16px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .light-page > .shell.nav + .shell:has(> .hairline) { display: none !important; }
  .light-page > .shell.nav .brand {
    font-size: 11.5px;
    font-weight: 400;
    letter-spacing: 0.34em;
    grid-column: 1;
  }
  .light-page > .shell.nav .nav-links { display: none !important; }
  .light-page > .shell.nav .nav-cta {
    grid-column: 3;
    justify-self: end;
    font-size: 0;
    color: transparent;
    background: transparent;
    border: 0;
    padding: 10px;
    margin: -10px -10px -10px 0;
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
    height: auto;
    box-sizing: content-box;
  }
  .light-page > .shell.nav .nav-cta::before,
  .light-page > .shell.nav .nav-cta::after {
    content: "";
    display: block;
    width: 22px;
    height: 1px;
    background: var(--ink);
  }
  .light-page > .shell.nav .nav-cta .arrow { display: none; }

  /* Match index-mobile.html layout: lede above a full-width REQUEST ACCESS row,
     hairlines top + bottom, "Seeking business funding" link below. */
  .light-hero { gap: 22px !important; }
  .light-hero .lede { max-width: 100%; font-size: 14.5px; line-height: 1.62; }
  .light-hero > div { width: 100%; margin: 6px 0 0; }
  .light-hero .cta {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 4px !important;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    border-radius: 0 !important;
    background: transparent !important;
    font-size: 12px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--ink) !important;
  }
  .light-hero .cta .arrow { width: 28px; }
  .light-hero .muted { margin: 6px 0 0; font-size: 12.5px; }

  /* "Seeking business funding" — boost contrast without a pill backdrop */
  .light-hero .muted a {
    color: var(--ink) !important;
    text-shadow: 0 1px 8px rgba(var(--bg-rgb), 0.85);
    border-bottom-color: rgba(var(--ink-rgb, 232, 236, 242), 0.45) !important;
  }

  /* Drawer injected by mobile-nav.js on light/medium pages */
  .lm-drawer {
    position: fixed;
    inset: 0;
    background: rgba(var(--bg-rgb), .96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
    display: flex;
    flex-direction: column;
    color: var(--ink);
  }
  .lm-drawer.is-open { opacity: 1; pointer-events: auto; }
  .lm-drawer-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 18px clamp(28px, 4.4vw, 64px) 16px;
  }
  .lm-brand {
    font-size: 11.5px;
    letter-spacing: 0.34em;
    color: var(--ink);
  }
  .lm-drawer-close {
    grid-column: 3;
    justify-self: end;
    background: transparent;
    border: 0;
    color: var(--ink-soft);
    font: inherit;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 10px;
    margin: -10px -10px -10px 0;
  }
  .lm-drawer-links {
    display: flex;
    flex-direction: column;
    padding: 8px clamp(28px, 4.4vw, 64px) 32px;
  }
  .lm-drawer-links a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid rgba(var(--ink-rgb, 232, 236, 242), .12);
    color: var(--ink);
    text-decoration: none;
    font-size: 22px;
    font-weight: 300;
    letter-spacing: -0.005em;
  }
  .lm-drawer-links a .num {
    font-size: 11px;
    letter-spacing: 0.24em;
    color: var(--ink-soft);
  }
  .lm-drawer-links a[aria-current="page"] { color: var(--ink-soft); }
}

:root {
  --bg:        #05080F;       /* near-black with a navy bias */
  --bg-rgb:    5, 8, 15;      /* RGB triplet of --bg, for rgba() */
  --bg-2:      #070B14;
  --ink:       #E8ECF2;       /* primary text */
  --ink-soft:  #A9B2C0;       /* secondary text */
  --ink-mute:  #6E7787;       /* tertiary / eyebrow */
  --line:      rgba(232, 236, 242, 0.10);
  --line-strong: rgba(232, 236, 242, 0.22);
  --icy:       #C9D6E6;

  --col-pad:   clamp(28px, 4.4vw, 64px);
  --row-pad:   clamp(20px, 2.4vw, 32px);

  --eyebrow-size: 11px;
  --eyebrow-track: 0.22em;

  --font-sans: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  /* Prevent horizontal scroll across the whole site */
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

img, svg, video { max-width: 100%; }

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

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

/* ---------- Light-hero treatment (shared) ---------- */

.light-page { position: relative; background: var(--bg); overflow: hidden; }
.light-page .bg-art {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.light-page .bg-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 50%;
}
.light-page .bg-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      rgba(var(--bg-rgb), 0.88) 0%,
      rgba(var(--bg-rgb), 0.62) 24%,
      rgba(var(--bg-rgb), 0.30) 44%,
      rgba(var(--bg-rgb), 0.10) 60%,
      rgba(var(--bg-rgb), 0.00) 78%),
    linear-gradient(to bottom,
      rgba(var(--bg-rgb), 0.45) 0%,
      rgba(var(--bg-rgb), 0.00) 22%,
      rgba(var(--bg-rgb), 0.00) 70%,
      rgba(var(--bg-rgb), 0.65) 100%);
}
.light-page > *:not(.bg-art):not(.m-drawer) { position: relative; z-index: 2; }
.light-page .hairline { background: rgba(232, 236, 242, 0.22); }

/* Dark sub-pages: blurred architectural image as ambient background */
.dark-bg-page { position: relative; overflow: hidden; }
.dark-bg-page .bg-art {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.dark-bg-page .bg-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 50%;
  filter: blur(14px) saturate(0.95);
  transform: scale(1.06);
}
.dark-bg-page .bg-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(var(--bg-rgb), 0.78), rgba(var(--bg-rgb), 0.78)),
    linear-gradient(to bottom,
      rgba(var(--bg-rgb), 0.30) 0%,
      rgba(var(--bg-rgb), 0.00) 25%,
      rgba(var(--bg-rgb), 0.00) 75%,
      rgba(var(--bg-rgb), 0.45) 100%);
}
.dark-bg-page > *:not(.bg-art):not(.m-drawer) { position: relative; z-index: 2; }

/* Blurred variant — used on sub-pages so type stays fully legible */
.light-page.light-blur .bg-art img {
  filter: blur(28px) saturate(0.95);
  transform: scale(1.08);  /* hide blur-bleed edges */
}
.light-page.light-blur .bg-art::after {
  background:
    linear-gradient(rgba(var(--bg-rgb), 0.62), rgba(var(--bg-rgb), 0.62)),
    linear-gradient(to bottom,
      rgba(var(--bg-rgb), 0.35) 0%,
      rgba(var(--bg-rgb), 0.00) 30%,
      rgba(var(--bg-rgb), 0.00) 70%,
      rgba(var(--bg-rgb), 0.45) 100%);
}

/* ---------- Page shell ---------- */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.shell {
  width: 100%;
  padding-left: var(--col-pad);
  padding-right: var(--col-pad);
}

/* ---------- Top nav ---------- */

.nav {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding-top: clamp(22px, 2.4vw, 34px);
  padding-bottom: clamp(20px, 2.2vw, 30px);
  gap: clamp(20px, 4vw, 64px);
}

.brand {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.42em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.nav-links a {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active { color: var(--ink); }

/* ---------- Nav dropdown (About → Leadership) ---------- */

.nav-item { position: relative; display: inline-flex; align-items: center; }

.nav-dd {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 4px);
  padding-top: 6px;        /* invisible hover bridge to the trigger */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.2,.6,.2,1), visibility 0s linear 180ms;
  z-index: 30;
}
.nav-item:hover .nav-dd,
.nav-item:focus-within .nav-dd {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.2,.6,.2,1), visibility 0s;
}

.nav-dd a {
  display: block;
  padding: 8px 14px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 180ms ease;
}
.nav-dd a:hover,
.nav-dd a.is-active { color: var(--ink); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 6px;
  transition: border-color 180ms ease, color 180ms ease;
}

.nav-cta:hover { border-color: var(--ink); }

.nav-cta .arrow { width: 22px; }

/* ---------- Divider used across pages ---------- */

.hairline {
  height: 1px;
  background: var(--line);
  width: 100%;
}

/* ---------- Eyebrow ---------- */

.eyebrow {
  font-size: var(--eyebrow-size);
  letter-spacing: var(--eyebrow-track);
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}

.eyebrow .tick {
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--ink-soft);
  vertical-align: middle;
  margin-top: 8px;
  margin-left: 0;
  opacity: 0.7;
}

.eyebrow-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eyebrow-stack .tick {
  width: 20px;
  height: 1px;
  background: var(--ink-soft);
  opacity: 0.7;
}

/* ---------- CTA button (underline w/ arrow) ---------- */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 220ms ease, gap 220ms ease;
}

.cta:hover { border-color: var(--ink); gap: 28px; }

.cta .arrow { width: 26px; }

/* ---------- Footer (bottom strip) ---------- */

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  padding-bottom: 22px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.foot > span {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 12px;
}

.foot-right { display: flex; gap: clamp(28px, 4vw, 56px); }
.foot-right a {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 12px;
}

.foot a:hover { color: var(--ink); }

/* ---------- Body type ---------- */

.lede {
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 38ch;
}

h1, h2, h3 { font-weight: 300; margin: 0; letter-spacing: -0.015em; }

.display {
  font-size: clamp(46px, 5.6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 300;
  color: var(--ink);
}

.display .line { display: block; }

/* ---------- Industries section ---------- */

.industries {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(18px, 1.5vw, 24px) clamp(20px, 2vw, 32px);
  padding-top: clamp(56px, 6vw, 96px);
  padding-bottom: clamp(40px, 5vw, 72px);
}
.industries .ind-eyebrow {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: var(--eyebrow-size);
  letter-spacing: var(--eyebrow-track);
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink-soft);
  margin: 0;
}
.industries .ind-eyebrow .plus {
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--ink-soft);
  font-weight: 300;
}
.industries .ind-intro {
  grid-column: 1 / 8;
  margin-top: clamp(24px, 3vw, 48px);
}
.industries .ind-intro .display {
  font-size: clamp(40px, 4.6vw, 72px);
  letter-spacing: -0.018em;
  line-height: 1.04;
}
.industries .ind-side {
  grid-column: 9 / -1;
  align-self: end;
  margin-top: clamp(24px, 3vw, 48px);
  max-width: 32ch;
  color: var(--ink-soft);
  font-size: clamp(13.5px, 0.95vw, 15px);
  line-height: 1.62;
}
.industries .ind-grid {
  grid-column: 1 / -1;
  list-style: none;
  margin: clamp(40px, 5vw, 72px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.4vw, 22px);
}
.industries .ind-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #0a0d14;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: clamp(28px, 3.2vw, 48px) 18px clamp(28px, 3.2vw, 44px);
  text-align: center;
  isolation: isolate;
}
.industries .ind-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 15, 0.78) 0%,
    rgba(5, 8, 15, 0.55) 45%,
    rgba(5, 8, 15, 0.82) 100%
  );
  z-index: 0;
}
.industries .ind-tile > * { position: relative; z-index: 1; }
.industries .ind-tile .ind-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto 0;
  color: var(--ink);
}
.industries .ind-tile .ind-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.industries .ind-tile .ind-label {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.35;
  max-width: 24ch;
  margin-bottom: clamp(8px, 1.2vw, 14px);
}
.industries .ind-explore {
  grid-column: 1 / -1;
  margin: clamp(40px, 4.5vw, 64px) 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: var(--eyebrow-size);
  letter-spacing: var(--eyebrow-track);
  text-transform: uppercase;
  color: var(--ink-soft);
}
.industries .ind-explore a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-soft);
}
.industries .ind-explore a:hover { color: var(--ink); }
.industries .ind-explore .plus {
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
}

@media (max-width: 900px) {
  .industries .ind-intro { grid-column: 1 / -1; }
  .industries .ind-side { grid-column: 1 / -1; align-self: start; max-width: 100%; }
  .industries .ind-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile industries — appears inside .device tree */
.m-industries {
  padding: 40px var(--m-pad) 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.m-industries .m-ind-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.m-industries .m-ind-head .plus { font-size: 16px; color: var(--ink-soft); }
.m-industries h2 {
  font-size: 36px;
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.014em;
  margin: 6px 0 0;
}
.m-industries h2 .line { display: block; }
.m-industries .m-ind-lede {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.62;
  margin: 4px 0 8px;
}
.m-industries .m-ind-grid {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.m-industries .ind-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #0a0d14;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 22px 12px 18px;
  text-align: center;
  isolation: isolate;
}
.m-industries .ind-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,8,15,.78) 0%, rgba(5,8,15,.55) 45%, rgba(5,8,15,.84) 100%);
  z-index: 0;
}
.m-industries .ind-tile > * { position: relative; z-index: 1; }
.m-industries .ind-icon {
  width: 42px; height: 42px;
  margin: auto 0;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.m-industries .ind-icon svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.m-industries .ind-label {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 4px;
}
.m-industries .m-ind-explore {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

/* ---------- Forms ---------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 22px 0 14px;
  transition: border-color 200ms ease;
}

.field:focus-within { border-color: var(--ink-soft); }

.field label {
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.field input,
.field textarea,
.field select {
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 300;
  padding: 0;
  resize: vertical;
}

.field textarea { min-height: 96px; line-height: 1.55; }

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-mute); opacity: 0.6; }

.field select { appearance: none; cursor: pointer; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(28px, 4vw, 64px);
}

.form-grid .full { grid-column: 1 / -1; }

@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Small utility ---------- */

.muted { color: var(--ink-mute); }
.soft  { color: var(--ink-soft); }

.row {
  display: flex;
  align-items: flex-start;
  gap: clamp(28px, 4vw, 64px);
}

.col { display: flex; flex-direction: column; }

.spacer-lg { height: clamp(56px, 8vw, 120px); }
.spacer-md { height: clamp(36px, 5vw, 72px); }
.spacer-sm { height: clamp(20px, 3vw, 40px); }

/* Subtle scroll-triggered entrance — text drifts up softly.
   Children start hidden; the animation only runs once the parent
   .rise element receives .is-visible (added by the IntersectionObserver
   on each page). */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rise > * {
  opacity: 0;
  transform: translateY(10px);
  will-change: opacity, transform;
}
.rise.is-visible > * {
  animation: rise 900ms cubic-bezier(.2,.6,.2,1) both;
}
.rise > *:nth-child(1) { animation-delay: 80ms; }
.rise > *:nth-child(2) { animation-delay: 180ms; }
.rise > *:nth-child(3) { animation-delay: 280ms; }
.rise > *:nth-child(4) { animation-delay: 380ms; }
.rise > *:nth-child(5) { animation-delay: 480ms; }
.rise > *:nth-child(6) { animation-delay: 580ms; }
.rise > *:nth-child(7) { animation-delay: 680ms; }

@media (prefers-reduced-motion: reduce) {
  .rise > * {
    opacity: 1; transform: none; filter: none; animation: none;
  }
}
