/* Fonts loaded via <link> in HTML (avoids @import issues in Edge / strict tracking modes). */

/* Light + dark themes — Montserrat + navy / gold branding */
:root {
  color-scheme: light;
  --navy: #034285;
  --gold: #e1a935;
  --bg: #f3f1ec;
  --bg-elevated: #ffffff;
  --surface: #e6e3dc;
  --ink: #141210;
  --ink-soft: #3d3a36;
  --muted: #6b6560;
  --line: rgba(20, 18, 16, 0.1);
  --accent: var(--navy);
  --accent-soft: rgba(3, 66, 133, 0.12);
  --accent-2: var(--gold);
  --gold-soft: rgba(225, 169, 53, 0.18);
  --gold-bg: rgba(225, 169, 53, 0.1);
  --gold-bg-strong: rgba(225, 169, 53, 0.16);
  --gold-line: rgba(225, 169, 53, 0.42);
  --gold-border: rgba(225, 169, 53, 0.38);
  --brand-gradient: linear-gradient(90deg, var(--navy) 0%, var(--gold) 100%);
  --section-bg-cream: #faf8f4;
  --section-bg-warm: #f6f4ee;
  --section-bg-muted: #f0ede6;
  --section-bg-gradient: linear-gradient(180deg, #fcfaf7 0%, #f4f1ea 100%);
  --section-bg-gradient-soft: linear-gradient(
    180deg,
    #fbf9f5 0%,
    #f3f0e8 55%,
    var(--bg) 100%
  );
  --warm-glow: rgba(3, 66, 133, 0.07);
  --card-shadow: 0 1px 2px rgba(20, 18, 16, 0.04),
    0 18px 48px rgba(20, 18, 16, 0.07);
  --header-bg: rgba(255, 255, 255, 0.9);
  --header-bg-solid: #ffffff;
  --header-inset: rgba(255, 255, 255, 0.85);
  --header-shadow: rgba(3, 66, 133, 0.06);
  --overlay-bg: rgba(20, 18, 16, 0.35);
  --drawer-bg: rgba(255, 255, 255, 0.98);
  --drawer-shadow: rgba(20, 18, 16, 0.12);
  --input-bg: #faf9f7;
  --input-border: rgba(20, 18, 16, 0.12);
  --input-focus-bg: #ffffff;
  --input-focus-border: rgba(3, 66, 133, 0.45);
  --input-focus-ring: rgba(3, 66, 133, 0.22);
  --btn-primary-end: #0456a8;
  --btn-primary-fg: #ffffff;
  --btn-primary-shadow: rgba(3, 66, 133, 0.28);
  --btn-primary-shadow-hover: rgba(3, 66, 133, 0.34);
  --btn-primary-inset: rgba(255, 255, 255, 0.12);
  --on-accent: #ffffff;
  --accent-hover: #02356a;
  --focus-outline: rgba(3, 66, 133, 0.45);
  --brand-hover-ring: rgba(3, 66, 133, 0.28);
  --nav-hover-color: var(--navy);
  --nav-active-color: var(--navy);
  --card-inset: rgba(255, 255, 255, 0.9);
  --photo-placeholder-start: #e8e5df;
  --photo-placeholder-end: #d9d5cd;
  --photo-border: rgba(255, 255, 255, 0.9);
  --body-grad-1: rgba(250, 248, 244, 0.9);
  --body-grad-2: rgba(245, 242, 234, 0.85);
  --eyebrow-grad-start: rgba(3, 66, 133, 0.1);
  --eyebrow-grad-end: rgba(225, 169, 53, 0.16);
  --eyebrow-inset: rgba(255, 255, 255, 0.95);
  --eyebrow-shadow: rgba(3, 66, 133, 0.08);
  --eyebrow-color: var(--navy);
  --quote-border: rgba(3, 66, 133, 0.1);
  --feature-list-grad-end: rgba(255, 255, 255, 0.85);
  --highlight-border: rgba(3, 66, 133, 0.4);
  --highlight-ring: rgba(3, 66, 133, 0.14);
  --role-hover-border: rgba(3, 66, 133, 0.35);
  --logo-drop-shadow: rgba(3, 66, 133, 0.12);
  --logo-drop-shadow-2: rgba(20, 18, 16, 0.08);
  --avatar-shadow: rgba(3, 66, 133, 0.16);
  --photo-shadow: rgba(20, 18, 16, 0.1);
  --social-bg: #034285;
  --role-active-color: var(--navy);
  --theme-toggle-bg: transparent;
  --theme-toggle-bg-hover: var(--gold-bg);
  --theme-toggle-border: transparent;
  --theme-toggle-border-hover: var(--gold-border);

  /* Layout tiers: phone ≤767 | tablet (iPad) 768–1023 | desktop ≥1024 */
  --site-header-height: 64px;
  --site-chrome-inset: clamp(0.625rem, 1.25vw, 1rem);
  --site-content-max: 100%;
  --site-content-gutter: clamp(1rem, 4vw, 1.5rem);
  --site-content-measure: 62ch;
  --site-content-bias: 0;
  --site-section-space: 2.5rem;
  --hero-actions-offset: 1.15rem;
}

[data-theme="dark"] {
  color-scheme: dark;
  --navy: #7eb0dc;
  --gold: #d4a84a;
  --bg: #1c2433;
  --bg-elevated: #252f40;
  --surface: #222b3a;
  --ink: #edf0f5;
  --ink-soft: #b9c2d0;
  --muted: #8a96a8;
  --line: rgba(130, 148, 176, 0.2);
  --accent: #5b9bd5;
  --accent-soft: rgba(91, 155, 213, 0.14);
  --accent-2: var(--gold);
  --gold-soft: rgba(212, 168, 74, 0.16);
  --gold-bg: rgba(212, 168, 74, 0.1);
  --gold-bg-strong: rgba(212, 168, 74, 0.18);
  --gold-line: rgba(212, 168, 74, 0.28);
  --gold-border: rgba(212, 168, 74, 0.38);
  --brand-gradient: linear-gradient(90deg, #4a7eb5 0%, #d4a84a 100%);
  --section-bg-cream: #212a3a;
  --section-bg-warm: #242e3e;
  --section-bg-muted: #283244;
  --section-bg-gradient: linear-gradient(180deg, #252f40 0%, #1c2433 100%);
  --section-bg-gradient-soft: linear-gradient(
    180deg,
    #263042 0%,
    #212a3a 55%,
    var(--bg) 100%
  );
  --warm-glow: rgba(74, 126, 181, 0.12);
  --card-shadow: 0 1px 2px rgba(12, 18, 28, 0.22),
    0 14px 36px rgba(8, 12, 20, 0.28);
  --header-bg: rgba(28, 36, 51, 0.94);
  --header-bg-solid: #1c2433;
  --header-inset: rgba(255, 255, 255, 0.05);
  --header-shadow: rgba(74, 126, 181, 0.1);
  --overlay-bg: rgba(16, 22, 32, 0.55);
  --drawer-bg: rgba(32, 40, 54, 0.98);
  --drawer-shadow: rgba(8, 12, 20, 0.35);
  --input-bg: #2a3446;
  --input-border: rgba(130, 148, 176, 0.22);
  --input-focus-bg: #2e3a4e;
  --input-focus-border: rgba(91, 155, 213, 0.55);
  --input-focus-ring: rgba(91, 155, 213, 0.2);
  --btn-primary-end: #0456a8;
  --btn-primary-fg: #ffffff;
  --btn-primary-shadow: rgba(3, 66, 133, 0.32);
  --btn-primary-shadow-hover: rgba(3, 66, 133, 0.42);
  --btn-primary-inset: rgba(255, 255, 255, 0.12);
  --on-accent: #f5f7fa;
  --accent-hover: #4a8fd4;
  --focus-outline: rgba(110, 168, 216, 0.5);
  --brand-hover-ring: rgba(110, 168, 216, 0.35);
  --nav-hover-color: #e0bc68;
  --nav-active-color: #e8c878;
  --card-inset: rgba(255, 255, 255, 0.04);
  --photo-placeholder-start: #343f52;
  --photo-placeholder-end: #2a3446;
  --photo-border: rgba(130, 148, 176, 0.3);
  --body-grad-1: rgba(74, 126, 181, 0.1);
  --body-grad-2: rgba(212, 168, 74, 0.06);
  --eyebrow-grad-start: rgba(74, 126, 181, 0.16);
  --eyebrow-grad-end: rgba(212, 168, 74, 0.1);
  --eyebrow-inset: rgba(255, 255, 255, 0.05);
  --eyebrow-shadow: rgba(74, 126, 181, 0.1);
  --eyebrow-color: #c8dcf0;
  --quote-border: rgba(130, 148, 176, 0.22);
  --feature-list-grad-end: rgba(37, 47, 64, 0.85);
  --highlight-border: rgba(110, 168, 216, 0.45);
  --highlight-ring: rgba(110, 168, 216, 0.16);
  --role-hover-border: rgba(110, 168, 216, 0.4);
  --logo-drop-shadow: rgba(74, 126, 181, 0.18);
  --logo-drop-shadow-2: rgba(8, 12, 20, 0.25);
  --avatar-shadow: rgba(8, 12, 20, 0.3);
  --photo-shadow: rgba(8, 12, 20, 0.28);
  --social-bg: #2d5080;
  --role-active-color: #e8c878;
  --theme-toggle-bg: rgba(74, 126, 181, 0.1);
  --theme-toggle-bg-hover: rgba(212, 168, 74, 0.14);
  --theme-toggle-border: rgba(130, 148, 176, 0.22);
  --theme-toggle-border-hover: rgba(212, 168, 74, 0.4);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

html {
  height: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -25%, var(--warm-glow), transparent);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.hero h1,
.section-title,
.page-hero h1 {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
}

.contact-card .form-title {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(720px, 90%);
  margin: 0 auto;
}

.container--wide {
  width: min(1040px, 92%);
}

/* Unified content rail — same width and left edge in <main> */
main .container,
main .container--wide,
main .container.container--wide {
  width: min(var(--site-content-max), 100%);
  max-width: var(--site-content-max);
  margin-inline: auto;
  padding-inline: var(--site-content-gutter);
  box-sizing: border-box;
}

@media (min-width: 768px) {
  :root {
    --site-content-max: min(1180px, calc(100vw - 2 * var(--site-content-gutter)));
    --site-content-gutter: clamp(1.125rem, 3vw, 1.75rem);
    --site-section-space: 2.75rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --site-content-max: min(1280px, calc(100vw - 2 * var(--site-content-gutter)));
    --site-content-measure: 68ch;
    --site-content-bias: 0.875rem;
  }

  main .container,
  main .container--wide,
  main .container.container--wide {
    margin-left: max(
      var(--site-content-gutter),
      calc((100% - min(var(--site-content-max), 100%)) / 2 - var(--site-content-bias))
    );
    margin-right: max(
      var(--site-content-gutter),
      calc((100% - min(var(--site-content-max), 100%)) / 2 + var(--site-content-bias))
    );
  }
}

@media (min-width: 1280px) {
  :root {
    --site-content-max: min(1320px, calc(100vw - 2 * var(--site-content-gutter)));
    --site-content-gutter: clamp(1.25rem, 2.5vw, 2rem);
    --site-content-bias: 1.125rem;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
  width: 100%;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow:
    0 1px 0 var(--header-inset) inset,
    0 4px 24px var(--header-shadow),
    0 1px 0 var(--gold-line);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: var(--header-bg-solid);
  }
}

.site-header .container--wide,
.site-footer .container--wide {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: max(
    var(--site-chrome-inset),
    env(safe-area-inset-left, 0px)
  );
  padding-right: max(
    var(--site-chrome-inset),
    env(safe-area-inset-right, 0px)
  );
  box-sizing: border-box;
}

.header-inner {
  position: relative;
  width: 100%;
  min-height: var(--site-header-height);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 1rem;
  padding: 0.5rem 0;
}

.brand {
  grid-column: 1;
  justify-self: start;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.header-end {
  grid-column: 2;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  gap: 0.2rem;
}

.theme-toggle {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--theme-toggle-border);
  border-radius: 10px;
  background: var(--theme-toggle-bg);
  color: var(--gold);
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.theme-toggle:hover {
  background: var(--theme-toggle-bg-hover);
  border-color: var(--theme-toggle-border-hover);
  transform: translateY(-1px);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--focus-outline);
  outline-offset: 2px;
}

.theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.theme-toggle-icon--sun {
  display: none;
}

.theme-toggle-icon--moon {
  display: inline-flex;
}

[data-theme="dark"] .theme-toggle-icon--sun {
  display: inline-flex;
}

[data-theme="dark"] .theme-toggle-icon--moon {
  display: none;
}

@media (min-width: 768px) {
  .nav-links {
    order: 1;
  }

  .theme-toggle {
    order: 2;
    margin-left: 0.35rem;
  }

  .menu-toggle {
    order: 3;
  }
}

@media (max-width: 767px) {
  .theme-toggle {
    order: 1;
  }

  .menu-toggle {
    order: 2;
  }
}

.brand img {
  height: auto;
  width: auto;
  max-height: 34px;
  max-width: min(200px, 58vw);
  object-fit: contain;
  object-position: left center;
  border-radius: 6px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.brand:hover img {
  box-shadow: 0 0 0 1px var(--brand-hover-ring);
  transform: translateY(-1px);
}

/* Hamburger: hidden on tablet + desktop */
.menu-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--focus-outline);
  outline-offset: 2px;
}

.menu-toggle-box {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.menu-toggle-inner {
  position: relative;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: background 0.2s ease;
}

.menu-toggle-inner::before,
.menu-toggle-inner::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, top 0.2s ease;
}

.menu-toggle-inner::before {
  top: -7px;
}

.menu-toggle-inner::after {
  top: 7px;
}

.site-header.nav-open .menu-toggle-inner {
  background: transparent;
}

.site-header.nav-open .menu-toggle-inner::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header.nav-open .menu-toggle-inner::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

.nav-links {
  display: flex;
  flex: 0 0 auto;
  gap: 0.25rem;
  overflow-x: auto;
  justify-content: flex-end;
  margin-left: 0;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.nav-links a:hover {
  color: var(--nav-hover-color);
  border-color: var(--gold-border);
  background: var(--gold-bg);
}

.nav-links a.active {
  color: var(--nav-active-color);
  border-color: var(--gold-border);
  background: var(--gold-bg-strong);
  box-shadow: inset 0 -2px 0 var(--gold);
}

/* ——— Phone (≤767px): full-logo + hamburger drawer ——— */
@media (max-width: 767px) {
  .site-header {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
  }

  body {
    padding-top: var(--site-header-height);
  }

  .brand {
    justify-self: start;
  }

  .header-end {
    justify-self: end;
  }

  .brand img {
    max-height: 36px;
    max-width: min(220px, 72vw);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    top: var(--site-header-height);
    z-index: 110;
    background: var(--overlay-bg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
  }

  .site-header.nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links {
    position: fixed;
    z-index: 120;
    left: 0;
    right: 0;
    top: var(--site-header-height);
    max-height: min(calc(100vh - var(--site-header-height)), 520px);
    max-height: min(calc(100dvh - var(--site-header-height)), 520px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex: none;
    gap: 0.15rem;
    margin: 0;
    padding: 0.75rem 1rem 1.25rem;
    overflow-x: visible;
    overflow-y: auto;
    background: var(--drawer-bg);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 20px 50px var(--drawer-shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  }

  .site-header.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    text-align: left;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 1.05rem;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .nav-backdrop,
  .nav-links {
    transition: none;
  }
}

/* ——— Tablet / iPad (768–1023px): inline nav + full-logo ——— */
@media (min-width: 768px) and (max-width: 1023px) {
  .brand {
    justify-self: start;
  }

  .brand img {
    max-height: 40px;
    max-width: min(240px, 38vw);
  }

  .nav-links a {
    font-size: 0.84rem;
    padding: 0.42rem 0.68rem;
  }
}

/* ——— Desktop (≥1024px): roomier bar + logo ——— */
@media (min-width: 1024px) {
  .brand img {
    max-height: 44px;
    max-width: min(280px, 32vw);
  }

  .nav-links a {
    font-size: 0.88rem;
    padding: 0.45rem 0.85rem;
  }
}

/* Main */
main {
  flex: 1 0 auto;
  padding: 0.75rem 0 2rem;
}

main:has(> .pre-footer-cta:last-child) {
  padding-bottom: 0;
}

section[id],
#sample-portfolio {
  scroll-margin-top: calc(var(--site-header-height) + 1rem);
}

/* Hero */
.hero {
  position: relative;
  padding: 2.65rem 0 2.25rem;
  margin-bottom: 0.5rem;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

.eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.75rem;
}

/* Homepage hero — tagline stands out (Option 1: stronger treatment, hero only) */
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  font-size: clamp(0.78rem, 2.6vw, 1.02rem);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--eyebrow-color);
  margin: 0 0 1.25rem;
  padding: 0.65rem 1.2rem 0.65rem 1.25rem;
  line-height: 1.35;
  background: linear-gradient(
    105deg,
    var(--eyebrow-grad-start) 0%,
    var(--eyebrow-grad-end) 100%
  );
  border-left: 4px solid var(--gold);
  border-radius: 0 14px 14px 0;
  box-shadow:
    0 1px 0 var(--eyebrow-inset) inset,
    0 10px 28px var(--eyebrow-shadow);
}

@media (max-width: 380px) {
  .hero .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    padding: 0.55rem 0.9rem 0.55rem 1rem;
  }
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 5vw, 3.15rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-lead {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: var(--site-content-measure);
}

@media (min-width: 768px) {
  .hero-lead {
    font-size: 1.12rem;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

html[data-site-context="home"] main:has(> .home-hero-host:first-child) {
  padding-top: 0;
}

.home-hero-host {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

html[data-site-context="home"] .home-band {
  padding: 3rem 0;
}

html[data-site-context="home"] .home-band.preview-section,
html[data-site-context="home"] .home-band.pre-footer-cta {
  padding: 3rem 0;
}

html[data-site-context="home"] #startups-preview {
  border-top: 1px solid var(--gold-line, rgba(225, 169, 53, 0.35));
}

html[data-site-context="home"] .home-intro--tight {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  max-width: none;
}

/* Bigger, more impactful section headings on home */
html[data-site-context="home"] .section-title {
  margin-bottom: 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

html[data-site-context="home"] #proof .proof-stat-card {
  padding: 1.2rem 0.9rem 1rem;
}

html[data-site-context="home"] #proof .proof-stat-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.65rem;
}

html[data-site-context="home"] #proof .proof-stat-card__value {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}

html[data-site-context="home"] .team-avatar-strip.preview-section__visual {
  margin: 0.25rem auto 0.85rem;
}

html[data-site-context="home"] .preview-section .preview-portfolio__logos {
  margin: 0.1rem 0 0.5rem;
}

/* Home page sample-portfolio: vertical stack of rectangular logos, no box, centred */
html[data-site-context="home"] #sample-portfolio .preview-portfolio__logos {
  display: flex;
  justify-content: center;
  width: 100%;
}

html[data-site-context="home"] #sample-portfolio .portfolio-avatar-group {
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

html[data-site-context="home"] #sample-portfolio .portfolio-avatar-link {
  margin-left: 0;
}

html[data-site-context="home"] #sample-portfolio .portfolio-avatar-link:nth-child(1),
html[data-site-context="home"] #sample-portfolio .portfolio-avatar-link:nth-child(2),
html[data-site-context="home"] #sample-portfolio .portfolio-avatar-link:nth-child(3) {
  z-index: auto;
}

html[data-site-context="home"] #sample-portfolio .portfolio-avatar-img {
  width: auto;
  height: auto;
  max-width: 200px;
  max-height: 72px;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
  object-position: center left;
}

html[data-site-context="home"] #sample-portfolio .portfolio-avatar-img--logo {
  padding: 0;
  width: auto;
  height: auto;
  max-width: 200px;
  max-height: 72px;
  object-fit: contain;
  object-position: center left;
}

