/* SoulMender AI — site styles */
:root {
  --night: #1c1a33;
  --night-2: #2b2850;
  --ink: #24223a;
  --muted: #5f5b72;
  --cream: #faf6ef;
  --sand: #f2eadc;
  --paper: #ffffff;
  --sun: #f3a65e;
  --sun-deep: #e2864a;
  --lavender: #8f87c9;
  --line: rgba(36, 34, 58, 0.12);
  --radius: 20px;
  --shadow: 0 1px 2px rgba(28, 26, 51, .06), 0 12px 32px -12px rgba(28, 26, 51, .18);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
em { font-style: italic; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--sun-deep); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font: 600 15px/1 var(--sans); text-decoration: none; letter-spacing: .01em;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
  cursor: pointer; border: 0; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sun { background: var(--sun); color: #2a1a0b; box-shadow: 0 10px 30px -10px rgba(243, 166, 94, .7); }
.btn-sun:hover { background: #f6b77a; }
.btn-glass { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .2); }
.btn-light { background: #fff; color: var(--night); padding: 10px 18px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav.is-solid { background: rgba(28, 26, 51, .86); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 500 21px/1 var(--serif); letter-spacing: -.01em; }
.brand svg { width: 30px; height: 30px; fill: none; stroke: var(--sun); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand-ai { font: 600 11px/1 var(--sans); letter-spacing: .14em; margin-left: 6px; padding: 4px 6px; border-radius: 6px; background: rgba(255, 255, 255, .14); vertical-align: 3px; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a:not(.btn) { color: rgba(255, 255, 255, .82); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s; }
.menu a:not(.btn):hover { color: #fff; }
.menu-btn { display: none; }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(28, 26, 51, .55) 0%, rgba(28, 26, 51, .25) 40%, rgba(28, 26, 51, .75) 100%),
    linear-gradient(90deg, rgba(28, 26, 51, .7) 0%, rgba(28, 26, 51, .1) 70%),
    url("images/clouds-and-sun-hero.jpg") center 40% / cover no-repeat;
  transform: scale(1.04);
  animation: drift 30s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }
.hero-inner { padding-top: 120px; padding-bottom: 96px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #ffd9b3; margin-bottom: 28px; }
.hero h1 { font-size: clamp(56px, 10vw, 128px); font-weight: 300; letter-spacing: -0.03em; line-height: .98; max-width: 10ch; }
.hero h1 em { color: var(--sun); font-weight: 300; }
.hero-lede { font-size: clamp(18px, 2vw, 22px); line-height: 1.55; max-width: 34ch; margin-top: 28px; color: rgba(255, 255, 255, .88); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 40px; padding: 28px 0 0; margin: 64px 0 0; border-top: 1px solid rgba(255, 255, 255, .2); max-width: 760px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.hero-facts strong { display: block; font: 400 20px/1.3 var(--serif); color: #fff; }

/* Shared section bits */
.label { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sun-deep); margin-bottom: 18px; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(36px, 5vw, 56px); }
.sub { font-size: 19px; color: var(--muted); margin-top: 18px; }

/* Mission */
.mission { padding: clamp(96px, 14vw, 168px) 0; background: var(--cream); }
.mission-inner { max-width: 980px; }
.statement { font: 300 clamp(30px, 4.2vw, 50px)/1.25 var(--serif); letter-spacing: -0.015em; color: var(--night); }
.statement em { color: var(--sun-deep); }
.mission-body { margin-top: 36px; font-size: 19px; color: var(--muted); max-width: 640px; }

/* How it helps */
.how { padding: 0 0 clamp(96px, 12vw, 140px); }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.how-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.how-img { aspect-ratio: 16 / 10; overflow: hidden; }
.how-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.how-card:hover .how-img img { transform: scale(1.04); }
.how-body { padding: 36px 36px 40px; }
.how-for { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lavender); margin-bottom: 12px; }
.how-body h3 { font-size: 32px; margin-bottom: 14px; color: var(--night); }
.how-body > p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; font-size: 15px; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #fdebd8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2864a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Features */
.features { background: var(--night); color: #fff; padding: clamp(96px, 12vw, 150px) 0; position: relative; overflow: hidden; }
.features::before { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -400px; border-radius: 50%; background: radial-gradient(circle, rgba(243, 166, 94, .22), transparent 65%); pointer-events: none; }
.features .label { color: var(--sun); }
.features .sub { color: rgba(255, 255, 255, .7); }
.feature-list { border-top: 1px solid rgba(255, 255, 255, .14); }
.feature { display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; padding: 44px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); align-items: start; }
.feature-num { font: 300 20px/1.4 var(--serif); color: var(--sun); }
.feature h3 { font-size: clamp(26px, 3vw, 34px); }
.feature sup { font-family: var(--sans); font-size: 11px; vertical-align: super; opacity: .7; margin-left: 2px; }
.feature-tag { margin-top: 10px; color: #ffd9b3; font-size: 15px; }
.feature > p { color: rgba(255, 255, 255, .76); }

/* Values */
.values { padding: clamp(80px, 10vw, 120px) 0; background: var(--sand); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.value { padding: 8px 36px 8px 0; }
.value + .value { padding-left: 36px; border-left: 1px solid var(--line); }
.value h3 { font-size: clamp(26px, 2.6vw, 32px); color: var(--night); margin-bottom: 12px; }
.value p { color: var(--muted); }

/* Team */
.team { padding: clamp(96px, 12vw, 150px) 0; }
.person h4 { font-size: 24px; color: var(--night); }
.role { font-size: 14px; font-weight: 600; color: var(--sun-deep); margin-top: 6px; }
.bio-btn { font: 600 14px/1 var(--sans); color: var(--night); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.bio-btn:hover { color: var(--sun-deep); }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
.people .person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; margin-bottom: 18px; filter: saturate(.92); transition: filter .3s, transform .3s; }
.people .person:hover img { filter: saturate(1.05); transform: translateY(-3px); }
.people .person h4 { font-size: 21px; }
.people .role { margin-bottom: 12px; }
.person-tramp img { object-position: center 30%; }

/* CTA */
.cta { position: relative; color: #fff; padding: clamp(110px, 14vw, 170px) 0; text-align: center; overflow: hidden; isolation: isolate; }
.cta-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(28, 26, 51, .7), rgba(28, 26, 51, .55) 50%, rgba(28, 26, 51, .85)), url("images/pathway.jpg") center / cover no-repeat; }
.cta-inner { max-width: 760px; }
.cta h2 { font-size: clamp(40px, 6vw, 68px); font-weight: 300; letter-spacing: -0.02em; }
.cta-inner > p { font-size: 19px; color: rgba(255, 255, 255, .85); margin-top: 22px; }
.cta .hero-cta { justify-content: center; }

/* Footer */
.footer { background: var(--night); color: rgba(255, 255, 255, .7); padding: 56px 0 32px; font-size: 15px; }
.crisis { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 18px 22px; margin-bottom: 56px; color: rgba(255, 255, 255, .82); font-size: 14px; }
.crisis strong { color: #ffd9b3; }
.crisis a { color: #fff; font-weight: 600; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.brand-footer { margin-bottom: 16px; }
.footer-tag { max-width: 36ch; }
.footer-title { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer nav a, .footer-grid > div > a { display: block; text-decoration: none; padding: 4px 0; }
.footer a:hover { color: #fff; }
.copyright { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .5); }

/* Bio dialog */
.bio-dialog { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 64px); border: 0; border-radius: 24px; padding: 40px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -20px rgba(28, 26, 51, .45); }
.bio-dialog::backdrop { background: rgba(28, 26, 51, .6); backdrop-filter: blur(4px); }
.bio-dialog[open] { animation: pop .3s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.dialog-close { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--sand); font-size: 24px; line-height: 1; cursor: pointer; color: var(--night); }
.dialog-close:hover { background: #ebe0cc; }
.dialog-head { display: flex; gap: 20px; align-items: center; margin-bottom: 24px; padding-right: 40px; }
.dialog-head img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.dialog-head h3 { font-size: 28px; color: var(--night); }
.dialog-body p { color: var(--muted); margin-bottom: 14px; }
.dialog-body a { color: var(--sun-deep); font-weight: 600; text-decoration: none; }

/* Reveal on scroll (only when JS is running, so content is always visible otherwise) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; }
  .menu-btn span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .menu { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 28px; background: rgba(28, 26, 51, .97); backdrop-filter: blur(14px); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; }
  .menu.is-open { opacity: 1; transform: none; visibility: visible; }
  .menu a:not(.btn) { padding: 14px 0; font-size: 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .menu .btn { margin-top: 18px; padding: 14px; }
  .how-grid { grid-template-columns: 1fr; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 56px 1fr; }
  .feature > p { grid-column: 2; }
  .values-grid { grid-template-columns: 1fr; }
  .value, .value + .value { padding: 24px 0; border-left: 0; }
  .value + .value { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero-facts { gap: 18px; margin-top: 48px; }
  .hero-facts li { width: 100%; }
  .how-body { padding: 28px 24px 32px; }
  .people { gap: 32px 16px; }
  .people .person h4 { font-size: 18px; }
  .feature { grid-template-columns: 1fr; gap: 12px; padding: 36px 0; }
  .feature > p { grid-column: auto; }
  .bio-dialog { padding: 28px 22px; }
  .hero-cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
