/* =========================================================================
   Salveus Labs — Site
   Dark glassmorphism theme: amber glow, glass surfaces, animated marquees.
   ========================================================================= */

/* ---------- Tokens: default = STUNNING ---------- */
:root {
  --bg:        #09090b;
  --bg-2:      #0e0e12;
  --surface:   rgba(255,255,255,0.05);
  --surface-2: rgba(255,255,255,0.08);
  --border:    rgba(255,255,255,0.10);
  --border-2:  rgba(255,255,255,0.20);
  --text:      #ffffff;
  --text-2:    #a1a1aa;
  --muted:     #71717a;
  --accent:    #ffcd75;
  --accent-2:  #f59e6b;
  --accent-ink:#2a1a05;
  --radius:    12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --display-weight: 500;
  --tracking: -0.04em;
  --eyebrow-font: 'Inter', sans-serif;
  --eyebrow-transform: uppercase;
  --glow: 1;
  --page-bg:
    radial-gradient(120% 80% at 50% -10%, #17171c 0%, rgba(23,23,28,0) 55%),
    radial-gradient(80% 60% at 85% 8%, rgba(255,205,117,.12) 0%, rgba(255,205,117,0) 60%),
    radial-gradient(90% 70% at 10% 100%, rgba(245,158,107,.10) 0%, rgba(245,158,107,0) 60%),
    var(--bg);
  --grid: transparent;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--page-bg) fixed;
  -webkit-font-smoothing: antialiased;
  transition: background .5s ease, color .4s ease;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--grid); background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(100% 80% at 50% 0%, #000, transparent 75%);
          mask-image: radial-gradient(100% 80% at 50% 0%, #000, transparent 75%);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1,h2,h3,h4 { margin: 0; }

.wrap { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--eyebrow-font);
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: var(--eyebrow-transform); color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-pill); padding: 14px 24px;
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
  border: 1px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-2); }
.btn .ico-arrow { transition: transform .2s; }
.btn:hover .ico-arrow { transform: translateX(3px); }

