:root {
  /* Kwahu Business logo: dark slate, teal and lime */
  --navy: #0e2b38;
  --navy-2: #163e4f;
  --green: #0f9a92;          /* teal */
  --green-strong: #0b7a73;   /* teal, AA contrast with white text */
  --lime: #7aa83a;
  --brand: var(--lime);
  --brand-ink: #ffffff;
  --brand-soft: #dff2f0;
  --ink: #0e2b38;
  --ink-2: #36505b;
  --muted: #637882;
  --line: #e0e8ea;
  --bg: #f6f9f9;
  --surface: #ffffff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 22, 26, 0.04), 0 8px 24px rgba(20, 22, 26, 0.06);
  --shadow-lg: 0 2px 4px rgba(20, 22, 26, 0.05), 0 24px 48px rgba(20, 22, 26, 0.12);
  --max: 1180px;
  --font: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #edf5f6;
    --ink-2: #c0d0d4;
    --muted: #8aa1a8;
    --line: #1d3a45;
    --bg: #081a21;
    --surface: #0e252e;
    --brand-soft: #0f3431;
    --green: #2bb5ac;
    --navy: #0f3342;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.45);
  }
}
:root[data-theme="dark"] {
  --ink: #edf5f6;
  --ink-2: #c0d0d4;
  --muted: #8aa1a8;
  --line: #1d3a45;
  --bg: #081a21;
  --surface: #0e252e;
  --brand-soft: #0f3431;
  --green: #2bb5ac;
  --navy: #0f3342;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.45);
}

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

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--brand); border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 700 15px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green-strong); color: #fff; box-shadow: 0 6px 18px rgba(15, 154, 146, 0.28); }
.btn-primary:hover { background: #09655f; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { height: 30px; width: auto; flex: none; }
.footer-logo { display: inline-block; margin-bottom: 16px; }
.footer-logo img { height: 84px; width: auto; }
.footer-brand strong { color: var(--ink); }
.logo-text { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; }
.logo-text b { font-weight: 800; color: var(--green); }
.logo-text i { font-style: normal; font-weight: 700; color: var(--muted); }
.powered { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; text-decoration: none; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.powered img { height: 18px; width: auto; }
/* Navy logo on light backgrounds, white logo on dark ones. */
.on-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .on-light { display: none !important; }
  :root:not([data-theme="light"]) .on-dark { display: block !important; }
}
:root[data-theme="dark"] .on-light { display: none !important; }
:root[data-theme="dark"] .on-dark { display: block !important; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn-primary { color: #fff; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); display: grid; place-items: center; cursor: pointer;
}
.theme-toggle svg { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .nav-links a:not(.btn) { display: none; }
  .nav-links { gap: 10px; }
  .nav-links .btn { padding: 10px 16px; font-size: 14px; }
}
@media (max-width: 480px) {
  .logo { gap: 7px; }
  .logo-text { font-size: 17px; }
  .logo-text i { display: none; }
  .logo-mark { height: 22px; }
  .nav-links { gap: 8px; }
  .nav-links .btn { padding: 9px 13px; }
  .theme-toggle { width: 36px; height: 36px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 64px; overflow: hidden; }
.hero {
  --hero-img: url("img/bg-skyline-light.webp");
  --hero-wash: var(--bg);
  background:
    linear-gradient(90deg, var(--hero-wash) 0%, color-mix(in srgb, var(--hero-wash) 92%, transparent) 38%, color-mix(in srgb, var(--hero-wash) 20%, transparent) 75%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%),
    var(--hero-img) center / cover no-repeat;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero { --hero-img: url("img/bg-skyline-dark.webp"); } }
:root[data-theme="dark"] .hero { --hero-img: url("img/bg-skyline-dark.webp"); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; margin: 18px 0 20px; position: relative; z-index: 0; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.08em; height: 0.28em;
  background: var(--lime); opacity: 0.35; z-index: -1; border-radius: 4px;
}
.hero h1 .hl { color: var(--green-strong); }
.hero-lede { font-size: 20px; color: var(--ink-2); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 44px; }
.hero-stats strong { display: block; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.hero-stats span { font-size: 14px; color: var(--muted); font-weight: 600; }

/* Hero photo with floating member cards */
.hero-visual { position: relative; }
.hero-photo {
  aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg);
  background: var(--navy);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 88% 50%; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  text-decoration: none; max-width: 280px; transition: transform 0.25s ease;
}
.float-card:hover { transform: translateY(-3px); }
.float-card .monogram { width: 42px; height: 42px; border-radius: 12px; font-size: 15px; }
.float-card h4 { font-size: 15px; }
.float-card p { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.float-card.f1 { left: -36px; bottom: 56px; }
.float-card.f2 { right: -24px; top: 36px; }
.hero-badge {
  position: absolute; left: 20px; top: 20px; padding: 7px 14px; border-radius: 999px;
  background: rgba(14, 43, 56, 0.82); color: #fff; font-size: 13px; font-weight: 700; backdrop-filter: blur(6px);
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 32px; }
  .hero-photo { aspect-ratio: 3 / 2; }
  .float-card.f1 { left: 12px; bottom: -22px; }
  .float-card.f2 { display: none; }
}

/* ---------- Monogram / cover ---------- */
.monogram {
  flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 800; font-size: 18px; color: #fff; background: var(--accent, var(--brand));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.monogram img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.cover-art {
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 90%, #fff) 0%, transparent 55%),
    radial-gradient(120% 120% at 100% 100%, color-mix(in srgb, var(--accent) 70%, #000) 0%, transparent 60%),
    var(--accent);
  position: relative; overflow: hidden;
}
.cover-art::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1.4px);
  background-size: 14px 14px; mask-image: linear-gradient(120deg, transparent 20%, #000 90%);
}
.cover-art img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }

/* ---------- Section ---------- */
.section { padding: 72px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-top: 10px; }
.section-head p { color: var(--muted); max-width: 460px; }

/* ---------- Filters ---------- */
.toolbar {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; margin-bottom: 18px;
}
.search {
  display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 50px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.search:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(15, 154, 146, 0.18); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; font: 500 16px var(--font); color: var(--ink); min-width: 0; }
.select {
  height: 50px; padding: 0 40px 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 16px center;
  appearance: none; font: 600 15px var(--font); color: var(--ink); cursor: pointer;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font: 600 14px var(--font); color: var(--ink-2); cursor: pointer; transition: all 0.15s ease;
}
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.result-count { font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 16px; }
@media (max-width: 760px) {
  .toolbar { grid-template-columns: 1fr 1fr; }
  .toolbar .search { grid-column: 1 / -1; }
  .select { width: 100%; }
}

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
@media (max-width: 400px) { .grid { grid-template-columns: 1fr; } }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-cover { height: 132px; }
.card-badge {
  position: absolute; top: 14px; right: 14px; z-index: 2; padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: #14161a; font-size: 12px; font-weight: 700;
}
.card-body { padding: 0 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body .monogram { width: 60px; height: 60px; margin-top: -30px; border: 4px solid var(--surface); font-size: 22px; border-radius: 16px; position: relative; z-index: 2; }
.card-body h3 { font-size: 21px; margin-top: 14px; }
.card-body .tagline { color: var(--ink-2); font-size: 15px; margin-top: 6px; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); font-weight: 600; }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-meta svg { width: 14px; height: 14px; }
.stage-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--ink); font-size: 12px; font-weight: 700; }

.empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 20px; margin-bottom: 6px; }

