/* ============================================================
   Foster Inclusivity Technologies — design system
   Typography: Playfair Display (display) + Inter (body/UI)
   ============================================================ */

:root{
  --bg: #050505;
  --bg-raised: #0b0b0d;
  --text: #f5f5f5;
  --text-muted: rgba(245,245,245,.68);
  --text-faint: rgba(245,245,245,.42);
  --border: rgba(255,255,255,.10);
  --border-strong: rgba(255,255,255,.16);

  --red: #ff3d2e;
  --orange: #ff8a00;
  --purple: #7c3aed;
  --teal: #00e0b8;

  --grad-cta: linear-gradient(135deg, var(--red), var(--orange));
  --grad-text: linear-gradient(120deg, var(--red), var(--orange), var(--purple));

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(.16,.84,.44,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul, ol{ list-style: none; margin: 0; padding: 0; }
h1,h2,h3,p{ margin: 0; }

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: var(--bg);
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

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

/* ---------------- Buttons ---------------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 26px;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), border-color .2s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--grad-cta);
  color: #0a0503;
}
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(255,80,20,.55);
}
.btn-ghost{
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover{
  border-color: var(--text-muted);
  background: rgba(255,255,255,.04);
}
.btn-sm{ padding: 10px 20px; font-size: .85rem; }

/* ---------------- Header ---------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5,5,5,.72);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo{
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: .02em;
}
.logo .dot{ color: var(--red); }

.site-nav{
  display: none;
  gap: 32px;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.site-nav a{ transition: color .2s ease; }
.site-nav a:hover{ color: var(--text); }

.header-cta{ display: none; }

.nav-toggle{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  margin: 0;
}
.nav-toggle span{
  display: block;
  height: 1.5px;
  width: 18px;
  margin: 0 auto;
  background: var(--text);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav{
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
  border-top: 1px solid transparent;
}
.mobile-nav.open{
  max-height: 420px;
  border-top-color: rgba(255,255,255,.06);
}
.mobile-nav a{
  padding: 16px var(--pad);
  font-size: .95rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: var(--text-muted);
}
.mobile-nav .btn{
  margin: 16px var(--pad);
  justify-content: center;
  border-bottom: none;
}

@media (min-width: 900px){
  .site-nav{ display: flex; }
  .header-cta{ display: inline-flex; }
  .nav-toggle{ display: none; }
  .mobile-nav{ display: none; }
}

/* ---------------- Hero ---------------- */
.hero{
  position: relative;
  padding-top: clamp(72px, 12vw, 140px);
  padding-bottom: clamp(64px, 10vw, 120px);
  overflow: hidden;
}
.hero-glow{
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 18%, rgba(255,61,46,.35), transparent 55%),
    radial-gradient(circle at 78% 62%, rgba(124,58,237,.32), transparent 55%),
    radial-gradient(circle at 55% 8%, rgba(0,224,184,.22), transparent 50%);
  filter: blur(10px);
}
.hero-inner{ position: relative; }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  padding: 7px 16px 7px 12px;
  border-radius: 100px;
  margin-bottom: 32px;
}
.eyebrow-dot{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}

