/* Charterstone Consultancy v2.0 — design system. Self-hosted fonts, no third parties, strict-CSP safe. */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-var-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --night: #050c1a;
  --navy: #0a1730;
  --navy-2: #0f2347;
  --blue: #2563eb;
  --blue-brand: #1d5fa8;
  --cyan: #38bdf8;
  --accent: #f47321;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e5e9f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --on-dark: #e2e8f0;
  --on-dark-muted: #94a3b8;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 32px -12px rgba(15, 23, 42, .14);
  --shadow-lg: 0 30px 60px -20px rgba(2, 8, 23, .55);
  --max: 1200px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --header-h: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 780; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }
.gradient-text { background: linear-gradient(90deg, #ffb27a 0%, var(--accent) 40%, #ffd0a8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.site-header.scrolled, .site-header.menu-open { background: rgba(5, 12, 26, .88); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom-color: rgba(148, 163, 184, .14); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand img { width: 196px; height: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a { display: block; padding: 9px 14px; border-radius: 10px; color: #cbd5e1; text-decoration: none; font-size: .94rem; font-weight: 560; transition: color .15s, background .15s; }
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.site-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .1); }
.site-nav a.btn { margin-left: 10px; color: #fff; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 12px; background: rgba(255, 255, 255, .04); cursor: pointer; padding: 12px 11px; }
.nav-toggle-bar { display: block; height: 2px; background: #fff; border-radius: 2px; margin: 5px 0; transition: transform .2s, 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); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 12px; font-weight: 680; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .15s, box-shadow .2s, background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: linear-gradient(180deg, #ff8a3d, var(--accent)); color: #fff; box-shadow: 0 10px 28px -8px rgba(244, 115, 33, .65), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-accent:hover { color: #fff; box-shadow: 0 14px 34px -8px rgba(244, 115, 33, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-ghost { border-color: rgba(203, 213, 225, .3); color: #f1f5f9; background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { border-color: rgba(203, 213, 225, .6); color: #fff; background: rgba(255, 255, 255, .08); }
.btn-outline { border-color: #cbd5e1; color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center-row { justify-content: center; }

/* ---------- Dark surfaces ---------- */
.dark { position: relative; color: var(--on-dark); background: var(--night); isolation: isolate; overflow: hidden; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark p { color: var(--on-dark-muted); }
.glow::before, .glow::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; opacity: .6; pointer-events: none; will-change: transform; }
.glow::before { width: 620px; height: 620px; left: -160px; top: -220px; background: radial-gradient(circle, rgba(37, 99, 235, .6), rgba(37, 99, 235, .18) 40%, transparent 70%); }
.glow::after { width: 560px; height: 560px; right: -140px; top: 10%; background: radial-gradient(circle, rgba(244, 115, 33, .38), rgba(244, 115, 33, .1) 42%, transparent 70%); animation: drift 18s ease-in-out infinite alternate; }
.gridlines { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 40px) scale(1.08); } }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--header-h) + 64px) 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px; border: 1px solid rgba(148, 163, 184, .25); background: rgba(15, 23, 42, .5); color: #cbd5e1; font-size: .86rem; font-weight: 560; margin-bottom: 26px; }
.pill b { color: #fff; font-weight: 700; white-space: nowrap; }
.pill-sep { flex: none; width: 1px; height: 14px; background: rgba(148, 163, 184, .4); }
.pill .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(34, 197, 94, .15); }
.pill .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.hero h1 { margin-bottom: 22px; }
.hero .lead { font-size: clamp(1.08rem, 1.5vw, 1.24rem); color: #b6c2d4; max-width: 54ch; margin-bottom: 34px; }
.hero-proof { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: #9fb0c8; font-size: .92rem; }
.hero-proof li { display: flex; align-items: center; gap: 9px; }
.hero-proof li::before { content: ""; width: 16px; height: 16px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23f47321' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

/* Code window */
.hero-visual { position: relative; }
/* Grid children may shrink below their content width, so long code lines scroll inside the window instead of widening the page */
.hero-grid > *, .ai-grid > *, .split > *, .bento > *, .grid > *, .models > * { min-width: 0; }
.code-window { position: relative; border-radius: 16px; background: linear-gradient(180deg, rgba(15, 23, 42, .92), rgba(2, 6, 23, .96)); border: 1px solid rgba(148, 163, 184, .2); box-shadow: var(--shadow-lg); }
.code-window::before { content: ""; position: absolute; inset: -1px; border-radius: 16px; padding: 1px; background: linear-gradient(135deg, rgba(244, 115, 33, .7), transparent 40%, rgba(56, 189, 248, .55)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.code-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid rgba(148, 163, 184, .12); }
.code-bar span { width: 11px; height: 11px; border-radius: 50%; background: #334155; }
.code-bar span:nth-child(1) { background: #f87171; }
.code-bar span:nth-child(2) { background: #fbbf24; }
.code-bar span:nth-child(3) { background: #34d399; }
.code-bar em { margin-left: 10px; font-style: normal; font-family: var(--mono); font-size: .8rem; color: #94a3b8; }
.code-body { margin: 0; padding: 22px 22px 30px; font-family: var(--mono); font-size: .86rem; line-height: 1.8; color: #e2e8f0; white-space: pre; overflow-x: auto; }
.code-body .k { color: #c084fc; }
.code-body .f { color: #60a5fa; }
.code-body .s { color: #86efac; }
.code-body .p { color: #fdba74; }
.code-body .c { color: #64748b; }
.cursor { display: inline-block; width: 8px; height: 1.05em; vertical-align: -2px; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.code-toast { position: absolute; right: 18px; bottom: -22px; display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-radius: 12px; background: #fff; color: var(--ink); font-size: .86rem; font-weight: 650; box-shadow: 0 18px 40px -16px rgba(2, 8, 23, .6); }
.code-toast b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #dcfce7; color: #15803d; }

/* Logo strip */
.logo-strip { background: #fff; border-bottom: 1px solid var(--line); padding: 34px 0 38px; }
.logo-strip p { text-align: center; color: #64748b; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 20px; }
.logos { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px 56px; }
.logos img { height: 44px; width: auto; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; opacity: .62; transition: opacity .2s, filter .2s; }
.logos img:hover { opacity: 1; filter: none; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.12rem; color: var(--muted); }
.dark .section-head p { color: var(--on-dark-muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.dark .eyebrow { color: #ffb27a; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 22px 44px -18px rgba(15, 23, 42, .22); }
.card p { color: var(--muted); margin-bottom: 0; }
.card ul { color: var(--muted); margin: 14px 0 0; }
.card li { margin-bottom: 6px; }
.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; color: var(--blue); background: linear-gradient(135deg, #eff6ff, #dbeafe); border: 1px solid #dbeafe; }
.icon svg { width: 24px; height: 24px; }
.icon.warm { color: var(--accent); background: linear-gradient(135deg, #fff7ed, #ffedd5); border-color: #fed7aa; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 680; text-decoration: none; color: var(--blue); }
.card-link::after { content: "\2192"; transition: transform .15s; }
.card-link:hover::after { transform: translateX(3px); }
.tag { display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; color: #c2410c; background: #fff1e7; border: 1px solid #fed7aa; border-radius: 999px; padding: 4px 11px; margin-bottom: 14px; }
.card.featured { background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--accent), #fbbf24 40%, var(--blue)) border-box; border: 1.5px solid transparent; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.bento .card { display: flex; flex-direction: column; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.card-dark { background: linear-gradient(160deg, var(--navy-2), var(--night)); border-color: rgba(148, 163, 184, .15); color: var(--on-dark); overflow: hidden; }
.card-dark h3 { color: #fff; }
.card-dark p { color: var(--on-dark-muted); }
.card-dark .icon { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); color: #ffb27a; }
.mini-list { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mini-list li { font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #cbd5e1; margin: 0; }

/* AI section */
.ai-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.ai-cards { display: grid; gap: 16px; }
.ai-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 22px 24px; border-radius: var(--radius); background: rgba(15, 23, 42, .65); border: 1px solid rgba(148, 163, 184, .16); transition: border-color .2s, transform .2s; }
.ai-card:hover { border-color: rgba(244, 115, 33, .5); transform: translateX(4px); }
.ai-card .icon { margin: 0; background: rgba(244, 115, 33, .12); border-color: rgba(244, 115, 33, .25); color: #ffb27a; }
.ai-card h3 { margin-bottom: 4px; font-size: 1.08rem; }
.ai-card p { margin: 0; font-size: .97rem; }
.principles { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 12px; }
.principles li { display: flex; gap: 12px; color: #cbd5e1; }
.principles li::before { content: ""; flex: none; margin-top: 4px; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%2338bdf8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

/* Global delivery map: dot map image + inline SVG overlay sharing one viewBox */
.world-map { position: relative; max-width: 1100px; margin: 0 auto; }
.world-map > img, .map-overlay { display: block; width: 100%; height: auto; }
.map-overlay { position: absolute; inset: 0; overflow: visible; }
.arc { fill: none; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.arc-team { stroke: rgba(255, 255, 255, .85); }
.arc-client { stroke: var(--accent); }
.packet { fill: #fff; }
.packet-client { fill: #ffd0a8; }
.leader { fill: none; stroke: rgba(203, 213, 225, .45); stroke-width: 1; }
.hub-body { transform-box: fill-box; transform-origin: center; }
.hub .ring { fill: none; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ping 2.6s ease-out infinite; }
.hub-team .ring { stroke: #fff; animation-delay: .9s; }
.hub-client .ring, .hub-hq .ring { stroke: var(--accent); }
.hub-client .ring { animation-delay: 1.6s; }
.hub-team .core { fill: #fff; }
.hub-client .core { fill: var(--accent); }
.hub-hq .core { fill: #fff; stroke: var(--accent); stroke-width: 3; }
@keyframes ping { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(2.8); opacity: 0; } }
.map-label rect { fill: rgba(5, 12, 26, .86); stroke: rgba(148, 163, 184, .35); }
.map-label text { fill: #e2e8f0; font-family: var(--font); font-size: 12px; font-weight: 620; }
.k-hq { fill: #fff; stroke: var(--accent); stroke-width: 2; }
.k-team { fill: #fff; }
.k-client { fill: var(--accent); }
/* Draw the routes when the map scrolls into view (only with JS and motion allowed) */
.js .world-map .arc { stroke-dashoffset: 1; transition: stroke-dashoffset 1.5s cubic-bezier(.6, 0, .2, 1); }
.js .world-map.in .arc { stroke-dashoffset: 0; }
.js .world-map .d2 { transition-delay: .2s; }
.js .world-map .d3 { transition-delay: .5s; }
.js .world-map .d4 { transition-delay: .7s; }
.js .world-map .packet, .js .world-map .map-label, .js .world-map .leader { opacity: 0; transition: opacity .6s ease 1.6s; }
.js .world-map.in .packet, .js .world-map.in .map-label, .js .world-map.in .leader { opacity: 1; }
.map-legend { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.map-legend li { display: flex; gap: 14px; align-items: flex-start; padding: 22px 24px; border-radius: var(--radius); background: rgba(15, 23, 42, .6); border: 1px solid rgba(148, 163, 184, .16); }
.map-legend h3 { font-size: 1.02rem; margin-bottom: 4px; }
.map-legend p { margin: 0; font-size: .95rem; }
.key { flex: none; width: 14px; height: 14px; margin-top: 4px; border-radius: 50%; }
.key-hq { background: #fff; box-shadow: 0 0 0 3px var(--accent); }
.key-team { background: #fff; }
.key-client { background: var(--accent); }

/* Engagement models */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.model { display: flex; flex-direction: column; }
.model .best { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line); font-weight: 650; color: var(--ink); font-size: .93rem; }
.model ul { margin-bottom: 18px; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: .97rem; border: 1px solid var(--line); }
.compare th, .compare td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--ink); color: #fff; font-weight: 680; }
.compare tbody th { color: var(--ink); font-weight: 680; width: 22%; background: #fafbfd; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; position: relative; }
.timeline::before { content: ""; position: absolute; top: 23px; left: 24px; right: calc((100% - 78px) / 4 - 24px); height: 2px; background: linear-gradient(90deg, var(--accent), var(--blue)); opacity: .35; }
.timeline li { position: relative; }
.timeline li::before { counter-increment: step; content: counter(step); position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; margin-bottom: 20px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent), #fb923c); box-shadow: 0 0 0 6px var(--bg-soft), 0 10px 24px -8px rgba(244, 115, 33, .7); }
.timeline h3 { font-size: 1.12rem; }
.timeline p { color: var(--muted); font-size: .98rem; margin: 0; }

/* Tech marquee */
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee + .marquee { margin-top: 14px; }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: scroll-x 46s linear infinite; list-style: none; padding: 0; margin: 0; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 52s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.chip { display: inline-flex; align-items: center; white-space: nowrap; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 620; font-size: .95rem; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.chip.ai { border-color: #fed7aa; background: #fff7ed; color: #9a3412; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 15px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .92rem; }
.tech-group h3 { font-size: .82rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }

/* Testimonials */
.quote { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.quote blockquote { margin: 0; font-size: 1.08rem; line-height: 1.6; color: var(--ink); }
.quote blockquote::before { content: "\201C"; display: block; height: 34px; font-size: 4rem; line-height: 1; font-family: Georgia, serif; color: var(--accent); }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); }
.quote figcaption span span { display: block; font-weight: 500; color: var(--muted); font-size: .92rem; }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; font-size: .95rem; color: #fff; background: linear-gradient(135deg, var(--blue-brand), var(--navy-2)); }

/* CTA */
.cta { position: relative; overflow: hidden; isolation: isolate; border-radius: 26px; padding: 64px; background: radial-gradient(600px 300px at 90% 0%, rgba(244, 115, 33, .35), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(37, 99, 235, .45), transparent 70%), var(--night); display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.cta h2 { color: #fff; margin-bottom: .35em; }
.cta p { color: #b6c2d4; margin: 0; max-width: 54ch; font-size: 1.08rem; }

/* Page hero (inner pages) */
.page-hero { padding: calc(var(--header-h) + 64px) 0 76px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); max-width: 20ch; }
.page-hero .lead { font-size: 1.15rem; color: #b6c2d4; max-width: 62ch; margin: 0; }
.page-hero .btn-row { margin-top: 34px; }
.section-foot { margin: 36px 0 0; }
.center-text { text-align: center; }
.center-page h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.center-page p { max-width: 52ch; margin-left: auto; margin-right: auto; }
.center-page .btn-row { margin-top: 30px; }
.center-page .big-code { font-family: var(--mono); font-size: clamp(4.5rem, 14vw, 9rem); font-weight: 400; line-height: 1; letter-spacing: -.04em; margin-bottom: 18px; color: transparent; -webkit-text-stroke: 1.5px rgba(148, 163, 184, .45); }

/* Split / prose / lists */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.55rem; }
.prose li { margin-bottom: .45em; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 14px; overflow-wrap: break-word; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: #eff6ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.8' fill='none' stroke='%232563eb' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.card-dark h2 { color: #fff; font-size: 1.15rem; letter-spacing: -.01em; }
.card-dark h2 + .checklist { margin-bottom: 30px; }
.card-dark .checklist:last-child { margin-bottom: 0; }
.card-dark .checklist li { color: #cbd5e1; }
.card-dark .checklist li::before { background-color: rgba(255, 255, 255, .08); }
.card-dark a { color: #fff; }

/* Forms */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 650; margin-bottom: 7px; color: var(--ink); font-size: .94rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid #d6dde8; border-radius: 12px; padding: 13px 15px; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .9rem; color: var(--muted); margin: 0; }
.form-status { margin: 0; padding: 12px 16px; border-radius: 12px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: .95rem; }

/* Footer */
.site-footer { background: var(--night); color: var(--on-dark-muted); padding: 80px 0 0; font-size: .95rem; border-top: 1px solid rgba(148, 163, 184, .1); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1.4fr; gap: 48px; padding-bottom: 48px; }
.footer-brand img { width: 190px; margin-bottom: 18px; }
.footer-brand p { max-width: 40ch; }
.footer-col h2 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; overflow-wrap: break-word; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-legal { border-top: 1px solid rgba(148, 163, 184, .1); padding: 24px 24px 34px; font-size: .84rem; color: #64748b; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-legal p { margin: 0; }
.footer-legal a { white-space: nowrap; }

.center-page { min-height: 72vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) 0 80px; }

/* Scroll reveal: only with JS and when motion is allowed */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid, .ai-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 640px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-2, .span-3, .span-4 { grid-column: span 1; }
  .bento .wide { grid-column: span 2; }
}
@media (max-width: 980px) {
  .grid-4, .timeline { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .models { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  .map-legend { grid-template-columns: 1fr; gap: 14px; margin-top: 36px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: var(--header-h); background: rgba(5, 12, 26, .97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(148, 163, 184, .14); padding: 12px 24px 24px; display: none; }
  .site-nav.open { display: block; }
  .no-js .site-nav { display: block; position: static; padding: 0 0 14px; }
  .no-js .nav-toggle { display: none; }
  .no-js .site-header { position: static; height: auto; background: var(--night); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 14px 12px; font-size: 1.05rem; }
  .site-nav a.btn { margin: 12px 0 0; }
}
@media (max-width: 900px) {
  .map-label, .leader { display: none; }
}
@media (max-width: 760px) {
  .arc { stroke-width: 3.6; }
  .hub-body { transform: scale(1.8); }
  .world-map { margin: 0 -12px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .hero { padding: calc(var(--header-h) + 36px) 0 72px; }
  .grid-2, .grid-3, .grid-4, .models, .timeline, .form-row, .bento { grid-template-columns: 1fr; }
  .bento .wide { grid-column: span 1; }
  .cta { flex-direction: column; align-items: flex-start; padding: 40px 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand img { width: 168px; }
  .code-body { font-size: .74rem; padding: 18px 16px 28px; }
  .code-toast { right: 12px; font-size: .8rem; }
  .logos { gap: 18px 34px; }
  .logos img { height: 30px; }
  .compare th, .compare td { padding: 12px 14px; }
  .btn-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; width: auto; padding: 0 24px; }
  .marquee .dup { display: none; }
  .packet { display: none; }
}
@media print {
  .site-header, .site-footer, .cta, .nav-toggle, .hero-visual { display: none; }
  .dark { background: #fff; color: #000; }
}
