html { scroll-behavior: smooth; }
body { margin: 0; background: #FCFAF6; color: #3E3833; font-family: "Instrument Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: #F16863; text-decoration: none; }
a:hover { color: #C75A45; }
::selection { background: #F6E29C; }
@keyframes belongRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

#backToTop { position: fixed; top: 16px; left: clamp(20px, 5vw, 72px); z-index: 60; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; background: rgba(252,250,246,0.94); backdrop-filter: blur(14px); box-shadow: 0 6px 18px rgba(62,56,51,0.16); transition: opacity 260ms, transform 260ms; opacity: 0; transform: scale(0.8); pointer-events: none; }
#backToTop.visible { opacity: 1; transform: scale(1); pointer-events: auto; }

header { position: sticky; top: 0; z-index: 50; transition: transform 260ms cubic-bezier(.4,0,.2,1); transform: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px clamp(20px, 5vw, 72px); background: rgba(252,250,246,0.92); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(62,56,51,0.08); }
header.nav-hidden { transform: translateY(-105%); }

.nav-link { font-size: 15.5px; font-weight: 500; color: rgba(62, 56, 51, 0.9); letter-spacing: 0.01em; padding-bottom: 3px; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1.5px; transition: background-size 260ms cubic-bezier(.4,0,.2,1); }
.nav-link:hover { color: rgba(62, 56, 51, 0.9); background-size: 100% 1.5px; }

.site-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 34px); }

.nav-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 40px; height: 40px; padding: 0; border: none; background: transparent; cursor: pointer; flex-shrink: 0; }
.nav-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: #3E3833; transition: transform 220ms ease, opacity 220ms ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px clamp(20px, 5vw, 72px) 22px;
    background: #FCFAF6;
    border-bottom: 1px solid rgba(62,56,51,0.08);
    box-shadow: 0 16px 30px rgba(62,56,51,0.1);
  }
  .site-nav.open { display: flex; }
  .site-nav .nav-link { padding: 12px 0; }
  .site-nav a[href="/join"] { justify-content: center; text-align: center; margin-top: 6px; }
}

.carousel-btn:hover { background: rgba(26,23,20,0.55); }
.scroll-down:hover { color: #FFFFFF; background: rgba(26,23,20,0.4); transform: translateY(3px); }
.btn-teal:hover { background: #5E9A92; color: #FFFFFF; }
.btn-outline-dark:hover { background: #40382C; color: #FCFAF6; }
.footer-link:hover { color: #F6E29C; }
.org-tab { padding: 12px 30px; border: 1px solid rgba(64,56,44,0.35); border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: 0.01em; cursor: pointer; font-family: inherit; }

/* --- Simple form pages (Contact / Join / Request Demo / Login) --- */
.form-page { max-width: 640px; margin: 0 auto; padding: clamp(72px, 10vw, 140px) clamp(20px, 5vw, 72px) clamp(96px, 12vw, 160px); }
.form-page .eyebrow { margin: 0 0 14px; font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: clamp(18px, 1.7vw, 22px); color: #6B6055; }
.form-page h1 { margin: 0 0 14px; font-family: 'Playfair Display', Georgia, serif; font-weight: 400; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -0.015em; color: #3E3833; }
.form-page > p.lede { margin: 0 0 40px; font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.65; color: #6B6055; max-width: 52ch; }

.field { display: grid; gap: 8px; margin-bottom: 22px; }
.field label { font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em; color: #4A443E; }
.field input, .field textarea, .field select {
  font: inherit; font-size: 15.5px; padding: 13px 16px; border-radius: 12px; border: 1px solid rgba(62,56,51,0.22);
  background: #FFFFFF; color: #3E3833; outline: none; transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #F16863; box-shadow: 0 0 0 3px rgba(241,104,99,0.15); }

.btn-submit {
  padding: 14px 32px; border: none; border-radius: 999px; background: #F16863; color: #FFFFFF; font-size: 15.5px;
  font-weight: 600; font-family: inherit; cursor: pointer; transition: background 160ms ease, opacity 160ms ease;
}
.btn-submit:hover { background: #C75A45; }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-status { margin-top: 18px; font-size: 15px; line-height: 1.55; display: none; }
.form-status.success { display: block; color: #3F7A6E; }
.form-status.error { display: block; color: #C0392B; }

/* --- Home page feature grid --- */
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .features-grid { grid-template-columns: 1fr; }
  .features-grid > div { aspect-ratio: auto !important; min-height: 200px; }
}

/* --- Simple content pages (About / Pilot Program / Careers / Internships / Acknowledgements) --- */
.content-page p { margin: 0 0 20px; font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.65; color: #4A443E; max-width: 62ch; }
.content-page h2 { margin: 40px 0 16px; font-family: 'Playfair Display', Georgia, serif; font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; color: #3E3833; }
.content-page ul { margin: 0 0 20px; padding-left: 22px; max-width: 62ch; }
.content-page li { font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.65; color: #4A443E; margin-bottom: 8px; }

.founder-card { margin: 24px 0 8px; }
.founder-card::after { content: ""; display: table; clear: both; }
.founder-card img { float: right; width: clamp(160px, 24vw, 240px); aspect-ratio: 3 / 4; object-fit: cover; border-radius: 20px; box-shadow: 0 10px 30px rgba(62,56,51,0.12); margin: 0 0 20px clamp(20px, 3vw, 36px); }
.founder-card .founder-name { margin: 0 0 4px; font-family: 'Playfair Display', Georgia, serif; font-weight: 400; font-size: clamp(22px, 2.1vw, 28px); line-height: 1.15; color: #3E3833; }
.founder-card .founder-title { margin: 0 0 16px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #F16863; }
@media (max-width: 500px) {
  .founder-card img { float: none; display: block; width: 100%; max-width: 220px; margin: 0 auto 20px; }
  .founder-card .founder-name, .founder-card .founder-title { text-align: center; }
}

/* --- About page: multi-section layout --- */
.section-narrow { max-width: 760px; margin: 0 auto; }