html[data-site-context="home"] #contact {
  scroll-margin-top: calc(var(--site-header-height) + 1rem);
}

/* Sample portfolio sub-section inside startups on homepage */
.home-portfolio-sub {
  margin-top: 2rem;
  margin-left: auto;
  margin-right: auto;
  padding-top: 1.5rem;
  width: 100%;
  max-width: 560px;
  border-top: 1px solid var(--gold-line, rgba(225, 169, 53, 0.3));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-portfolio-sub .section-kicker {
  margin-bottom: 0.35rem;
}

.home-portfolio-sub__intro {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.home-contact-email {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.home-contact-email:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.1rem;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(145deg, var(--gold) 0%, var(--btn-primary-end) 100%);
  color: var(--btn-primary-fg);
  box-shadow:
    0 6px 20px var(--btn-primary-shadow),
    inset 0 1px 0 var(--btn-primary-inset);
}

[data-theme="light"] .btn-primary {
  background: linear-gradient(145deg, #034285 0%, var(--btn-primary-end) 100%);
  color: var(--btn-primary-fg);
}

[data-theme="dark"] .btn-primary {
  background: linear-gradient(145deg, #034285 0%, var(--btn-primary-end) 100%);
  color: var(--btn-primary-fg);
}

.btn-primary:hover {
  box-shadow:
    0 10px 28px var(--btn-primary-shadow-hover),
    0 0 0 1px var(--gold-border);
}

[data-theme="dark"] .btn-primary:hover {
  box-shadow: 0 10px 28px var(--btn-primary-shadow-hover);
}

.btn-ghost {
  color: var(--ink-soft);
  border-color: var(--line);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--gold-border);
  color: var(--nav-hover-color);
  background: var(--gold-bg);
}

/* Narrative strip */
.section-narrative {
  padding: 2.25rem 0;
  border-top: none;
  border-bottom: none;
  background: var(--section-bg-gradient);
}

.section-narrative__inner {
  display: grid;
  gap: 1.15rem;
  align-items: start;
  justify-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .section-narrative__inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.5rem;
    justify-items: start;
    text-align: left;
    align-items: center;
  }
}

.narrative-visual {
  flex-shrink: 0;
  line-height: 0;
}

/* Pull-quote mark + accent (replaces illustration-style graphic) */
.narrative-visual--mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(3rem, 20vw, 4.5rem);
}

@media (min-width: 640px) {
  .narrative-visual--mark {
    align-items: flex-start;
    padding-top: 0.15rem;
  }
}

.narrative-visual--mark::before {
  content: "\201C";
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 15vw, 4.6rem);
  line-height: 0.68;
  color: var(--gold);
  letter-spacing: -0.04em;
}

