/* ============================================================
   Forward Applied AI — Site styles
   Design language: warm cream, soft black, honey-yellow accent,
   Geist sans + Lora italic serif accents, big friendly radii.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #FFFCF5;               /* warm cream page background */
  --ink: #202020;              /* soft black */
  --body: #4B4B45;             /* warm reading gray */
  --muted: #6E6E66;            /* secondary text */
  --faint: rgba(32, 32, 32, 0.55);
  --line: rgba(32, 32, 32, 0.10);
  --card: #FFFFFF;
  --cream-deep: #F7F1E3;       /* slightly deeper cream for chips/bands */
  --accent: #FFDB73;           /* honey yellow */
  --accent-soft: #FFEDBB;
  --brown: #431505;            /* deep warm brown */
  --footer-bg: #232019;        /* warm near-black */

  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;

  --radius-xl: 40px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --container: 1200px;
  --gutter: clamp(16px, 3vw, 32px);
  --header-h: 76px;

  --shadow-card: 0 1px 2px rgba(35, 30, 15, 0.04), 0 12px 32px -12px rgba(35, 30, 15, 0.10);
  --shadow-card-hover: 0 2px 4px rgba(35, 30, 15, 0.05), 0 24px 48px -16px rgba(35, 30, 15, 0.18);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

h1, h2, h3, p, ul { margin: 0; }

ul { padding: 0; list-style: none; }

strong { font-weight: 600; color: var(--ink); }

::selection { background: var(--accent); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 9vw, 110px); }
.section-tight { padding-block: clamp(36px, 6vw, 72px); }

/* ---------- Typography ---------- */
.display {
  font-size: clamp(2.5rem, 1.4rem + 5.2vw, 4.5rem);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  border: 0;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: var(--brown); transform: translateY(-1px); }
.btn-dark:active { transform: translateY(0); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

.nav-wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark { width: 30px; height: 30px; flex: none; }

.brand-name {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 32px);
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: right 0.3s var(--ease-out);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after { right: 0; }

/* Mobile menu */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  z-index: 70;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  margin: 5px auto;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  padding: calc(var(--header-h) + 16px) var(--gutter) 32px;
  flex-direction: column;
}

.mobile-menu.open { display: flex; }

.mobile-menu .menu-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}