/* ---------- Tracks ---------- */
.tracks-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 22px; align-items: stretch; }
.tracks-photo { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 320px; background: var(--navy); }
.tracks-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tracks-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 22px; color: #fff; font-weight: 700; font-size: 19px; line-height: 1.3;
  background: linear-gradient(transparent, rgba(8, 26, 33, 0.9));
}
.tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.track { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.track .num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand-soft); color: var(--green-strong); font-size: 13px; font-weight: 800;
}
.track h3 { font-size: 21px; margin: 26px 0 8px; }
.track p { font-size: 15px; color: var(--muted); }
.track:nth-child(4) { background: var(--navy); color: #fff; border-color: var(--navy); }
.track:nth-child(4) p { color: rgba(255, 255, 255, 0.7); }
.track:nth-child(4) .num { background: var(--lime); color: #fff; }
@media (max-width: 900px) { .tracks-wrap { grid-template-columns: 1fr; } .tracks-photo { min-height: 240px; } }
@media (max-width: 520px) { .tracks { grid-template-columns: 1fr; } }

/* ---------- Why showcase ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.why-photo { border-radius: 26px; overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow-lg); background: var(--navy); }
.why-photo img { width: 100%; height: 100%; object-fit: cover; }
.why h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin: 10px 0 10px; }
.why-lede { color: var(--ink-2); font-size: 18px; margin-bottom: 28px; }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.benefits li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; }
.benefits .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--green-strong); display: grid; place-items: center; }
.benefits .ico svg { width: 22px; height: 22px; }
.benefits h3 { font-size: 19px; margin: 2px 0 4px; }
.benefits p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; gap: 32px; } .why-photo { aspect-ratio: 16 / 10; } }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 28px; color: #fff;
  background: #0a1a3a url("img/bg-skyline-dark.webp") right center / cover no-repeat;
}
.cta-body { padding: 64px 56px; max-width: 620px; position: relative; z-index: 1; }
.cta h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.cta p { margin-top: 12px; font-size: 18px; color: rgba(255, 255, 255, 0.78); }
.cta ol { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.cta li { display: flex; gap: 14px; align-items: center; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); padding: 12px 16px; border-radius: 14px; font-weight: 600; font-size: 15.5px; }
.cta li b { width: 28px; height: 28px; border-radius: 50%; background: var(--lime); color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }
.cta .btn { margin-top: 28px; }
@media (max-width: 860px) {
  .cta { background-position: 75% center; }
  .cta-body { padding: 40px 24px; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; margin-top: 40px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { max-width: 320px; }
.site-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { text-decoration: none; font-weight: 600; }
.site-footer ul a:hover { color: var(--ink); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-row a { text-decoration: none; font-weight: 600; }
.footer-row a:hover { color: var(--ink); }

/* ================= Profile page ================= */
.back-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); margin: 26px 0 18px; }
.back-link:hover { color: var(--ink); }
.back-link svg { width: 16px; height: 16px; }