/* ---------- Nav text CTA ---------- */
.nav-cta-text { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--text); padding: 8px 4px; position: relative; transition: color .2s; }
.nav-cta-text .ico-arrow { width: 15px; height: 15px; color: var(--accent); transition: transform .2s; }
.nav-cta-text::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 2px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-cta-text:hover::after { transform: scaleX(1); }
.nav-cta-text:hover .ico-arrow { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 70; padding: 18px 0;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand .mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; color: var(--accent-ink); box-shadow: 0 0 24px rgba(255,205,117,calc(.4 * var(--glow))); }
.brand .mark svg { width: 18px; height: 18px; }
.brand .bn { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand .bn sup { font-size: 9px; color: var(--muted); font-weight: 500; }
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.nav-links a { transition: color .2s; } .nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }
@media (max-width: 860px){ .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 64px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; opacity: .4;
  background-size: cover; background-position: center;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 6%, #000 64%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 6%, #000 64%, transparent); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
@media (min-width: 1024px){ .hero-grid { grid-template-columns: 1.2fr 1fr; gap: 48px; } }
.hero-grid > * { min-width: 0; }
.hero-left { display: flex; flex-direction: column; gap: 22px; padding-top: 16px; }
.hero h1 { font-size: clamp(26px, 3.6vw, 52px); font-weight: var(--display-weight); letter-spacing: var(--tracking); line-height: .94; white-space: nowrap; }
.hero h1 br { line-height: 0; }
.hero h1 .grad { background: linear-gradient(135deg, var(--text), var(--text), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lede { max-width: 38ch; font-size: 18px; color: var(--text-2); line-height: 1.6; margin: 0; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Glass stat card (hero right) */
.gcard { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(24px); padding: 28px; box-shadow: 0 25px 50px -16px rgba(0,0,0,calc(.5 * var(--glow))); }
.gcard .glow { position: absolute; top: -60px; right: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(255,205,117,calc(.18*var(--glow))), transparent 70%); filter: blur(40px); pointer-events: none; }
.gcard .gc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; position: relative; }
.gcard .gc-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border-2); }
.gcard .gc-ico svg { width: 22px; height: 22px; color: var(--accent); }
.gcard .gc-num { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.gcard .gc-sub { font-size: 13px; color: var(--text-2); }
.gc-prog-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 10px; }
.gc-prog-row .l { color: var(--text-2); }
.gc-prog { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-bottom: 24px; }
.gc-prog span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 1.2s ease; }
.gc-hr { height: 1px; background: var(--border); margin-bottom: 22px; }
.gc-mini { display: grid; grid-template-columns: 1fr 1px 1fr 1px 1fr; gap: 12px; text-align: center; align-items: center; }
.gc-mini .vl { width: 1px; height: 28px; background: var(--border); margin: 0 auto; }
.gc-mini b { display: block; font-size: 18px; }
.gc-mini small { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.gc-pills { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.gc-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 5px 11px; font-size: 10px; font-weight: 600; letter-spacing: .04em; color: var(--text-2); }
.gc-pill .dot { position: relative; width: 8px; height: 8px; }
.gc-pill .dot .ping { position: absolute; inset: 0; border-radius: 50%; background: #4ade80; opacity: .75; animation: ping 1.3s cubic-bezier(0,0,.2,1) infinite; }
.gc-pill .dot .core { position: absolute; inset: 0; border-radius: 50%; background: #22c55e; }
.gc-pill svg { width: 12px; height: 12px; color: var(--accent); }
@keyframes ping { 75%,100% { transform: scale(2.2); opacity: 0; } }

/* ---------- Hero right column: stats + trust marquee ---------- */
.hero-right { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.trust-card { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(24px); padding: 24px 0; box-shadow: 0 25px 50px -16px rgba(0,0,0,calc(.5 * var(--glow))); }
.trust-card h4 { font-size: 13px; font-weight: 500; color: var(--text-2); margin: 0 0 16px; padding: 0 24px; }
.trust-marquee { position: relative; display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent); }
.trust-track { display: flex; gap: 38px; white-space: nowrap; padding: 0 22px; width: max-content; animation: ttrack 26s linear infinite; }
.trust-card:hover .trust-track { animation-play-state: paused; }
.tlogo { display: inline-flex; align-items: center; gap: 9px; opacity: .55; filter: grayscale(1); transition: opacity .2s, filter .2s, transform .2s; cursor: default; }
.tlogo:hover { opacity: 1; filter: grayscale(0); transform: scale(1.04); }
.tlogo svg { width: 21px; height: 21px; color: var(--text); }
.tlogo img { width: 20px; height: 20px; object-fit: contain; }
.tlogo span { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
@keyframes ttrack { to { transform: translateX(-50%); } }

/* ---------- Section heads ---------- */
.section { padding: 88px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 52px); font-weight: var(--display-weight); letter-spacing: var(--tracking); line-height: 1.04; margin: 16px 0 0; }
.section-head p { color: var(--text-2); font-size: 17px; margin: 14px 0 0; }

/* ---------- Logo cloud ---------- */
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 48px; padding: 28px 0; opacity: .8; }
.logos span { font-weight: 700; font-size: 18px; color: var(--muted); filter: grayscale(1); opacity: .7; letter-spacing: -.01em; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
@media (max-width: 900px){ .bento { grid-template-columns: 1fr; } .bento > * { grid-column: auto !important; grid-row: auto !important; min-height: 280px; } }
.bcard { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(12px); padding: 26px; display: flex; flex-direction: column; transition: transform .3s ease, border-color .3s ease; }
.bcard:hover { transform: translateY(-3px); border-color: var(--border-2); }
.bcard.dark { background: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.7)); }
.bcard h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; position: relative; z-index: 2; }
.bcard p { color: var(--text-2); font-size: 14px; line-height: 1.6; position: relative; z-index: 2; }
.bcard.dark p { color: #a1a1aa; }
.b1 { grid-column: 1 / 5;  grid-row: 1 / 3; }
.b2 { grid-column: 5 / 8;  grid-row: 1 / 2; }
.b3 { grid-column: 8 / 13; grid-row: 1 / 2; }
.b4 { grid-column: 5 / 9;  grid-row: 2 / 3; }
.b5 { grid-column: 9 / 13; grid-row: 2 / 3; }
.bcard .skel { flex: 1; display: grid; place-items: center; min-height: 120px; }
.donut { width: 130px; height: 130px; border-radius: 50%; margin: 6px auto;
  background: conic-gradient(var(--accent) 0 250deg, var(--accent-2) 250deg 300deg, var(--surface-2) 300deg 360deg);
  -webkit-mask: radial-gradient(circle 40px at 50% 50%, transparent 98%, #000 100%); mask: radial-gradient(circle 40px at 50% 50%, transparent 98%, #000 100%);
  animation: spin 16s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.b-chip { position: absolute; right: 26px; bottom: 26px; width: 96px; height: 96px; border-radius: 22px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 18px 40px -14px var(--accent-2); }
.b-chip::after { content:""; position: absolute; inset: 12px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.5); }
.b-map { position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.25) 1px, transparent 1.4px); background-size: 12px 12px;
  -webkit-mask-image: radial-gradient(110% 90% at 50% 45%, #000 35%, transparent 75%); mask-image: radial-gradient(110% 90% at 50% 45%, #000 35%, transparent 75%); }
.b-pin { position: absolute; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255,255,255,.25); }
.b-pin img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.product { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); backdrop-filter: blur(12px); transition: all .25s; cursor: pointer; }
.product:hover { border-color: var(--border-2); transform: translateY(-3px); }
.product .pn { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); }
.product h4 { font-size: 20px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.product .ptag { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 600; }
.product p { color: var(--text-2); font-size: 14px; margin: 0; line-height: 1.55; }
.product .go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 13px; font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius); padding: 64px 48px; text-align: center; border: 1px solid var(--border);
  background: radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), var(--surface); }
