:root {
  --bg: #FCFAF7;
  --bg-alt: #F4F1EA;
  --bg-card: #FFFDF9;
  --text: #1F1E1B;
  --text-muted: #6B665E;
  --accent: #4F46E5;
  --accent-hover: #4338CA;
  --accent-soft: #F0EFFE;
  --border: #DED8CB;
  --border-soft: #EAE5DA;
  --placeholder-bg: #F2EFE8;
  --shadow-sm: 0 1px 2px rgba(44, 36, 22, 0.04);
  --shadow: 0 1px 2px rgba(44, 36, 22, 0.04), 0 12px 26px rgba(44, 36, 22, 0.06);
  --shadow-photo: 0 1px 2px rgba(44, 36, 22, 0.05), 0 20px 44px rgba(44, 36, 22, 0.08);
  --radius: 8px;
  --radius-lg: 8px;
  --container: 1200px;
  --prose: 680px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--text);
}
h1 { font-size: 3.6rem; font-weight: 700; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.25rem; letter-spacing: 0; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.accent { color: var(--accent); }

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.prose {
  max-width: var(--prose);
  margin: 0 auto;
}

.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); }
.section-soft { background: var(--bg-alt); }

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  .hero .sub { font-size: 1.08rem; }
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(252, 250, 247, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.site-header .brand {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
}
.site-header .brand:hover { color: var(--text); }
.brand-logo {
  display: block;
  height: 48px;
  width: auto;
}
.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 24px;
}
.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--accent); }
@media (max-width: 720px) {
  .brand-logo { height: 36px; }
  .site-nav { display: none; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 22px;
  border-radius: 0;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
  letter-spacing: 0;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(30, 20, 100, 0.15), 0 6px 16px rgba(79, 70, 229, 0.18);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 1px 2px rgba(30, 20, 100, 0.18), 0 10px 22px rgba(79, 70, 229, 0.24);
}
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ----- Hero (full-bleed video background) ----- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 160px;
  background: var(--bg-alt);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(252, 250, 247, 0.55) 0%, rgba(252, 250, 247, 0.78) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero-copy {
  max-width: 620px;
}
.hero h1 {
  margin-bottom: 26px;
  letter-spacing: 0;
  line-height: 1.04;
}
.hero .sub {
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 40px;
  max-width: 520px;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero {
    background: var(--bg-alt) url('../img/hero-loop-poster.jpg') center / cover no-repeat;
  }
}

/* Headline underline accent */
.h1-underline {
  position: relative;
  white-space: nowrap;
  background-image: url('../img/underline.svg');
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size: 100% 0.32em;
  padding-bottom: 0.18em;
}

@media (max-width: 960px) {
  .hero { padding: 96px 0 110px; }
}
@media (max-width: 720px) {
  .hero { padding: 72px 0 88px; }
}

/* ----- Stakes ----- */
.stakes {
  padding: 24px 0 72px;
  position: relative;
}
.stakes .container { position: relative; }
.stakes-inner { max-width: 920px; margin: 0 auto; }
.stakes-lead {
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 36px;
  color: var(--text);
  letter-spacing: 0;
  max-width: 760px;
}
.stakes-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 40px;
}
.stakes-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.45;
}
.stakes-rule {
  flex: 0 0 auto;
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.85;
}
@media (max-width: 720px) {
  .stakes { padding: 8px 0 56px; }
  .stakes-lead { font-size: 1.15rem; margin-bottom: 28px; }
  .stakes-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* ----- Metrics ----- */
.metrics { padding-top: 64px; padding-bottom: 24px; }
.metrics .container { position: relative; }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 90%;
  margin: 0 auto;
}
.metric-card {
  padding: 36px 25px;
  min-height: 180px;
  background: #0F0E0C;
  border: 1px solid #0F0E0C;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.metric-value {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 3.24rem;
  font-weight: 500;
  line-height: 1;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.metric-unit {
  font-size: 0.5em;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: -0.01em;
  margin-left: 0.15em;
  vertical-align: baseline;
}
.metric-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .metrics-grid { grid-template-columns: 1fr; gap: 12px; }
  .metric-card { min-height: 144px; padding: 29px 22px; }
  .metric-value { font-size: 2.7rem; }
  .metric-label { white-space: normal; }
}