.profile-cover { height: clamp(180px, 28vw, 300px); border-radius: 26px; }
.profile-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; justify-content: space-between; padding: 0 28px; margin-top: 20px; position: relative; z-index: 2; }
.profile-id { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.profile-id .monogram { width: 112px; height: 112px; border-radius: 28px; font-size: 40px; border: 6px solid var(--bg); margin-top: -76px; }
.profile-actions { padding-top: 8px; }
.profile-id h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; }
.profile-id .tagline { font-size: 19px; color: var(--ink-2); margin-top: 6px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tag svg { width: 14px; height: 14px; }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .profile-head { padding: 0 8px; }
  .profile-id { flex-direction: column; gap: 14px; }
  .profile-id .monogram { width: 92px; height: 92px; font-size: 32px; margin-top: -66px; }
}

.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 44px 0; }
@media (max-width: 640px) {
  .metrics { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; margin: 32px 0; }
  .metric { padding: 16px; }
  .metric strong { font-size: 26px; }
  .metric span { font-size: 12px; line-height: 1.3; display: block; }
}
.metric { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.metric strong { display: block; font-size: 38px; font-weight: 800; letter-spacing: -0.03em; color: var(--accent); }
.metric span { color: var(--muted); font-weight: 600; font-size: 14px; }

.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .profile-layout { grid-template-columns: 1fr; } }
.block { margin-bottom: 52px; }
.block > h2 { font-size: 28px; font-weight: 800; margin: 10px 0 20px; }
.block .lead { font-size: 19px; color: var(--ink-2); line-height: 1.7; }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.service { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.service .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-weight: 800; margin-bottom: 16px; }
.service h3 { font-size: 18px; margin-bottom: 6px; }
.service p { font-size: 15px; color: var(--muted); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-left: 36px; padding-bottom: 22px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.timeline b { display: block; font-size: 14px; color: var(--accent); font-weight: 800; }

.quote { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); margin-bottom: 14px; }
.quote p { font-size: 19px; font-weight: 600; line-height: 1.5; }
.quote cite { display: block; margin-top: 12px; font-style: normal; color: var(--muted); font-size: 14px; font-weight: 600; }

.aside { position: sticky; top: 92px; display: grid; gap: 16px; }
.panel { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.panel > h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 16px; }
.founder { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.founder .avatar { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); font-weight: 800; color: var(--ink); flex: none; overflow: hidden; }
.founder .avatar img { width: 100%; height: 100%; object-fit: cover; }
.founder strong { display: block; font-size: 17px; }
.founder span { font-size: 14px; color: var(--muted); }
.panel .bio { font-size: 15px; color: var(--ink-2); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.contact-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 0 -12px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 15px; word-break: break-word; }
.contact-list a:hover { background: var(--bg); }
.contact-list svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.facts dt { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.facts dd { margin: 2px 0 0; font-weight: 700; }

.related { margin-top: 20px; }
.not-found { text-align: center; padding: 120px 0; }
.not-found h1 { font-size: 40px; margin-bottom: 12px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: var(--ink); color: var(--bg);
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: transform 0.25s ease; z-index: 100;
}
.toast.show { transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ================= Submit page ================= */
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.submit-hero { max-width: 760px; margin-bottom: 36px; }
.submit-hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; margin: 12px 0 14px; }
.submit-hero p { font-size: 18px; color: var(--ink-2); }
.submit-steps { list-style: none; counter-reset: step; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 24px 0 0; }
.submit-steps li { counter-increment: step; }
.submit-steps a {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.submit-steps a::before {
  content: counter(step); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--green-strong); font-size: 12px; font-weight: 800;
}
.submit-steps a:hover { border-color: var(--green); color: var(--ink); }

.submit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }
.submit-aside { position: sticky; top: 92px; }
@media (max-width: 980px) {
  .submit-layout { grid-template-columns: 1fr; }
  .submit-aside { order: -1; position: static; }
}

.fs {
  margin: 0 0 22px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); min-width: 0; scroll-margin-top: 90px;
}
.fs legend { display: flex; align-items: center; gap: 12px; padding: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; float: left; width: 100%; margin-bottom: 6px; }
.fs legend + * { clear: both; }
.fs-num { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 15px; flex: none; }
.fs-hint { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.fs.invalid { border-color: #d64545; }
@media (max-width: 560px) { .fs { padding: 20px 16px; } }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; min-width: 0; }
.field > label, .label { font-size: 14.5px; font-weight: 700; color: var(--ink); display: block; }
.label { margin-bottom: 8px; }
.field > .label { margin-bottom: 0; }
.req { color: #d64545; }
.opt { font-weight: 600; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-left: 4px; }

.submit-page input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]),
.submit-page textarea, .submit-page select.input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg);
  font: 500 16px/1.4 var(--font); color: var(--ink); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.submit-page textarea { resize: vertical; min-height: 48px; }
