/* =========================================================
   Cahndu header + horizon hero
   Everything is scoped to .ch-header and .ch-hero so it
   cannot clash with the rest of the site.
   ========================================================= */

.ch-header,
.ch-hero {
  --ch-space: #03060E;
  --ch-navy: #0A1628;
  --ch-gold: #D4A24C;
  --ch-gold-soft: #E8BE72;
  --ch-ivory: #F4EFE6;
  --ch-ivory-2: rgba(244, 239, 230, .72);
  --ch-ivory-3: rgba(244, 239, 230, .5);
  --ch-line: rgba(244, 239, 230, .12);
  --ch-serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --ch-sans: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --ch-gutter: clamp(16px, 7.8vw, 112px);
  font-family: var(--ch-sans);
  color: var(--ch-ivory);
  -webkit-font-smoothing: antialiased;
}
.ch-header *, .ch-header *::before, .ch-header *::after,
.ch-hero *, .ch-hero *::before, .ch-hero *::after { box-sizing: border-box; }
.ch-header a, .ch-hero a { color: inherit; text-decoration: none; }
.ch-header a:focus-visible, .ch-header button:focus-visible,
.ch-hero a:focus-visible { outline: 2px solid var(--ch-gold-soft); outline-offset: 3px; border-radius: 999px; }
.ch-header [hidden], .ch-hero [hidden] { display: none !important; }