/* ----- How it works ----- */
.how-we-work { position: relative; }
.how-we-work .container { position: relative; }
.how-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.how-header h2 { margin-bottom: 14px; }
.how-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.how-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.how-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.how-icon img { width: 22px; height: 22px; }
.how-step {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.how-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.how-card p {
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 820px) {
  .how-grid { grid-template-columns: 1fr; gap: 16px; }
  .how-card { padding: 26px 22px; }
  .how-header { margin-bottom: 36px; }
}

/* ----- Decorative line accents ----- */
.line-accent {
  position: absolute;
  pointer-events: none;
  user-select: none;
  opacity: 0.7;
  z-index: 0;
}
.line-accent--stakes {
  top: -10px;
  right: 28px;
  width: 110px;
  height: auto;
}
.line-accent--how {
  bottom: -18px;
  left: 24px;
  width: 90px;
  height: auto;
}
@media (max-width: 820px) {
  .line-accent { display: none; }
}

/* ----- Projects ----- */
.projects h2 { text-align: center; margin-bottom: 56px; letter-spacing: 0; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(164px, 0.62fr);
  gap: 20px;
  align-items: stretch;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.card-content {
  min-width: 0;
  padding: 14px 0 14px 14px;
  display: flex;
  flex-direction: column;
}
.card h3 { margin-bottom: 6px; font-size: 1.3rem; }
.card .client {
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 500;
  font-style: normal;
  margin-bottom: 16px;
}
.card p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  flex: 1;
  margin-bottom: 0;
}
.card .card-link {
  margin-top: 24px;
  font-weight: 600;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  color: var(--accent);
}
.card .card-link .arrow {
  transition: transform 0.18s ease;
  display: inline-block;
}
.card:hover .card-link .arrow { transform: translateX(4px); }
.card-media {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--placeholder-bg);
  border: 1px solid var(--border-soft);
  min-height: 100%;
}
.card-media img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}
.card-media--diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #FFFFFF;
}
.card-media--diagram img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
}
.card--stacked {
  grid-template-columns: 1fr;
}
.card--stacked .card-content { order: 1; }
.card--stacked .card-media { order: 2; }
.card--stacked .card-media img { aspect-ratio: 1600 / 481; }

@media (max-width: 820px) {
  .projects-grid { grid-template-columns: 1fr; }
  .card {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .card-content {
    padding: 8px 4px 6px;
    order: 2;
  }
  .card-media { order: 1; }
  .card-media img {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
}

/* ----- About ----- */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: center;
  max-width: 960px;
}
.about-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--placeholder-bg);
  box-shadow: var(--shadow-photo);
  border: 1px solid var(--border-soft);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-copy h2 { margin-bottom: 18px; }
.about-copy p {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 14px;
}
.about-copy p:last-child { margin-bottom: 0; }
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    justify-items: center;
    text-align: center;
  }
  .about-photo { max-width: 220px; }
}