.submit-page select.input {
  appearance: none; cursor: pointer; padding-right: 40px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23637882' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.submit-page input::placeholder, .submit-page textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.submit-page input:focus, .submit-page textarea:focus, .submit-page select:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(15, 154, 146, 0.16); background-color: var(--surface);
}
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #d64545; }
.err { color: #d64545; font-size: 13.5px; font-weight: 600; }
.fs > .err { display: block; margin-top: 4px; }
.counter, .hint { font-size: 12.5px; color: var(--muted); }
.counter { align-self: flex-end; margin-top: -2px; }

/* Track radio cards */
.radio-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 760px) { .radio-cards { grid-template-columns: 1fr 1fr; } }
.radio-cards label {
  position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 14px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--bg); transition: border-color 0.15s ease, background 0.15s ease;
}
.radio-cards input { position: absolute; opacity: 0; pointer-events: none; }
.radio-cards b { font-size: 15px; padding-right: 18px; }
.radio-cards small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.radio-cards label:hover { border-color: var(--ink-2); }
.radio-cards label:has(input:checked) { border-color: var(--green); background: var(--brand-soft); }
.radio-cards label:has(input:checked)::after {
  content: "✓"; position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-strong); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center;
}
.radio-cards label:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(15, 154, 146, 0.25); }
.field.invalid .radio-cards label { border-color: #e7a0a0; }

/* File pickers */
.file {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; cursor: pointer;
  border: 1.5px dashed var(--line); background: var(--bg); transition: border-color 0.15s ease;
}
.file:hover, .file:focus-within { border-color: var(--green); }
.file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-thumb {
  width: 56px; height: 56px; border-radius: 12px; flex: none; background: var(--brand-soft) center / cover no-repeat;
  display: grid; place-items: center; color: var(--green-strong);
}
.file-thumb::before { content: "↑"; font-weight: 800; font-size: 20px; }
.file.has-file .file-thumb::before { content: none; }
.file-thumb.wide { width: 84px; }
.file-thumb.round { border-radius: 50%; }
.file-text { display: flex; flex-direction: column; min-width: 0; }
.file-text b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-text small { font-size: 12.5px; color: var(--muted); }
.file.has-file { border-style: solid; border-color: var(--green); }
.file-clear { align-self: flex-start; border: 0; background: none; padding: 0; font: 600 13px var(--font); color: var(--muted); cursor: pointer; text-decoration: underline; }
.file-clear:hover { color: #d64545; }

/* Colour swatches */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; background: var(--c);
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line); transition: transform 0.12s ease;
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-checked="true"], .swatch-custom.is-on { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); }
.swatch-custom { position: relative; display: grid; place-items: center; background: var(--c, conic-gradient(red, yellow, lime, cyan, blue, magenta, red)); overflow: hidden; }
.swatch-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.swatch-custom span { color: #fff; font-weight: 800; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); pointer-events: none; }

/* Repeatable rows */
.rows { display: grid; gap: 12px; margin-bottom: 12px; }
.row-item { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.row-fields { flex: 1; display: grid; gap: 8px; min-width: 0; }
.row-inline { grid-template-columns: 110px 1fr; }
.submit-page .row-item input, .submit-page .row-item textarea { background: var(--surface); }
.row-remove {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; flex: none;
}
.row-remove:hover { color: #d64545; border-color: #d64545; }
.btn-add { padding: 10px 18px; font-size: 14px; }

.metrics-inputs { display: grid; gap: 10px; }
.metric-in { display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
@media (max-width: 420px) { .metric-in, .row-inline { grid-template-columns: 88px 1fr; } }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15.5px; font-weight: 500 !important; color: var(--ink-2) !important; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green-strong); flex: none; }
.submit-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn:disabled { opacity: 0.7; cursor: progress; transform: none; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #fdecec; color: #8a1f1f; font-size: 15px; font-weight: 600; }
.linklike { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* Preview panel */
.preview-panel h3 { margin-bottom: 4px; }
.preview-note { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
#preview .card { pointer-events: none; }
.meter { margin-top: 20px; }
.meter-top { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.meter-top b { color: var(--green-strong); }
.meter-bar { height: 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.meter-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--lime), var(--green)); transition: width 0.3s ease; }
.meter small { display: block; margin-top: 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }

/* Done state */
.done { max-width: 680px; margin: 40px auto 20px; text-align: center; outline: none; }
.done-icon { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; font-weight: 800; background: var(--brand-soft); color: var(--green-strong); }
.done h1 { font-size: clamp(30px, 4.5vw, 44px); font-weight: 800; }
.done-lede { font-size: 18px; color: var(--ink-2); margin: 14px 0 26px; }
.done-steps { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; text-align: left; }
.done-steps li { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.done-steps b { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }
.done-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.done-actions svg { width: 18px; height: 18px; }
.attach-note { text-align: left; padding: 16px 20px; border-radius: 14px; background: var(--brand-soft); margin-bottom: 24px; font-size: 15px; }
.attach-note ul { margin: 8px 0 0; padding-left: 20px; }
.done-small { margin-top: 16px; font-size: 14px; color: var(--muted); }
.done-details { margin-top: 24px; text-align: left; }
.done-details summary { cursor: pointer; font-weight: 700; }
.done-details pre { white-space: pre-wrap; word-break: break-word; font: 500 14px/1.55 var(--font); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-top: 12px; }

.footer-row .admin-link { font-weight: 600; color: var(--muted); }
.footer-row .admin-link:hover { color: var(--ink); }

/* =====================================================================
   Design layer: expressive type, motion and editorial sections
   (inspired by patterns common to Awwwards / CSSDA / SiteInspire picks)
   ===================================================================== */

:root { --ease-out: cubic-bezier(0.2, 0.75, 0.2, 1); --serif: "Instrument Serif", Georgia, "Times New Roman", serif; }

.serif, h1 em, h2 em, .section-head h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em;
}
.section-head h2 { font-size: clamp(34px, 5vw, 60px); letter-spacing: -0.035em; line-height: 1.02; }
.section-head h2 em { color: var(--green-strong); }
:root[data-theme="dark"] .section-head h2 em { color: var(--green); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .section-head h2 em { color: var(--green); } }

/* ---------- Page transitions (Chromium) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }

/* ---------- Scroll progress + header ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; pointer-events: none;
  transform-origin: 0 50%; transform: scaleX(var(--scroll-p, 0));
  background: linear-gradient(90deg, var(--lime), var(--green));
}
.site-header { transition: box-shadow 0.3s ease, background 0.3s ease; }
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(8, 26, 33, 0.35); }

/* ---------- Grain ---------- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 110; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.admin-body::after, .login-body::after { content: none; }

/* ---------- Reveal system ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(0.96); }
.js [data-reveal="left"] { transform: translateX(-32px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms + 80ms); }
.js [data-split].is-in .w > span { transform: none; }

.reduce-motion [data-reveal], .reduce-motion [data-split] .w > span { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .marquee-track, .float-card { animation: none !important; }
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; }
.hero h1 { font-size: clamp(46px, 7.2vw, 96px); letter-spacing: -0.045em; line-height: 0.98; margin: 20px 0 22px; }
.hero h1 .hl { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; padding-right: 0.06em; }
.hero h1 .hl::after { height: 0.12em; bottom: 0.06em; opacity: 0.55; border-radius: 99px; }
.hero-lede { font-size: clamp(17px, 1.6vw, 20px); }

.hero-search {
  display: flex; align-items: center; gap: 10px; max-width: 580px; margin-top: 32px;
  padding: 7px 7px 7px 20px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: 0 20px 50px -24px rgba(8, 26, 33, 0.35);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.hero-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 5px rgba(15, 154, 146, 0.15), 0 20px 50px -24px rgba(8, 26, 33, 0.35); }
.hero-search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 17px var(--font); color: var(--ink); }
.hero-search .btn { padding: 13px 24px; }
.hero-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--muted); font-weight: 600; }
.hero-quick button {
  border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--ink-2);
  padding: 6px 13px; border-radius: 999px; font: 600 13.5px var(--font); cursor: pointer; transition: all 0.2s ease;
}
.hero-quick button:hover { border-color: var(--green); color: var(--green-strong); background: var(--surface); }
.hero-submit { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--lime); padding-bottom: 2px; }
.hero-submit svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.hero-submit:hover svg { transform: translateX(4px); }
.hero-stats { margin-top: 36px; gap: 40px; }
.hero-stats strong { font-size: clamp(30px, 3.4vw, 42px); font-variant-numeric: tabular-nums; }

.hero-photo img { transform: translateY(var(--parallax, 0)) scale(1.1); transition: transform 0.1s linear; will-change: transform; }
.float-card { animation: kb-float 7s ease-in-out infinite; }
.float-card.f2 { animation-delay: -3.5s; }
@keyframes kb-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (max-width: 560px) {
  .hero-search { padding-left: 16px; }
  .hero-search .btn { padding: 12px 16px; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line); background: var(--surface);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: kb-marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: flex; align-items: center; gap: 40px; padding-right: 40px; white-space: nowrap;
  font-size: clamp(22px, 3vw, 38px); font-weight: 800; letter-spacing: -0.03em; color: var(--ink);
}
.marquee-item em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--green-strong); }
.marquee-item::after { content: "✦"; font-size: 0.55em; color: var(--lime); }
@keyframes kb-marquee { to { transform: translateX(-50%); } }

/* ---------- Industry bento ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(150px, auto); gap: 14px; }
.ind {
  --c: var(--green);
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  padding: 22px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface);
  text-decoration: none; color: var(--ink); cursor: pointer; text-align: left; font: inherit;
  transition: transform 0.35s var(--ease-out), border-color 0.25s ease, box-shadow 0.35s ease;
}
.ind::before {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%);
  transition: transform 0.6s var(--ease-out); transform: scale(0.6);
}
.ind:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); box-shadow: 0 24px 50px -30px color-mix(in srgb, var(--c) 70%, transparent); }
.ind:hover::before { transform: scale(1.3); }
.ind-ico { position: relative; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.ind-ico svg { width: 22px; height: 22px; }
.ind h3 { position: relative; font-size: 19px; }
.ind small { position: relative; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-weight: 600; font-size: 14px; }
.ind small svg { width: 18px; height: 18px; transition: transform 0.25s ease; }
.ind:hover small svg { transform: translateX(4px); color: var(--c); }
.ind.all { grid-row: span 2; background: var(--navy); color: #fff; border-color: var(--navy); }
.ind.all::before { background: radial-gradient(circle, rgba(122, 168, 58, 0.45), transparent 70%); width: 360px; height: 360px; }
.ind.all .ind-ico { background: rgba(255, 255, 255, 0.1); color: var(--lime); }
.ind.all h3 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.03em; line-height: 1.05; }
.ind.all h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--lime); }
.ind.all small { color: rgba(255, 255, 255, 0.7); }
.ind .big { position: relative; font-size: clamp(56px, 6vw, 88px); font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; }
@media (max-width: 900px) { .ind-grid { grid-template-columns: 1fr 1fr; } .ind.all { grid-column: span 2; grid-row: auto; } }

/* ---------- Directory cards ---------- */
.card { isolation: isolate; }
.card::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent, var(--green)) 16%, transparent), transparent 45%);
}
.card:hover::after { opacity: 1; }
.card-cover { transition: transform 0.7s var(--ease-out); }
.card:hover .card-cover { transform: scale(1.06); }
.card-go {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--green-strong);
}
:root[data-theme="dark"] .card-go { color: var(--green); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card-go { color: var(--green); } }
.card-go svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
.card:hover .card-go svg { transform: translateX(5px); }
.card-body .monogram { transition: transform 0.4s var(--ease-out); }
.card:hover .card-body .monogram { transform: translateY(-4px) rotate(-3deg); }

