:root {
  --color-navy: #1b2732;
  --color-blue: #365062;
  --color-pink: #ed6875;
  --color-cream: #f4efe7;
  --color-stone: #eef2f5;
  --color-text: #1a1f24;
  --color-muted: #5f6c7a;
  --color-white: #ffffff;
  --color-storm-blue-translucent: #f6f5f9;
  --shadow-soft: 0 24px 48px rgba(27, 39, 50, 0.12);
  --shadow-card: 0 16px 32px rgba(27, 39, 50, 0.1);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-serif: "Playfair Display", "Times New Roman", serif;
  /* Interface family fallbacks: uses Inter/Source Sans if Interface not available */
  --font-interface: "Interface", "Inter", "Source Sans 3", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-interface);
  font-weight: 400;
  letter-spacing: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
}

a {
  color: inherit;
}

a:hover,
a:focus {
  color: var(--color-pink);
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-interface);
  font-weight: 800; /* Interface XBold */
  letter-spacing: -0.07em; /* Approx. -70 tracking */
  color: var(--color-blue);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

.eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-pink);
  margin-bottom: 1rem;
}

.layout-width {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.narrow {
  width: min(860px, 92vw);
}

.section {
  /* Reduced vertical spacing */
  padding: clamp(40px, 8vw, 80px) 0;
}

.section-header {
  max-width: 720px;
  margin-bottom: clamp(32px, 6vw, 48px);
}

.btn,
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: none;
  background: var(--color-blue);
  color: var(--color-white);
  padding: 0.85rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover,
.btn:focus,
.header-cta:hover,
.header-cta:focus {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(54, 80, 98, 0.22);
  background: var(--color-pink);
  color: var(--color-white);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  color: var(--color-white);
  box-shadow: none;
}

.btn-outline:hover,
.btn-outline:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-storm-blue-translucent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(54, 80, 98, 0.1);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.site-header.is-hidden {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0;
}

.header-logo img {
  width: clamp(160px, 20vw, 260px);
  height: auto;
}

.header-cta {
  position: static;
  margin-left: auto;
  transform: none;
}

.hero {
  position: relative;
  min-height: clamp(650px, 90vh, 720px);
  display: flex;
  align-items: center;
  color: var(--color-white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  filter: saturate(0.9);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 39, 50, 0.2) 0%, rgba(27, 39, 50, 0.9) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  /* Reduced hero vertical padding */
  padding: clamp(64px, 12vw, 160px) 0;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  color: var(--color-white);
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Hero background video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center; /* Default: slightly right of center */
  opacity: 1;
  transition: none; /* Remove transition to prevent jumping */
}

/* Typing caret effect for hero animated text */
.hero-animated {
  display: inline;
  white-space: pre-wrap;
}
.hero-animated::after {
  content: '';
  display: inline-block;
  width: 0.08em;
  height: 0.9em; /* Small caret height, not full block */
  background: currentColor;
  margin-left: 0.05em;
  animation: caret-blink 0.9s steps(1, end) infinite;
  vertical-align: -0.1em;
}

@keyframes caret-blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: currentColor; }
}

.hero-subline {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.82);
}

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

.founders-message {
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  margin-top: -80px;
  position: relative;
  z-index: 1;
  /* Reduced vertical padding */
  padding: clamp(48px, 10vw, 96px) 0;
}

.founders-message h2 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  color: var(--color-blue);
}

.meet-founders {
  background: var(--color-storm-blue-translucent);
}

.founders-layout {
  display: block;
}

.founders-hero {
  margin-bottom: clamp(24px, 4vw, 40px);
}

.founders-hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.founders-bios {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.5vw, 24px);
  background: var(--color-white);
  border-left: 4px solid var(--color-pink);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-card);
}

.founder-bio {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.founder-bio + .founder-bio {
  border-top: 1px solid rgba(27, 39, 50, 0.12);
  padding-top: clamp(16px, 2.5vw, 24px);
  margin-top: clamp(16px, 2.5vw, 24px);
}

.founder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 48px);
}

.founder-card {
  background: var(--color-stone);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 48px);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: clamp(20px, 3vw, 28px);
  grid-template-columns: minmax(160px, 240px) 1fr;
  align-items: start;
}

.founder-media {
  width: 100%;
  padding-top: 120%;
  border-radius: var(--radius-md);
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.7);
}


.founder-copy h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.founder-copy p {
  color: var(--color-muted);
}

.founder-copy .short-copy {
  display: none;
}

.founders-sign-off {
  font-weight: 600;
  margin-top: 1.5rem;
  color: var(--color-blue);
}

