/* Ryan Staffing single-page site. No build step, no dependencies. */

/* ---------- Fonts (self-hosted, SIL Open Font License: see /fonts/) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2-variations"), url(/fonts/inter-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Cabin Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/fonts/cabin-condensed-latin-700-normal.woff2) format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;
  --navy: #26235f;
  --navy-900: #17153d;
  --purple: #5a56a4;
  --lavender: #c0bedc;
  --teal: #0c8387;
  --teal-600: #0a6e72;
  --teal-100: #dff1f1;
  --ink: #1e1d33;
  --body: #4a4a5e;
  --muted: #6b6b80;
  --line: #e4e3ef;
  --bg: #ffffff;
  --tint: #f5f5fb;
  --surface: #ffffff;
  --glass: rgba(255,255,255,.75);
  --header-bg: rgba(255,255,255,.82);
  --accent-ink: var(--navy);   /* navy headings, numbers, outlines */
  --solid: var(--navy);        /* navy blocks with white text */
  --solid-hover: var(--navy-900);
  --link: var(--teal-600);
  --eyebrow: var(--teal);
  --btn-bg: var(--teal);
  --btn-bg-hover: var(--teal-600);
  --tag-bg: #ecebf7;
  --cross-bg: #f3e8ec;
  --card-hover-line: #d6d4ea;
  --hero-top: #fbfbfe;
  --hero-bottom: #f3f3fa;
  --dots: rgba(38,35,95,.08);
  --grad-a: var(--teal);
  --grad-b: var(--purple);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(23,21,61,.06), 0 8px 24px rgba(23,21,61,.06);
  --shadow-lg: 0 2px 6px rgba(23,21,61,.08), 0 24px 48px rgba(23,21,61,.12);
  --header-h: 76px;
  --gutter: 24px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Cabin Condensed", "Inter", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--body); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.005em; }