/* ---------- Voices (testimonials) ---------- */
.voices-card {
  position: relative; overflow: hidden; border-radius: 32px; padding: clamp(36px, 6vw, 80px);
  background: var(--navy); color: #fff; isolation: isolate;
}
.voices-card::before {
  content: "“"; position: absolute; top: clamp(24px, 4vw, 56px); right: clamp(24px, 5vw, 72px); z-index: -1;
  font-family: var(--serif); font-size: clamp(160px, 22vw, 300px); line-height: 0.7; color: rgba(122, 168, 58, 0.22);
}
.voices-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 20%) var(--my, 30%), rgba(15, 154, 146, 0.22), transparent 55%);
}
.voices-card .eyebrow { color: rgba(255, 255, 255, 0.65); }
.voices-stage { position: relative; display: grid; margin-top: 26px; min-height: 12em; }
.voice { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); pointer-events: none; }
.voice.on { opacity: 1; transform: none; pointer-events: auto; }
.voice blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(28px, 4.2vw, 56px); line-height: 1.12; letter-spacing: -0.015em; max-width: 22ch; }
.voice figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; font-size: 15px; color: rgba(255, 255, 255, 0.75); font-weight: 600; }
.voice figcaption .monogram { width: 40px; height: 40px; font-size: 14px; border-radius: 12px; }
.voice figcaption a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.voice figcaption a:hover { border-color: var(--lime); }
.voices-nav { display: flex; gap: 8px; margin-top: 34px; }
.voices-nav button { width: 34px; height: 6px; border-radius: 99px; border: 0; padding: 0; background: rgba(255, 255, 255, 0.25); cursor: pointer; transition: background 0.3s ease, width 0.3s ease; }
.voices-nav button[aria-current="true"] { width: 56px; background: var(--lime); }

