/* ============================================================
   KWO — kwo.css
   Ken Wee Organisation — financial advisory (HSBC Life agency unit).
   Design language follows the KSB system: light, warm, editorial.
   Brand colours (from KWO logo):
     #14233b  navy   (primary ink / headings)
     #c0202f  red    (accent — used sparingly)
     #F7F5F0  paper  (background)
   Fonts: Cardo (serif headings + eyebrow) · Karla (body).
   Mobile-first.
   PROD TODO: self-host Cardo + Karla (LOOP owns everything — no
   runtime dependency on Google Fonts). Google link OK for staging.
   ============================================================ */

/* ── Brand tokens (KSB shape, KWO palette) ── */
:root {
  --kwo-navy: #14233b;
  --kwo-navy-soft: #28405f;   /* lighter navy for body-on-navy / hovers */
  --kwo-red: #c0202f;
  --kwo-red-deep: #9c1a26;
  --kwo-paper: #F7F5F0;
  --kwo-paper-2: #FBF9F5;     /* slightly lighter band */
  --kwo-ink: #1A1A1A;
  --kwo-muted: #6B6B6B;
  --kwo-line: #e7e2d8;        /* warm hairline border */
  --kwo-line-2: #efe9df;
}

/* ── Reset / base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Karla', system-ui, sans-serif;
  background-color: var(--kwo-paper);
  color: #25282c;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cardo', Georgia, serif;
  color: var(--kwo-navy);
  line-height: 1.18;
  font-weight: 700;
}

a { color: var(--kwo-navy); text-decoration: none; }

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

::selection { background: var(--kwo-navy); color: #fff; }

/* ── Layout container ── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow { max-width: 820px; }
.container-wide { max-width: 1280px; }

/* ── Editorial type helpers ── */
.eyebrow {
  font-family: 'Cardo', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--kwo-red);
  letter-spacing: 0.02em;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.eyebrow--muted { color: var(--kwo-muted); }

.section-head { max-width: 640px; margin-bottom: 2.75rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  margin-bottom: 0.85rem;
}
.section-head p {
  font-size: 1.08rem;
  color: var(--kwo-muted);
}

.lead { font-size: 1.2rem; color: #3a3f45; line-height: 1.75; }

/* Long-form body copy (bios, policy, about) */
.prose p { margin-bottom: 1.15rem; color: #3a3f45; }
.prose p:last-child { margin-bottom: 0; }
.prose--lg p { font-size: 1.12rem; line-height: 1.8; }

/* Thin red editorial rule — the recurring signature accent */
.rule-red {
  width: 56px;
  height: 3px;
  background: var(--kwo-red);
  border: 0;
  border-radius: 2px;
}

/* ── Sections / bands ── */
.section { padding: 5.5rem 0; }
.section--tight { padding: 3.75rem 0; }
.band-paper-2 { background: var(--kwo-paper-2); }
.band-navy { background: var(--kwo-navy); color: #d8dee8; }
.band-navy h1, .band-navy h2, .band-navy h3 { color: #fff; }
.band-line { border-top: 1px solid var(--kwo-line); }

/* Inner-page header (non-home) */
.page-head { padding: 7.5rem 0 2.5rem; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 0.85rem; }
.page-head .lead { max-width: 640px; }

/* ============================================================
   BUTTONS
   Navy = the trust workhorse. Red = rare accent.
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 8px;
  font-family: 'Karla', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary { background: var(--kwo-navy); color: #fff; }
.btn-primary:hover {
  background: var(--kwo-navy-soft);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -10px rgba(20,35,59,0.55);
}

.btn-accent { background: var(--kwo-red); color: #fff; }
.btn-accent:hover {
  background: var(--kwo-red-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -10px rgba(192,32,47,0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--kwo-navy);
  border-color: var(--kwo-line);
}
.btn-ghost:hover {
  border-color: var(--kwo-navy);
  background: #fff;
  color: var(--kwo-navy);
}

/* Ghost on a navy background */
.band-navy .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.35); }
.band-navy .btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: #fff; }

.btn-lg { padding: 1rem 2.2rem; font-size: 1rem; }
.btn-block { display: block; width: 100%; }

/* Quiet text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--kwo-navy);
  border-bottom: 2px solid var(--kwo-red);
  padding-bottom: 2px;
  transition: gap 0.18s ease, color 0.18s ease;
}
.link-arrow:hover { gap: 0.75rem; color: var(--kwo-red); }
.link-arrow svg { width: 1rem; height: 1rem; }

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  background: rgba(247,245,240,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}
.site-nav.is-scrolled {
  border-bottom-color: var(--kwo-line);
  background: rgba(247,245,240,0.96);
  box-shadow: 0 4px 20px rgba(20,35,59,0.05);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.nav-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
/* Logo is navy+red on transparent — sits directly on paper, no chip. */
.nav-logo-img { height: 42px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
}
.nav-links a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--kwo-navy);
  padding: 0.25rem 0;
  transition: color 0.15s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px; width: 0;
  background: var(--kwo-red);
  transition: width 0.28s cubic-bezier(.2,.8,.2,1);
}
.nav-links a:hover { color: var(--kwo-red); }
.nav-links a:hover::after,
.nav-links a.nav-active::after { width: 100%; }
.nav-links a.nav-active { color: var(--kwo-red); }