h1 { font-size: clamp(2.8rem, 6.2vw, 4.75rem); line-height: 1.02; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--solid); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--eyebrow); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--body); max-width: 62ch; }
.muted { color: var(--muted); }
.note { font-size: .95rem; color: var(--muted); margin-top: 28px; max-width: 80ch; }
.grad { background: linear-gradient(90deg, var(--grad-a) 0%, var(--grad-b) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 650; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--btn-bg); color: #fff; box-shadow: 0 8px 20px rgba(12,131,135,.28); }
.btn-accent:hover { background: var(--btn-bg-hover); color: #fff; }
.btn-ghost { border-color: var(--accent-ink); color: var(--accent-ink); }
.btn-ghost:hover { background: var(--solid); border-color: var(--solid); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); background: var(--header-bg); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(23,21,61,.06); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { margin-right: auto; }
.brand img { height: 56px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { position: relative; padding: 8px 12px; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 550; border-radius: 8px; transition: color .2s; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-nav a:not(.btn):hover, .site-nav a.active { color: var(--link); }
.site-nav a.active::after, .site-nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; }

/* Light/dark switch: black crescent moon in light mode, white sun in dark mode */
.theme-toggle { flex: none; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; transition: transform .25s var(--ease), border-color .2s; }
.theme-toggle:hover { transform: rotate(-15deg); border-color: var(--card-hover-line); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-moon { fill: #000; }
.theme-toggle .icon-sun { display: none; fill: #fff; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.logo-dark { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 72px) 0 72px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 85% 20%, rgba(90,86,164,.18), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(12,131,135,.14), transparent 70%),
    linear-gradient(180deg, var(--hero-top) 0%, var(--hero-bottom) 100%); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--dots) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 80%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 80%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-media { position: relative; margin: 0; }
.hero-media img { width: 100%; border-radius: 28px; box-shadow: var(--shadow-lg); aspect-ratio: 492 / 446; object-fit: cover; }
.hero-media::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: 32px; background: linear-gradient(135deg, var(--teal), var(--purple)); opacity: .18; z-index: -1; }
.hero-media figcaption { position: absolute; left: -24px; bottom: 28px; background: var(--surface); color: var(--accent-ink); font-family: var(--display); font-weight: 700; font-size: 1.15rem; padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 72px 0 0; }
.stat { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; backdrop-filter: blur(6px); }
.stat dt { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stat dd { margin: 6px 0 2px; font-family: var(--display); font-size: 2.2rem; font-weight: 700; color: var(--accent-ink); line-height: 1.1; }
.stat p { margin: 0; font-size: .95rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 112px 0; position: relative; }
.section-tint { background: var(--tint); }
.section-head { margin-bottom: 48px; max-width: 760px; }
.subhead { font-size: 1.35rem; margin: 64px 0 22px; }
.h3-lg { font-size: 1.5rem; }

.cards { display: grid; gap: 22px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--card-hover-line); }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-100); margin-bottom: 18px; }
.card .icon svg { width: 26px; height: 26px; fill: none; stroke: var(--teal-600); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-feature { padding: 34px; }
.card-feature h3 { font-size: 1.5rem; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--purple); background: var(--tag-bg); padding: 5px 10px; border-radius: 999px; margin-bottom: 14px; }
.callout { background: var(--teal-100); border-left: 4px solid var(--teal); padding: 14px 16px; border-radius: 10px; color: var(--ink); }
.card-list h4 { color: var(--accent-ink); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 72px; align-items: start; }
.split-media { margin-top: 0; align-items: center; grid-template-columns: 1.1fr .9fr; }
.media-frame { margin: 0; }
.media-frame img { border-radius: 24px; box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 482 / 446; object-fit: cover; }

/* Lists */
.ticks li, .crosses li { list-style: none; position: relative; padding-left: 28px; margin: 6px 0; }
.ticks li::before, .crosses li::before { content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 50%; background: var(--teal-100) no-repeat center / 10px; }
.ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230a6e72' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.crosses li::before { background-color: var(--cross-bg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.5 3.5l5 5M8.5 3.5l-5 5' fill='none' stroke='%23a3384f' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.cols-list { columns: 3 240px; column-gap: 32px; }
.cols-list li { break-inside: avoid; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .95rem; color: var(--ink); box-shadow: 0 1px 2px rgba(23,21,61,.04); }
.chips-sm li { font-size: .86rem; padding: 6px 13px; background: var(--tint); }

.steps { counter-reset: step; margin-bottom: 26px; }
.steps li { list-style: none; counter-increment: step; position: relative; padding: 0 0 18px 52px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--solid); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .95rem; }
.steps li::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps strong { color: var(--ink); }

/* People */
.people { display: grid; gap: 12px; margin-top: 18px; }
.person { list-style: none; display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; }
.person div { display: flex; flex-direction: column; line-height: 1.35; }
.person strong { color: var(--ink); }
.person div span { font-size: .92rem; color: var(--muted); }
.person div a { font-size: .92rem; }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--navy), var(--purple)); font-size: .9rem; letter-spacing: .04em; }

