/* HYPD. Dark ground, gold accent, taken from the Horizons build's tokens
   (primary hsl 45 65% 53%, background near-black). System fonts: no web font
   request, which is most of a first paint on mobile data. */

:root {
  --ink: #0a0a0a;
  --panel: #131313;
  --panel-2: #1a1a1a;
  --line: #2a2a2a;
  --gold: #d6ae3a;
  --gold-hi: #e9c85e;
  --text: #f4f4f2;
  --muted: #b3b0a9;
  --radius: 14px;
  --wrap: 1180px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font: 17px/1.65 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-hi); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 750; }
h3, .h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--gold); color: var(--ink); padding: 0.6rem 1rem; z-index: 100; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 1rem; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.small { font-size: 0.9rem; color: var(--muted); }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 700; margin-bottom: 0.9rem; }
.lede { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: #dedbd4; max-width: 60ch; }
.section-lead { color: var(--muted); max-width: 62ch; }
.text-link { font-weight: 700; }
.text-link::after { content: " \2192"; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 50px; padding: 0.75rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform 0.15s, background 0.15s, color 0.15s, border-color 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #111; }
.btn-gold:hover { background: var(--gold-hi); color: #000; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-sm { min-height: 42px; padding: 0.5rem 1.1rem; font-size: 0.95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 10, 10, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand-logo { height: 46px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a:not(.btn) { color: #e7e5df; text-decoration: none; font-weight: 600; font-size: 0.97rem; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--gold-hi); }
.nav-toggle { display: none; background: none; border: 0; width: 46px; height: 46px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: #fff; position: relative; margin: auto; transition: transform 0.2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #0d0d0d; border-bottom: 1px solid var(--line); padding: 0.5rem 1.25rem 1.25rem; display: none; }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 1rem; }
}

/* Hero. Left side dark and quiet, words over it; min-height in dvh, capped, so
   the next section peeks on a phone and it never becomes a billboard. */
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: min(82dvh, 820px); padding: 5rem 0 4rem; overflow: hidden; }
.hero-short { min-height: min(62dvh, 620px); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-video { opacity: 0; transition: opacity 1.2s ease; }
.hero.video-on .hero-video { opacity: 1; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 10, 10, 0.94) 0%, rgba(10, 10, 10, 0.82) 42%, rgba(10, 10, 10, 0.35) 100%), linear-gradient(0deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0) 35%); }
.hero-inner { max-width: var(--wrap); }
.hero-inner > * { max-width: 680px; }
.hero h1 { color: #fff; }
.hero h1::after { content: ""; display: block; width: 72px; height: 4px; background: var(--gold); margin-top: 1.1rem; border-radius: 2px; }
.trust-row { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; color: #d4d1ca; font-size: 0.92rem; }
.trust-row li::before { content: "\2713"; color: var(--gold); margin-right: 0.45rem; font-weight: 800; }

.page-head { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem); background: radial-gradient(ellipse at 20% 0%, rgba(214, 174, 58, 0.14), transparent 60%), var(--ink); border-bottom: 1px solid var(--line); }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-tight { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section-alt { background: var(--panel); border-block: 1px solid var(--line); }
.grid { display: grid; gap: 1.4rem; margin-top: 2rem; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.card-muted { background: transparent; }
.card-path { display: flex; flex-direction: column; border-top: 3px solid var(--gold); }
.card-path .btn { margin-top: auto; align-self: flex-start; }
.card-lead { color: #e6e3dc; font-weight: 600; }
.feature { border-left: 3px solid var(--gold); padding: 0.2rem 0 0.2rem 1.2rem; }
.feature p { color: var(--muted); margin: 0; }
.ticks, .crosses { list-style: none; padding: 0; }
.ticks li, .crosses li { position: relative; padding-left: 1.7rem; margin-bottom: 0.6rem; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }
.crosses li::before { content: "\2715"; position: absolute; left: 0; color: #8f8b83; font-weight: 800; }
.example { margin-top: 1rem; padding: 0.9rem 1rem; background: rgba(214, 174, 58, 0.08); border: 1px dashed rgba(214, 174, 58, 0.45); border-radius: 10px; font-size: 0.95rem; }
.example span { display: block; color: var(--gold); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }

.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 2rem; }
.steps li { counter-increment: step; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: #111; font-weight: 800; margin-bottom: 1rem; }
.steps p { color: var(--muted); margin: 0; }

.split { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.split-media img, .case-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-media { margin: 0; }

.cta-band { background: linear-gradient(120deg, #17140a, #0a0a0a 60%); border-top: 1px solid rgba(214, 174, 58, 0.35); text-align: center; }
.cta-inner { max-width: 760px; }
.cta-inner .actions { justify-content: center; }

/* Testimonials (only rendered once confirmed) */
.quotes { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 2rem; }
.quote { margin: 0; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.quote blockquote { margin: 0 0 1rem; }
.quote figcaption span { display: block; color: var(--muted); font-size: 0.9rem; }

/* Forms: Zoho Forms iframes */
.section-form { background: var(--panel); border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.form-wrap { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; }
.form-frame { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.form-frame iframe { display: block; width: 100%; border: 0; }
.form-fallback { background: var(--panel-2); margin: 0; padding: 0.8rem 1rem; }
@media (max-width: 860px) { .form-wrap { grid-template-columns: 1fr; } }
.contact-list { margin: 1.4rem 0 2rem; }
.contact-list div { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--gold); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }
.contact-list dd { margin: 0.2rem 0 0; }

/* Case studies */
.cases { display: grid; gap: 2rem; }
.case { display: grid; gap: 2rem; align-items: center; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(1.2rem, 3vw, 2rem); }
.case-media { margin: 0; }
.case-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.8rem; margin: 1.2rem 0 0; }
.stats div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 1rem; }
.stats dt { color: var(--muted); font-size: 0.8rem; }
.stats dd { margin: 0.1rem 0 0; font-size: 1.35rem; font-weight: 800; color: var(--gold-hi); }
.note { border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 2rem; }

/* Before and after: two photographs side by side until site.js upgrades them */
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.ba-pair figure { margin: 0; position: relative; }
.ba-pair figcaption { position: absolute; left: 0.6rem; top: 0.6rem; background: rgba(0, 0, 0, 0.7); padding: 0.1rem 0.6rem; border-radius: 6px; font-size: 0.8rem; font-weight: 700; }
.ba-slider { --pos: 50%; position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; aspect-ratio: auto; }
.ba-slider .ba-reveal { clip-path: inset(0 0 0 var(--pos)); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--gold); pointer-events: none; }
.ba-line::after { content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: #111; display: grid; place-items: center; font-weight: 800; }
.ba-slider input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-slider input:focus-visible + .ba-line, .ba-slider:focus-within .ba-line { box-shadow: 0 0 0 3px #fff; }
.ba-tag { position: absolute; top: 0.7rem; background: rgba(0, 0, 0, 0.72); padding: 0.1rem 0.6rem; border-radius: 6px; font-size: 0.8rem; font-weight: 700; pointer-events: none; }
.ba-tag-before { left: 0.7rem; }
.ba-tag-after { right: 0.7rem; }
.ba-hint { font-size: 0.85rem; color: var(--muted); margin: 0.6rem 0 0; }

/* About */
.about-hero { padding: clamp(3rem, 7vw, 5.5rem) 0; background: radial-gradient(ellipse at 80% 20%, rgba(214, 174, 58, 0.16), transparent 55%), var(--ink); }
.about-grid { display: grid; gap: 3rem; align-items: center; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.about-portrait { margin: 0; }
.about-stats { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.6rem 0 0; }
.about-stats div { display: flex; flex-direction: column-reverse; min-width: 150px; padding: 0.9rem 1.2rem; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 12px; }
.about-stats dt { color: var(--muted); font-size: 0.85rem; }
.about-stats dd { margin: 0; font-size: 1.9rem; font-weight: 800; color: var(--gold-hi); line-height: 1.1; }
.about-portrait img { border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; width: 100%; border: 1px solid rgba(214, 174, 58, 0.3); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-portrait { order: -1; max-width: 420px; } }
.prose h2 { margin-top: 2rem; }
.prose p, .prose li { color: #dcd9d2; }
.pull { margin: 0 0 2.5rem; padding: 1.6rem 1.8rem; border-left: 4px solid var(--gold); background: var(--panel); border-radius: 0 var(--radius) var(--radius) 0; }
.pull p { font-size: 1.3rem; font-weight: 600; color: #fff; margin: 0 0 0.6rem; }
.pull footer { color: var(--gold); font-weight: 700; }

/* FAQ */
.faq { border-top: 1px solid var(--line); margin-bottom: 2rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 700; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.5rem; font-weight: 400; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-a p { color: #d7d4cd; margin: 0 0 1.2rem; }
#investors, #sellers { scroll-margin-top: 80px; }

/* Footer */
.site-footer { background: #070707; border-top: 1px solid var(--line); padding: 3.5rem 0 1.5rem; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.6fr 1fr 1fr; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { height: 52px; width: auto; margin-bottom: 1rem; }
.footer-about p { color: var(--muted); max-width: 44ch; }
.footer-h { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.site-footer a { color: #e4e1da; text-decoration: none; }
.site-footer a:hover { color: var(--gold-hi); }
.footer-legal { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.5rem; }
.disclaimer { color: #8f8b83; font-size: 0.85rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; color: #8f8b83; font-size: 0.85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom p a { margin-left: 0.8rem; }
.credit { display: inline-flex; align-items: center; gap: 0.5rem; }
.credit img { width: 28px; height: 28px; border-radius: 50%; }

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

/* Six service cards: always three across on desktop, so they sit as two even rows */
@media (min-width: 900px) { .grid.grid-3x2 { grid-template-columns: repeat(3, 1fr); } }
