/* ───────────────────────────────────────────────────────────────────────
   Homepage stylesheet. Loads after colors_and_type.css (brand tokens).

   Layout idea: a light, airy page. Floating pill navigation, centred
   intros with a small pill label on a dashed line, white cards with dark
   icon tiles, and one dark block that closes the page (how we work and
   contact).
   ─────────────────────────────────────────────────────────────────────── */

/* Host Grotesk (SIL Open Font License, see fonts/HostGrotesk-OFL.txt),
   served from this repo so visitors make no connection to Google. */
@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/HostGrotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/HostGrotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-sans: "Host Grotesk", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --paper: #F7F6F4;               /* page ground, slightly warm */
  --ink: #03173C;                 /* CCDC navy, headings and dark blocks */
  --ink-body: #3A465B;            /* running text */
  --ink-soft: #6C7689;            /* second heading line, captions */
  --line: rgba(3, 23, 60, 0.20);  /* dashed rules */
  --hair: rgba(3, 23, 60, 0.08);  /* card borders */
  --accent: #C0187A;              /* CCDC magenta */
  --accent-2: #6B35A8;            /* CCDC purple */
  --accent-grad: linear-gradient(90deg, #C0187A, #7A3FC4);
  --accent-grad-dark: linear-gradient(90deg, #FF7AB8, #C9A8FF);
  --wash: rgba(192, 24, 122, 0.07);
  --radius-card: 22px;
  --radius-block: 36px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  font-family: var(--font-sans);
  color: var(--ink-body);
  -webkit-font-smoothing: antialiased;
}
section { position: relative; scroll-margin-top: 92px; }

/* ─── layout ──────────────────────────────────────────────────────────── */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

/* ─── navigation: a floating pill ─────────────────────────────────────── */
.nav {
  position: fixed; top: 12px; left: 0; right: 0;
  z-index: 50;
  padding: 0 16px;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  max-width: 1240px; margin: 0 auto;
  height: 60px;
  padding: 0 10px 0 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--hair);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(3, 23, 60, 0.07);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; line-height: 1; }
.brand img { width: 30px; height: 30px; display: block; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font: 400 16px/1 var(--font-sans);
  color: var(--ink-body);
  text-decoration: none;
  transition: color 150ms;
}
.nav-links a:hover { color: var(--ink); }
.nav-end { display: flex; align-items: center; gap: 14px; }
.nav-login {
  font: 500 14.5px/1 var(--font-sans);
  color: var(--ink-body);
  text-decoration: none;
  padding: 8px 6px;
}
.nav-login:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 9px;
  height: 42px; padding: 0 20px;
  border-radius: 999px;
  background: var(--ink); color: #fff;
  font: 500 15px/1 var(--font-sans);
  text-decoration: none;
  transition: background 150ms;
}
.nav-cta:hover { background: #0C2A63; }
.nav-cta svg { width: 17px; height: 17px; }
.lang {
  display: inline-flex;
  background: rgba(3, 23, 60, 0.05);
  border-radius: 999px;
  padding: 3px;
}
.lang button {
  border: 0; background: transparent;
  color: var(--ink-soft);
  font: 600 12px/1 var(--font-sans);
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 150ms, color 150ms;
}
.lang button.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(3, 23, 60, 0.12); }
.nav a:focus-visible, .lang button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 480px) {
  .nav-login { display: none; }
  .nav-inner { padding-left: 16px; }
}

