/* ============================================================================
   Capital HG — public site styles
   Loaded AFTER fastbootstrap.min.css. Class names that would collide with
   Bootstrap (.btn, .row, .card, .nav, .progress, .lead, .col, .figure, .grid)
   are namespaced with chg- so the design is not altered by the framework.
   ============================================================================ */

:root {
    --navy: #07152A;
    --teal: #004C4C;
    --gold: #C6A379;
    --gold-soft: rgba(198,163,121,.18);
    --cream: #F4F3EE;
    --sand: #ECEAE4;
    --ink: #33404F;
    --muted: #4F5B66;
    --mist: #C9D2D8;
    --line: #D6D5CC;
    --eyebrow: #005A5A;
    --tag: #E6EFEE;
    --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: 96px }
body.chg-site {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: normal;
    color: var(--navy);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}
.chg-site img { max-width: 100%; display: block }
.chg-site a { color: var(--navy); text-decoration: none }
.chg-site a:hover { color: var(--teal) }
.chg-site h1, .chg-site h2, .chg-site h3 { margin: 0; font-weight: 700; line-height: inherit }
.chg-site p { margin: 0 }
.chg-site label { display: block }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px }
.eyebrow { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--eyebrow) }
.eyebrow.gold { color: var(--gold) }
h2.section-title { font-size: clamp(34px,4.4vw,60px); line-height: 1.05; letter-spacing: -.025em }

/* Phosphor arrow used in links and buttons */
.arrow { font-size: 18px; line-height: 1; display: inline-block; transition: transform .3s var(--ease) }
a:hover .arrow, button:hover .arrow { transform: translateX(4px) }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); z-index: 1060 }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1050; transition: background .35s var(--ease), box-shadow .35s var(--ease) }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; transition: padding .35s var(--ease) }
.site-header.scrolled { background: rgba(7,21,42,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(7,21,42,.25) }
.site-header.scrolled .bar { padding-top: 12px; padding-bottom: 12px }
.logo img { height: 52px; width: auto; transition: height .35s var(--ease) }
.site-header.scrolled .logo img { height: 42px }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: 15px }
.chg-site .main-nav a { color: var(--mist); text-decoration: none; position: relative; padding: 6px 0 }
.chg-site .main-nav a.active, .chg-site .main-nav a:hover { color: #fff }
.chg-site .main-nav .chg-btn { padding: 10px 20px }
.main-nav a:not(.chg-btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease) }
.main-nav a:not(.chg-btn):hover::after, .main-nav a.active::after { transform: scaleX(1) }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center; font-size: 22px }

/* ---------- Buttons ---------- */
.chg-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 12px 22px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease) }
.chg-btn-gold { background: var(--gold); color: var(--navy) !important }
.chg-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(198,163,121,.35) }
.chg-btn-ghost { border: 1px solid #3E5A66; color: #fff !important; background: transparent }
.chg-btn-ghost:hover { background: rgba(255,255,255,.08); transform: translateY(-2px) }
.chg-btn-lg { padding: 16px 28px; font-size: 16px }
.chg-btn-outline { border: 1px solid #C9CDD3; background: #fff; color: var(--navy); align-self: flex-start }
.chg-btn[disabled] { opacity: .65; cursor: progress; transform: none !important }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg,var(--teal) 0%,var(--navy) 72%); color: var(--cream); padding-top: 96px }
.hero-inner { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 32px }
.hero h1 { font-size: clamp(42px,6.2vw,88px); line-height: 1.02; letter-spacing: -.02em; max-width: 1200px }
.hero h1 .line { display: block; overflow: hidden }
.hero h1 .line span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease) }
.hero.loaded h1 .line span { transform: none }
.hero.loaded h1 .line:nth-child(2) span { transition-delay: .12s }
.hero .hero-lead { margin: 0; font-size: clamp(17px,1.6vw,21px); line-height: 1.6; color: var(--mist); max-width: 680px }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px }
.orb { position: absolute; border-radius: 50%; pointer-events: none; z-index: 1; will-change: transform }
.orb-1 { width: 620px; height: 620px; right: -160px; top: 40px; border: 1px solid rgba(198,163,121,.35) }
.orb-2 { width: 420px; height: 420px; right: -60px; top: 140px; border: 1px solid rgba(198,163,121,.22) }
.orb-3 { width: 220px; height: 220px; right: 120px; top: 300px; background: radial-gradient(circle,rgba(198,163,121,.35),rgba(198,163,121,0) 70%) }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; z-index: 2; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.35); border-radius: 14px }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 1.8s infinite }
@keyframes cue { 0% { opacity: 0; transform: translateY(0) } 30% { opacity: 1 } 100% { opacity: 0; transform: translateY(14px) } }