.narrative-visual--mark::after {
  content: "";
  display: block;
  width: 2.65rem;
  height: 3px;
  margin-top: 0.45rem;
  background: var(--brand-gradient);
  border-radius: 2px;
  opacity: 0.88;
}

.section-narrative__quote,
.section-narrative blockquote {
  margin: 0;
  padding: 0;
  border: 0;
}

.section-narrative__quote {
  width: 100%;
  max-width: var(--site-content-measure);
  margin-inline: 0;
}

.section-narrative .quote-text {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(1rem, 3.8vw, 1.35rem);
  font-weight: 600;
  line-height: 1.48;
  color: var(--ink);
}

@media (max-width: 480px) {
  .section-narrative {
    padding: 1.65rem 0;
  }

  .section-narrative .quote-text {
    line-height: 1.45;
  }
}

@media (min-width: 1024px) {
  .section-narrative .quote-text {
    font-size: clamp(1.12rem, 1.5vw, 1.35rem);
  }
}

.section-narrative .quote-note {
  margin: 0.85rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--quote-border);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

@media (min-width: 640px) {
  .section-narrative .quote-note {
    font-size: 0.9rem;
  }
}

/* Section titles */
.section-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.section-kicker::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.45rem;
  border-radius: 999px;
  background: var(--brand-gradient);
  vertical-align: 0.1em;
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.section-title::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: var(--brand-gradient);
  opacity: 0.92;
}