.nav-cta { padding: 0.55rem 1.25rem; font-size: 0.9rem; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger-line {
  display: block;
  width: 24px; height: 2px;
  background: var(--kwo-navy);
  border-radius: 2px;
}

/* Mobile drawer */
.nav-mobile {
  display: none;
  background: var(--kwo-paper);
  border-top: 1px solid var(--kwo-line);
}
.nav-mobile .nav-mobile-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-mobile a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--kwo-navy);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--kwo-line-2);
}
.nav-mobile a.nav-active { color: var(--kwo-red); }
.nav-mobile .btn { margin-top: 1rem; }

/* push content below fixed nav */
main { padding-top: 0; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}

/* ============================================================
   HERO — navy / paper editorial split (the signature element)
   ============================================================ */
.hero {
  position: relative;
  padding: 8.5rem 0 4.5rem;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-copy { max-width: 560px; }
.hero-copy h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0.4rem 0 0.4rem;
}
.hero-copy h1 .accent { color: var(--kwo-red); }
.hero-copy h1 em {
  font-style: italic;
  font-weight: 400;
}
.hero-sub {
  font-size: 1.2rem;
  color: #3a3f45;
  line-height: 1.7;
  margin: 1.5rem 0 2rem;
  max-width: 30rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Trust line — the HSBC Life affiliation, stated quietly */
.hero-trust {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--kwo-line);
}
.hero-trust-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--kwo-muted);
  margin-bottom: 0.45rem;
}
.hero-trust-text {
  font-family: 'Cardo', serif;
  font-size: 1.05rem;
  color: var(--kwo-navy);
}

/* Right side — framed portrait on a navy panel */
.hero-portrait {
  position: relative;
  background: var(--kwo-navy);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 30px 70px -30px rgba(20,35,59,0.45);
}
.hero-portrait-img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.hero-portrait-tag {
  position: absolute;
  left: -14px;
  bottom: 28px;
  background: var(--kwo-red);
  color: #fff;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  box-shadow: 0 12px 28px -10px rgba(192,32,47,0.6);
}
.hero-portrait-tag .t1 {
  font-family: 'Cardo', serif;
  font-size: 1.25rem;
  line-height: 1;
}
.hero-portrait-tag .t2 {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.25rem;
  opacity: 0.92;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-portrait { max-width: 380px; }
}

/* ============================================================
   UNIFIED CARD SYSTEM (mirrors KSB)
   white bg · 1.5px warm border · radius 12 · hover lift
   ============================================================ */
