/* ==========================================================================
   Your Human — design tokens
   Change identity by editing these variables; everything else references them.
   ========================================================================== */
:root {
  --navy: #162033;        /* Ownership Navy — nav, headlines, footer, dark sections */
  --clay: #D66A4A;         /* Human Clay — CTAs, highlights, small accents */
  --blue: #3767E8;         /* System Blue — links, focus/active states only */
  --canvas: #F5F2EA;       /* Warm Canvas — main background */
  --steel: #A8B0BC;        /* Steel — secondary text, borders, metadata */
  --near-black: #0B0F16;   /* Near Black — reserved for the hero headline moment */
  --surface: #ECE6D8;      /* Invented addition (not in original 6-color palette): card/panel backgrounds */
  --line: rgba(22, 32, 51, 0.12);
  --line-strong: rgba(22, 32, 51, 0.28);
  --max-width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--canvas);
  color: var(--navy);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

/* ---------- SECTION SCAFFOLD ---------- */
section {
  padding: 48px 6vw;
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-short {
  padding: 32px 6vw;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  position: relative;
  max-width: 700px;
  text-align: left;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.2;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 34px;
  padding-top: 20px;
}
.section-title::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 48px; height: 4px;
  border-radius: 2px;
  background: var(--clay);
}

.btn-primary {
  display: inline-block;
  background: var(--clay);
  color: var(--canvas);
  border: none;
  padding: 15px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  margin-top: 30px;
}
.btn-primary:hover { opacity: 0.88; }

/* ---------- HEADER ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--canvas);
  transition: transform 0.35s ease;
}
header.hide { transform: translateY(-100%); }
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--canvas); font-weight: 800; font-size: 16px; }
.logo-mark {
  background: var(--clay);
  color: var(--near-black);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; letter-spacing: 0.5px;
  flex-shrink: 0;
}
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  text-decoration: none;
  color: var(--canvas);
  font-size: 14px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: border-color 0.2s ease;
}
.nav-links a:hover { border-bottom-color: var(--blue); }
.call-cta {
  background: var(--clay);
  color: var(--canvas);
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.call-cta:hover { opacity: 0.9; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: transparent;
  border: 1px solid rgba(245,242,234,0.4);
  border-radius: 6px;
  cursor: pointer;
}
.hamburger span { display: block; height: 2px; width: 18px; margin: 0 auto; background: var(--canvas); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--navy);
  padding: 0 6vw;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.mobile-menu.open { max-height: 400px; padding: 8px 6vw 20px; }
.mobile-menu a {
  color: var(--canvas);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid rgba(245,242,234,0.12);
}

@media (max-width: 820px) {
  .nav-links, .call-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  /* Fallback background: shows whenever the video is hidden (mobile), still
     loading, or fails to load — also what's visible through the overlay
     gradient before the video's first frame paints. */
  background: linear-gradient(135deg, var(--surface), var(--canvas));
}
/* Video sits behind everything, cropped to fill the section like a
   standard "hero background video" treatment. */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Anchor the crop to the top: the current poster photo has people's
     heads close to the top edge of the frame, and object-position's
     default (center) was cropping into them on wide/short viewports.
     Cropping from the bottom instead keeps heads in frame. Revisit this
     if the real hero video ends up framed differently. */
  object-position: center top;
  z-index: 0;
}
/* Scrim so hero-copy stays legible over whatever the clip shows — darkest
   on the left where the text sits (align-items: flex-start), fading out
   toward the right so the video itself still reads. */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(11, 15, 22, 0.78) 0%, rgba(11, 15, 22, 0.55) 38%, rgba(11, 15, 22, 0.15) 70%, rgba(11, 15, 22, 0) 100%);
}
.hero-copy { position: relative; z-index: 2; max-width: 620px; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--clay); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.hero-copy h1 { font-size: clamp(32px, 5.2vw, 54px); line-height: 1.12; margin: 0 0 18px; color: var(--canvas); }
.hero-copy p { font-size: 17px; color: var(--canvas); max-width: 480px; margin: 0; opacity: 0.92; }

/* Mobile: no background video at all. Autoplay video is often throttled
   or outright blocked on mobile data, and it's a heavy download for
   something purely decorative — so phones just get the gradient + a
   static poster-colored background instead, no scrim needed. */
@media (max-width: 820px) {
  .hero-video,
  .hero-overlay { display: none; }
  .hero-copy h1 { color: var(--near-black); }
  .hero-copy p { color: var(--navy); opacity: 1; }
}

/* ---------- TECH STACK STRIP (formerly client logos) ---------- */
.marquee-wrap { overflow: hidden; }
.marquee-track {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 44px;
  align-items: center;
}
.logo-slot {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  /* Transparent — no card/border, the icon and label sit directly on the
     section background so the strip reads as a lightweight fact, not a
     boxed-up call to action. */
  background: transparent;
  border: none;
  padding: 0;
  min-width: 72px;
}
.logo-slot svg { width: 34px; height: 34px; flex-shrink: 0; }
.logo-slot span {
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ---------- CAROUSEL SHARED ---------- */
.carousel-wrap { position: relative; display: flex; align-items: center; gap: 12px; }
.carousel-track, .dossier-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar, .dossier-track::-webkit-scrollbar { display: none; }
.carousel-btn, .dossier-btn {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--canvas);
  color: var(--navy);
  font-size: 16px;
  cursor: pointer;
}
.carousel-btn:hover, .dossier-btn:hover { background: var(--navy); color: var(--canvas); }