.page-hero h1::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.65rem;
  border-radius: 999px;
  background: var(--brand-gradient);
  opacity: 0.9;
}

.section-intro {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: var(--site-content-measure);
}

@media (min-width: 1024px) {
  .section-intro {
    font-size: 1.02rem;
  }
}

/* M3 (legacy; startups page uses .preview-section#m3 for spacing) */
#m3:not(.preview-section) {
  padding: 2.75rem 0;
}

.m3-section-head {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
  align-items: start;
  justify-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .m3-section-head {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.35rem;
    justify-items: start;
    text-align: left;
    align-items: center;
  }
}

.m3-section-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
}

.m3-section-logo {
  height: clamp(3.35rem, 10vw, 4.25rem);
  width: auto;
  max-width: min(100%, 280px);
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 10px var(--logo-drop-shadow))
    drop-shadow(0 1px 2px var(--logo-drop-shadow-2));
}

@media (min-width: 640px) {
  .m3-section-logo {
    height: clamp(3.75rem, 5.5vw, 4.85rem);
    max-width: 320px;
  }
}

.m3-section-head__text {
  min-width: 0;
}

.m3-section-head__text .section-kicker {
  margin-bottom: 0.5rem;
}

.m3-section-head__text .section-title {
  margin-bottom: 0.75rem;
}

.m3-section-head__text .section-intro {
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
}

@media (min-width: 640px) {
  .m3-section-head__text .section-intro {
    margin-left: 0;
    margin-right: 0;
  }
}

.m3-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .m3-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.m3-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.15rem;
  box-shadow: 0 1px 0 var(--card-inset) inset;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.m3-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-2px);
  box-shadow:
    var(--card-shadow),
    0 0 0 1px var(--gold-bg);
}

.m3-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.m3-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.m3-icon {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
  opacity: 0.9;
}

/* Proof band */
#proof {
  padding: var(--site-section-space) 0;
  background: linear-gradient(
    180deg,
    var(--surface) 0%,
    var(--section-bg-warm) 48%,
    var(--bg) 100%
  );
  border-top: none;
  border-bottom: none;
}

.proof-stats {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .proof-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.proof-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.85rem 1.25rem 1.5rem;
  box-shadow: var(--card-shadow);
  min-width: 0;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.proof-stat-card:hover {
  border-color: var(--gold-border);
  box-shadow:
    var(--card-shadow),
    0 0 0 1px var(--gold-bg);
}

.proof-stat-card__icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--gold);
}

.proof-stat-card__icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.proof-stat-card__value {
  margin: 0 0 0.4rem;
  font-size: clamp(1.5rem, 3.8vw, 2rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.proof-stat-card__label {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.35;
}

.proof-stat-card__accent {
  display: block;
  width: 2.75rem;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
  margin-top: auto;
}

.preview-section {
  padding: var(--site-section-space) 0;
}

.preview-section--alt {
  background: var(--section-bg-gradient);
  border-top: none;
  border-bottom: none;
}

.preview-section .section-intro {
  margin-bottom: 1.1rem;
}

/* Section content column + centered visuals / CTAs */
.preview-section .container,
.pre-footer-cta .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.preview-section .container > a.btn,
.pre-footer-cta .container > a.btn,
.pre-footer-cta .container > .hero-actions {
  align-self: center;
  margin-top: 0.2rem;
}

.preview-section__visual {
  align-self: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0.35rem 0 1.25rem;
}

.preview-section .preview-portfolio__logos {
  margin: 0.15rem 0 1.35rem;
}

.preview-feature-list {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.2rem;
}

.preview-feature-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  padding: 0.7rem 0.8rem 0.7rem 0.95rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  background: linear-gradient(90deg, var(--section-bg-warm) 0%, var(--feature-list-grad-end) 32%);
}

/* Overlapping avatar row (matches shadcn / Origin UI stacked avatars pattern) */
.team-avatar-strip {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  width: 100%;
  max-width: 100%;
}

.team-avatar-strip.preview-section__visual {
  margin: 0.5rem auto 1.35rem;
}

.team-avatar-group {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  flex-shrink: 0;
}

.team-avatar-link {
  display: block;
  flex-shrink: 0;
  margin-left: -1.3rem;
  position: relative;
  line-height: 0;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-avatar-link:first-child {
  margin-left: 0;
}

.team-avatar-link:nth-child(1) {
  z-index: 4;
}

.team-avatar-link:nth-child(2) {
  z-index: 3;
}

.team-avatar-link:nth-child(3) {
  z-index: 2;
}

.team-avatar-link:nth-child(4) {
  z-index: 1;
}

.team-avatar-link:hover {
  z-index: 10;
  transform: translateY(-4px) scale(1.04);
}

.team-avatar-img {
  display: block;
  width: 84px;
  height: 84px;
  max-width: 84px;
  max-height: 84px;
  border-radius: 9999px;
  object-fit: cover;
  object-position: center 35%;
  border: none;
  background: var(--bg-elevated);
  box-sizing: border-box;
  box-shadow: 0 4px 14px var(--avatar-shadow);
}

.team-strip-btn {
  display: inline-flex;
  min-width: 9rem;
  justify-content: center;
  flex-shrink: 0;
}

.preview-portfolio {
  margin: 0 0 0.35rem;
  width: 100%;
}

.preview-portfolio__kicker {
  margin: 0 0 0.35rem;
}

.preview-portfolio__intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  max-width: var(--site-content-measure);
}

/* Team */
#team {
  padding: 2rem 0 2.75rem;
}