.cta-band h2 { font-size: clamp(30px, 4.4vw, 56px); font-weight: var(--display-weight); letter-spacing: var(--tracking); line-height: 1.02; }
.cta-band p { color: var(--text-2); font-size: 17px; max-width: 46ch; margin: 16px auto 28px; }

/* ---------- Footer ---------- */
.footer { position: relative; margin-top: 40px; border-top: 1px solid var(--border); overflow: hidden; }
.footer-marquee { padding: 36px 0; border-bottom: 1px solid var(--border); overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.footer-marquee .m { display: inline-block; white-space: nowrap; font-size: clamp(34px, 6vw, 76px); font-weight: var(--display-weight); letter-spacing: var(--tracking);
  background: linear-gradient(90deg, var(--text), var(--accent), var(--text)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: fmarq 16s linear infinite, fshine 6s linear infinite; padding-left: 100%; }
@keyframes fmarq { to { transform: translateX(-100%); } }
@keyframes fshine { to { background-position: 200% center; } }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 56px 0; }
@media (max-width: 760px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.footer-grid h5 { font-family: var(--eyebrow-font); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 11px; }
.footer-grid a { color: var(--text-2); font-size: 14px; transition: color .2s; }
.footer-grid a:hover { color: var(--accent); }
.footer-tag { color: var(--text-2); font-size: 15px; max-width: 320px; margin: 14px 0 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: var(--muted); } .footer-bottom a:hover { color: var(--text); }

/* ---------- Contact modal ---------- */
.modal-scrim { position: fixed; inset: 0; z-index: 100; background: rgba(5,5,8,.6); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .3s; display: grid; place-items: center; padding: 24px; }
.modal-scrim.open { opacity: 1; pointer-events: auto; }
.modal { width: min(640px, 100%); max-height: 90vh; overflow-y: auto; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 36px; transform: translateY(16px) scale(.98); transition: transform .3s ease; box-shadow: 0 40px 100px -30px rgba(0,0,0,.7); }
.modal-scrim.open .modal { transform: none; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.modal h3 { font-size: 26px; font-weight: var(--display-weight); letter-spacing: var(--tracking); }
.modal .sub { color: var(--text-2); font-size: 14px; margin: 6px 0 24px; }
.modal-close { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-2); }
.modal-close:hover { color: var(--text); border-color: var(--border-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px;
  font: inherit; font-size: 14px; color: var(--text); transition: border-color .2s, box-shadow .2s; width: 100%; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23999' stroke-width='1.5' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field textarea { min-height: 92px; resize: vertical; }
.modal-actions { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.form-success { display: none; text-align: center; padding: 28px 0; }
.form-success.show { display: block; }
.form-success .ok { width: 56px; height: 56px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 20%, transparent); display: grid; place-items: center; margin: 0 auto 16px; color: var(--accent); }
.form-success h3 { font-size: 24px; margin-bottom: 8px; }
.form-success p { color: var(--text-2); }
@media (max-width: 560px){ .form-grid { grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 32px 96px; position: relative; z-index: 2; }
.legal h1 { font-size: clamp(34px, 5vw, 56px); font-weight: var(--display-weight); letter-spacing: var(--tracking); margin-bottom: 10px; }
.legal .updated { color: var(--muted); font-size: 13px; font-family: 'JetBrains Mono', monospace; margin-bottom: 40px; }
.legal h2 { font-size: 22px; font-weight: 600; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text-2); font-size: 15px; line-height: 1.7; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); }
.legal .back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; margin-bottom: 32px; }
.legal .back:hover { color: var(--text); }

/* ---------- Brand carousel ---------- */
.carousel { position: relative; margin-top: 8px; padding: 22px 0; overflow: hidden;
  background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); }
.carousel-track { display: flex; gap: 56px; width: max-content; animation: carousel 32s linear infinite; }
.carousel:hover .carousel-track { animation-play-state: paused; }
.cbrand { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; color: var(--text-2); transition: color .2s, transform .2s; }
.cbrand:hover { color: var(--text); transform: translateY(-1px); }
.cbrand .cm { color: var(--accent); display: grid; place-items: center; flex: none; }
.cbrand .cm svg { width: 22px; height: 22px; }
.cbrand .cn { font-weight: 700; font-size: 24px; letter-spacing: -.02em; }
@keyframes carousel { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .donut, .footer-marquee .m, .gc-pill .dot .ping, .carousel-track, .trust-track { animation: none !important; }
}

/* ---------- Hamburger ---------- */
.hamburger { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.hamburger span { display: block; width: 19px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(.4); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Slide-out drawer ---------- */
.drawer-scrim { position: fixed; inset: 0; z-index: 80; background: rgba(5,5,8,.55); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.drawer-scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; z-index: 85; height: 100%; width: min(370px, 87vw);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); border-left: 1px solid var(--border-2);
  transform: translateX(105%); transition: transform .45s cubic-bezier(.5,0,.1,1);
  display: flex; flex-direction: column; box-shadow: -40px 0 90px -24px rgba(0,0,0,.7); overflow-y: auto; }
.drawer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 220px; pointer-events: none;
  background: radial-gradient(120% 90% at 90% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%); }
.drawer.open { transform: translateX(0); }
.drawer-head { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 22px; border-bottom: 1px solid var(--border); }
.drawer-close { width: 42px; height: 42px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-2); }
.drawer-close:hover { color: var(--text); border-color: var(--border-2); }
.drawer-nav { position: relative; display: flex; flex-direction: column; padding: 16px 14px; flex: 1; }
.drawer-nav a { display: flex; align-items: center; justify-content: space-between; padding: 17px 14px; font-size: 23px; font-weight: 600; letter-spacing: -.01em; border-radius: 14px; color: var(--text);
  opacity: 0; transform: translateX(18px); transition: opacity .45s var(--ease), transform .45s var(--ease), background .2s; }