/* Founders: contact row (email + LinkedIn) */
.founder-contact {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap; /* Allow items to wrap on small widths */
}
.founder-contact a {
  color: var(--color-blue);
  font-weight: 600;
  text-decoration: none;
  min-width: 0;              /* Allow flex child to shrink and wrap */
  overflow-wrap: anywhere;   /* Break long email addresses */
  word-break: break-word;
}
.founder-contact a:hover,
.founder-contact a:focus {
  color: var(--color-pink);
}
.founder-contact .social {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--color-stone);
  color: var(--color-blue);
}
.founder-contact .social:hover,
.founder-contact .social:focus {
  background: var(--color-blue);
  color: var(--color-white);
}
.founder-contact .social svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.expanding-opportunity {
  background: var(--color-white);
  text-align: left;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  /* Match height with Our Purpose */
  min-height: clamp(360px, 42vh, 520px);
  display: flex;
  align-items: center;
}
.expanding-opportunity h2 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
}

.expanding-opportunity .micro-copy {
  margin-top: 2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: rgba(27, 39, 50, 0.55);
}

/* Match paragraph size with Our Purpose */




.our-purpose {
  background: var(--color-blue);
  color: var(--color-white);
  text-align: left;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  /* Match height with Expanding Opportunity */
  min-height: clamp(360px, 42vh, 520px);
  display: flex;
  align-items: center;
}

.our-purpose h2 {
  color: var(--color-white);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
}



.cta-panel {
  background: var(--color-storm-blue-translucent)
}

/* Unify CTA heading size with other sections */
.cta-panel h2 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
}

.cta-panel .section-header {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  max-width: 860px;
}

.cta-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 3vw, 24px);
  margin-bottom: clamp(32px, 6vw, 48px);
}

.cta-card {
  border: none;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 32px);
  text-align: left;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-card:hover,
.cta-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(54, 80, 98, 0.15);
}

.cta-card h3 {
  font-size: 1.25rem;
  margin: 0;
}

.cta-card p {
  color: var(--color-muted);
  margin: 0;
}

.cta-icon {
  font-size: 1.6rem;
  color: var(--color-pink);
}

.cta-support {
  max-width: 860px;
  color: var(--color-muted);
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}

.disclaimer {
  font-size: 0.85rem;
  color: rgba(27, 39, 50, 0.6);
  margin-top: 1.2rem;
}

/* Ensure disclaimer under CTA is centered with its container */
.cta-support .disclaimer { text-align: left; }

/* On desktop, align CTA supporting copy to the left (match other sections) */
@media (min-width: 961px) {
  .cta-support,
  .cta-support .disclaimer {
    text-align: left;
  }
}

.site-footer {
  background: var(--color-blue);
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(48px, 6vw, 72px) 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 48px);
  flex-wrap: wrap;
  align-items: center;
}

.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.brand-icon {
  display: block;
  width: 40px;
  height: auto;
}

.footer-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
  text-align: right;
}

.footer-meta a {
  color: var(--color-white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-meta svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Modal */
.modal[aria-hidden="true"] {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 0.3s ease;
  z-index: 30;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 39, 50, 0.6);
}

.modal-content {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 48px);
  width: min(640px, 92vw);
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 32px 60px rgba(27, 39, 50, 0.28);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  border: none;
  background: transparent;
  color: var(--color-muted);
  font-size: 1.8rem;
  cursor: pointer;
}