.profile-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  max-width: 80rem;
  margin: 0 auto;
  min-width: 0;
  align-items: stretch;
}

.profile-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  scroll-margin-top: calc(var(--site-header-height) + 1.25rem);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 3.5vw, 2rem) clamp(1.15rem, 3vw, 1.5rem);
  box-shadow: var(--card-shadow);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.profile-card:hover {
  border-color: var(--gold-border);
  box-shadow:
    var(--card-shadow),
    0 0 0 1px var(--gold-bg);
}

.profile-card__layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  flex: 1;
  width: 100%;
}

.profile-card__media {
  flex-shrink: 0;
}

.profile-card__media .team-photo {
  position: relative;
  margin: 0 auto;
  width: clamp(6.75rem, 20vw, 8.75rem);
  height: clamp(6.75rem, 20vw, 8.75rem);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, var(--photo-placeholder-start), var(--photo-placeholder-end));
  border: 3px solid var(--photo-border);
  box-shadow: 0 4px 18px var(--photo-shadow);
}

.profile-card__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.profile-card__head {
  width: 100%;
  margin-bottom: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.profile-card__name {
  margin: 0 0 0.45rem;
  font-size: clamp(1.2rem, 3.5vw, 1.45rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.profile-card__title,
.team-role {
  margin: 0;
  font-size: clamp(0.68rem, 2vw, 0.75rem);
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.45;
}

.profile-card__bio,
.team-bio {
  margin: 1rem 0 0;
  flex: 1;
  font-size: clamp(0.85rem, 2.2vw, 0.92rem);
  color: var(--ink-soft);
  line-height: 1.6;
}

.profile-card__social {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.15rem;
  width: 100%;
}

.profile-card__social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--social-bg);
  color: var(--on-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.profile-card__social-link svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.profile-card__social-link:hover {
  transform: scale(1.06);
  background: var(--accent-hover);
}

.team-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 30%;
}

.profile-card.team-card--highlight {
  border-color: var(--highlight-border);
  box-shadow: 0 0 0 3px var(--highlight-ring), var(--card-shadow);
}

.team-photo.no-photo .team-photo-placeholder {
  display: flex;
}

.team-photo:not(.no-photo) .team-photo-placeholder {
  display: none;
}

.team-photo-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}

@media (min-width: 640px) {
  .profile-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .profile-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

@media (min-width: 1200px) {
  .profile-cards {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.35rem;
  }
}

@media (min-width: 1024px) {
  .profile-card {
    padding: 1.75rem 1.25rem 1.65rem;
  }

  .profile-card__name {
    font-size: 1.35rem;
  }

  .profile-card__bio,
  .team-bio {
    font-size: 0.88rem;
  }
}

/* Contact */
#contact {
  padding: 2.5rem 0 1rem;
}

.contact-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.2rem;
  box-shadow: var(--card-shadow);
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-gradient);
}

.contact-card__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.contact-card__logo {
  height: 1.85rem;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

@media (min-width: 480px) {
  .contact-card__logo {
    height: 2rem;
  }
}

.contact-card .form-title {
  margin: 0;
  font-size: 1.15rem;
  color: var(--ink);
}

form {
  display: grid;
  gap: 0.85rem;
}

label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.required-mark {
  color: var(--gold);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--ink);
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: 0.95rem;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--input-focus-ring);
  border-color: var(--input-focus-border);
  background: var(--input-focus-bg);
  box-shadow: 0 0 0 3px var(--gold-bg);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.muted {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Page hero (subpages) */
.page-hero {
  padding: 2rem 0 1.5rem;
}

.page-hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.6rem, 4.5vw, 2.85rem);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: var(--site-content-measure);
  font-size: 0.98rem;
}

@media (min-width: 768px) {
  .page-hero {
    padding: 2.5rem 0 2rem;
  }

  .page-hero p {
    font-size: 1.05rem;
  }
}

/* .subpage-main on HTML = marker for subpage-only rules (e.g. contact card width) */

.content-block {
  padding: 0 0 2rem;
}

.content-block h2 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.1rem;
  color: var(--ink);
}

.content-block p,
.content-block li {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.content-block ul {
  padding-left: 1.1rem;
}

.simple-card-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

@media (min-width: 720px) {
  .simple-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
    align-items: stretch;
  }
}

.simple-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem;
  margin-bottom: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 0 var(--card-inset) inset;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.simple-card:hover {
  border-color: var(--gold-border);
  box-shadow:
    0 1px 0 var(--card-inset) inset,
    0 0 0 1px var(--gold-bg);
}

.simple-card h3 {
  color: var(--navy);
}

.simple-card-grid .simple-card {
  margin-bottom: 0;
}

.simple-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
}

.simple-card p {
  margin: 0;
  font-size: 0.9rem;
  flex: 1;
}

.portfolio-line {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  padding: 0.35rem 0.5rem 0.5rem;
  scrollbar-width: thin;
}

.portfolio-avatar-group {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  flex-shrink: 0;
}

.portfolio-avatar-link {
  display: block;
  flex-shrink: 0;
  margin-left: -1.25rem;
  position: relative;
  line-height: 0;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-avatar-link:first-child {
  margin-left: 0;
}

.portfolio-avatar-link:nth-child(1) {
  z-index: 3;
}

.portfolio-avatar-link:nth-child(2) {
  z-index: 2;
}

.portfolio-avatar-link:nth-child(3) {
  z-index: 1;
}

.portfolio-avatar-link:hover {
  z-index: 10;
  transform: translateY(-4px) scale(1.04);
}

.portfolio-avatar-img {
  display: block;
  width: 88px;
  height: 88px;
  max-width: 88px;
  max-height: 88px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
  border: 3px solid var(--bg);
  background: var(--bg-elevated);
  box-sizing: border-box;
  box-shadow: 0 4px 16px var(--avatar-shadow);
}

.portfolio-avatar-img--logo {
  object-fit: cover;
  object-position: center;
  padding: 0;
}

.portfolio-line__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 720px) {
  .simple-card p {
    font-size: 0.93rem;
  }
}