/* ---------- Figures ---------- */
.figures { background: var(--navy); border-top: 1px solid #1C3346 }
.figures .stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 72px }
.stat { min-width: 0 }
.stat .num { font-size: clamp(34px, 4.4vw, 52px); letter-spacing: -.02em; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap }
/* Tablet & mobile: 2 x 2 instead of one long column */
@media (max-width: 860px) {
    .figures .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding-top: 36px; padding-bottom: 48px }
    .stat p { font-size: 14px }
}
@media (max-width: 360px) {
    .stat .num { font-size: 30px }
}
.stat p { margin: 6px 0 0; font-size: 15px; color: var(--mist) }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(320px,100%),1fr)); gap: 48px 80px; align-items: start; padding-top: 120px; padding-bottom: 120px }
.about .stack { display: flex; flex-direction: column; gap: 16px }
.about .body { gap: 28px; padding-top: 8px }
.about .body p { margin: 0; font-size: 19px; line-height: 1.7; color: var(--ink) }
.about .body p.quote { font-size: 22px; line-height: 1.45; color: var(--navy) }
.link-arrow { font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px }

/* ---------- Video ---------- */
.video-sec { padding-bottom: 120px }
.video { position: relative; aspect-ratio: 16/9; border-radius: 24px; overflow: hidden; background: linear-gradient(160deg,var(--teal) 0%,var(--navy) 72%); box-shadow: 0 30px 60px rgba(7,21,42,.18) }
.video-cover { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 24px; background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; color: var(--cream); font: inherit }
.video-cover.no-video { cursor: default }
.video-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform 1.2s var(--ease), opacity .4s }
.video-cover:hover img { transform: scale(1.04); opacity: .65 }
.video-cover > *:not(img) { position: relative }
.play { flex-shrink: 0; width: 96px; height: 96px; border-radius: 50%; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 12px var(--gold-soft); animation: pulse 2.4s infinite; font-size: 36px }
.play i { margin-left: 4px }
.video-cover:hover .play { transform: scale(1.06) }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 12px var(--gold-soft) } 50% { box-shadow: 0 0 0 22px rgba(198,163,121,.06) } }
.video-title { font-size: clamp(22px,2.6vw,34px); font-weight: 700; max-width: 640px }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0 }

/* ---------- Portfolio ---------- */
.portfolio { background: var(--sand) }
.portfolio .inner { padding-top: 120px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 56px }
.portfolio .head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px }
.portfolio .head .stack { display: flex; flex-direction: column; gap: 16px; max-width: 720px }
.venture-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px }

/* Portfolio carousel — 2 x 2 cards per slide */
.portfolio-carousel .carousel-inner { margin: -12px -12px 0; padding: 12px 12px 24px; width: auto }  /* room for card hover lift + shadow */
.portfolio-carousel .carousel-item { transition: transform .7s var(--ease) }
.portfolio-nav { display: flex; align-items: center; justify-content: center; gap: 20px; padding-top: 16px }
.pf-arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #C9CDD3; background: #fff; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease) }
.pf-arrow:hover { background: var(--navy); border-color: var(--navy); color: var(--gold); transform: translateY(-2px) }
.portfolio-carousel .pf-dots { position: static; margin: 0; padding: 0; gap: 8px; align-items: center }
.portfolio-carousel .pf-dots [data-bs-target] { width: 10px; height: 10px; margin: 0; border: 0; border-radius: 999px; background: var(--navy); opacity: .2; text-indent: 0; flex: 0 0 auto; transition: width .3s var(--ease), opacity .3s var(--ease), background .3s var(--ease) }
.portfolio-carousel .pf-dots .active { width: 28px; background: var(--gold); opacity: 1 }
@media (max-width: 640px) {
    .venture-cards { grid-template-columns: 1fr }
}
.venture-card { background: #fff; border-radius: 20px; padding: 36px; display: flex; flex-direction: column; gap: 20px; transition: transform .4s var(--ease), box-shadow .4s var(--ease) }
.venture-card:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(7,21,42,.12) }
.venture-card .top { display: flex; justify-content: space-between; align-items: center }
.venture-card .logo-tile { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; background: var(--navy); box-shadow: inset 0 0 0 1px #E3E1DA; transition: transform .4s var(--ease) }
.venture-card .logo-tile.light { background: #fff }
.venture-card:hover .logo-tile { transform: rotate(-4deg) scale(1.06) }
.venture-card .logo-tile img { width: 100%; height: 100%; object-fit: cover }
.tag { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--eyebrow); background: var(--tag); padding: 8px 12px; border-radius: 999px; text-transform: uppercase }
.venture-card h3 { font-size: 28px; letter-spacing: -.015em }
.venture-card p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink); flex-grow: 1 }