.kwo-card {
  background: #fff;
  border: 1.5px solid var(--kwo-line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.kwo-card:hover {
  border-color: var(--kwo-navy);
  box-shadow: 0 6px 22px rgba(20,35,59,0.1);
  transform: translateY(-2px);
}
.kwo-card.selected { border-color: var(--kwo-red); box-shadow: 0 4px 16px rgba(192,32,47,0.14); }
.kwo-card .card-body { padding: 1.5rem; }

/* Numbered benefit card */
.benefit-num {
  font-family: 'Cardo', serif;
  font-size: 2.6rem;
  color: var(--kwo-line);
  line-height: 1;
  margin-bottom: 1rem;
}
.benefit-card:hover .benefit-num { color: var(--kwo-red); transition: color 0.2s ease; }
.benefit-card h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.benefit-card p { color: var(--kwo-muted); }

/* Adviser card */
.adviser-card { display: block; }
.adviser-card .adviser-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #ece7dd;
}
.adviser-card .adviser-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform 0.6s ease;
}
.adviser-card:hover .adviser-photo img { transform: scale(1.04); }
.adviser-card h3 { font-size: 1.5rem; margin-bottom: 0.15rem; }
.adviser-card .adviser-role {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--kwo-muted);
  margin-bottom: 1rem;
}

/* Resource card */
.resource-card { padding: 1.75rem; display: block; }
.resource-card .res-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}
.resource-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(192,32,47,0.08);
  color: var(--kwo-red);
}
.resource-icon svg { width: 1.2rem; height: 1.2rem; }
.resource-card h3 { font-size: 1.3rem; line-height: 1.3; transition: color 0.2s ease; }
.resource-card:hover h3 { color: var(--kwo-red); }
.resource-card .res-meta { font-size: 0.85rem; color: var(--kwo-muted); margin-top: 0.85rem; }
.res-arrow { color: var(--kwo-muted); transition: transform 0.2s ease, color 0.2s ease; }
.resource-card:hover .res-arrow { color: var(--kwo-red); transform: translate(3px, -3px); }
.res-arrow svg { width: 1.15rem; height: 1.15rem; }

/* Value strip card (about) */
.value-card { padding: 2rem; }
.value-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(20,35,59,0.07);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.value-dot span { width: 9px; height: 9px; border-radius: 50%; background: var(--kwo-red); display: block; }
.value-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.value-card p { color: var(--kwo-muted); }

/* ============================================================
   FOUNDER / FEATURE SPLIT
   ============================================================ */
.feature-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}
.feature-photo {
  border: 1.5px solid var(--kwo-line);
  border-radius: 16px;
  overflow: hidden;
  background: #ece7dd;
}
.feature-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
}
.feature-body h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 0.35rem; }
.feature-role {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--kwo-muted);
  margin-bottom: 1.5rem;
}
@media (max-width: 900px) {
  .feature-split { grid-template-columns: 1fr; gap: 2.25rem; }
  .feature-photo { max-width: 380px; }
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--kwo-navy);
  border-radius: 20px;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: '';
  position: absolute;
  top: -2px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 4px;
  background: var(--kwo-red);
  border-radius: 0 0 4px 4px;
}
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 0.85rem; }
.cta-band p { color: #c4ccd8; font-size: 1.1rem; max-width: 34rem; margin: 0 auto 2rem; }
/* Ghost buttons sit on the navy CTA — force light text/border like band-navy */
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.35); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: #fff; color: #fff; }

/* ============================================================
   ADVISER DETAIL
   ============================================================ */
.adviser-detail-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}
.adviser-detail-photo { position: sticky; top: 96px; }
.adviser-detail-photo .photo-frame {
  border: 1.5px solid var(--kwo-line);
  border-radius: 16px;
  overflow: hidden;
  background: #ece7dd;
  margin-bottom: 1.25rem;
}
.adviser-detail-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top center; }
.adviser-social { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.adviser-social a {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--kwo-navy);
  border: 1.5px solid var(--kwo-line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.adviser-social a:hover { border-color: var(--kwo-red); color: var(--kwo-red); }
.adviser-detail-body h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 0.35rem; }

/* Next-adviser card */
.next-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 2rem;
}
.next-card .nc-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--kwo-muted);
  margin-bottom: 0.3rem;
}
.next-card .nc-name { font-family: 'Cardo', serif; font-size: 1.5rem; color: var(--kwo-navy); transition: color 0.18s ease; }
.next-card:hover .nc-name { color: var(--kwo-red); }
.next-card .nc-arrow { color: var(--kwo-red); transition: transform 0.18s ease; }
.next-card:hover .nc-arrow { transform: translateX(5px); }
.next-card .nc-arrow svg { width: 1.4rem; height: 1.4rem; }