/* ─── pill label on a dashed rule ─────────────────────────────────────── */
.label {
  display: inline-flex; align-items: center;
  font: 600 11px/1 var(--font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-body);
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 11px 17px;
  box-shadow: 0 6px 20px var(--wash);
  white-space: nowrap;
}
.label-row { display: flex; align-items: center; gap: 22px; }
.label-row::before, .label-row::after {
  content: ""; flex: 1; height: 0;
  border-top: 1px dashed var(--line);
}
.label-row::before { -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.label-row::after { -webkit-mask-image: linear-gradient(270deg, transparent, #000 60%); mask-image: linear-gradient(270deg, transparent, #000 60%); }

/* ─── hero ────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 150px 0 96px;
  background:
    radial-gradient(52% 34% at 50% 70%, rgba(192, 24, 122, 0.09), transparent 72%),
    radial-gradient(34% 28% at 82% 72%, rgba(107, 53, 168, 0.07), transparent 72%),
    var(--paper);
}
h1.hero-title {
  font-size: clamp(40px, 5.3vw, 68px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 auto;
  max-width: 20ch;
  text-wrap: balance;
}
.hero-title .line { display: block; }
.hero-title .soft { color: var(--ink-soft); font-weight: 400; }
.grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
}
.hero-lead {
  font-size: clamp(17px, 1.45vw, 19px);
  line-height: 1.45;
  color: var(--ink-body);
  margin: 28px auto 0;
  max-width: 44em;
  text-wrap: pretty;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 34px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  height: 50px; padding: 0 24px;
  border-radius: 999px;
  font: 500 16px/1 var(--font-sans);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: background 150ms, border-color 150ms, opacity 150ms;
}
.btn svg { width: 18px; height: 18px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #0C2A63; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--hair); }
.btn-light:hover { border-color: rgba(3, 23, 60, 0.24); }
.btn-grad { background: var(--accent-grad); color: #fff; }
.btn-grad:hover { opacity: 0.92; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ─── sections ────────────────────────────────────────────────────────── */
.section { padding: 112px 0; }
@media (max-width: 720px) { .section { padding: 80px 0; } }
.intro { text-align: center; }
.section-title {
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 44px auto 0;
  max-width: 20ch;
  text-wrap: balance;
}
.section-title .soft { color: var(--ink-soft); }
.section-lead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-body);
  margin: 24px auto 0;
  max-width: 43em;
  text-wrap: pretty;
}

/* ─── what we do: three cards ─────────────────────────────────────────── */
.roles-rail {
  margin-top: 60px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 940px) { .roles-rail { grid-template-columns: 1fr; } }
.role {
  background: linear-gradient(180deg, #fff 52%, #FDF3F8);
  border: 1px solid var(--hair);
  border-radius: var(--radius-card);
  padding: 40px 32px 38px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.icon-pill {
  width: 56px; height: 56px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--ink); color: #fff;
}
.icon-pill svg { width: 24px; height: 24px; }
.role-label {
  margin-top: 22px;
  font: 600 11px/1 var(--font-sans);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft);
}
.role-label .num { display: none; }
.role h3 {
  font: 400 28px/1.12 var(--font-sans);
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 12px 0 0;
  text-wrap: balance;
}
.role h3 .accent { color: var(--accent); }
.role p {
  font-size: 16px; line-height: 1.5;
  color: var(--ink-body);
  margin: 14px 0 0;
  max-width: 34em;
  text-wrap: pretty;
}

/* ─── how we work: the dark block ─────────────────────────────────────── */
.section-navy {
  background: var(--ink);
  color: #fff;
  margin: 0 12px;
  border-radius: var(--radius-block) var(--radius-block) 0 0;
}
.section-navy .label {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  color: #FF8CC4;
}
.section-navy .label-row::before, .section-navy .label-row::after { border-top-color: rgba(255, 255, 255, 0.22); }
.section-navy .section-title { color: #fff; }
.section-navy .section-title .soft { color: rgba(255, 255, 255, 0.55); }
.section-navy .section-lead { color: rgba(255, 255, 255, 0.72); }
.how-timeline {
  margin-top: 68px;
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px;
}
.how-timeline::before {
  content: "";
  position: absolute; top: 6px; left: 0; right: 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.28);
}
.how-step { position: relative; padding-top: 34px; }
.how-step .dot {
  position: absolute; top: 0; left: 0;
  width: 13px; height: 13px; border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 5px var(--ink);
}
.how-step h3 {
  font: 500 21px/1.2 var(--font-sans);
  letter-spacing: -0.02em;
  color: #fff; margin: 0 0 10px;
}
.how-step p {
  font: 400 15.5px/1.55 var(--font-sans);
  color: rgba(255, 255, 255, 0.68);
  margin: 0; text-wrap: pretty;
}
@media (max-width: 900px) {
  .how-timeline { grid-template-columns: 1fr; gap: 30px; }
  .how-timeline::before { top: 0; bottom: 0; left: 6px; right: auto; border-top: 0; border-left: 1px dashed rgba(255, 255, 255, 0.28); }
  .how-step { padding: 0 0 0 34px; }
  .how-step .dot { top: 5px; }
}

/* ─── contact: continues the dark block ─────────────────────────────────── */
.closing {
  margin: 0 12px;
  border-radius: 0 0 var(--radius-block) var(--radius-block);
  padding: 112px 0 104px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(70% 80% at 50% 118%, rgba(192, 24, 122, 0.42), transparent 70%),
    radial-gradient(40% 50% at 86% 110%, rgba(107, 53, 168, 0.35), transparent 70%),
    var(--ink);
  overflow: hidden;
}
.closing .label {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  color: #FF8CC4;
}
.closing .label-row::before, .closing .label-row::after { border-top-color: rgba(255, 255, 255, 0.22); }
.closing h2 {
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 44px auto 0;
  max-width: 18ch;
  text-wrap: balance;
}
.closing-lead {
  font-size: 18px; line-height: 1.5;
  color: rgba(255, 255, 255, 0.74);
  margin: 24px auto 0;
  max-width: 40em;
  text-wrap: pretty;
}
.closing-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 38px; }
.closing-meta {
  margin: 34px 0 0;
  font: 400 14px/1.4 var(--font-sans);
  color: rgba(255, 255, 255, 0.5);
}

/* ─── footer ──────────────────────────────────────────────────────────── */
footer { padding: 44px 0 52px; }
.foot { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.foot-links { display: flex; gap: 10px 34px; flex-wrap: wrap; justify-content: center; }
.foot-links a { font-size: 16px; color: var(--ink-body); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.foot-brand { display: inline-flex; align-items: center; gap: 12px; }
.foot-brand img { width: 24px; height: 24px; display: block; }

/* ─── scroll reveal ───────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