/* Docs */
.docs { margin-top: 8px; }
.doc-list { display: flex; flex-wrap: wrap; gap: 12px; }
.doc-list li { list-style: none; }
.doc-list a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 550; transition: border-color .2s, transform .2s var(--ease); }
.doc-list a:hover { border-color: var(--teal); transform: translateY(-2px); color: var(--link); }
.doc-list-stack { flex-direction: column; margin-top: 16px; }
.doc-list-stack a { display: flex; }
.pdf { flex: none; font-size: .68rem; font-weight: 800; letter-spacing: .06em; color: #fff; background: #b8374f; border-radius: 6px; padding: 4px 6px; }

/* Accordion / details */
.accordion { margin-top: 48px; display: grid; gap: 12px; }
.accordion details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.accordion summary { padding: 18px 22px; font-weight: 650; color: var(--ink); }
.accordion .details-body { padding: 0 22px 22px; }
summary { cursor: pointer; list-style: none; position: relative; padding-right: 36px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
details[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
details[open] > .details-body, details[open] > summary ~ * { animation: fadeDown .35s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.prose h4 { margin-top: 1.2em; }
.prose p { font-size: .96rem; }

.services .card { display: flex; flex-direction: column; }
.services .card > p { margin-bottom: 18px; }
.services details { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.services summary { font-size: .93rem; font-weight: 650; color: var(--link); }
.services summary::after { right: 4px; width: 8px; height: 8px; }
.services details p, .services details li { font-size: .95rem; }
.services details > *:not(summary) { margin-top: 10px; }
.services h4 { font-size: 1.2rem; color: var(--accent-ink); }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 64px; counter-reset: none; }
.process li { list-style: none; position: relative; padding: 26px; border-radius: var(--radius); background: linear-gradient(180deg, var(--tint), var(--surface)); border: 1px solid var(--line); }
.process span { font-family: var(--display); font-weight: 700; font-size: 2rem; color: var(--teal); line-height: 1; display: block; margin-bottom: 14px; }
.process p { margin: 0; font-size: .95rem; color: var(--muted); }

/* Dark testing section */
.section-dark { background: radial-gradient(80% 80% at 100% 0%, #3a3590 0%, transparent 60%), linear-gradient(160deg, var(--navy-900), var(--navy)); color: #d9d8ee; }
.section-dark h2, .section-dark h4 { color: #fff; }
.section-dark .lead { color: #cfcde8; }
.section-dark .eyebrow { color: #7fd3d4; }
.card-glass { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); box-shadow: none; color: #e5e4f5; }
.card-glass:hover { border-color: rgba(127,211,212,.5); background: rgba(255,255,255,.09); box-shadow: none; }
.card-glass h4 { padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.14); margin-bottom: 14px; }
.card-glass .ticks li::before { background-color: rgba(127,211,212,.18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.8' fill='none' stroke='%237fd3d4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.community { margin-top: 72px; }

/* Contact */
.section-contact { background: linear-gradient(180deg, var(--bg) 0%, var(--tint) 100%); }
.contact-grid { display: grid; grid-template-columns: .9fr 1fr 1fr; gap: 22px; align-items: stretch; }
.quick { display: grid; gap: 12px; }
.quick-link { display: flex; flex-direction: column; justify-content: center; padding: 18px 22px; border-radius: var(--radius-sm); text-decoration: none; background: var(--solid); color: #fff; transition: transform .25s var(--ease), background-color .25s; }
.quick-link:nth-child(1) { background: var(--btn-bg); }
.quick-link:hover { transform: translateX(4px); color: #fff; background: var(--solid-hover); }
.quick-link span { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.quick-link strong { font-size: 1.15rem; word-break: break-word; }
.office h3 { color: var(--accent-ink); font-size: 1.3rem; }
.office address { margin-bottom: 16px; color: var(--ink); }
.kv li { list-style: none; display: flex; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: .96rem; }
.kv span { width: 56px; flex: none; color: var(--muted); font-size: .85rem; padding-top: 2px; }
.kv a { word-break: break-all; }
.map-link { display: inline-block; margin-top: 16px; font-weight: 650; }
.map-link::after { content: " \2192"; }

/* Footer */
.site-footer { background: var(--navy-900); color: #b9b7d6; padding: 64px 0 28px; }
.site-footer a { color: #e3e2f3; text-decoration: none; }
.site-footer a:hover { color: #7fd3d4; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.6fr 1fr; gap: 40px; align-items: start; }
.footer-grid img { height: 64px; width: auto; margin-bottom: 10px; }
.footer-grid nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 48px; }
.footer-contact { display: grid; gap: 8px; }
.footer-base { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 22px; font-size: .9rem; }
.footer-base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(255,255,255,.12); }
.footer-base p { margin: 0; }

.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--solid); color: #fff; box-shadow: var(--shadow-lg); cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background-color .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--btn-bg); }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Dark mode ----------
   CSS only. Follows the visitor's system setting unless they pick a theme with the
   header button, which sets data-theme="light" or "dark" on <html> (see js/site.js).
   The two blocks below hold the same rules: keep them in sync when editing. */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0e22;
    --tint: #15142e;
    --surface: #1b1a37;
    --glass: rgba(27,26,55,.72);
    --header-bg: rgba(15,14,34,.8);
    --ink: #f1f0fa;
    --body: #c5c4dc;
    --muted: #9b9ab7;
    --line: #2d2b4f;
    --accent-ink: #c4c1f5;
    --solid: #36328a;
    --solid-hover: #2a2770;
    --link: #62cdd0;
    --eyebrow: #62cdd0;
    --teal-100: rgba(98,205,208,.13);
    --tag-bg: rgba(156,152,230,.16);
    --purple: #a9a5ee;
    --cross-bg: rgba(214,92,118,.18);
    --card-hover-line: #45426f;
    --hero-top: #13122c;
    --hero-bottom: #0f0e22;
    --dots: rgba(255,255,255,.06);
    --grad-a: #4cc6c9;
    --grad-b: #a9a5ee;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    --shadow-lg: 0 2px 6px rgba(0,0,0,.35), 0 24px 48px rgba(0,0,0,.45);
  }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
  :root:not([data-theme="light"]) .site-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.35); }
  :root:not([data-theme="light"]) .btn-accent { box-shadow: 0 8px 20px rgba(0,0,0,.35); }
  :root:not([data-theme="light"]) .hero-media::before { opacity: .3; }
  :root:not([data-theme="light"]) .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.8' fill='none' stroke='%2362cdd0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  :root:not([data-theme="light"]) .crosses li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.5 3.5l5 5M8.5 3.5l-5 5' fill='none' stroke='%23ee8ea2' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
  :root:not([data-theme="light"]) .card .icon svg { stroke: #62cdd0; }
  :root:not([data-theme="light"]) .section-dark { background: radial-gradient(80% 80% at 100% 0%, #2c2878 0%, transparent 60%), linear-gradient(160deg, #0b0a1c, #1c1a4a); }
  :root:not([data-theme="light"]) .site-footer { background: #0a0918; border-top: 1px solid var(--line); }
  :root:not([data-theme="light"]) .media-frame img, :root:not([data-theme="light"]) .hero-media img { filter: brightness(.92); }
}
:root[data-theme="dark"] {
    --bg: #0f0e22;
    --tint: #15142e;
    --surface: #1b1a37;
    --glass: rgba(27,26,55,.72);
    --header-bg: rgba(15,14,34,.8);
    --ink: #f1f0fa;
    --body: #c5c4dc;
    --muted: #9b9ab7;
    --line: #2d2b4f;
    --accent-ink: #c4c1f5;
    --solid: #36328a;
    --solid-hover: #2a2770;
    --link: #62cdd0;
    --eyebrow: #62cdd0;
    --teal-100: rgba(98,205,208,.13);
    --tag-bg: rgba(156,152,230,.16);
    --purple: #a9a5ee;
    --cross-bg: rgba(214,92,118,.18);
    --card-hover-line: #45426f;
    --hero-top: #13122c;
    --hero-bottom: #0f0e22;
    --dots: rgba(255,255,255,.06);
    --grad-a: #4cc6c9;
    --grad-b: #a9a5ee;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    --shadow-lg: 0 2px 6px rgba(0,0,0,.35), 0 24px 48px rgba(0,0,0,.45);
}
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
:root[data-theme="dark"] .site-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.35); }
:root[data-theme="dark"] .btn-accent { box-shadow: 0 8px 20px rgba(0,0,0,.35); }
:root[data-theme="dark"] .hero-media::before { opacity: .3; }
:root[data-theme="dark"] .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.8' fill='none' stroke='%2362cdd0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .crosses li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.5 3.5l5 5M8.5 3.5l-5 5' fill='none' stroke='%23ee8ea2' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .card .icon svg { stroke: #62cdd0; }
:root[data-theme="dark"] .section-dark { background: radial-gradient(80% 80% at 100% 0%, #2c2878 0%, transparent 60%), linear-gradient(160deg, #0b0a1c, #1c1a4a); }
:root[data-theme="dark"] .site-footer { background: #0a0918; border-top: 1px solid var(--line); }
:root[data-theme="dark"] .media-frame img, :root[data-theme="dark"] .hero-media img { filter: brightness(.92); }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal-zoom { transform: translateY(20px) scale(.96); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal-zoom { opacity: 1; transform: none; transition: none; }
  .card, .btn, .doc-list a, .quick-link { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-nav a:not(.btn) { padding: 8px 8px; font-size: .9rem; }
  .site-nav a:not(.btn)::after { left: 8px; right: 8px; }
  .cards-4, .process { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .quick { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .brand img { height: 48px; }
  .nav-toggle { order: 2; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
  .nav-toggle-bar { display: block; height: 2px; background: var(--accent-ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 24px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(23,21,61,.12); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility .25s; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a:not(.btn) { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a:not(.btn)::after { display: none; }
  .nav-cta { margin: 16px 0 0; }
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .hero-grid, .split, .split-media { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { max-width: 520px; }
  .hero-media figcaption { left: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 56px; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .section { padding: 84px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --gutter: 16px; }
  .cards-2, .cards-3, .cards-4, .process, .contact-grid, .cols-2, .quick { grid-template-columns: 1fr; }
  .stat { padding: 18px; }
  .stat dd { font-size: 1.8rem; }
  .card, .card-feature { padding: 22px; }
  .section { padding: 68px 0; }
  .subhead { margin-top: 48px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
}