.mobile-menu .menu-links a {
  font-size: clamp(1.75rem, 7.5vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu .menu-links a .arrow { color: var(--brown); opacity: 0.6; }

.mobile-menu .menu-cta { margin-top: auto; }

.mobile-menu .menu-cta .btn { width: 100%; padding: 16px 22px; font-size: 1.0625rem; border-radius: 14px; }

body.menu-open { overflow: hidden; }

/* Keep the header (and its close toggle) above the open menu overlay */
body.menu-open .site-header { z-index: 70; background: var(--bg); }

@media (max-width: 1000px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Hero (home) ---------- */
.hero { padding: 0 clamp(10px, 1.6vw, 20px); }

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: clamp(20px, 3vw, var(--radius-xl));
  min-height: clamp(540px, calc(100svh - var(--header-h) - 28px), 850px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  background: var(--footer-bg);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(24, 21, 14, 0.88) 0%, rgba(24, 21, 14, 0.52) 42%, rgba(24, 21, 14, 0.26) 72%, rgba(24, 21, 14, 0.22) 100%);
}

.hero-content {
  width: 100%;
  padding: clamp(28px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(18px, 2.6vw, 28px);
  color: #fff;
}

.hero-content .display { color: #fff; max-width: 17ch; }

.hero-content .display .serif-accent { color: var(--accent); }

.hero-sub {
  font-size: clamp(1.0625rem, 0.95rem + 0.7vw, 1.375rem);
  line-height: 1.5;
  max-width: 46ch;
  color: rgba(255, 252, 245, 0.92);
  text-wrap: pretty;
}

/* ---------- Audience cards (home) ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2vw, 24px);
}

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

.audience-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.card-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown);
  background: var(--cream-deep);
  padding: 7px 12px;
  border-radius: 999px;
}

.card-foot {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.card-title {
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.card-arrow {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease-out), background-color 0.35s var(--ease-out);
}

.card-arrow svg { width: 18px; height: 18px; }

.audience-card:hover .card-arrow {
  transform: translate(3px, -3px);
  background: var(--accent);
}

/* ---------- Colored hero bands (owners / leaders) ---------- */
.band {
  padding: 0 clamp(10px, 1.6vw, 20px);
  margin-bottom: clamp(40px, 6vw, 72px);
}

.band-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: clamp(20px, 3vw, var(--radius-xl));
  min-height: clamp(430px, calc(86vh - var(--header-h)), 800px);
  min-height: clamp(430px, calc(86svh - var(--header-h)), 800px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(24px, 5vw, 64px);
}

.band-owners {
  --band-ink: #4F2409;
  --band-accent: #9C3A16;
  --ring-color: rgba(122, 78, 15, 0.20);
  --glow-color: rgba(253, 241, 199, 0.9);
  background: linear-gradient(115deg, #E3AB44 0%, #EAB852 55%, #ECBC5C 100%);
}

.band-leaders {
  --band-ink: #F7F2E4;
  --band-accent: #F0CA61;
  --ring-color: rgba(13, 35, 40, 0.18);
  --glow-color: rgba(224, 201, 118, 0.5);
  background: linear-gradient(115deg, #4D6E74 0%, #56797F 55%, #5B7F85 100%);
}

.band-what {
  --band-ink: #FBF4E6;
  --band-accent: #F6D57A;
  --ring-color: rgba(62, 25, 8, 0.18);
  --glow-color: rgba(255, 221, 152, 0.48);
  background: linear-gradient(115deg, #B4633F 0%, #C07049 55%, #C77851 100%);
}

.band-why {
  --band-ink: #F8F1E2;
  --band-accent: #F0CA61;
  --ring-color: rgba(0, 0, 0, 0.2);
  --glow-color: rgba(242, 195, 113, 0.38);
  background: linear-gradient(115deg, #463325 0%, #52402F 55%, #5A4737 100%);
}

.band-eyebrow {
  position: relative;
  z-index: 1;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--band-ink);
  opacity: 0.82;
  margin-bottom: 16px;
}

.band-title {
  position: relative;
  z-index: 1;
  color: var(--band-ink);
  max-width: 22ch;
}

.band-title .serif-accent { color: var(--band-accent); }

.band-title-wide { max-width: 27ch; }

.band-glow,
.band-ring,
.band-shape { position: absolute; pointer-events: none; }

.band-glow {
  width: min(58vw, 720px);
  aspect-ratio: 1;
  right: -2%;
  top: -26%;
  background: radial-gradient(circle closest-side, var(--glow-color), transparent 68%);
}

.band-ring {
  border: 1.5px solid var(--ring-color);
  border-radius: 50%;
  aspect-ratio: 1;
}

.band-ring-1 { width: min(40vw, 500px); right: 6%; top: -14%; }
.band-ring-2 { width: min(66vw, 860px); right: -6%; top: -34%; }

.band-shape {
  width: clamp(72px, 10vw, 150px);
  right: clamp(32px, 13%, 250px);
  top: clamp(56px, 19%, 180px);
  height: auto;
}

.band-owners .band-shape { filter: drop-shadow(8px 10px 7px rgba(110, 62, 6, 0.32)); }

.band-leaders .band-shape { filter: drop-shadow(7px 9px 7px rgba(13, 35, 40, 0.35)); }

.band-what .band-shape { filter: drop-shadow(7px 9px 7px rgba(74, 30, 8, 0.32)); }

.band-why .band-shape { filter: drop-shadow(7px 9px 7px rgba(0, 0, 0, 0.35)); }

/* ---------- Simple page header (legal/utility pages) ---------- */
.page-simple {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(16px, 3vw, 36px);
}

.page-simple h1 {
  font-size: clamp(2rem, 1.2rem + 3vw, 3rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.page-simple .updated {
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.prose h2 {
  font-size: 1.3em;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 1.9em 0 0.7em;
}

.prose h2:first-child { margin-top: 0; }

/* ---------- Prose (article text) ---------- */
.prose-wrap { padding-bottom: clamp(56px, 9vw, 110px); }

.prose {
  max-width: 47rem;
  font-size: clamp(1.0938rem, 1.02rem + 0.35vw, 1.25rem);
  line-height: 1.68;
  color: var(--body);
}

.prose p { margin-bottom: 1.35em; }
.prose p:last-child { margin-bottom: 0; }

.prose a {
  color: var(--brown);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.25s, color 0.25s;
}

.prose a:hover { text-decoration-color: var(--brown); }

.prose em { font-family: var(--font-serif); font-style: italic; }

/* Short punch lines */
.prose .punch {
  font-size: 1.12em;
  font-weight: 500;
  color: var(--ink);
}

/* Callout card */
.callout {
  background: var(--cream-deep);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 40px);
  margin: 2.2em 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem);
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.callout::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--accent);
}

/* Feature list with + markers */
.plus-list { margin: 0 0 1.35em; }

.plus-list li {
  position: relative;
  padding-left: 38px;
  margin-bottom: 0.9em;
}

.plus-list li::before {
  content: "+";
  position: absolute;
  left: 2px;
  top: -0.14em;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.45em;
  line-height: 1.35;
  color: var(--brown);
  opacity: 0.65;
}

/* Founder-letter link (what page) — highlighted inline link */
.prose .letter-line a {
  font-weight: 600;
  padding: 0 2px;
  background-image: linear-gradient(to top, transparent 6%, var(--accent-soft) 6%, var(--accent-soft) 48%, transparent 48%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  text-decoration-thickness: 2.5px;
  transition: background-image 0.25s, text-decoration-color 0.25s, color 0.25s;
}

.prose .letter-line a:hover {
  background-image: linear-gradient(to top, transparent 6%, var(--accent) 6%, var(--accent) 48%, transparent 48%);
}

/* Closing CTA line */
.closing {
  margin-top: 2.6em;
  padding-top: 2.2em;
  border-top: 1px solid var(--line);
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}

/* Letter card (why page) */
.letter-card {
  max-width: 54rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5.5vw, 72px);
  box-shadow: var(--shadow-card);
}

/* Signature */
.signature {
  margin-top: 2.6em;
  color: var(--ink);
}

.signature .sig-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.35em;
  margin-top: 0.35em;
}

/* ---------- Backers band (what page) ---------- */
.backers { padding-block: clamp(48px, 8vw, 96px); }

.backers-title {
  text-align: center;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: 44ch;
  margin: 0 auto clamp(28px, 5vw, 44px);
  text-wrap: balance;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(48px, 6vw, 88px);
  width: max-content;
  padding-inline: clamp(24px, 3vw, 44px);
  animation: marquee 36s linear infinite;
}

.marquee-track img {
  height: clamp(30px, 4.4vw, 44px);
  width: auto;
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 0.3s, opacity 0.3s;
}

.marquee-track img:hover { filter: grayscale(0); opacity: 1; }

.marquee-track img.logo-tall { height: clamp(44px, 6vw, 62px); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Footer ---------- */
.site-footer { padding: 0 clamp(10px, 1.6vw, 20px) clamp(14px, 2vw, 24px); }

.footer-card {
  background: var(--footer-bg);
  color: #fff;
  border-radius: clamp(20px, 3vw, var(--radius-xl));
  padding: clamp(32px, 5vw, 64px);
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand { display: flex; flex-direction: column; gap: 16px; }

.footer-brand .brand-name { color: #fff; }

.footer-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 252, 245, 0.5);
  margin-bottom: 16px;
}

.footer-cols {
  display: flex;
  gap: clamp(40px, 8vw, 110px);
  flex-wrap: wrap;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  color: rgba(255, 252, 245, 0.78);
  font-size: 0.9875rem;
  font-weight: 500;
  transition: color 0.25s;
}

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

.footer-bottom {
  margin-top: clamp(36px, 6vw, 64px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 252, 245, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: rgba(255, 252, 245, 0.55);
  font-size: 0.875rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal.in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .btn, .audience-card, .card-arrow { transition: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 700px) {
  :root { --header-h: 64px; }

  .brand-name { font-size: 0.9375rem; }
  .brand-mark { width: 26px; height: 26px; }

  .hero-card { min-height: clamp(480px, calc(100svh - var(--header-h) - 20px), 720px); }

  .hero-content { padding: 22px 20px 26px; }

  .footer-top { flex-direction: column; gap: 32px; }

  .footer-bottom { justify-content: center; text-align: center; }
}

/* Very wide screens: keep hero from over-growing */
@media (min-width: 1700px) {
  .hero-card,
  .band-card { max-width: 1660px; margin-inline: auto; }
}