.drawer-nav a i { color: var(--accent); width: 19px; height: 19px; opacity: .65; transition: transform .2s; }
.drawer-nav a:hover { background: var(--surface); } .drawer-nav a:hover i { transform: translate(2px,-2px); opacity: 1; }
.drawer.open .drawer-nav a { opacity: 1; transform: none; }
.drawer.open .drawer-nav a:nth-child(1) { transition-delay: .08s; }
.drawer.open .drawer-nav a:nth-child(2) { transition-delay: .14s; }
.drawer.open .drawer-nav a:nth-child(3) { transition-delay: .20s; }
.drawer.open .drawer-nav a:nth-child(4) { transition-delay: .26s; }
.drawer-foot { position: relative; padding: 20px 22px 30px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 14px; }
.drawer-foot .btn { width: 100%; opacity: 0; transform: translateY(12px); transition: opacity .4s var(--ease) .3s, transform .4s var(--ease) .3s; }
.drawer.open .drawer-foot .btn { opacity: 1; transform: none; }
.drawer-meta { font-size: 12px; color: var(--muted); text-align: center; }
body.drawer-open { overflow: hidden; }

@media (max-width: 900px) { .hamburger { display: inline-flex; } }
@media (min-width: 901px) { .drawer, .drawer-scrim { display: none; } }

/* ---------- Mobile responsive ---------- */
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .nav { padding: 14px 0; }
  .nav-inner { gap: 14px; }
  .hero { padding: 48px 0 48px; }
  .hero h1 { white-space: normal; font-size: clamp(34px, 11vw, 52px); }
  .hero-grid { gap: 32px; }
  .hero p.lede { font-size: 16px; }
  .gcard, .trust-card { width: 100%; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 32px; }
  .cta-band { padding: 44px 24px; }
  .struct-cols { gap: 12px; }
  .company { padding: 22px; }
  .footer-grid { padding: 40px 0; }
}
@media (max-width: 520px) {
  .nav-right .btn-primary { display: none; }
  .hero h1 { font-size: clamp(30px, 9.5vw, 44px); }
  .gc-mini b { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
}
