/* ==========================================================================
   Dragon Vision AI — site theme
   Change colours, fonts and spacing HERE; every page picks them up.
   Palette: Pure Black (base) · Race Red (energy) · Rolex Gold (detail only)
   ========================================================================== */

/* ---------- Self-hosted fonts (SIL OFL 1.1, licences in /assets/fonts/). Latin subset; no requests to Google. ---------- */
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/chakra-petch-600.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/chakra-petch-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/inter-var.woff2") format("woff2"); }

:root {
  /* Brand palette */
  --black: #000000;          /* base: backgrounds, the whole stage */
  --race-red: #E2142C;       /* energy: CTAs, dragon eye, key highlights, hovers */
  --race-red-hover: #F03246;
  --gold: #D4AF37;           /* luxury detail ONLY: hairlines, small icons, premium labels */
  --gold-light: #F6E27A;
  --gold-dark: #AA771C;

  /* Text on black */
  --text-head: #FFFFFF;
  --text-body: #E5E5E5;
  --text-muted: #9A9A9A;

  /* Surfaces (near-black panels on the pure-black stage) */
  --surface-1: #0B0B0B;
  --surface-2: #121212;
  --line: rgba(255, 255, 255, 0.08);
  --line-gold: linear-gradient(90deg, transparent, var(--gold-dark), var(--gold-light), var(--gold-dark), transparent);

  /* Type: Chakra Petch (headlines, wordmark) + Inter (body), self-hosted */
  --font-display: "Chakra Petch", "Eurostile", "Bank Gothic", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --max-w: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
  --section-y: clamp(72px, 10vw, 128px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  background: var(--black);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--race-red); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--text-head); font-weight: 700; letter-spacing: -0.01em; line-height: 1.08; }
h1 { font-size: clamp(40px, 6.4vw, 76px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: 21px; line-height: 1.25; }
p { max-width: 62ch; }

.wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--race-red); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Reusable bits ---------- */
.label {                       /* premium label: gold, small caps */
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
}
.label::before { content: ""; width: 22px; height: 1px; background: var(--gold); }

.hairline { height: 1px; border: 0; background: var(--line-gold); opacity: .55; }   /* gold divider */
.red { color: var(--race-red); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, transform .15s ease, color .2s ease;
}
.btn-red { background: var(--race-red); color: #fff; }
.btn-red:hover { background: var(--race-red-hover); transform: translateY(-1px); }
.btn-ghost { border: 1px solid rgba(255,255,255,.18); color: var(--text-head); }
.btn-ghost:hover { border-color: var(--race-red); color: #fff; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.section { padding: var(--section-y) 0; position: relative; }
.section-head { display: grid; gap: 18px; margin-bottom: 56px; }
.section-head p { color: var(--text-muted); font-size: 18px; }

.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: rgba(226, 20, 44, .45); transform: translateY(-2px); }
.card p { color: var(--text-muted); font-size: 16px; margin-top: 10px; }
.icon { width: 40px; height: 40px; color: var(--gold); margin-bottom: 18px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,.72); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 36px; height: 36px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-head); }
.brand-name span { color: var(--race-red); }
.brand-name { white-space: nowrap; }
@media (max-width: 420px) { .brand-name { font-size: 12.5px; letter-spacing: .1em; } .brand-mark { width: 30px; height: 30px; } .nav-links .btn { padding: 0 16px; font-size: 14px; } }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; color: var(--text-body); }
.nav-links a:not(.btn):hover { color: #fff; }
.nav-links .btn { min-height: 42px; padding: 0 20px; }
.nav-links a { white-space: nowrap; }
.nav-links a[aria-current]:not(.btn) { color: #fff; text-decoration: underline; text-decoration-color: var(--race-red); text-decoration-thickness: 2px; text-underline-offset: 8px; }
@media (max-width: 1000px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(64px, 10vw, 120px) 0 clamp(72px, 9vw, 112px); overflow: hidden; isolation: isolate; }
.hero::before {               /* red glow, like brake calipers through the spokes */
  content: ""; position: absolute; z-index: -1; inset: auto -20% -40% 30%; height: 80%;
  background: radial-gradient(closest-side, rgba(226,20,44,.28), transparent 70%); filter: blur(20px);
}
.hero::after {                /* faint carbon-weave texture */
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: .35;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.018) 0 2px, transparent 2px 6px);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { margin: 22px 0 24px; }
.hero h1 em { font-style: normal; color: var(--race-red); }
.hero .lede { font-size: clamp(18px, 2vw, 21px); color: var(--text-body); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-note { margin-top: 22px; font-size: 14px; color: var(--text-muted); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .hero-ctas .btn { width: 100%; } }

/* ---------- Cinematic hero: dragon fly-by ---------- */
.hero-cinematic { min-height: min(100vh, 1200px); display: flex; flex-direction: column; justify-content: center; padding: 120px 0 110px; }
.hero-cinematic::before, .hero-cinematic::after { content: none; }      /* the video replaces the glow + carbon texture */
.hero-media { position: absolute; inset: 0; z-index: -2; background: var(--black); }   /* the dragon emerges from black */
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; display: block; transform: scale(1.14); transform-origin: 82% 45%; }   /* a touch wider: wings reach further across */
.hero-media::after {                    /* shade the left for headline contrast, fade the bottom into the page */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.5) 30%, rgba(0,0,0,.08) 56%, rgba(0,0,0,0) 100%),
    linear-gradient(0deg, var(--black) 0%, rgba(0,0,0,0) 28%),
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 18%);
}
.hero-content { position: relative; max-width: var(--max-w); }
.hero-content h1, .hero-content .lede, .hero-content .label, .hero-content .hero-note { text-shadow: 0 2px 18px rgba(0,0,0,.95), 0 0 42px rgba(0,0,0,.85); }   /* keeps text crisp over the wider dragon */
.hero-content h1 { max-width: 13ch; }
.hero-content .lede { max-width: 44ch; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.35); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--race-red); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {                                    /* still dragon, no motion */
  .hero-video { display: none; }
  .hero-media { background: var(--black) url("/assets/media/dragon-poster.jpg") 70% center / cover no-repeat; }
}
@media (max-width: 760px) {
  .hero-cinematic { min-height: 0; padding: 96px 0 88px; }
  .hero-video { object-position: 62% center; }
  .hero-media::after { background: linear-gradient(0deg, var(--black) 0%, rgba(0,0,0,.78) 45%, rgba(0,0,0,.45) 100%); }
  .scroll-cue { display: none; }
}