.hero-title{
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 7.4vw, 5.8rem);
  line-height: 1.04;
  letter-spacing: -.01em;
  max-width: 16ch;
}
.grad-text{
  font-style: italic;
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub{
  margin-top: 28px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 46ch;
}

.hero-cta{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.hero-stats{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
  max-width: 620px;
  margin: 76px 0 0;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.hero-stats dt{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 6px;
}
.hero-stats dd{
  margin: 0;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 1.4;
}

/* ---------------- Sections (generic) ---------------- */
.section{
  padding: clamp(72px, 11vw, 128px) 0;
  border-top: 1px solid var(--border);
}
.section-tight{ padding: clamp(48px, 7vw, 80px) 0; }

.section-label{
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
  font-weight: 600;
}
.section-title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.12;
  max-width: 20ch;
  margin-bottom: 28px;
}
.section-title-sm{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 28px;
}
.section-lede{
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 36px;
}

/* Chips (Position section) */
.chip-row{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.chip-row li{
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  color: var(--text-muted);
}

/* ---------------- Capability list ---------------- */
.cap-list{
  border-top: 1px solid var(--border);
}
.cap-row{
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.cap-num{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--orange);
}
.cap-body h3{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 10px;
}
.cap-body p{
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 16px;
  line-height: 1.6;
}

.tag-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-row li{
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 100px;
}

/* ---------------- Flow / architecture steps ---------------- */
.flow-list{
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.flow-step{
  padding: 30px 28px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.flow-step:last-child{ border-bottom: none; }
.flow-num{
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--purple);
  font-size: 1rem;
  margin-bottom: 10px;
}
.flow-step h3{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.flow-step p{
  color: var(--text-faint);
  font-size: .92rem;
  letter-spacing: .02em;
}

@media (min-width: 800px){
  .flow-list{ grid-template-columns: repeat(5, 1fr); }
  .flow-step{ border-bottom: none; border-right: 1px solid var(--border); }
  .flow-step:last-child{ border-right: none; }
}

/* ---------------- Marquee ---------------- */
.marquee{
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 26px 0;
  white-space: nowrap;
}
.marquee-track{
  display: inline-flex;
  gap: 28px;
  align-items: center;
  animation: marquee 32s linear infinite;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  color: var(--text-faint);
  text-transform: uppercase;
}
.marquee-track .accent-outline{
  color: transparent;
  -webkit-text-stroke: 1px var(--red);
  font-style: italic;
}
.marquee-track .dash{ color: var(--border-strong); }

@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .marquee-track{ animation: none; }
  .marquee{ overflow-x: auto; }
}

/* ---------------- Split (engineering) ---------------- */
.split{
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.split-lead .section-title{ margin-bottom: 20px; }
.split-detail{
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.stack-group h3{
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
  font-weight: 600;
}

@media (min-width: 900px){
  .split{ grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
  .split-detail{
    grid-template-columns: repeat(2, 1fr);
    border-top: none;
    border-left: 1px solid var(--border);
    padding-top: 0;
    padding-left: 48px;
  }
}

/* ---------------- Quote grid ---------------- */
.quote-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.quote-card{
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,0));
  margin: 0;
}
.quote-card p{
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 24px;
}
.quote-card footer{
  display: flex;
  align-items: center;
  gap: 14px;
}
.quote-badge{
  width: 34px; height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--purple), var(--teal));
}
.quote-card cite{
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: .92rem;
}
.quote-sub{
  display: block;
  font-size: .8rem;
  color: var(--text-faint);
  margin-top: 2px;
}

@media (min-width: 800px){
  .quote-grid{ grid-template-columns: 1fr 1fr; }
}

/* ---------------- Environments ---------------- */
.env-grid{
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.env-grid li{
  padding: 22px 26px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-muted);
}
.env-grid li:last-child{ border-bottom: none; }

@media (min-width: 700px){
  .env-grid{ grid-template-columns: repeat(3, 1fr); }
  .env-grid li{ border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); }
  .env-grid li:nth-child(3n){ border-right: none; }
}
@media (min-width: 700px) and (max-width: 999px){
  .env-grid li:nth-child(n+4){ border-bottom: none; }
}
@media (min-width: 1000px){
  .env-grid{ grid-template-columns: repeat(6, 1fr); }
  .env-grid li{ border-bottom: none; }
  .env-grid li:nth-child(6n){ border-right: none; }
}

/* ---------------- Proof / references ---------------- */
.ref-list{
  border-top: 1px solid var(--border);
}
.ref-row{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.ref-tag{
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
}
.ref-row h3{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.ref-row p{
  color: var(--text-muted);
  margin-bottom: 14px;
  max-width: 58ch;
}
.ref-badge{
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  white-space: nowrap;
  align-self: start;
}

@media (min-width: 800px){
  .ref-row{ grid-template-columns: 110px 1fr auto; align-items: center; }
}

.trust-block{
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.trust-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.trust-row{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.trust-row li span{
  display: inline-block;
  font-size: .82rem;
  letter-spacing: .04em;
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  color: var(--text-muted);
}
.trust-note{
  font-size: .85rem;
  color: var(--text-faint);
  max-width: 56ch;
  line-height: 1.6;
}

/* ---------------- Final CTA ---------------- */
.cta-section{ text-align: left; }
.cta-title{
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5.6vw, 4.2rem);
  line-height: 1.08;
  margin-bottom: 24px;
}
.contact-email{
  margin-top: 24px;
  font-size: .95rem;
}
.contact-email a{
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-strong);
  transition: color .2s ease, border-color .2s ease;
}
.contact-email a:hover{ color: var(--text); border-color: var(--text); }

/* ---------------- Footer ---------------- */
.site-footer{
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
}
.footer-inner{
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.footer-brand p{
  margin-top: 8px;
  font-size: .85rem;
  color: var(--text-faint);
}
.footer-nav{
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: .85rem;
  color: var(--text-muted);
}
.footer-nav a:hover{ color: var(--text); }
.footer-meta{
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-faint);
}
.footer-meta a{ color: var(--text-muted); }
.footer-meta a:hover{ color: var(--text); }

@media (min-width: 900px){
  .footer-inner{
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
  .footer-meta{ align-items: flex-end; text-align: right; }
}

/* ---------------- Scroll reveal ---------------- */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in-view{
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
}