/* ---------- Journey (tracks) ---------- */
.journey { position: relative; }
.journey-line { position: absolute; left: 23px; right: 0; top: 23px; height: 2px; background: var(--line); }
.journey-line span { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--lime), var(--green)); transition: transform 1.8s var(--ease-out) 0.2s; }
.journey.is-in .journey-line span, .reduce-motion .journey-line span { transform: scaleX(1); }
.journey-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.journey-steps li { position: relative; }
.j-dot {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px;
  background: var(--surface); border: 2px solid var(--line); color: var(--ink); transition: border-color 0.4s ease, background 0.4s ease, color 0.4s ease;
  transition-delay: calc(var(--i, 0) * 350ms + 300ms);
}
.journey.is-in .j-dot { border-color: var(--green); background: var(--green-strong); color: #fff; }
.journey-steps h3 { font-size: clamp(22px, 2.2vw, 28px); margin: 22px 0 8px; letter-spacing: -0.02em; }
.journey-steps p { color: var(--muted); font-size: 15.5px; }
.journey-steps small { display: inline-flex; margin-top: 14px; padding: 5px 11px; border-radius: 999px; background: var(--brand-soft); color: var(--green-strong); font-weight: 700; font-size: 12.5px; }
@media (max-width: 860px) {
  .journey-steps { grid-template-columns: 1fr; gap: 30px; }
  .journey-steps li { padding-left: 72px; min-height: 48px; }
  .j-dot { position: absolute; left: 0; top: 0; }
  .journey-steps h3 { margin-top: 8px; }
  .journey-line { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .journey-line span { transform-origin: 50% 0; transform: scaleY(0); background: linear-gradient(180deg, var(--lime), var(--green)); }
  .journey.is-in .journey-line span, .reduce-motion .journey-line span { transform: scaleY(1); }
}

/* ---------- Why bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(210px, auto); gap: 14px; }
.b-photo { grid-column: span 2; grid-row: span 2; position: relative; margin: 0; border-radius: 26px; overflow: hidden; background: var(--navy); }
.b-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: translateY(var(--parallax, 0)) scale(1.12); }
.b-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 90px 28px 26px; color: #fff;
  background: linear-gradient(transparent, rgba(8, 26, 33, 0.88));
  font-size: clamp(28px, 3.4vw, 46px); font-weight: 800; letter-spacing: -0.035em; line-height: 1;
}
.b-photo figcaption em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--lime); }
.b-tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
}
.b-tile .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--green-strong); }
.b-tile .ico svg { width: 22px; height: 22px; }
.b-tile h3 { font-size: 24px; letter-spacing: -0.02em; margin-bottom: 6px; }
.b-tile p { color: var(--muted); font-size: 15px; }
.b-dark { background: var(--navy); color: #fff; border-color: var(--navy); isolation: isolate; }
.b-dark img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.b-dark::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, rgba(8, 26, 33, 0.2), rgba(8, 26, 33, 0.92)); }
.b-dark h3 { font-size: 22px; line-height: 1.2; }
.b-dark h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--lime); }
.b-dark small { color: rgba(255, 255, 255, 0.7); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 11.5px; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } .b-photo { grid-column: span 2; grid-row: auto; min-height: 320px; } }
@media (max-width: 520px) { .bento { grid-template-columns: 1fr; } .b-photo { grid-column: auto; } }

/* ---------- CTA ---------- */
.cta h2 { font-size: clamp(32px, 4.6vw, 58px); letter-spacing: -0.04em; line-height: 1; }
.cta h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--lime); }
.magnetic { transition: translate 0.25s var(--ease-out), transform 0.15s ease, background 0.15s ease; }