/* ----- Waitlist ----- */
.waitlist { text-align: center; }
.waitlist h2 { margin-bottom: 18px; max-width: 640px; margin-left: auto; margin-right: auto; }
.waitlist .sub {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
}
.form {
  max-width: 460px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
  text-align: left;
}
.form input {
  width: 100%;
  padding: 14px 18px;
  font: inherit;
  font-size: 15px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form input::placeholder { color: var(--text-muted); opacity: 0.75; }
.form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.form .btn { width: 100%; padding: 15px 22px; margin-top: 4px; }
.form-success {
  max-width: 460px;
  margin: 0 auto;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  color: var(--text);
}

/* ----- Footer (dark) ----- */
.site-footer {
  background: #0B0B0C;
  color: #C9C5BD;
  padding: 64px 0 32px;
  font-size: 14px;
  line-height: 1.55;
}
.site-footer a { color: #FFFFFF; }
.site-footer a:hover { color: #FFFFFF; opacity: 0.8; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-col p { margin: 0 0 12px; max-width: 360px; }
.footer-logo {
  display: block;
  height: 52px;
  width: auto;
  margin-bottom: 20px;
}
.footer-heading {
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-address {
  color: #C9C5BD;
  margin: 0 0 14px;
}
.footer-email {
  display: inline-block;
  color: #FFFFFF;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 1px;
}
.footer-email:hover {
  color: #FFFFFF;
  border-bottom-color: #FFFFFF;
  opacity: 1;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  color: #C9C5BD;
  font-weight: 400;
}
.footer-links a:hover { color: #FFFFFF; opacity: 1; }
.footer-entity {
  color: #8A857B;
  font-size: 13px;
  margin: 0;
}
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #8A857B;
}
@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

@media (max-width: 720px) {
  .footer-top {
    display: grid;
    gap: 22px;
  }
  .site-footer .links {
    justify-content: flex-start;
  }
}

/* ----- Sub-pages ----- */
.subpage { padding: 64px 0 104px; }
.subpage .back {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-weight: 500;
}
.subpage .back:hover { color: var(--accent); }
.subpage h1 { margin-bottom: 10px; }
.subpage .client-line {
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 500;
  margin-bottom: 48px;
}
.subpage h2 {
  font-size: 1.4rem;
  margin-top: 48px;
  margin-bottom: 14px;
  letter-spacing: 0;
}
.subpage p { font-size: 1.05rem; color: var(--text); }
.subpage-visual {
  margin: 56px 0 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--placeholder-bg);
  box-shadow: var(--shadow-photo);
  border: 1px solid var(--border-soft);
}

.ph { width: 100%; height: 100%; display: block; }

/* ----- Sub-page: Flow map ----- */
.flow {
  margin: 8px 0 56px;
}
.flow-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.flow-map {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: nowrap;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  overflow-x: auto;
}
.flow-step {
  flex: 1 1 0;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px 8px;
  position: relative;
}
.flow-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: 1px solid rgba(79, 70, 229, 0.18);
}
.flow-step-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}
.flow-arrow {
  flex: 0 0 auto;
  align-self: center;
  width: 24px;
  height: 1px;
  background: var(--border);
  position: relative;
  margin-top: 17px;
}
.flow-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -3px;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transform: rotate(45deg);
}
@media (max-width: 820px) {
  .flow-map {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 18px;
  }
  .flow-step {
    flex-direction: row;
    text-align: left;
    gap: 14px;
    min-width: 0;
    padding: 10px 4px;
  }
  .flow-step-num { margin-bottom: 0; flex: 0 0 auto; }
  .flow-arrow {
    width: 1px;
    height: 14px;
    margin: 0 0 0 14px;
    align-self: flex-start;
  }
  .flow-arrow::after {
    right: -3px;
    top: auto;
    bottom: -1px;
    transform: rotate(135deg);
  }
}

/* ----- Sub-page: KPI cards ----- */
.kpis {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 24px;
  margin: 0 auto 64px;
  max-width: 760px;
  padding: 0 24px;
}
.kpi-card {
  background: var(--accent);
  border-radius: 12px;
  padding: 22px 20px 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  min-height: 140px;
  width: 242px;
  flex: 0 0 242px;
  color: #fff;
  box-shadow: 0 1px 2px rgba(30, 20, 100, 0.12), 0 12px 24px rgba(79, 70, 229, 0.16);
}
.kpi-value {
  font-size: 2.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.015em;
  margin: auto 0;
  text-align: center;
}
.kpi-card .kpi-label,
p.kpi-label {
  font-size: 14px;
  color: #fff;
  line-height: 1.4;
  margin: 0;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 720px) {
  .kpis {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 320px;
    padding: 0;
  }
  .kpi-card { min-height: 120px; padding: 20px 16px 18px; width: 100%; flex: 1 1 auto; }
  .kpi-value { font-size: 1.9rem; }
}

/* ----- Sub-page: photo gallery ----- */
.subpage-gallery {
  margin: 8px 0 16px;
}
.subpage-gallery h3 {
  font-size: 1.1rem;
  margin-bottom: 18px;
  color: var(--text);
}
.gallery-grid {
  display: grid;
  gap: 16px;
}
.gallery-grid--single { grid-template-columns: 1fr; }
.gallery-grid--two { grid-template-columns: repeat(2, 1fr); }
.gallery-grid--four { grid-template-columns: repeat(2, 1fr); }
.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}
.gallery-caption {
  font-size: 13px;
  color: var(--text-muted);
  padding: 10px 14px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg);
}
@media (max-width: 720px) {
  .gallery-grid--two,
  .gallery-grid--four { grid-template-columns: 1fr; }
}

/* Wider section wrapper for flow + KPIs (overrides .prose narrowness) */
.subpage-wide {
  max-width: 920px;
  margin: 0 auto 16px;
}