.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.demo-grid .section-head { margin-bottom: 0; }
@media (max-width: 960px) { .demo-grid { grid-template-columns: 1fr; } }

/* Alert mock: shows the product in one glance */
.alert {
  background: linear-gradient(180deg, #101010, #070707); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(226,20,44,.08);
}
.alert-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-muted); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.pill-red { background: rgba(226,20,44,.14); color: #FF5A6B; }
.pill-ok { background: rgba(212,175,55,.12); color: var(--gold-light); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.alert h3 { font-size: 18px; margin: 16px 0 6px; }
.alert-meta { font-size: 14px; color: var(--text-muted); }
.alert-ai { margin-top: 18px; padding: 16px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: 14.5px; color: var(--text-body); }
.alert-ai strong { color: #fff; font-family: var(--font-display); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.steps-mini { list-style: none; margin-top: 18px; display: grid; gap: 10px; font-size: 14px; }
.steps-mini li { display: flex; align-items: center; gap: 10px; }
.check { width: 18px; height: 18px; flex: none; color: var(--race-red); }

/* ---------- How it works ---------- */
.step-num { font-family: var(--font-display); font-size: 13px; letter-spacing: .2em; color: var(--race-red); font-weight: 700; }
.step h3 { margin-top: 12px; }

/* ---------- Threat list ---------- */
.threats { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 40px; margin-top: 8px; }
.threats li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.threats li span { color: var(--text-muted); }
.threats b { color: #fff; font-weight: 600; }
@media (max-width: 640px) { .threats { grid-template-columns: 1fr; } }

/* ---------- Products (add a card per product) ---------- */
.product { display: flex; flex-direction: column; gap: 8px; min-height: 100%; }
.product .status { align-self: flex-start; margin-bottom: 10px; }
.product.is-soon { border-style: dashed; }

/* ---------- MSP band ---------- */
.band { background: linear-gradient(180deg, var(--surface-1), var(--black)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { font-family: var(--font-display); font-size: clamp(32px, 4vw, 44px); font-weight: 700; color: #fff; }
.stat small { font-size: 16px; color: var(--text-muted); font-family: var(--font-body); font-weight: 400; }

/* ---------- Mission ---------- */
.mission { display: grid; justify-items: center; gap: 20px; text-align: center; max-width: 820px; margin: 0 auto; }
.mission p { color: var(--text-body); font-size: clamp(18px, 2vw, 21px); }
.mission::after { content: ""; width: 120px; height: 1px; background: var(--line-gold); margin-top: 8px; }   /* gold hairline */

/* ---------- CTA ---------- */
.cta-box { text-align: center; display: grid; justify-items: center; gap: 20px; padding: clamp(48px, 7vw, 80px) var(--gutter); border-radius: 22px; border: 1px solid rgba(226,20,44,.3);
  background: radial-gradient(ellipse at 50% 120%, rgba(226,20,44,.22), transparent 60%), var(--surface-1); }
.cta-box p { color: var(--text-muted); }

/* ---------- Legal pages (privacy, terms) ---------- */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(34px, 5vw, 56px); margin: 18px 0 12px; }
.legal h2 { font-size: 22px; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--text-body); font-size: 17px; max-width: none; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 8px; margin-top: 10px; }
.legal b { color: #fff; font-weight: 600; }
.legal-meta { color: var(--text-muted) !important; font-size: 15px !important; }
.legal .signup { margin: 28px 0 12px; }
.legal .sender { margin-top: 40px; }
.legal-summary { margin-top: 32px; padding: 24px 28px; border-radius: var(--radius); border: 1px solid var(--line); border-left: 3px solid var(--race-red); background: var(--surface-1); }
.legal-summary h2 { margin-top: 0; }
.legal a.red { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- About page ---------- */
.about-hero { padding-bottom: clamp(56px, 7vw, 88px); }
.about-hero:has(+ .founder-top) { padding-bottom: 0; }   /* founder sits right under the intro */
.founder-top { padding-top: clamp(40px, 5vw, 64px); }
.about-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.about-hero-grid .founder-photo { max-width: 400px; justify-self: end; }
.hero-byline { margin-top: 22px; color: var(--gold); font-family: var(--font-display); letter-spacing: .06em; }
.hero-byline b { color: #fff; }
.founder.founder-solo { grid-template-columns: 1fr; max-width: 820px; }
@media (max-width: 960px) { .about-hero-grid { grid-template-columns: 1fr; gap: 36px; } .about-hero-grid .founder-photo { justify-self: start; max-width: 360px; } }
.about-hero h1 { max-width: 16ch; margin: 22px 0 24px; }
.about-hero h1 em { font-style: normal; color: var(--race-red); }
.about-hero .lede { font-size: clamp(18px, 2vw, 21px); }
.about-hero b { color: #fff; font-weight: 600; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.about-grid .section-head { margin-bottom: 0; }
.about-copy { display: grid; gap: 16px; }
.about-copy b { color: #fff; font-weight: 600; }
.facts { list-style: none; margin-top: 12px; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts span { color: var(--text-muted); }
.facts b { text-align: right; }
.founder { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: start; }
.founder h2 { margin-top: 14px; }
.founder p { margin-top: 14px; }
.founder-role { color: var(--gold) !important; font-family: var(--font-display); letter-spacing: .06em; margin-top: 6px !important; }
.founder-photo { width: 100%; max-width: 280px; height: auto; aspect-ratio: 4 / 5; border-radius: 20px; object-fit: cover; border: 1px solid rgba(212,175,55,.35); box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(226,20,44,.08); }
.founder-monogram { aspect-ratio: 1; }
.founder-monogram { display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, rgba(226,20,44,.25), transparent 60%), var(--surface-2);
  font-family: var(--font-display); font-weight: 700; font-size: 84px; letter-spacing: .04em; color: #fff; }
.founder-sign { font-family: var(--font-display); color: var(--race-red) !important; font-size: 20px; }
.todo { margin-top: 16px; padding: 14px 18px; border: 1px dashed var(--gold); border-radius: 10px; color: var(--gold-light); font-size: 15px; background: rgba(212,175,55,.05); }
.todo strong { display: block; color: var(--gold); font-family: var(--font-display); letter-spacing: .08em; text-transform: uppercase; font-size: 12px; margin-bottom: 4px; }
.founder p b { color: #fff; font-weight: 600; }
.social-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-body); font-size: 15px; transition: border-color .2s ease, color .2s ease; }
.social-link:hover { border-color: var(--race-red); color: #fff; }
.social-link b { color: #fff; font-weight: 600; }
.social-icon { width: 20px; height: 20px; color: var(--race-red); flex: none; }
@media (max-width: 960px) { .about-grid, .founder { grid-template-columns: 1fr; gap: 32px; } .founder-photo { max-width: 320px; } }

/* ---------- Blog ---------- */
.blog-hero { padding-bottom: 24px; }
.blog-hero h1 { margin: 22px 0 20px; max-width: 16ch; }
.blog-hero .lede { font-size: clamp(18px, 2vw, 21px); }
.blog-list-section { padding-top: 24px; }
.post-list { display: grid; gap: 20px; max-width: 820px; }
.post-card h2 { font-size: clamp(24px, 3vw, 32px); margin: 14px 0 10px; }
.post-card h2 a:hover { color: var(--race-red); }
.post-card-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--text-muted); font-size: 14px; margin: 0 !important; }
.read-more { display: inline-flex; gap: 8px; margin-top: 16px; color: var(--race-red); font-weight: 600; }
.read-more:hover .arrow { transform: translateX(3px); }
.read-more .arrow { transition: transform .2s ease; }
.newsletter-soon { margin-top: 56px; max-width: 820px; padding: 32px; border-radius: var(--radius); border: 1px dashed rgba(212,175,55,.45); background: var(--surface-1); display: grid; gap: 12px; justify-items: start; }
.newsletter-soon h2 { font-size: clamp(24px, 3vw, 30px); }
.newsletter-soon p { color: var(--text-muted); }
.newsletter-note a.red { text-decoration: underline; text-underline-offset: 3px; }

/* Blog post (reuses .legal) */
.post h2 { font-size: 24px; }
.post ol { padding-left: 1.3em; display: grid; gap: 10px; margin-top: 10px; }
.post li { color: var(--text-body); font-size: 17px; }
.back-link { display: block; width: fit-content; margin-bottom: 24px; color: var(--text-muted); font-size: 15px; }
.back-link:hover { color: #fff; }
.sources li { font-size: 15px !important; color: var(--text-muted) !important; }
.post-disclaimer { margin-top: 40px !important; padding-top: 20px; border-top: 1px solid var(--line); color: #6E6E6E !important; font-size: 13px !important; }

/* ---------- Scroll dragons (homepage) ----------
   Two dragons, one in each empty side margin (never over text), mirrored. Wings flap via an animated, transparent
   WebP loop. Vertical position is tied to scroll (CSS scroll-driven animation); /assets/dragon-dir.js sets
   html[data-dragon-dir] so they turn (shadow-dissolve) to face the scroll direction.
   Hidden where there's no empty margin (< 1360px wide), in unsupported browsers, and for reduced-motion users. */
.scroll-dragon { display: none; }
@supports (animation-timeline: scroll()) {
  @media (min-width: 1360px) {
    main { position: relative; z-index: 1; }
    .scroll-dragon {
      --gutter: calc((100vw - var(--max-w)) / 2);                /* empty black margin beside the content */
      --w: min(440px, calc((var(--gutter) - 32px) * 1.3));       /* a little smaller; rotated it's ~0.67 of this across */
      --dy: 0vh;
      display: block; position: fixed; left: 0; top: 0; z-index: 0; pointer-events: none;
      width: var(--w); opacity: 0; will-change: transform, opacity;
      animation: dragon-flight linear both; animation-timeline: scroll(root block);
      animation-range: 100vh 100%;                              /* begins only after the hero has scrolled off-screen */
    }
    .dragon-right { --x: calc(100vw - var(--gutter) / 2 - var(--w) / 2); }
    .dragon-left  { --x: calc(var(--gutter) / 2 - var(--w) / 2); }              /* perfectly in sync with the right dragon */
    .dragon-left .dragon-mirror { transform: scaleY(-1); }                      /* mirror across the body: same flight direction as the right dragon */
    .dragon-mirror, .dragon-turn { display: block; }
    /* Turning around: dissolve into a dark, blurred shadow with a faint red glow, rotate inside it, re-form. */
    :root[data-dragon-dir="up"]   .dragon-turn { animation: dragon-turn-up .9s cubic-bezier(.45, 0, .2, 1) both; }
    :root[data-dragon-dir="down"] .dragon-turn { animation: dragon-turn-down .9s cubic-bezier(.45, 0, .2, 1) both; }
    .scroll-dragon img { width: 100%; height: auto; display: block; filter: brightness(.95) drop-shadow(0 0 22px rgba(226, 20, 44, .3)); }
  }
}
/* rotate(-90deg) = head down (the art faces left). Small swings = banking. Pass 1 then pass 2, top to bottom. */
@keyframes dragon-flight {          /* 0% = the moment the hero has scrolled away */
  0%   { transform: translate(var(--x), calc(-70vh + var(--dy)))  rotate(-90deg); opacity: 0; }
  4%   { transform: translate(var(--x), calc(-35vh + var(--dy)))  rotate(-90deg); opacity: .55; }
  16%  { transform: translate(var(--x), calc(10vh + var(--dy)))   rotate(-86deg); opacity: .7; }
  30%  { transform: translate(var(--x), calc(55vh + var(--dy)))   rotate(-94deg); opacity: .7; }
  44%  { transform: translate(var(--x), calc(115vh + var(--dy)))  rotate(-90deg); opacity: 0; }
  52%  { transform: translate(var(--x), calc(-80vh + var(--dy)))  rotate(-90deg); opacity: 0; }
  60%  { transform: translate(var(--x), calc(-30vh + var(--dy)))  rotate(-94deg); opacity: .6; }
  74%  { transform: translate(var(--x), calc(15vh + var(--dy)))   rotate(-86deg); opacity: .7; }
  88%  { transform: translate(var(--x), calc(60vh + var(--dy)))   rotate(-94deg); opacity: .65; }
  100% { transform: translate(var(--x), calc(110vh + var(--dy)))  rotate(-90deg); opacity: .2; }
}
@keyframes dragon-turn-up {        /* head down -> head up */
  0%   { transform: rotate(0deg)   scale(1);  filter: none; opacity: 1; }
  30%  { transform: rotate(10deg)  scale(.9); filter: brightness(.1) blur(10px) drop-shadow(0 0 30px rgba(226,20,44,.6)); opacity: .35; }
  70%  { transform: rotate(170deg) scale(.9); filter: brightness(.1) blur(10px) drop-shadow(0 0 30px rgba(226,20,44,.6)); opacity: .35; }
  100% { transform: rotate(180deg) scale(1);  filter: none; opacity: 1; }
}
@keyframes dragon-turn-down {      /* head up -> head down */
  0%   { transform: rotate(180deg) scale(1);  filter: none; opacity: 1; }
  30%  { transform: rotate(170deg) scale(.9); filter: brightness(.1) blur(10px) drop-shadow(0 0 30px rgba(226,20,44,.6)); opacity: .35; }
  70%  { transform: rotate(10deg)  scale(.9); filter: brightness(.1) blur(10px) drop-shadow(0 0 30px rgba(226,20,44,.6)); opacity: .35; }
  100% { transform: rotate(0deg)   scale(1);  filter: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .scroll-dragon { display: none !important; } }

/* ---------- Websites (unlisted services page) ---------- */
.work-card { display: flex; flex-direction: column; gap: 10px; }
.work-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 8px; }
.work-card .pill { align-self: flex-start; }
.work-card.is-soon { border-style: dashed; }
.price-note { font-size: 13px; color: var(--text-muted); }
.contact-email { font-family: var(--font-display); font-size: clamp(20px, 3vw, 28px); font-weight: 700; color: #fff !important; letter-spacing: .01em; user-select: all; word-break: break-all; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.copy-btn { background: transparent; font-family: inherit; cursor: pointer; }
.copy-btn.is-copied { border-color: var(--gold); color: var(--gold-light); }
@media (max-width: 520px) { .contact-actions .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 40px; color: var(--text-muted); font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; margin-top: 28px; }
.site-footer a:hover { color: #fff; }
.fineprint { margin-top: 20px; font-size: 12px; line-height: 1.5; color: #6E6E6E; max-width: none; }

/* ---------- Pricing (2026-11-27) ---------- */
.price-card .btn { margin-top: auto; align-self: flex-start; }
.card p.price { color: var(--text-body); font-size: 15px; margin-top: 4px; }
.price b { font-family: var(--font-display); font-size: 40px; color: #fff; margin-right: 6px; letter-spacing: -0.01em; }
.price-card h3 .muted { color: var(--text-muted); font-size: .7em; font-weight: 600; }
.price-list { list-style: none; padding: 0; margin: 14px 0 26px; display: grid; gap: 10px; color: var(--text-body); font-size: 15.5px; }
.price-list li { position: relative; padding-left: 26px; }
.price-list li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 11px; height: 6px; border-left: 2px solid var(--race-red); border-bottom: 2px solid var(--race-red); transform: rotate(-45deg); }
.price-card.is-pro { border-color: rgba(226,20,44,.55); box-shadow: 0 0 0 1px rgba(226,20,44,.25), 0 24px 60px rgba(226,20,44,.12); }
.pricing-note { margin-top: 18px; font-size: 13px; color: var(--text-muted); }
/* Header fits one line on mid-size screens now that it has 6 links */
@media (max-width: 1120px) { .nav-links { gap: 18px; font-size: 14.5px; } .nav-links .btn { padding: 0 16px; } }

/* ---------- Legal pages: code (Pro setup guide) ---------- */
.legal code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; color: #fff; background: var(--surface-1); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.legal pre.code-block { margin-top: 14px; padding: 16px 18px; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.6; color: #fff; background: var(--surface-1); border: 1px solid var(--line); border-left: 3px solid var(--race-red); border-radius: 0; white-space: pre; }