/* ---------- Header (fixed, sits over the hero) ---------- */
.ch-header {
  position: fixed; left: 0; right: 0; top: 0; z-index: 1000;
  padding: calc(env(safe-area-inset-top, 0px) + 22px) var(--ch-gutter) 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: background-color .35s ease, padding .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.ch-header.is-scrolled {
  background: rgba(5, 10, 22, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--ch-line);
  padding-top: calc(env(safe-area-inset-top, 0px) + 14px); padding-bottom: 14px;
}
.ch-brand { display: flex; align-items: center; }
.ch-brand img { height: 40px; width: auto; display: block; }
.ch-nav {
  display: flex; gap: 4px; padding: 6px; border-radius: 999px;
  background: rgba(244, 239, 230, .06); border: 1px solid rgba(244, 239, 230, .1);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.ch-nav a { padding: 10px 18px; font-size: 14px; line-height: 1.2; color: var(--ch-ivory-2); border-radius: 999px; }
.ch-nav a:hover { color: var(--ch-ivory); background: rgba(244, 239, 230, .06); }
.ch-header-right { display: flex; align-items: center; gap: 10px; }
.ch-contact {
  display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 999px;
  background: var(--ch-ivory); color: var(--ch-navy) !important; font-weight: 600; font-size: 14px;
}
.ch-contact:hover { background: #fff; }
.ch-menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 999px; padding: 0;
  border: 1px solid rgba(244, 239, 230, .2); background: rgba(244, 239, 230, .06);
  cursor: pointer; align-items: center; justify-content: center;
}
.ch-menu-panel {
  position: absolute; right: var(--ch-gutter); top: calc(100% + 6px);
  display: flex; flex-direction: column; min-width: 220px; padding: 8px; border-radius: 18px;
  background: rgba(10, 22, 40, .94); border: 1px solid var(--ch-line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.ch-menu-panel a { padding: 12px 16px; border-radius: 12px; font-size: 15px; color: var(--ch-ivory-2); }
.ch-menu-panel a:hover { background: rgba(244, 239, 230, .06); color: var(--ch-ivory); }

/* ---------- Hero ---------- */
.ch-hero { position: relative; height: var(--ch-scroll-length, 540vh); background: var(--ch-space); }
.ch-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 85%, #10213F 0%, #060C1A 45%, var(--ch-space) 100%);
}
.ch-globe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ch-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Intro title */
.ch-mark {
  position: absolute; left: 50%; top: 30%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 22px; z-index: 4;
  will-change: transform, opacity, filter; text-align: center;
}
.ch-mark-word {
  display: block; font-family: var(--ch-sans); font-weight: 600;
  font-size: clamp(40px, 7.4vw, 112px); line-height: 1; letter-spacing: .34em; margin-right: -.34em;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4EFE6 45%, #E8BE72 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ch-mark-eyebrow {
  display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600;
  letter-spacing: .32em; color: var(--ch-gold-soft);
}
.ch-mark-eyebrow i { width: 36px; height: 1px; background: linear-gradient(90deg, transparent, var(--ch-gold-soft)); }
.ch-mark-eyebrow i:last-child { background: linear-gradient(90deg, var(--ch-gold-soft), transparent); }

/* Headline block */
.ch-copy-zone {
  position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 112px); bottom: 24px;
  display: flex; align-items: safe center; padding-left: var(--ch-gutter); z-index: 3; pointer-events: none;
}
.ch-copy {
  position: relative; width: min(40vw, 580px);
  display: flex; flex-direction: column; gap: clamp(14px, 2.8vh, 26px); pointer-events: auto;
}
.ch-hero .ch-eyebrow {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 10px;
  min-height: 34px; padding: 6px 16px; line-height: 1.4; border-radius: 999px;
  border: 1px solid rgba(226, 180, 96, .35); background: rgba(226, 180, 96, .08);
  font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--ch-gold-soft); text-transform: uppercase;
}
.ch-hero .ch-eyebrow i { width: 6px; height: 6px; border-radius: 999px; background: var(--ch-gold-soft); flex: none; }
.ch-hero .ch-h1 {
  margin: 0; padding: 0; font-family: var(--ch-serif); font-weight: 400; font-style: normal;
  font-size: clamp(34px, min(5.2vw, 8.4vh), 78px); line-height: .98; letter-spacing: -.02em;
  color: var(--ch-ivory); text-transform: none; text-wrap: balance;
}
.ch-hero .ch-h1 .ch-ln { display: block; }
.ch-hero .ch-h1 em { color: var(--ch-gold-soft); font-style: italic; }
.ch-hero .ch-lede {
  margin: 0; max-width: 30em; font-size: clamp(13px, min(1.15vw, 2.7vh), 17px);
  line-height: 1.65; color: var(--ch-ivory-2);
}
.ch-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.ch-btn {
  display: inline-flex; align-items: center; gap: 12px; height: clamp(42px, 7vh, 52px);
  padding: 0 26px; border-radius: 999px; font-size: 15px; font-weight: 600; line-height: 1;
}
.ch-btn-primary { background: var(--ch-gold); color: var(--ch-navy) !important; }
.ch-btn-primary:hover { background: #E0B25F; }
.ch-btn-ghost { border: 1px solid rgba(244, 239, 230, .25); color: var(--ch-ivory) !important; font-weight: 500; }
.ch-btn-ghost:hover { border-color: rgba(244, 239, 230, .5); }
.ch-rv { opacity: 0; transform: translateY(24px); }

.ch-hint {
  position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .3em; color: var(--ch-ivory-3); z-index: 4;
}
.ch-hint b { width: 1px; height: 34px; background: linear-gradient(var(--ch-gold-soft), transparent); }

/* Tablet portrait and phone: text on top, globe below, centered */
.ch-hero.is-stacked .ch-copy-zone {
  top: calc(env(safe-area-inset-top, 0px) + 100px); bottom: auto; align-items: flex-start; justify-content: center;
  padding-left: clamp(20px, 7vw, 96px); padding-right: clamp(20px, 7vw, 96px);
}
.ch-hero.is-stacked .ch-copy { width: 100%; max-width: 600px; gap: clamp(16px, 2.4vh, 24px); align-items: center; text-align: center; }
.ch-hero.is-stacked .ch-eyebrow { align-self: center; background: none; border: 0; padding: 0; min-height: 0; }
.ch-hero.is-stacked .ch-eyebrow i { display: none; }
.ch-hero.is-stacked .ch-h1 { font-size: clamp(34px, 6.4vw, 64px); line-height: 1.02; }
.ch-hero.is-stacked .ch-lede { max-width: 34em; line-height: 1.6; font-size: clamp(14px, 2vw, 17px); }
.ch-hero.is-stacked .ch-ctas { justify-content: center; margin-top: 4px; }

@media (max-width: 980px) {
  .ch-nav { display: none; }
  .ch-menu-btn { display: inline-flex; }
}
@media (max-width: 760px) {
  .ch-contact { display: none; }
  .ch-brand img { height: 32px; }
  .ch-hero .ch-eyebrow { font-size: 10px; letter-spacing: .14em; }
  .ch-mark-eyebrow { font-size: 10px; letter-spacing: .22em; max-width: 78vw; line-height: 1.6; }
  .ch-mark-eyebrow i { display: none; }
  .ch-hero .ch-lede { font-size: 14px; }
  .ch-btn { height: 44px; padding: 0 16px; font-size: 13px; gap: 8px; }
  .ch-ctas { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .ch-hero { height: 100vh; }
}
.ch-nav a[aria-current="page"] { color: var(--ch-ivory); background: rgba(244, 239, 230, .08); }

/* tablet: keep the tagline under CAHNDU on one line */
@media (min-width: 761px) and (max-width: 1100px) {
  .ch-mark-eyebrow { white-space: nowrap; font-size: 11px; letter-spacing: .26em; }
}

/* tagline under CAHNDU keeps the capitals look */
.ch-mark-eyebrow { text-transform: uppercase; }

/* single hero button: gold pill with a navy arrow disc */
.ch-btn.ch-btn-insights { height: 54px; padding: 0 7px 0 26px; gap: 16px; font-size: 15px; font-weight: 700; box-shadow: 0 14px 34px rgba(232, 190, 114, .22), inset 0 1px 0 rgba(255, 255, 255, .35); transition: background .25s ease, box-shadow .25s ease, transform .25s ease; }
.ch-btn-insights .ch-arrow { width: 40px; height: 40px; border-radius: 50%; background: var(--ch-navy); color: var(--ch-gold); display: grid; place-items: center; transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.ch-btn-insights:hover { box-shadow: 0 18px 40px rgba(232, 190, 114, .32), inset 0 1px 0 rgba(255, 255, 255, .35); transform: translateY(-1px); }
.ch-btn-insights:hover .ch-arrow { transform: translateX(3px); }
@media (max-width: 760px) {
  .ch-btn.ch-btn-insights { height: 50px; padding: 0 6px 0 22px; font-size: 14px; gap: 14px; }
  .ch-btn-insights .ch-arrow { width: 38px; height: 38px; }
}
@media (max-width: 760px) {
  .ch-hero .ch-h1 { text-wrap: balance; }
  .ch-hero .ch-h1 .ch-ln { display: inline; }
}

/* Header: nav centred now that the right button is removed */
@media (min-width: 981px) {
  .ch-nav { position: absolute; left: 50%; transform: translateX(-50%); }
  .ch-header-right { min-width: 1px; }
}
.ch-contact { display: none !important; }