/* ---------- Contact ---------- */
.contact { padding-top: 120px; padding-bottom: 120px }
.contact .panel { background: linear-gradient(160deg,var(--teal) 0%,var(--navy) 72%); color: var(--cream); border-radius: 28px; padding: clamp(28px,5vw,72px); display: grid; grid-template-columns: repeat(auto-fit,minmax(min(320px,100%),1fr)); gap: 48px 64px; align-items: start }
.contact .intro { display: flex; flex-direction: column; gap: 20px }
.contact .intro h2 { font-size: clamp(34px,4.2vw,56px); line-height: 1.05; letter-spacing: -.025em }
.contact .intro p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--mist) }
.contact .intro p.small-print { font-size: 16px }
.form-card { background: #fff; color: var(--navy); border-radius: 20px; padding: clamp(24px,3vw,40px) }
.pitch-form { display: flex; flex-direction: column; gap: 18px }
.pitch-form h3 { font-size: 24px; margin-bottom: 4px }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(200px,100%),1fr)); gap: 18px }
.field { display: flex; flex-direction: column; gap: 8px }
.field label { font-size: 14px; font-weight: 700; margin: 0 }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #C9CDD3; border-radius: 10px; font: inherit; font-size: 16px; color: var(--navy); background: #fff; transition: border-color .2s, box-shadow .2s }
.field textarea { resize: vertical }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0,76,76,.12) }
.field .input-validation-error { border-color: #B42318 }
.field .field-hint { font-size: 13px; color: var(--muted); line-height: 1.4 }
.field .field-hint:empty { display: none }
.field input:disabled { background: #F4F5F6; color: var(--muted); cursor: not-allowed }
.field .field-error { font-size: 13px; color: #B42318; min-height: 0 }
.field .field-error:empty { display: none }
.pitch-form .note { margin: 0; font-size: 13px; color: var(--muted) }
.pitch-form .form-alert { margin: 0; font-size: 14px; color: #B42318 }
.pitch-form .form-alert:empty { display: none }
/* Honeypot — hidden from people, visible to naive bots */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden }
.thanks { display: none; flex-direction: column; gap: 12px; padding: 24px 0 }
.thanks h3 { font-size: 28px }
.thanks p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink) }
.form-card.sent .pitch-form { display: none }
.form-card.sent .thanks { display: flex; animation: pop .6s var(--ease) }
@keyframes pop { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line) }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 40px; padding-bottom: 56px; font-size: 15px }
.site-footer .brand { font-size: 18px }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 28px }
.site-footer .links a { text-decoration: none }
.site-footer .copy { color: var(--muted) }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 1040; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 10px 24px rgba(7,21,42,.3); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); font-size: 20px }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto }

/* ---------- Plain content pages (Privacy, Error) ---------- */
.page-plain { padding-top: 160px; padding-bottom: 120px; min-height: 60vh }
.page-plain h1 { font-size: clamp(32px,4vw,48px); margin-bottom: 16px }
.page-plain p { font-size: 17px; line-height: 1.7; color: var(--ink); margin-bottom: 12px }
body.chg-site.header-solid .site-header { background: rgba(7,21,42,.96) }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d,0s) }
.reveal.left { transform: translateX(-40px) }
.reveal.right { transform: translateX(40px) }
.reveal.zoom { transform: scale(.94) }
.reveal.in { opacity: 1; transform: none }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
    .play { width: 64px; height: 64px; font-size: 26px }
    .video-cover { gap: 10px }
    .menu-toggle { display: inline-flex; position: relative; z-index: 2 }
    .main-nav { position: fixed; top: 0; right: 0; height: 100vh; width: min(320px,85vw); flex-direction: column; align-items: flex-start; gap: 20px; padding: 96px 28px 28px; background: var(--navy); transform: translateX(100%); transition: transform .4s var(--ease); font-size: 18px }
    .main-nav.open { transform: none; box-shadow: -20px 0 40px rgba(0,0,0,.3) }
    .orb-1 { width: 420px; height: 420px; right: -220px }
    .orb-2, .orb-3 { display: none }
    .hero-inner { padding-top: 56px; padding-bottom: 96px }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto }
    *, *::before, *::after { animation: none !important; transition: none !important }
    .reveal, .hero h1 .line span { opacity: 1 !important; transform: none !important }
}

/* Links: never underlined, anywhere on the site. Keyboard focus still shows the focus ring. */
a, a:hover, a:focus, a:active, a:visited { text-decoration: none !important; }