/* Contact form — centered rail (contact page only uses .contact-layout) */
.subpage-main .contact-card {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

.subpage-main .content-block {
  display: block;
  width: 100%;
}

.subpage-main .content-block--centered {
  display: flex;
  justify-content: center;
  width: 100%;
}

.contact-layout {
  width: 100%;
  max-width: min(42rem, 100%);
  margin-inline: auto;
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Contact page — hero + form block centered in the content rail */
html[data-site-context="contact"] main .container.subpage-main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 1024px) {
  html[data-site-context="contact"] main .container.subpage-main {
    margin-left: auto;
    margin-right: auto;
  }
}

html[data-site-context="contact"] .page-hero {
  width: 100%;
  text-align: center;
  padding-bottom: 1.25rem;
}

html[data-site-context="contact"] .page-hero h1::after {
  display: none;
}

html[data-site-context="contact"] .page-hero p {
  margin-inline: auto;
}

html[data-site-context="contact"] .contact-layout {
  align-items: stretch;
}

html[data-site-context="contact"] .role-choice--audience {
  width: 100%;
  margin: 0 auto 1.25rem;
}

html[data-site-context="contact"] .role-choice {
  width: 100%;
  max-width: 100%;
}

.contact-layout .contact-card {
  padding: 1.65rem 1.5rem;
}

.contact-layout .contact-card .form-title {
  font-size: 1.28rem;
}

.contact-layout .contact-card form {
  gap: 1rem;
}

.contact-layout .contact-card label {
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.contact-layout .contact-card input,
.contact-layout .contact-card textarea {
  padding: 0.85rem 0.95rem;
  font-size: 1rem;
}

.contact-layout .contact-card textarea {
  min-height: 150px;
}

.contact-layout .contact-card .btn-primary {
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
}

#sample-portfolio,
#m3,
#startups-overview,
#investors-overview,
#message-form {
  scroll-margin-top: calc(var(--site-header-height) + 1.25rem);
}

/* Subpage section flow (startups and similar layouts) */
.subpage-flow .subpage-main {
  padding-bottom: 0;
}

.subpage-flow .page-hero {
  padding-bottom: 1.75rem;
}

.subpage-flow .page-hero .hero-actions {
  margin-top: var(--hero-actions-offset);
}

@media (min-width: 768px) {
  .subpage-flow .page-hero {
    padding-bottom: 2rem;
  }

  .subpage-flow .page-hero .hero-actions {
    margin-top: 1.25rem;
  }
}

.subpage-flow .preview-section .section-title {
  margin-bottom: 0.65rem;
}

.subpage-flow .preview-section .section-intro {
  max-width: var(--site-content-measure);
  font-size: 0.95rem;
  line-height: 1.6;
}

.subpage-flow .preview-section .simple-card-grid {
  margin-top: 0.15rem;
}

.subpage-flow .preview-section .simple-card {
  margin-bottom: 0;
}

.subpage-flow .preview-section#m3 .m3-section-head {
  margin-bottom: 1.35rem;
}

.subpage-flow #sample-portfolio .portfolio-gallery-intro {
  margin-bottom: 0.85rem;
}

.subpage-flow #sample-portfolio .portfolio-gallery-host {
  margin-bottom: 0;
}

#sample-portfolio .portfolio-gallery-host.preview-section__visual {
  margin-top: 0.15rem;
  margin-bottom: 0.5rem;
}

/* Startups & Investors — mobile alignment with home page */
@media (max-width: 767px) {
  .subpage-flow .subpage-main {
    padding-bottom: 0;
  }

  .subpage-flow .page-hero {
    padding: 1.15rem 0 0.75rem;
  }

  .subpage-flow .page-hero .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    margin-bottom: 0.45rem;
  }

  .subpage-flow .page-hero h1 {
    font-size: clamp(1.32rem, 5.8vw, 1.65rem);
    line-height: 1.2;
    margin-bottom: 0.5rem;
  }

  .subpage-flow .page-hero p {
    font-size: 0.88rem;
    line-height: 1.55;
    max-width: 100%;
  }

  .subpage-flow .page-hero .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .subpage-flow .page-hero .hero-actions .btn {
    width: 100%;
    font-size: 0.86rem;
    padding: 0.68rem 0.95rem;
    min-height: 44px;
  }

  .subpage-flow .preview-section {
    padding: 1.35rem 0;
  }

  .subpage-flow .preview-section .section-kicker {
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    margin-bottom: 0.4rem;
  }

  .subpage-flow .preview-section .section-title {
    font-size: clamp(1.08rem, 4.6vw, 1.28rem);
    line-height: 1.28;
    margin-bottom: 0.45rem;
  }

  .subpage-flow .preview-section .section-intro,
  .subpage-flow .portfolio-gallery-intro {
    font-size: 0.86rem;
    line-height: 1.55;
    margin-bottom: 0.85rem;
    max-width: 100%;
  }

  .subpage-flow .simple-card-grid {
    gap: 0.7rem;
    margin-top: 0;
  }

  .subpage-flow .simple-card {
    padding: 0.88rem 0.82rem;
    border-radius: 12px;
  }

  .subpage-flow .simple-card h3 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
  }

  .subpage-flow .simple-card p {
    font-size: 0.84rem;
    line-height: 1.52;
  }

  .subpage-flow .m3-section-head {
    gap: 0.75rem;
    margin-bottom: 0.85rem;
  }

  .subpage-flow .m3-section-logo {
    height: 2.65rem;
    max-width: 11rem;
  }

  .subpage-flow .m3-section-head__text .section-title {
    font-size: clamp(1.08rem, 4.6vw, 1.28rem);
  }

  .subpage-flow .m3-section-head__text .section-intro {
    font-size: 0.86rem;
  }

  .subpage-flow .m3-grid {
    gap: 0.7rem;
  }

  .subpage-flow .m3-card {
    padding: 0.88rem 0.82rem;
    border-radius: 12px;
  }

  .subpage-flow .m3-card h3 {
    font-size: 0.92rem;
    margin-bottom: 0.35rem;
  }

  .subpage-flow .m3-card p {
    font-size: 0.84rem;
    line-height: 1.52;
  }

  .subpage-flow .m3-icon {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
  }

  .subpage-flow #m3.preview-section {
    padding: 1.35rem 0;
  }

  .subpage-flow .portfolio-gallery-host {
    min-height: min(26vh, 176px);
    margin: 0;
  }

  .subpage-flow .pre-footer-cta {
    padding: 1.3rem 0 0.95rem;
  }

  .subpage-flow .pre-footer-cta .section-title {
    font-size: clamp(1.05rem, 4.4vw, 1.22rem);
    line-height: 1.28;
  }

  .subpage-flow .pre-footer-cta .section-intro {
    font-size: 0.86rem;
    margin-bottom: 0.9rem;
  }

  .subpage-flow .pre-footer-cta .btn {
    width: 100%;
    max-width: 18rem;
    font-size: 0.86rem;
  }
}

@media (max-width: 479px) {
  .subpage-flow .page-hero h1 {
    font-size: 1.28rem;
  }

  .subpage-flow .preview-section .section-title,
  .subpage-flow .m3-section-head__text .section-title {
    font-size: 1.12rem;
  }
}

.portfolio-gallery-intro {
  margin-bottom: 1rem;
}

.portfolio-gallery-host {
  width: 100%;
  margin: 0.5rem 0 1.5rem;
  min-height: min(36vh, 260px);
  position: relative;
  overflow: hidden;
}