/* ---------- Footer wordmark ---------- */
/* Sized from the footer's own width (container units), so it always fits the column;
   motion.js then fine-tunes it to the loaded fonts. */
.site-footer .container { container-type: inline-size; }
.footer-mega {
  font-size: 56px; font-size: 18.5cqi; font-weight: 800; letter-spacing: -0.06em; line-height: 0.9;
  margin: 8px 0 34px; padding-right: 0.08em; white-space: nowrap; overflow: hidden; user-select: none;
  background: linear-gradient(180deg, var(--ink) 0%, color-mix(in srgb, var(--ink) 25%, transparent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer-mega em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.03em; }

/* ---------- Profile page polish ---------- */
.profile-cover { overflow: hidden; }
.profile-cover.cover-art::after { transform: translateY(var(--parallax, 0)); }
.block > h2 { font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -0.03em; }
.block > h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }
.metric strong { font-variant-numeric: tabular-nums; }
.reduce-motion .j-dot { border-color: var(--green); background: var(--green-strong); color: #fff; transition: none; }
.hero-grid > * { min-width: 0; }
/* Brighter teal for italic accents on dark backgrounds */
:root[data-theme="dark"] .hero h1 .hl, :root[data-theme="dark"] .marquee-item em { color: var(--green); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 .hl, :root:not([data-theme="light"]) .marquee-item em { color: var(--green); } }

/* ---------- Submit page: design layer ---------- */
.submit-hero {
  --sh-img: url("img/bg-skyline-light.webp");
  position: relative; overflow: hidden; isolation: isolate; max-width: none;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  margin: 0 0 22px; padding: clamp(28px, 5vw, 64px); border-radius: 32px; border: 1px solid var(--line);
  background:
    linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 90%, transparent) 42%, color-mix(in srgb, var(--bg) 25%, transparent) 100%),
    var(--sh-img) center / cover no-repeat;
}
:root[data-theme="dark"] .submit-hero { --sh-img: url("img/bg-skyline-dark.webp"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .submit-hero { --sh-img: url("img/bg-skyline-dark.webp"); } }
.sh-text { min-width: 0; }
.submit-hero h1 { font-size: clamp(44px, 6.4vw, 86px); letter-spacing: -0.045em; line-height: 0.98; margin: 18px 0 18px; }
.submit-hero h1 em { color: var(--green-strong); padding-right: 0.05em; }
:root[data-theme="dark"] .submit-hero h1 em { color: var(--green); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .submit-hero h1 em { color: var(--green); } }
.submit-hero p { max-width: 540px; }
.sh-facts { display: flex; flex-wrap: wrap; gap: 20px 36px; margin-top: 32px; }
.sh-facts strong { display: block; font-size: clamp(30px, 3.2vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.sh-facts span { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.sh-visual { position: relative; min-width: 0; }
.sh-photo { aspect-ratio: 5 / 4; }
.sh-photo img { object-position: 50% 35%; }
.sh-badge { font-weight: 700; font-size: 14px; color: var(--ink); padding: 12px 16px; }
.sh-tick { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--green-strong); color: #fff; font-size: 13px; flex: none; }
@media (max-width: 900px) {
  .submit-hero { grid-template-columns: 1fr; }
  .sh-visual { margin-bottom: 18px; }
}

/* Sticky section bar with scroll-spy */
.submit-steps {
  position: sticky; top: 78px; z-index: 20; margin: 0 0 24px; padding: 6px; gap: 4px;
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(160%) blur(12px);
  border: 1px solid var(--line); box-shadow: 0 16px 34px -24px rgba(8, 26, 33, 0.4);
}
.submit-steps::-webkit-scrollbar { display: none; }
.submit-steps li { flex: none; }
.submit-steps a { border: 0; background: transparent; white-space: nowrap; transition: background 0.25s ease, color 0.25s ease; }
.submit-steps a.passed::before { background: var(--green-strong); color: #fff; }
.submit-steps a[aria-current="step"] { background: var(--navy); color: #fff; }
.submit-steps a[aria-current="step"]::before { background: var(--lime); color: var(--navy); }
.submit-aside { top: 152px; }

/* Form cards */
.submit-page .fs { transition: border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.submit-page .fs:focus-within { border-color: color-mix(in srgb, var(--green) 45%, var(--line)); box-shadow: 0 26px 50px -36px rgba(15, 154, 146, 0.6); }
.fs legend { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.03em; }
.fs legend em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--green-strong); letter-spacing: -0.01em; }
:root[data-theme="dark"] .fs legend em { color: var(--green); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fs legend em { color: var(--green); } }
.fs-num { width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(135deg, var(--navy), var(--green-strong)); box-shadow: 0 8px 18px -10px rgba(15, 154, 146, 0.8); }

/* Dark spotlight preview panel */
.preview-panel { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); border-color: var(--navy); color: #fff; }
.preview-panel::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 80%) var(--my, 0%), rgba(15, 154, 146, 0.35), transparent 60%);
}
.panel.preview-panel > h3 { color: rgba(255, 255, 255, 0.7); }
.preview-panel .preview-note { color: rgba(255, 255, 255, 0.72); }
.preview-panel .meter-top { color: #fff; }
.preview-panel .meter-top b { color: var(--lime); }
.preview-panel .meter-bar { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.14); }
.preview-panel .meter small { color: rgba(255, 255, 255, 0.82); }

/* Done state */
.done h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--green-strong); }
:root[data-theme="dark"] .done h1 em { color: var(--green); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .done h1 em { color: var(--green); } }
.done-icon { position: relative; width: 88px; height: 88px; background: var(--brand-soft); }
.done-icon svg { width: 44px; height: 44px; }
.done-icon .draw { stroke-dasharray: 60; stroke-dashoffset: 60; animation: kb-draw 0.8s var(--ease-out) 0.25s forwards; }
.done-icon::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--green); opacity: 0; animation: kb-ring 1.2s var(--ease-out) 0.1s; }
@keyframes kb-draw { to { stroke-dashoffset: 0; } }
@keyframes kb-ring { 0% { opacity: 0.8; transform: scale(0.7); } 100% { opacity: 0; transform: scale(1.5); } }
.confetti { position: absolute; left: 50%; top: 44px; width: 0; height: 0; pointer-events: none; }
.confetti i {
  position: absolute; width: 8px; height: 8px; border-radius: 2px; opacity: 0;
  animation: kb-burst 1.3s var(--ease-out) forwards; animation-delay: calc(var(--d) * 1ms);
}
@keyframes kb-burst {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); }
}
.done { position: relative; }
@media (prefers-reduced-motion: reduce) {
  .confetti { display: none; }
  .done-icon .draw { animation: none; stroke-dashoffset: 0; }
  .done-icon::after { animation: none; }
}
.submit-hero .float-card p { font-size: 12.5px; max-width: none; color: var(--muted); }
.submit-hero .float-card h4 { font-size: 15px; }
/* Even out heading line breaks, and keep short italic phrases together */
h1, h2, .fs legend { text-wrap: balance; }
.done h1 em, .submit-hero h1 em { white-space: nowrap; }