.modal-intro {
  color: var(--color-muted);
}

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

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row label {
  font-weight: 600;
  font-size: 0.95rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  font: inherit;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(27, 39, 50, 0.12);
  background: var(--color-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 4px rgba(54, 80, 98, 0.12);
}

.has-error {
  border-color: var(--color-pink) !important;
  box-shadow: 0 0 0 4px rgba(237, 104, 117, 0.18) !important;
}

.checkbox-row label {
  font-weight: 500;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.checkbox-row input {
  margin-top: 0.2rem;
}

.optional {
  font-weight: 400;
  color: var(--color-muted);
}

.error-message {
  color: var(--color-pink);
  font-size: 0.85rem;
}

.form-feedback {
  font-weight: 600;
  color: var(--color-blue);
  min-height: 1.2em;
}

.form-feedback.error {
  color: var(--color-pink);
}

.expand-details {
  align-self: flex-start;
  background: transparent;
  border: 1px solid rgba(54, 80, 98, 0.2);
  color: var(--color-blue);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.expand-details:hover,
.expand-details:focus {
  border-color: var(--color-pink);
  color: var(--color-pink);
}

.extra-fields[hidden] {
  display: none;
}

.hp-field {
  display: none !important;
}

/* Responsive adjustments */
@media (max-width: 960px) {
  .header-inner {
    gap: 1rem;
  }

  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
  }

  .header-logo img {
    width: min(180px, 50vw);
  }

  .header-cta {
    position: static;
    align-self: center;
    margin-left: auto;
    width: auto;
    max-width: none;
    right: auto;
    top: auto;
    transform: none;
    padding: 0.65rem 1.1rem;
  }

  .founder-grid {
    grid-template-columns: 1fr;
  }

  .founder-card {
    grid-template-columns: 1fr;
  }

  .founder-media {
    padding-top: 60%;
  }

  .founder-copy .long-copy {
    display: none;
  }

  .founder-copy .short-copy {
    display: block;
  }

  .footer-meta {
    align-items: flex-start;
    text-align: left;
  }

  /* Improve hero image focus on small tablets */
  .hero-media {
    background-position: 50% center;
  }

  /* Ease the hero/Founders overlap on tablets */
  .founders-message {
    margin-top: -40px;
  }

  /* Stack bios under image on smaller screens */
  .founders-bios {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 740px) {
  body {
    font-size: 16px;
  }

  .hero {
    height: auto;           /* Avoid overly tall hero */
    min-height: 360px;      /* Keep enough space without dominating */
  }

  .hero-content {
    /* Slightly tighter on mobile */
    padding: 40px 0 28px;
    padding-right: 26%;     /* Keep text clear of stag on the right */
  }


  /* Fade-in video to avoid a positional pop when it starts */
  .hero-video {
    object-position: 70% center;
    /* Remove fade effect to prevent jumping */
    opacity: 1 !important;
  }

  /* Use global object-position (right center) for consistent framing */

  /* Reduce hero text density */
  .hero h1 {
    font-size: clamp(1.2rem, 5vw, 1.5rem); /* Slightly smaller to avoid overlap */
    margin-bottom: 0.6rem;
    max-width: 40ch;        /* Limit line length to reduce wrapping */
    min-height: 3.4em;      /* Stabilize height while typing */
  }

  .hero-subline {
    display: none;
  }

  .hero-actions {
    width: 100%;
    gap: 0.75rem;
  }

  .hero-actions .btn-outline { display: none; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }

  .cta-actions {
    grid-template-columns: 1fr;
  }

  .modal-content {
    padding: 28px;
  }

  /* Remove overlap for Founders on phones */
  .founders-message {
    margin-top: 0;
    padding-top: 48px;
    border-radius: var(--radius-md);
  }

  /* Improve wrapping in founder contact row on phones */
  .founder-contact a {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .founder-contact .social {
    flex: 0 0 auto;
  }
}

/* Respect reduced motion: hide video and show static image background */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-media {
    background-image: linear-gradient(120deg, rgba(27, 39, 50, 0.82), rgba(237, 104, 117, 0.55)),
      url("/assets/images/hero-background.webp");
    background-size: cover;
    background-position: center;
  }
}

/* Desktop layout: image left, bios right */
@media (min-width: 961px) {
  .founders-layout {
    display: grid;
    grid-template-columns: minmax(240px, 340px) 1fr;
    gap: clamp(24px, 5vw, 48px);
    align-items: start;
  }

  .founders-hero {
    margin: 0;
    align-self: start;
  }

  .founders-hero img {
    width: 100%;
    height: auto;
  }

  /* Unify desktop alignment to left for consistency */
  .expanding-opportunity,
  .our-purpose {
    text-align: left;
  }
  .cta-panel .section-header,
  .meet-founders .section-header,
  .founders-message .narrow,
  .expanding-opportunity .narrow,
  .our-purpose .narrow {
    text-align: left;
  }

  /* Tweak desktop hero: lower height, widen text area, add left padding */
  .hero { min-height: clamp(420px, 58vh, 560px); }
  .hero-content { padding-right: 8%; padding-left: 1rem; }
  .hero h1,
  .hero-subline,
  .hero-actions { max-width: 1100px; }

  /* Ensure video always covers container; rely on object-position for framing */
  /* Shift the video content right without cropping using offset and overscan */
  .hero-video {
    object-position: 60% center;
  }
}

/* CTA: keep header centered on desktop as well */
@media (min-width: 961px) {
  .cta-panel .section-header {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Aspect-aware video fit: show more frame on ultra-wide */
@media (min-aspect-ratio: 16/9) {
  .hero-video {
    object-fit: contain;
    transform: scale(1.05);       /* Slight overscan to hide thin bars */
    background: var(--color-navy);/* Fill any letterbox area behind */
  }
}

@media (max-aspect-ratio: 16/9) {
  .hero-video {
    object-fit: cover;
    transform: none;
    background: transparent;
  }
}