.portfolio-gallery-host.preview-section__visual .m3-portfolio-gallery-root {
  width: 100%;
  max-width: min(56rem, 100%);
  margin-inline: auto;
}

@media (max-width: 767px) {
  .portfolio-gallery-host {
    margin-inline: 0;
    min-height: 200px;
  }
}

.subpage-main--submitted {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items: center;
  min-height: min(calc(100dvh - var(--site-header-height) - 10rem), 640px);
  padding: 1.5rem 0 2.5rem;
  box-sizing: border-box;
}

.contact-layout--submitted {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

.contact-layout--submitted .content-block--centered {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-card--submitted {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: min(100%, 42rem);
  margin-inline: auto;
  text-align: center;
  padding: clamp(1.75rem, 6vw, 2.75rem) clamp(1.25rem, 5vw, 2rem);
  box-sizing: border-box;
}

.submission-message {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
}

.submission-message-body {
  margin: 0 auto;
  max-width: 22em;
  text-align: center;
  color: var(--ink-soft);
  font-size: clamp(0.9375rem, 2.75vw, 1.0625rem);
  line-height: 1.6;
}

.submission-message-body strong {
  display: block;
  margin: 0 auto 0.5rem;
  color: var(--ink);
  font-size: clamp(1.0625rem, 4.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 767px) {
  .subpage-main--submitted {
    min-height: min(calc(100dvh - var(--site-header-height) - 8rem), 520px);
    padding: 1.25rem 0 2rem;
  }

  .contact-card--submitted {
    max-width: 100%;
    padding: clamp(1.5rem, 8vw, 2rem) clamp(1rem, 6vw, 1.5rem);
  }

  .submission-message-body {
    max-width: 18em;
  }
}

.role-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0;
}

.role-choice--audience {
  margin: 0 auto 1.25rem;
  width: 100%;
}

.role-choice__option {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--ink-soft);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.role-choice__option:hover {
  border-color: var(--role-hover-border);
  color: var(--ink);
}

.role-choice__option.active {
  border-color: var(--gold);
  background: var(--gold-bg-strong);
  color: var(--role-active-color);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.role-guidance {
  margin: 0 0 1rem;
}

.form-support-copy {
  margin: 0 0 1rem;
}

.role-fieldset {
  margin-top: 0.1rem;
}

.role-fieldset--hidden {
  display: none;
}

.role-label {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.role-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.role-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  cursor: pointer;
}

.role-radio input {
  accent-color: var(--accent);
}

/* Contact CTA — full-width section band, flush above footer */
.pre-footer-cta {
  padding: var(--site-section-space) 0 1.15rem;
  margin: 0;
  background: var(--section-bg-gradient);
  border-top: 1px solid var(--gold-line);
  border-bottom: none;
}

.pre-footer-cta .section-kicker {
  margin-bottom: 0.5rem;
}

.pre-footer-cta .section-title {
  margin-bottom: 0.65rem;
}

.pre-footer-cta .section-intro {
  margin-bottom: 1.25rem;
  max-width: var(--site-content-measure);
}

.pre-footer-cta .hero-actions {
  margin-top: 0.15rem;
}

.pre-footer-cta__card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.25rem;
  box-shadow: var(--card-shadow);
}

.pre-footer-cta__card .section-kicker {
  margin-bottom: 0.45rem;
}

.pre-footer-cta__card .section-title {
  margin-bottom: 0.55rem;
  font-size: clamp(1.15rem, 4vw, 1.35rem);
}

.pre-footer-cta__card .section-intro {
  margin-bottom: 1.1rem;
  font-size: 0.95rem;
}

/* Legacy h2/p inside card (if any page still uses them) */
.pre-footer-cta h2:not(.section-title) {
  margin: 0 0 0.5rem;
  font-size: clamp(1.15rem, 4vw, 1.35rem);
  font-weight: 700;
  color: var(--ink);
}

.pre-footer-cta p:not(.section-intro):not(.section-kicker) {
  margin: 0 0 0.95rem;
  color: var(--muted);
  max-width: var(--site-content-measure);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Footer */
.site-header,
.site-footer {
  font-size: 1rem;
  line-height: 1.5;
}

.site-footer {
  flex-shrink: 0;
  margin-top: 2rem;
  padding: 1.25rem 0 1.75rem;
  border-top: 1px solid var(--gold-line);
  width: 100%;
  background: linear-gradient(180deg, var(--section-bg-cream) 0%, transparent 100%);
}

.site-footer .footer-inner {
  width: 100%;
}

main + .site-footer {
  margin-top: 0;
  padding-top: 1.15rem;
}

.footer-start {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 0 1 auto;
  min-width: 0;
}

.footer-brand {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  line-height: 0;
}

.footer-logo-mark {
  height: 2rem;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

@media (min-width: 480px) {
  .footer-logo-mark {
    height: 2.25rem;
  }
}

.footer-about__text .footer-tagline {
  margin-top: 0.35rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  width: 100%;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  flex-shrink: 0;
}

.footer-inner p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-tagline {
  font-size: 0.78rem !important;
  color: var(--muted);
  opacity: 0.85;
}

.footer-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.footer-nav a:hover {
  color: var(--gold);
}

@media (min-width: 768px) {
  :root {
    --site-chrome-inset: clamp(0.75rem, 1.5vw, 1.125rem);
  }

  .header-inner {
    padding: 0.65rem 0;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
  }

  .footer-start {
    align-items: center;
  }

  .footer-nav {
    margin-left: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.75rem;
  }

  main {
    padding: 1rem 0 2rem;
  }

  main:has(> .pre-footer-cta:last-child) {
    padding-bottom: 0;
  }

  .hero {
    padding: 3rem 0 2.75rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 3.5rem 0 3.25rem;
  }
}

/* ——— Mobile & small-screen responsiveness (all pages) ——— */
@media (max-width: 767px) {
  main {
    padding: 0.5rem 0 2.25rem;
  }

  main:has(> .pre-footer-cta:last-child) {
    padding-bottom: 0;
  }

  main .container,
  main .container--wide,
  main .container.container--wide {
    width: 100%;
    max-width: 100%;
    padding-inline: var(--site-content-gutter);
  }

  .site-header .container--wide,
  .site-footer .container--wide {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  .hero {
    padding: 1.75rem 0 1.65rem;
  }

  .hero h1 {
    font-size: clamp(1.55rem, 7vw, 2.15rem);
    line-height: 1.14;
  }

  .hero-lead,
  .page-hero p,
  .section-intro {
    max-width: 100%;
  }

  .page-hero {
    padding: 1.35rem 0 1rem;
  }

  .page-hero h1 {
    font-size: clamp(1.45rem, 6.5vw, 2rem);
    line-height: 1.18;
  }

  .preview-section {
    padding: 1.65rem 0;
  }

  .subpage-flow .preview-section .section-intro {
    max-width: 100%;
  }

  #proof {
    padding: 1.85rem 0;
  }

  #team {
    padding: 1.5rem 0 2rem;
  }

  .section-title {
    font-size: clamp(1.2rem, 5vw, 1.45rem);
  }

  .section-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .m3-section-head {
    margin-bottom: 1.15rem;
  }

  .m3-card {
    padding: 1.05rem 1rem;
  }

  .simple-card {
    padding: 1rem;
  }

  .pre-footer-cta {
    padding: 1.5rem 0 1rem;
  }

  main + .site-footer {
    padding-top: 1rem;
  }

  .pre-footer-cta .section-intro,
  .pre-footer-cta p:not(.section-intro):not(.section-kicker) {
    max-width: 100%;
  }

  .pre-footer-cta__card {
    padding: 1.15rem 1rem;
  }

  .site-footer {
    margin-top: 1.25rem;
    padding: 1.25rem 0 1.75rem;
  }

  .footer-about {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .contact-layout .contact-card {
    padding: 1.2rem 1rem;
  }

  .contact-card__head {
    flex-wrap: wrap;
  }

  .role-choice__option {
    font-size: 0.86rem;
    padding: 0.7rem 0.55rem;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .portfolio-gallery-host {
    margin-inline: 0;
    padding-inline: 0;
  }

  .team-avatar-img {
    width: 72px;
    height: 72px;
    max-width: 72px;
    max-height: 72px;
  }

  .team-avatar-link {
    margin-left: -1.1rem;
  }

  .portfolio-avatar-img {
    width: 80px;
    height: 80px;
    max-width: 80px;
    max-height: 80px;
    border-radius: 12px;
  }

  .portfolio-avatar-link {
    margin-left: -1.1rem;
  }

  .profile-cards {
    gap: 1.1rem;
  }

  .profile-card__title,
  .team-role {
    letter-spacing: 0.05em;
  }
}

@media (max-width: 479px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 44px;
  }

  .btn {
    min-height: 44px;
  }

  .team-avatar-strip {
    gap: 1rem;
  }

  .role-choice {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .profile-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Prevent horizontal scroll from carousel / wide content */
main,
.subpage-flow {
  max-width: 100%;
  overflow-x: clip;
}

.portfolio-gallery-host,
.m3-portfolio-gallery-root {
  max-width: 100%;
  overflow-x: clip;
}

/* Homepage floating section nav */
html[data-site-context="home"] .home-float-nav {
  --float-nav-toggle-width: 2.85rem;
  --float-nav-panel-width: min(16.75rem, calc(100vw - 3.5rem));
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 95;
  display: flex;
  align-items: stretch;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease,
    transform 0.28s ease;
}

html[data-site-context="home"] .home-float-nav.is-visible {
  opacity: 1;
  visibility: visible;
}

html[data-site-context="home"] .home-float-nav:not(.is-visible) .home-float-nav__panel,
html[data-site-context="home"] .home-float-nav:not(.is-visible) .home-float-nav__toggle {
  pointer-events: none;
}

html[data-site-context="home"] .home-float-nav__panel,
html[data-site-context="home"] .home-float-nav__toggle {
  pointer-events: auto;
}

html[data-site-context="home"] .home-float-nav__panel {
  width: var(--float-nav-panel-width);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-right: none;
  border-radius: 16px 0 0 16px;
  box-shadow:
    -8px 0 32px rgba(20, 18, 16, 0.08),
    0 1px 0 var(--card-inset) inset;
  padding: 1rem 0.75rem 1rem 0.95rem;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.28s ease,
    opacity 0.28s ease,
    visibility 0.28s ease;
}

html[data-site-context="home"] .home-float-nav.is-open .home-float-nav__panel {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

html[data-site-context="home"] .home-float-nav__links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

html[data-site-context="home"] .home-float-nav__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 0.8rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

html[data-site-context="home"] .home-float-nav__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--navy);
}

html[data-site-context="home"] .home-float-nav__icon svg {
  width: 1rem;
  height: 1rem;
}

html[data-site-context="home"] .home-float-nav__link:hover {
  color: var(--ink);
  background: var(--gold-bg);
  border-color: var(--gold-border);
}

html[data-site-context="home"] .home-float-nav__link.is-active {
  color: var(--nav-active-color);
  background: var(--gold-bg-strong);
  border-color: var(--gold-border);
  box-shadow: inset 3px 0 0 var(--gold);
}

html[data-site-context="home"] .home-float-nav__toggle {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--float-nav-toggle-width);
  min-height: 5.5rem;
  margin: 0;
  padding: 0.85rem 0;
  border: none;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(180deg, #034285 0%, #0456a8 100%);
  color: #fff;
  cursor: pointer;
  box-shadow:
    -4px 0 20px rgba(3, 66, 133, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

html[data-site-context="home"] .home-float-nav__toggle:hover {
  box-shadow:
    -6px 0 24px rgba(3, 66, 133, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

html[data-site-context="home"] .home-float-nav__toggle:focus-visible {
  outline: 2px solid var(--focus-outline);
  outline-offset: 2px;
}

html[data-site-context="home"] .home-float-nav__chevron {
  display: inline-flex;
  transition: transform 0.28s ease;
}

html[data-site-context="home"] .home-float-nav__chevron svg {
  width: 1.25rem;
  height: 1.25rem;
}

html[data-site-context="home"] .home-float-nav.is-open .home-float-nav__chevron {
  transform: rotate(180deg);
}

html[data-theme="dark"][data-site-context="home"] .home-float-nav__panel {
  box-shadow:
    -10px 0 36px rgba(8, 12, 20, 0.35),
    0 1px 0 var(--card-inset) inset;
}

html[data-theme="dark"][data-site-context="home"] .home-float-nav__toggle {
  background: linear-gradient(180deg, #034285 0%, #0456a8 100%);
  box-shadow:
    -4px 0 22px rgba(3, 66, 133, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

@media (max-width: 767px) {
  html[data-site-context="home"] .home-float-nav {
    --float-nav-toggle-width: 1.85rem;
    --float-nav-panel-width: min(10.75rem, calc(100vw - 3.25rem));
    top: auto;
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    transform: translateX(0.35rem);
  }

  html[data-site-context="home"] .home-float-nav:not(.is-visible) {
    transform: translateX(120%);
  }

  html[data-site-context="home"] .home-float-nav.is-visible {
    transform: translateX(0.35rem);
  }

  html[data-site-context="home"] .home-float-nav__panel {
    padding: 0.65rem 0.5rem 0.65rem 0.65rem;
    border-radius: 12px 0 0 12px;
  }

  html[data-site-context="home"] .home-float-nav__toggle {
    min-height: 3.1rem;
    padding: 0.5rem 0;
    border-radius: 10px 0 0 10px;
  }

  html[data-site-context="home"] .home-float-nav__chevron svg {
    width: 1rem;
    height: 1rem;
  }

  html[data-site-context="home"] .home-float-nav__links {
    gap: 0.3rem;
  }

  html[data-site-context="home"] .home-float-nav__link {
    gap: 0.5rem;
    font-size: 0.74rem;
    padding: 0.48rem 0.5rem;
    border-radius: 10px;
  }

  html[data-site-context="home"] .home-float-nav__icon {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 8px;
  }

  html[data-site-context="home"] .home-float-nav__icon svg {
    width: 0.85rem;
    height: 0.85rem;
  }

  body.home-float-nav-open {
    overflow: hidden;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  html[data-site-context="home"] .home-float-nav {
    --float-nav-panel-width: min(14.75rem, calc(100vw - 4rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-site-context="home"] .home-float-nav__panel,
  html[data-site-context="home"] .home-float-nav__chevron {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