/* ---------- STORIES / TESTIMONIALS ---------- */
.carousel-card {
  flex: 0 0 min(680px, 88vw);
  height: min(440px, 66vh);
  display: flex;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  scroll-snap-align: start;
}
.card-image {
  flex: 0 0 46%;
  background: var(--navy);
  color: var(--canvas);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.7;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.card-content { padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.card-content .quote { font-size: 18px; line-height: 1.5; color: var(--navy); margin: 0; }
.card-content .who { font-size: 14px; color: var(--steel); font-weight: 600; margin: 0; }

@media (max-width: 820px) {
  .carousel-card { flex-direction: column; height: auto; }
  .card-image { flex: 0 0 160px; }
  .card-content { padding: 24px; }
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; width: 100%; margin: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}
.faq-q .plus { transition: transform 0.9s ease; color: var(--blue); font-weight: 400; font-size: 22px; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.9s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; font-size: 15px; color: var(--navy); }
.faq-a-inner p { margin: 0 0 20px; max-width: 640px; color: var(--navy); opacity: 0.85; }

/* ---------- TEAM / DOSSIER ---------- */
.dossier-card {
  flex: 0 0 min(640px, 90vw);
  display: grid;
  grid-template-columns: minmax(140px, 190px) 1fr;
  grid-template-areas:
    "col1 col2"
    "mess mess";
  gap: 0 24px;
  background: var(--surface);
  border-radius: 12px;
  padding: 28px;
  scroll-snap-align: start;
}
.dossier-photo {
  grid-area: col1;
  background: var(--navy);
  color: var(--canvas);
  border-radius: 8px;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.7;
  overflow: hidden;
}
.dossier-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Anchor to the top: these are head-and-shoulders crops, and mobile's
     shorter 16/9 box (below) was center-cropping into people's heads.
     Cropping from the bottom instead keeps heads in frame at every size. */
  object-position: center top;
  border-radius: 8px;
}
.dossier-info { grid-area: col2; }
.dossier-stamp {
  display: inline-block;
  border: 1px solid var(--clay);
  color: var(--clay);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.dossier-name { font-size: 20px; font-weight: 800; color: var(--navy); margin: 0 0 2px; }
.dossier-role { font-size: 13px; font-weight: 700; color: var(--clay); text-transform: uppercase; letter-spacing: 0.4px; margin: 0 0 14px; }
.dossier-bio { font-size: 14.5px; color: var(--navy); opacity: 0.9; margin: 0; }
.dossier-mess {
  grid-area: mess;
  margin-top: 20px;
  border: 1px dashed var(--clay);
  background: rgba(214, 106, 74, 0.08);
  border-radius: 8px;
  padding: 16px 18px;
}
.dossier-mess-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--clay);
  margin: 0 0 6px;
}
.dossier-mess p { font-size: 14px; color: var(--navy); margin: 0; opacity: 0.9; }

@media (max-width: 620px) {
  .dossier-card {
    grid-template-columns: 1fr;
    grid-template-areas: "col1" "col2" "mess";
    gap: 16px;
  }
  .dossier-photo { aspect-ratio: 16 / 9; }
}

/* ---------- MANIFESTO (half text / half image, before Contact) ---------- */
#manifesto { padding-bottom: 12px; }
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-copy .section-title { margin-bottom: 20px; }
.manifesto-text {
  font-size: 19px;
  line-height: 1.6;
  color: var(--navy);
  max-width: 520px;
  margin: 0;
}
.split-image {
  background: var(--surface);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.split-image svg { width: 100%; max-width: 220px; height: auto; }
.split-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

@media (max-width: 820px) {
  .split-section { grid-template-columns: 1fr; gap: 32px; }
  .split-image { aspect-ratio: 16 / 10; padding: 36px; }
}

/* ---------- CONTACT ---------- */
#contact { padding-top: 12px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.contact-info h3 { font-size: 15px; color: var(--steel); text-transform: uppercase; letter-spacing: 0.5px; margin: 24px 0 6px; }
.contact-info h3:first-child { margin-top: 0; }
.contact-info a, .contact-info p { color: var(--navy); text-decoration: none; font-size: 16px; margin: 0; }
.contact-info a:hover { color: var(--blue); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }

.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: var(--navy); }
.field input, .field textarea {
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  background: var(--canvas);
  color: var(--navy);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.field textarea { min-height: 120px; resize: vertical; }

/* ---------- FOOTER ---------- */
footer { background: var(--navy); color: var(--canvas); padding: 48px 6vw 28px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
footer .logo { color: var(--canvas); margin-bottom: 12px; }
footer a { color: var(--canvas); text-decoration: none; opacity: 0.85; }
footer a:hover { opacity: 1; color: var(--blue); }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--steel); margin: 0 0 14px; }
.footer-col p, .footer-col a { display: block; margin: 0 0 10px; font-size: 14.5px; }
.newsletter-form { display: flex; gap: 8px; margin-top: 6px; }
.newsletter-form input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(245,242,234,0.3);
  background: rgba(245,242,234,0.06);
  color: var(--canvas);
  font-size: 14px;
}
.newsletter-form button {
  background: var(--clay);
  color: var(--canvas);
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}
.footer-bottom { max-width: var(--max-width); margin: 32px auto 0; padding-top: 20px; border-top: 1px solid rgba(245,242,234,0.15); font-size: 13px; opacity: 0.6; }

@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