@media (max-width: 900px) {
  .adviser-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .adviser-detail-photo { position: static; max-width: 360px; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-info-card { padding: 1.75rem 2rem; margin-bottom: 1.25rem; }
.contact-info-card .ci-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--kwo-muted);
  margin-bottom: 0.65rem;
}
.contact-info-card p, .contact-info-card a { color: var(--kwo-navy); }
.contact-phone { font-family: 'Cardo', serif; font-size: 1.6rem; transition: color 0.18s ease; }
.contact-phone:hover { color: var(--kwo-red); }

.contact-form { padding: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--kwo-muted);
  margin-bottom: 0.45rem;
}
.field input, .field textarea {
  width: 100%;
  font-family: 'Karla', sans-serif;
  font-size: 0.98rem;
  color: var(--kwo-ink);
  background: var(--kwo-paper-2);
  border: 1.5px solid var(--kwo-line);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--kwo-navy);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--kwo-navy);
  color: #b7c0cd;
  margin-top: 5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0 3rem;
}
.footer-logo {
  background: #fff;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  display: inline-flex;
  margin-bottom: 1.25rem;
}
.footer-logo img { height: 38px; width: auto; }
.footer-blurb { font-size: 0.95rem; line-height: 1.7; color: #97a2b2; max-width: 22rem; }
.footer-col h4 {
  color: #fff;
  font-family: 'Karla', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a { color: #b7c0cd; font-size: 0.95rem; transition: color 0.15s ease; }
.footer-col a:hover { color: #fff; }
.footer-contact p { font-size: 0.95rem; line-height: 1.6; color: #b7c0cd; margin-bottom: 0.6rem; }
.footer-socials { display: flex; gap: 1rem; margin-top: 1.25rem; }
.footer-socials a { color: #8b96a6; transition: color 0.15s ease; }
.footer-socials a:hover { color: var(--kwo-red); }
.footer-socials svg { width: 1.2rem; height: 1.2rem; }

/* Compliance block — verbatim HSBC-mandated text */
.footer-compliance {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 2.25rem 0 3rem;
}
.footer-compliance p {
  font-size: 0.78rem;
  line-height: 1.65;
  color: #7e8a9b;
  max-width: 64rem;
  margin-bottom: 0.85rem;
}
.footer-compliance p:first-child { color: #9aa5b5; }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; padding: 3rem 0 2rem; }
}

/* ============================================================
   ANIMATION — progressive enhancement only.
   END STATE IS VISIBLE BY DEFAULT. .reveal is only hidden once
   JS confirms (html.js-ready) AND the user allows motion. Native
   IntersectionObserver (footer.php) flips .is-visible to fade it in,
   with hard fallbacks that force-reveal anything still hidden.
   So with JS off, no IntersectionObserver, reduced-motion, or a
   slow/failed CDN, every section stays fully visible — no blank gaps.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  html.js-ready .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(.2,.8,.2,1),
                transform 0.7s cubic-bezier(.2,.8,.2,1);
    will-change: opacity, transform;
  }
  html.js-ready .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}
[x-cloak] { display: none !important; }

/* ============================================================
   CREDIBILITY STRIP — quiet trust band under the hero
   ============================================================ */
.cred-strip {
  border-top: 1px solid var(--kwo-line);
  border-bottom: 1px solid var(--kwo-line);
  background: var(--kwo-paper-2);
}
.cred-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2.5rem;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}
.cred-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--kwo-muted);
}
.cred-item strong {
  font-family: 'Cardo', serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--kwo-navy);
  letter-spacing: 0;
}
.cred-item .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--kwo-red); flex-shrink: 0; }
.cred-divider { width: 1px; height: 26px; background: var(--kwo-line); }
@media (max-width: 720px) { .cred-divider { display: none; } }

