/* BlackHeron.AI — landing page styles
   Brand: royal purple canvas, gold accents. Accessible, responsive, no framework. */

:root {
  --bg:        #160d2b;
  --bg-2:      #1c1138;
  --panel:     #221646;
  --panel-2:   #2a1a55;
  --line:      #3a2a63;
  --purple:    #7c3aed;
  --purple-lt: #a78bfa;
  --gold:      #d4af37;
  --gold-lt:   #e8c766;
  --bronze:    #7a5c12;
  --light:     #f3f0fa;
  --light-2:   #ffffff;
  --light-line:#e0d8f0;
  --ink:       #1d1240;
  --ink-muted: #5b4d7a;
  --text:      #f4f1fb;
  --muted:     #c2b6dd;
  --muted-2:   #9a8cc0;
  --maxw:      1120px;
  --radius:    14px;
  --ease:      cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 500; line-height: 1.12; margin: 0; }

a { color: var(--gold-lt); text-decoration: none; }

img, svg { display: block; max-width: 100%; }

::selection { background: var(--gold); color: #1a1030; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--gold); color: #1a1030; padding: 10px 18px; border-radius: 0 0 10px 10px;
  font-weight: 600; z-index: 200; transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- scroll progress + back-to-top ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 150;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt)); transition: width .1s linear;
}
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 120;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--gold); color: #1a1030; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), background .2s var(--ease);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--gold-lt); transform: translateY(-3px); }

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 300;
  border-radius: 50%; transform: translate(-50%, -50%); opacity: 0;
}
.cursor-dot  { width: 6px; height: 6px; background: var(--gold); }
.cursor-ring {
  width: 30px; height: 30px; border: 1.5px solid rgba(212,175,55,.55);
  transition: width .2s var(--ease), height .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.cursor-ring.hover { width: 52px; height: 52px; border-color: var(--gold); background: rgba(124,58,237,.12); }
body.cursor-on { cursor: none; }
body.cursor-on a, body.cursor-on button, body.cursor-on input, body.cursor-on textarea, body.cursor-on label { cursor: none; }

/* ---------- layout helpers ---------- */
section { padding: 96px 24px; }
.section-label {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 14px;
}
.section-head { max-width: var(--maxw); margin: 0 auto 48px; }
.section-intro { max-width: 620px; color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- light sections (alternating bands) ---------- */
.section--light { background: var(--light); color: var(--ink); }
.section--light .section-label,
.section--light .card h3 { color: var(--ink); }
.section--light .section-intro,
.section--light .who-body,
.section--light .card p,
.section--light .contact-head p,
.section--light .form-note { color: var(--ink-muted); }
.section--light a { color: var(--bronze); }
.section--light .card { background: var(--light-2); border-color: var(--light-line); }
.section--light .card:hover { border-color: var(--purple); box-shadow: 0 16px 40px rgba(45,18,64,.12); }
.section--light .contact-form { background: var(--light-2); border-color: var(--light-line); }
.section--light .field label { color: var(--ink-muted); }
.section--light .optional { color: #8b7caf; }
.section--light .field input,
.section--light .field textarea,
.section--light .field select { background: #faf8ff; border-color: var(--light-line); color: var(--ink); }
.section--light .field input:focus,
.section--light .field textarea:focus,
.section--light .field select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,58,237,.18); }
.section--light .check { color: var(--ink-muted); }
.section--light .recaptcha-note { color: #8b7caf; }
.section--light .recaptcha-note a { color: var(--bronze); }
.section--light .btn-primary { background: var(--gold); color: #2a2008; }
.section--light .form-note.ok { color: var(--bronze); }
.section--light .form-note.error { color: #b23b3b; }

/* ---------- hero canvas background ---------- */
.bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-grid, .scroll-hint { position: relative; z-index: 1; }

/* ---------- word-cycler statement ---------- */
.statement {
  text-align: center; margin: 28px 0 40px; font-family: "Fraunces", serif; font-weight: 600;
  line-height: 1.1; letter-spacing: -1px; color: var(--ink); font-size: clamp(2rem, 6.5vw, 4.2rem);
}
.statement-visual { display: inline-block; }
.cycler { position: relative; display: inline-block; vertical-align: bottom; text-align: left; }
.cw-ghost { visibility: hidden; }
.cw {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  opacity: 0; transform: translateY(.4em);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  background: linear-gradient(100deg, var(--purple), var(--bronze));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cw.is-active { opacity: 1; transform: none; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(22,13,43,.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand-mark { width: auto; height: 32px; display: block; }
.footer-brand .brand-mark { height: 28px; }
.brand-badge {
  width: 40px; height: 40px; border-radius: 50%; background: #fff; flex: none;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}
.brand-badge img { width: 80%; height: 80%; object-fit: contain; display: block; }
.brand-name { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.25rem; letter-spacing: .2px; }
.brand-dot { color: var(--gold); }
.nav-links { list-style: none; display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-size: .96rem; font-weight: 500; position: relative; transition: color .2s var(--ease); }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--gold);
  transition: width .25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:not(.nav-cta):hover::after, .nav-links a:focus-visible::after { width: 100%; }
.nav-cta {
  border: 1px solid var(--gold); color: var(--gold-lt); padding: 8px 18px; border-radius: 999px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-cta:hover { background: var(--gold); color: #1a1030; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: transform .25s var(--ease), opacity .25s var(--ease); }

/* ---------- hero ---------- */
.hero { padding-top: 56px; padding-bottom: 44px; position: relative; }
.hero-grid {
  max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 48px; align-items: center; min-height: auto;
}
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .2em; font-size: .76rem; font-weight: 600;
  color: var(--gold); margin: 0 0 22px; padding: 7px 16px; border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35); background: rgba(124, 58, 237, 0.1);
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 600; letter-spacing: -.5px; }
.hero-sub { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 540px; margin: 24px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
}
.btn-primary { background: var(--gold); color: #1a1030; }
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(212,175,55,.25); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--purple-lt); background: rgba(124,58,237,.12); transform: translateY(-2px); }
.btn-block { width: 100%; }

.hero-visual { display: flex; justify-content: center; position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: -8%; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.32), transparent 62%);
  filter: blur(28px); animation: aura 6.5s ease-in-out infinite;
}
@keyframes aura { 0%, 100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.08); opacity: 1; } }
.orbit { width: min(380px, 100%); height: auto; position: relative; z-index: 1; }
.orbit .node { fill: var(--purple-lt); }
.orbit .node-gold { fill: var(--gold); }
.ring { transform-origin: 180px 180px; }
.ring-1 { animation: spin 38s linear infinite; }
.ring-2 { animation: spin 26s linear infinite reverse; }
.ring-3 { animation: spin 18s linear infinite; }
.heron { transform-origin: 180px 180px; animation: float 6s ease-in-out infinite; }
.core { animation: pulse 3.2s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse { 0%,100% { opacity: .6; r: 6; } 50% { opacity: 1; } }

.scroll-hint { display: flex; justify-content: center; margin-top: 22px; }
.scroll-hint span {
  width: 22px; height: 36px; border: 2px solid var(--line); border-radius: 12px; position: relative;
}
.scroll-hint span::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; border-radius: 2px;
  background: var(--gold); transform: translateX(-50%); animation: scrolldot 1.8s ease-in-out infinite;
}
@keyframes scrolldot { 0% { opacity: 0; transform: translate(-50%,0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%,12px); } 100% { opacity: 0; } }

/* ---------- credibility strip ---------- */
.strip { padding: 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 8px 24px;
  display: flex; flex-wrap: wrap; gap: 6px 30px; justify-content: center; align-items: center;
  font-size: .72rem; color: var(--muted-2); letter-spacing: .09em; text-transform: uppercase;
}
.strip-inner + .strip-inner { padding-top: 0; padding-bottom: 10px; }
.strip-inner span { position: relative; }
.strip-inner span + span::before {
  content: ""; position: absolute; left: -18px; top: 50%; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); transform: translateY(-50%);
}
.strip-label { color: var(--gold); font-weight: 600; }

/* ---------- who we are ---------- */
.who { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.who-body { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: 1.15rem; }

/* ---------- pillars ---------- */
.approach { background: var(--bg-2); position: relative; overflow: hidden; }
.glass-backdrop { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.glass-backdrop span { position: absolute; border-radius: 50%; filter: blur(72px); }
.glass-backdrop span:nth-child(1) { width: 360px; height: 360px; background: #6d28d9; opacity: .5; top: -70px; left: 6%; }
.glass-backdrop span:nth-child(2) { width: 300px; height: 300px; background: var(--gold); opacity: .22; bottom: -90px; right: 10%; }
.glass-backdrop span:nth-child(3) { width: 280px; height: 280px; background: #7c3aed; opacity: .38; top: 38%; left: 44%; }
.approach .section-head, .approach .pillars { position: relative; z-index: 1; }
.pillars { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar {
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius); padding: 28px 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.pillar:hover {
  transform: translateY(-6px); background: rgba(255, 255, 255, 0.1); border-color: rgba(212, 175, 55, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 18px 46px rgba(0, 0, 0, 0.42);
}
.pillar-num { font-family: "Fraunces", serif; font-size: .9rem; color: var(--gold); letter-spacing: .1em; }
.pillar h3 { font-size: 1.45rem; margin: 10px 0 10px; }
.pillar p { color: var(--muted); font-size: .98rem; margin: 0; }

/* ---------- capabilities ---------- */
.cards { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px;
  position: relative; overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 3px; background: var(--gold);
  transform: scaleY(0); transform-origin: top; transition: transform .3s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--purple); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.card:hover::before { transform: scaleY(1); }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }

/* ---------- why us ---------- */
.why { max-width: var(--maxw); margin: 0 auto; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 12px; }
.why-item { padding: 28px 0 28px 24px; border-left: 2px solid var(--line); transition: border-color .25s var(--ease); }
.why-item:hover { border-left-color: var(--gold); }
.why-num { font-family: "Fraunces", serif; font-size: .9rem; color: var(--gold); letter-spacing: .1em; display: block; margin-bottom: 8px; }
.why-item h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--gold-lt); }
.why-item p { color: var(--muted); margin: 0; }

/* ---------- contact ---------- */
.contact-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.contact-head p { color: var(--muted); font-size: 1.12rem; margin: 14px 0 0; }
.contact-form {
  max-width: 760px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: .75rem; font-weight: 500; letter-spacing: .01em; margin-bottom: 5px; color: var(--muted); }
.req { color: #e2746f; font-weight: 600; }
.optional { color: var(--muted-2); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); font: inherit; font-size: .9rem; line-height: 1.25; padding: 7px 12px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%235b4d7a' stroke-width='1.6'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,58,237,.2);
}
.field textarea { resize: vertical; min-height: 84px; }
.check {
  display: flex; gap: 9px; align-items: flex-start; margin: 2px 0 11px;
  font-size: .8rem; line-height: 1.45; color: var(--muted); cursor: pointer;
}
.check input { margin-top: 2px; width: 15px; height: 15px; accent-color: var(--purple); flex: none; }
.recaptcha-wrap { margin: 6px 0 14px; transform: scale(0.92); transform-origin: left center; }
.recaptcha-note { font-size: .72rem; color: var(--muted-2); margin: 12px 0 0; }
.form-note { font-size: .9rem; margin: 12px 0 0; }
.form-note.error { color: #ffb4b4; }
.form-note.ok { color: var(--gold-lt); }

/* ---------- footer (Cloudforce-style: dark, sans-serif, multi-column) ---------- */
.site-footer { background: #100a20; border-top: 1px solid var(--line); padding: 72px 24px 80px; font-family: "Inter", system-ui, sans-serif; }
.footer-main { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1.3fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-tag { color: var(--muted-2); font-size: .95rem; max-width: 280px; margin: 0; }
.footer-address { font-style: normal; color: var(--muted-2); font-size: .9rem; line-height: 1.7; margin: 16px 0 0; }
.footer-address a { color: var(--muted); }
.footer-address a:hover { color: #fff; }
.footer-head { font-family: "Inter", sans-serif; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--muted); font-size: .95rem; transition: color .2s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-creds li { color: var(--muted-2); font-size: .9rem; letter-spacing: .02em; }
.footer-bottom {
  max-width: var(--maxw); margin: 44px auto 0; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center;
  color: var(--muted-2); font-size: .85rem;
}
.footer-independent { letter-spacing: .02em; }

/* ---------- reveal animation ---------- */
.reveal, .reveal-word { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in, .reveal-word.in { opacity: 1; transform: none; }
.reveal-word { transform: translateY(40px); }

/* ---------- focus visibility ---------- */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- closing CTA band ---------- */
.cta-band { text-align: center; }
.cta-inner { max-width: 680px; margin: 0 auto; }
.cta-inner p { font-size: 1.15rem; margin: 14px 0 28px; }
.section--light .cta-inner p { color: var(--ink-muted); }

/* ---------- contact drawer (slides in from right) ---------- */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(10, 6, 20, 0.6);
  opacity: 0; transition: opacity .3s var(--ease);
}
.drawer-overlay.show { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(560px, 94vw); z-index: 210;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.45);
  transform: translateX(100%); transition: transform .35s var(--ease);
  display: flex; flex-direction: column; overflow: hidden;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px; border-bottom: 1px solid var(--light-line);
}
.drawer-head .section-label { margin: 0; font-size: 1.6rem; }
.drawer-close {
  flex: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--light-line); background: transparent; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease), transform .25s var(--ease);
}
.drawer-close:hover { background: rgba(124, 58, 237, 0.1); transform: rotate(90deg); }
.drawer-body { flex: 1; overflow-y: auto; padding: 24px 26px 40px; }
.drawer-intro { color: var(--ink-muted); font-size: .88rem; line-height: 1.55; margin: 0 0 14px; }
.drawer-contact {
  font-style: normal; color: var(--ink-muted); font-size: .82rem; line-height: 1.6;
  margin: 0 0 20px; padding: 11px 14px; border-radius: var(--radius);
  background: rgba(124, 58, 237, 0.06); border: 1px solid var(--light-line);
}
.drawer-org { display: block; font-weight: 600; color: var(--ink); }
.drawer-contact a { color: var(--bronze); }

/* refined send button — sized to content, not full width */
.btn-send { width: auto; padding: 10px 22px; font-size: .92rem; margin-top: 2px; }
.btn-send svg { transition: transform .2s var(--ease); }
.btn-send:hover svg { transform: translateX(3px); }
.drawer .contact-form { background: transparent; border: 0; padding: 0; margin: 0; max-width: none; }
.drawer .form-row { column-gap: 14px; }
body.drawer-open { overflow: hidden; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; min-height: auto; }
  .hero-copy { order: 2; }
  .hero-visual { order: 1; }
  .hero-sub, .hero-actions { margin-left: auto; margin-right: auto; justify-content: center; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* collapse the nav to a hamburger early enough that links never crowd (tablet) */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(22,13,43,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s var(--ease);
  }
  .nav-links.open { max-height: 360px; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 16px 24px; }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-cta { border: 0; border-radius: 0; color: var(--gold-lt); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 640px) {
  section { padding: 64px 20px; }
  .pillars, .cards, .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; column-gap: 0; }
  .contact-form { padding: 24px; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .reveal-word { opacity: 1; transform: none; }
  .cursor-dot, .cursor-ring { display: none; }
  body.cursor-on { cursor: auto; }
}