/* ============================================================
   MEDIA / VIDEO FRAME — poster-framed, self-hosted <video>
   ============================================================ */
.media-frame {
  position: relative;
  border: 1.5px solid var(--kwo-line);
  border-radius: 16px;
  overflow: hidden;
  background: #ece7dd;
  box-shadow: 0 24px 60px -34px rgba(20,35,59,0.4);
}
.media-frame video,
.media-frame img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  background: var(--kwo-navy);
}
/* "Watch" cue overlaid on the poster — purely decorative, video has real controls */
.media-frame .play-cue {
  position: absolute;
  left: 1rem; bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.95rem;
  background: rgba(20,35,59,0.82);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.media-frame .play-cue svg { width: 0.85rem; height: 0.85rem; }
.media-frame.is-playing .play-cue { opacity: 0; }

/* Adviser-detail video sits in the sticky photo column */
.adviser-detail-photo .media-frame { margin-bottom: 1.25rem; }

/* ============================================================
   CAREERS BAND — the recruitment centerpiece (North Star path)
   Full navy band so the candidate path commands attention.
   ============================================================ */
.careers-band {
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(192,32,47,0.16), transparent 60%),
    var(--kwo-navy);
  color: #d8dee8;
  position: relative;
  overflow: hidden;
}
.careers-band .eyebrow { color: #f1b3b8; }
.careers-band .section-head h2 { color: #fff; }
.careers-band .section-head p { color: #c4ccd8; }

.careers-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 3.25rem;
  align-items: center;
}
.careers-media .media-frame {
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 30px 70px -34px rgba(0,0,0,0.55);
}
.careers-media .media-frame img { aspect-ratio: 5 / 6; }

.careers-list { display: grid; gap: 1.1rem; }
.career-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem;
  align-items: start;
  padding: 1.4rem 1.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.career-row:hover {
  border-color: rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.07);
  transform: translateY(-2px);
}
.career-row .cr-num {
  font-family: 'Cardo', serif;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--kwo-red);
  min-width: 1.8rem;
}
.career-row h3 { color: #fff; font-size: 1.2rem; margin-bottom: 0.25rem; }
.career-row p { color: #aeb8c6; font-size: 0.96rem; line-height: 1.6; }
.careers-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.careers-cta .cta-note { font-size: 0.85rem; color: #9aa5b5; }

@media (max-width: 900px) {
  .careers-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .careers-media { max-width: 460px; }
}

/* ============================================================
   PREMIUM TWO-UP ADVISERS — make a 2-person team look intentional
   ============================================================ */
.advisers-2up {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.advisers-2up .adviser-card .card-body { padding: 1.6rem 1.6rem 1.75rem; }
.advisers-2up .adviser-card h3 { font-size: 1.65rem; }
@media (max-width: 760px) {
  .advisers-2up { grid-template-columns: 1fr; max-width: 420px; gap: 1.75rem; }
}

/* ============================================================
   DUAL-PATH CLOSING CTA — serve both audiences at the close
   ============================================================ */
.cta-band .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}
.cta-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 760px;
  margin: 2.25rem auto 0;
}
.cta-path {
  text-align: left;
  padding: 1.6rem 1.6rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.cta-path:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.cta-path .cp-label {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: #f1b3b8; font-weight: 700; margin-bottom: 0.5rem;
}
.cta-path h3 { color: #fff; font-size: 1.3rem; margin-bottom: 0.35rem; }
.cta-path p { color: #aeb8c6; font-size: 0.92rem; margin-bottom: 1rem; }
@media (max-width: 640px) { .cta-paths { grid-template-columns: 1fr; } }

/* ── Grid utilities (kept minimal; Tailwind handles the rest) ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }
@media (min-width: 861px) and (max-width: 1080px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
