/* ==========================================================================
   Canny Alley — 2026
   Dark hero surfaces, light content, bento layouts, soft glow and motion.
   One brand red; each service carries its own accent via --accent.
   ========================================================================== */

:root {
	--bg: #f7f6f3;
	--surface: #ffffff;
	--ink: #0b0b10;
	--ink-2: #14141c;
	--text: #1a1a22;
	--muted: #62626e;
	--line: #e4e2dc;
	--line-dark: rgba(255, 255, 255, .12);
	--red: #e5202b;
	--red-deep: #b9131c;
	--accent: var(--red);

	--sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
	--display: "Manrope", "Geist", system-ui, sans-serif;
	--serif: "Instrument Serif", Georgia, "Times New Roman", serif;

	--wrap: 1240px;
	--gutter: clamp(20px, 4vw, 40px);
	--r-lg: 32px;
	--r-md: 24px;
	--r-sm: 16px;
	--header-h: 76px;
	--ease: cubic-bezier(.2, .7, .2, 1);

	--h-xl: clamp(2.7rem, 1rem + 5.6vw, 6rem);
	--h-lg: clamp(2.1rem, 1.1rem + 3vw, 3.9rem);
	--h-md: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem);
	--section: clamp(72px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 28px); scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--red); color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.screen-reader-text, .sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 12px; left: 12px; z-index: 100; width: auto; height: auto; clip: auto; margin: 0;
	padding: 12px 18px; background: #fff; color: #000; border-radius: 10px;
}

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .rise { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; animation-delay: var(--d, .2s); }
@keyframes rise { to { opacity: 1; transform: none; } }

.headline { display: block; }
.headline .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.headline .w > span { display: inline-block; }
.js .headline .w > span { transform: translateY(110%); animation: word .9s var(--ease) forwards; animation-delay: calc(.1s + var(--d, 0s)); }
@keyframes word { to { transform: none; } }
.headline .mark > span {
	background: linear-gradient(100deg, var(--accent), #ff7a59 60%, var(--accent));
	-webkit-background-clip: text; background-clip: text; color: transparent;
	font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.02em;
	padding-right: .08em;
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal, .js .rise, .js .headline .w > span { opacity: 1; transform: none; animation: none; transition: none; }
	.hero__glow i { animation: none !important; }
}

/* ---------- Type helpers ---------- */
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.eyebrow.center { text-align: center; color: var(--muted); }
.pill {
	display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 999px;
	background: rgba(255, 255, 255, .08); border: 1px solid var(--line-dark); color: rgba(255, 255, 255, .86);
	font-size: .85rem; font-weight: 500; margin-bottom: 28px; backdrop-filter: blur(10px);
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.pill a { text-decoration: none; }
.lede { font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); line-height: 1.55; max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
	border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 1px solid transparent;
	cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
	font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px rgba(229, 32, 43, .7); }
.btn--red:hover { background: var(--red-deep); }
.btn--black { background: var(--ink); color: #fff; }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--ghost { border-color: rgba(255, 255, 255, .3); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: #fff; color: var(--ink); }

.dot {
	display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; flex: none;
	background: var(--ink); color: #fff; transition: transform .35s var(--ease), background .25s;
}
.dot svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 14px 0 auto; z-index: 50; }
.site-header__bar {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	height: 60px; padding: 0 10px 0 20px; border-radius: 999px;
	background: rgba(255, 255, 255, .92); border: 1px solid rgba(0, 0, 0, .06);
	backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
	box-shadow: 0 8px 30px -14px rgba(0, 0, 0, .35);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__logo { display: block; height: 29px; width: auto; }
.site-footer .brand__logo { height: 34px; }
.brand__word { font-weight: 700; font-size: 1.15rem; letter-spacing: -.03em; color: var(--ink); }
.site-footer .brand__word { color: #fff; }
.custom-logo-link img { max-height: 36px; width: auto; }

.nav { display: flex; align-items: center; gap: 14px; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__list > li { position: relative; }
.nav__sub-toggle, .nav__list > li > a {
	display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px;
	background: none; border: 0; font: inherit; font-weight: 500; font-size: .96rem; color: var(--ink); cursor: pointer; text-decoration: none;
	transition: background .2s;
}
.nav__sub-toggle::after {
	content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.6px 1.6px 0;
	transform: translateY(-2px) rotate(45deg); transition: transform .25s var(--ease); opacity: .6;
}
.nav__sub-toggle[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.nav__list > li:hover > .nav__sub-toggle, .nav__sub-toggle[aria-expanded="true"], .has-sub.is-current > .nav__sub-toggle { background: rgba(0, 0, 0, .06); }
.nav__sub {
	position: absolute; top: calc(100% + 14px); left: 0; min-width: 220px; padding: 8px;
	background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .35);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.nav__sub::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.has-sub:hover > .nav__sub, .has-sub.is-open > .nav__sub, .has-sub:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub li a { display: block; padding: 11px 14px; border-radius: 12px; text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav__sub li a:hover { background: var(--bg); }
.nav__sub--mega { display: grid; gap: 4px; width: 400px; left: -40px; }
.nav__sub--mega a {
	position: relative; display: grid; gap: 2px; padding: 14px 14px 14px 52px; border-radius: 14px; text-decoration: none;
}
.nav__sub--mega a:hover { background: var(--bg); }
.nav__sub--mega i { position: absolute; left: 14px; top: 16px; width: 26px; height: 26px; border-radius: 9px; background: var(--accent); opacity: .9; }
.nav__sub--mega strong { font-weight: 600; font-size: .98rem; }
.nav__sub--mega span { font-size: .84rem; color: var(--muted); }
.nav .btn { min-height: 42px; padding: 0 20px; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ink); cursor: pointer; position: relative; }
.nav-toggle span[aria-hidden] { position: absolute; left: 14px; right: 14px; top: 21px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease); }
.nav-toggle span[aria-hidden]::before, .nav-toggle span[aria-hidden]::after {
	content: ""; position: absolute; left: 0; right: 0; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease);
}
.nav-toggle span[aria-hidden]::before { top: -6px; }
.nav-toggle span[aria-hidden]::after { top: 6px; }
.nav-open .nav-toggle span[aria-hidden] { background: transparent; }
.nav-open .nav-toggle span[aria-hidden]::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span[aria-hidden]::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
	.nav-toggle { display: block; }
	.nav {
		position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 10px;
		padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .4);
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility .25s;
		max-height: calc(100vh - 110px); overflow: auto;
	}
	.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
	.nav__list { flex-direction: column; align-items: stretch; }
	.nav__sub-toggle { width: 100%; justify-content: space-between; }
	.nav__sub, .nav__sub--mega {
		position: static; width: auto; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
		padding: 0 0 0 8px; display: none; background: transparent;
	}
	.nav__sub::before { display: none; }
	.has-sub:hover > .nav__sub { display: none; }
	.has-sub.is-open > .nav__sub { display: block; }
	.has-sub.is-open > .nav__sub--mega { display: grid; }
	.nav .btn { width: 100%; }
}

/* ---------- Dark surfaces: hero + page heads ---------- */
.hero, .page-head, .svc-hero, .section--ink, .site-footer, .band {
	background: var(--ink); color: #fff; position: relative; overflow: hidden; isolation: isolate;
}
.hero { padding: calc(var(--header-h) + 80px) 0 clamp(48px, 7vw, 90px); }
.hero__glow { position: absolute; inset: 0; z-index: -1; filter: blur(70px); }
.hero__glow i { position: absolute; border-radius: 50%; opacity: .55; animation: float 16s ease-in-out infinite alternate; }
.hero__glow i:nth-child(1) { width: 46vw; height: 46vw; left: -8vw; top: -16vw; background: #3d5afe; }
.hero__glow i:nth-child(2) { width: 38vw; height: 38vw; right: -10vw; top: 4vw; background: var(--red); animation-delay: -5s; }
.hero__glow i:nth-child(3) { width: 30vw; height: 30vw; left: 38vw; bottom: -18vw; background: #00a884; opacity: .35; animation-delay: -9s; }
@keyframes float { to { transform: translate(5vw, 4vw) scale(1.15); } }
.hero__grid-bg {
	position: absolute; inset: 0; z-index: -1; opacity: .5;
	background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
	background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero__title { font-size: var(--h-xl); max-width: 16ch; font-weight: 600; }
.hero .lede { margin-top: 28px; color: rgba(255, 255, 255, .72); }
.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(48px, 7vw, 88px); background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--r-md); overflow: hidden; }
.hero__stats li { padding: 26px 24px; background: rgba(11, 11, 16, .6); backdrop-filter: blur(12px); }
.hero__stats b { display: block; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.8rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.hero__stats small { display: block; margin-top: 10px; font-size: .86rem; line-height: 1.4; color: rgba(255, 255, 255, .6); }
@media (max-width: 760px) { .hero__stats { grid-template-columns: 1fr 1fr; } }

.page-head { padding: calc(var(--header-h) + 70px) 0 clamp(48px, 6vw, 80px); }
.page-head__glow {
	position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(60% 80% at 85% 0%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%),
		radial-gradient(40% 60% at 0% 100%, rgba(61, 90, 254, .35), transparent 70%);
}
.page-head__title { font-size: var(--h-xl); max-width: 17ch; }
.page-head .lede { margin-top: 26px; color: rgba(255, 255, 255, .72); }
.page-head__photo {
	height: clamp(220px, 32vw, 420px); margin-top: clamp(40px, 5vw, 64px); border-radius: var(--r-lg);
	background-size: cover; background-position: center; filter: grayscale(1) contrast(1.05);
	border: 1px solid var(--line-dark);
}
.page-head--image { padding-bottom: 0; }
.page-head--image + .section, .page-head--image + .section--flush-top { padding-top: var(--section); }
.page-head--article .page-head__title { max-width: 22ch; font-size: var(--h-lg); }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; color: rgba(255, 255, 255, .65); font-size: .92rem; }
.article-meta a { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--flush-top { padding-top: clamp(40px, 5vw, 64px); }
.section--soft { background: #efede8; }
.section--ink { background: var(--ink); }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head h2 { font-size: var(--h-lg); }
.sec-head__note { margin-top: 18px; color: var(--muted); font-size: 1.15rem; max-width: 56ch; }
.section--ink .sec-head__note, .band p { color: rgba(255, 255, 255, .7); }

/* ---------- Home: bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile {
	position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; overflow: hidden;
	padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); text-decoration: none; min-height: 340px;
	background: var(--surface); border: 1px solid var(--line);
	transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.tile:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -40px color-mix(in srgb, var(--accent) 70%, #000); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.tile--1 { grid-column: span 4; }
.tile--2 { grid-column: span 2; }
.tile--3 { grid-column: span 3; }
.tile--4 { grid-column: span 3; background: var(--ink); color: #fff; border-color: var(--ink); --accent: var(--red); }
.tile--4 p { color: rgba(255, 255, 255, .7); }
.tile--4 .dot { background: #fff; color: var(--ink); }
.tile__num { font-size: .85rem; font-weight: 600; color: var(--accent); letter-spacing: .1em; }
.tile .art { position: absolute; right: 18px; top: 18px; width: clamp(150px, 20vw, 260px); color: var(--accent); opacity: .85; transition: transform .6s var(--ease); }
.tile:hover .art { transform: scale(1.06) rotate(-2deg); }
.tile--3 .art { width: 130px; }
.tile--2 .art { position: static; width: 120px; align-self: flex-start; }
.tile__body { position: relative; max-width: 46ch; }
.tile__body h3 { font-size: var(--h-md); }
.tile__body p { margin-top: 12px; color: var(--muted); font-size: 1rem; }
.tile .dot { position: absolute; right: 24px; bottom: 24px; background: var(--accent); }
.tile:hover .dot { transform: rotate(-45deg) scale(1.08); }
.tile--1 .tile__body, .tile--3 .tile__body { padding-right: 64px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips li {
	padding: 6px 13px; border-radius: 999px; font-size: .84rem; font-weight: 500;
	background: color-mix(in srgb, var(--accent) 10%, transparent); color: color-mix(in srgb, var(--accent) 80%, #000);
}
.chips--lg { margin-top: 48px; gap: 12px; }
.chips--lg li { padding: 12px 22px; font-size: 1rem; background: transparent; color: #fff; border: 1px solid var(--line-dark); }
@media (max-width: 860px) {
	.bento { grid-template-columns: 1fr; }
	.tile--1, .tile--2, .tile--3, .tile--4 { grid-column: auto; min-height: 0; }
	.tile .art { position: static; width: 120px; margin-bottom: -8px; }
	.tile--4 { min-height: 220px; }
}

/* ---------- Home: principles, clients ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { padding: 28px 28px 36px; border: 1px solid var(--line-dark); border-radius: var(--r-md); background: rgba(255, 255, 255, .03); min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
.steps span { font-family: var(--serif); font-style: italic; font-size: 2.6rem; color: var(--red); line-height: 1; }
.steps h3 { font-size: var(--h-md); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .steps li { min-height: 0; gap: 40px; } }

.clients { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }
.clients li { display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; }
.clients img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--bg); }
.clients li:not(:has(img)) { padding-left: 22px; }

/* ---------- Photo band ---------- */
.band { padding: clamp(80px, 10vw, 140px) 0; }
.band__img { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; filter: grayscale(1); opacity: .45; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, var(--ink) 15%, rgba(11, 11, 16, .55)); }
.band__inner { max-width: 760px; margin-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.band h2 { font-size: var(--h-lg); }
.band .eyebrow { color: #ff6b73; }
.band p:not(.eyebrow) { margin-top: 20px; font-size: 1.15rem; }
.tagline { display: inline-block; margin-top: 30px; font-size: .92rem; color: rgba(255, 255, 255, .7); text-underline-offset: 4px; }

/* ---------- Portfolio ---------- */
.portfolio { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.portfolio--full { grid-template-columns: repeat(2, 1fr); gap: 20px; }
.co__link {
	display: flex; flex-direction: column; gap: 18px; height: 100%; padding: 28px; text-decoration: none;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
	transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.co__link:hover { transform: translateY(-5px); box-shadow: 0 34px 60px -38px rgba(0, 0, 0, .45); border-color: var(--ink); }
.co__top { display: flex; flex-direction: column; gap: 6px; }
.co__name { font-size: 1.6rem; font-weight: 650; letter-spacing: -.04em; display: flex; align-items: baseline; gap: 12px; }
.co__name em { font-family: var(--serif); font-size: 1.2rem; color: var(--red); }
.co__logo { max-height: 36px; width: auto; }
.co__cat { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.co__summary { color: var(--muted); font-size: 1rem; }
.co__points { display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .95rem; }
.co__points li { position: relative; padding-left: 22px; }
.co__points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--red); }
.co__visit { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; font-weight: 600; font-size: .95rem; }
.co:hover .dot { transform: rotate(-45deg); background: var(--red); }
.portfolio--full .co__name { font-size: 2.2rem; }
@media (max-width: 1080px) { .portfolio { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .portfolio, .portfolio--full { grid-template-columns: 1fr; } }

/* ---------- Quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.quote { position: relative; margin: 0; padding: clamp(28px, 3.4vw, 44px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.quote__mark { font-family: var(--serif); font-size: 5rem; line-height: .6; color: var(--red); }
.quote blockquote { margin: 18px 0 28px; font-size: 1.2rem; line-height: 1.5; letter-spacing: -.01em; }
.quote figcaption { color: var(--muted); font-size: .95rem; }
.quote strong { display: block; color: var(--ink); font-size: 1rem; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.split__item { padding: clamp(28px, 4vw, 52px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.split__item h2 { font-size: var(--h-md); font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem); letter-spacing: -.02em; }
.split__item p:not(.eyebrow) { color: var(--muted); }
.split__item--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.split__item--dark p:not(.eyebrow) { color: rgba(255, 255, 255, .7); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-dark); }
.facts li { padding: 36px 32px 8px 0; }
.facts li + li { padding-left: 32px; border-left: 1px solid var(--line-dark); }
.facts__big { display: block; font-size: clamp(2.6rem, 1.6rem + 3vw, 4.4rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; margin-bottom: 22px; }
.facts h3 { font-size: 1.25rem; margin-bottom: 12px; }
.facts p { color: rgba(255, 255, 255, .65); font-size: .98rem; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; } .facts li, .facts li + li { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line-dark); } }

.why { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.why__lead { position: sticky; top: calc(var(--header-h) + 40px); }
.why__lead h2 { font-size: var(--h-lg); }
.why__lead p:not(.eyebrow) { margin-top: 18px; color: var(--muted); }
.why__lead .btn { margin-top: 30px; }
.why details { border-top: 1px solid var(--line); padding: 4px 0; }
.why details:last-child { border-bottom: 1px solid var(--line); }
.why summary { display: flex; align-items: center; gap: 20px; padding: 22px 0; font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; cursor: pointer; list-style: none; }
.why summary::-webkit-details-marker { display: none; }
.why summary span { font-family: var(--serif); font-style: italic; color: var(--red); font-size: 1.5rem; min-width: 40px; }
.why summary::after { content: "+"; margin-left: auto; font-size: 1.6rem; font-weight: 400; transition: transform .3s var(--ease); }
.why details[open] summary::after { transform: rotate(45deg); }
.why details p { padding: 0 60px 26px 60px; color: var(--muted); }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } .why__lead { position: static; } .why details p { padding-left: 0; padding-right: 0; } }

/* ---------- Investment ---------- */
.big-stat { display: flex; align-items: center; gap: clamp(20px, 4vw, 56px); margin-bottom: clamp(48px, 6vw, 80px); padding-bottom: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.big-stat b { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(5rem, 3rem + 10vw, 11rem); line-height: .85; letter-spacing: -.05em; color: var(--red); }
.big-stat p { font-size: clamp(1.2rem, 1rem + .8vw, 1.7rem); max-width: 28ch; line-height: 1.3; letter-spacing: -.02em; }
.stack { display: grid; gap: 22px; }
.stack__card {
	position: sticky; top: calc(var(--header-h) + 24px + var(--i) * 14px);
	display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px);
	padding: clamp(28px, 4vw, 52px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
	box-shadow: 0 30px 60px -44px rgba(0, 0, 0, .5);
}
.stack__card:nth-child(even) { background: var(--ink); color: #fff; border-color: var(--ink); }
.stack__card:nth-child(even) .stack__intro, .stack__card:nth-child(even) .stack__items p { color: rgba(255, 255, 255, .68); }
.stack__card:nth-child(even) .stack__items > div { border-color: var(--line-dark); }
.stack__num { display: block; font-family: var(--serif); font-style: italic; font-size: 3.4rem; line-height: 1; color: var(--red); margin-bottom: 20px; }
.stack__head h2 { font-size: var(--h-md); }
.stack__head .eyebrow { color: var(--muted); margin-bottom: 10px; }
.stack__card:nth-child(even) .stack__head .eyebrow { color: rgba(255, 255, 255, .55); }
.stack__intro { color: var(--muted); font-size: 1.08rem; }
.stack__items { display: grid; gap: 0; margin-top: 26px; }
.stack__items > div { padding: 22px 0; border-top: 1px solid var(--line); }
.stack__items h3 { font-size: 1.15rem; margin-bottom: 8px; letter-spacing: -.02em; }
.stack__items p { color: var(--muted); font-size: .98rem; }
@media (max-width: 860px) {
	.big-stat { flex-direction: column; align-items: flex-start; }
	.stack__card { position: static; grid-template-columns: 1fr; }
}

/* ---------- Services index + single ---------- */
.svc-list { display: grid; gap: 18px; }
.svc-row {
	position: relative; display: grid; grid-template-columns: 70px 1fr 240px 42px; align-items: center; gap: clamp(16px, 3vw, 40px);
	padding: clamp(24px, 3.4vw, 44px); border-radius: var(--r-lg); text-decoration: none;
	background: var(--surface); border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.svc-row:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 40px 70px -44px var(--accent); }
.svc-row__num { font-family: var(--serif); font-style: italic; font-size: 2.6rem; color: var(--accent); }
.svc-row h2 { font-size: var(--h-md); }
.svc-row p { margin-top: 10px; color: var(--muted); max-width: 54ch; }
.svc-row__art .art { width: 100%; color: var(--accent); }
.svc-row .dot { background: var(--accent); }
.svc-row:hover .dot { transform: rotate(-45deg); }
@media (max-width: 860px) { .svc-row { grid-template-columns: 1fr; } .svc-row__art { max-width: 200px; } }

.svc-hero { padding: calc(var(--header-h) + 70px) 0 clamp(56px, 7vw, 96px); }
.svc-hero__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.svc-hero .page-head__title { font-size: clamp(2.4rem, 1.2rem + 4vw, 4.8rem); }
.svc-hero .lede { margin-top: 24px; color: rgba(255, 255, 255, .72); }
.svc-hero__art { position: relative; padding: 36px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark); backdrop-filter: blur(14px); }
.svc-hero__art .art { color: var(--accent); filter: drop-shadow(0 0 24px color-mix(in srgb, var(--accent) 60%, transparent)); }
.svc-hero__proof { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-dark); }
.svc-hero__proof b { display: block; font-size: 2.6rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.svc-hero__proof span { display: block; margin-top: 8px; font-size: .9rem; color: rgba(255, 255, 255, .65); }
@media (max-width: 860px) { .svc-hero__grid { grid-template-columns: 1fr; } }

.svc-layout, .legal-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.svc-aside { position: sticky; top: calc(var(--header-h) + 40px); }
.svc-aside__title { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.svc-aside__title:not(:first-child) { margin-top: 36px; }
.toc { counter-reset: t; border-left: 1px solid var(--line); }
.toc li { counter-increment: t; }
.toc a { display: block; padding: 8px 0 8px 18px; margin-left: -1px; border-left: 2px solid transparent; font-size: .95rem; text-decoration: none; color: var(--muted); transition: color .2s, border-color .2s; }
.toc a:hover, .toc a.is-active { color: var(--ink); border-color: var(--accent); }
.svc-aside__list li a { display: block; padding: 8px 0; text-decoration: none; font-weight: 500; }
.svc-aside__list li a:hover { color: var(--accent); }
@media (max-width: 960px) {
	.svc-layout, .legal-layout { grid-template-columns: 1fr; }
	.svc-aside { position: static; }
	.toc { display: none; }
}

.svc-body, .prose { max-width: 760px; counter-reset: sec; }
.svc-body > p:first-child { font-size: 1.4rem; line-height: 1.5; letter-spacing: -.015em; color: var(--ink); }
.svc-body h2 {
	counter-increment: sec; display: flex; gap: 18px; align-items: baseline; margin-top: clamp(44px, 6vw, 72px); padding-top: clamp(28px, 4vw, 44px);
	border-top: 1px solid var(--line); font-size: var(--h-md);
}
.svc-body h2::before { content: counter(sec, decimal-leading-zero); font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); font-size: 1.4rem; }
.svc-body h3 { margin: 30px 0 10px; font-size: 1.2rem; letter-spacing: -.02em; }
.svc-body p { margin-top: 12px; color: var(--muted); }
.svc-body > p:first-child, .svc-body h2 + p { color: var(--text); }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 36px 0 0; }
.stat-row div { padding: 24px; border-radius: var(--r-md); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); }
.stat-row strong { display: block; font-size: 2.4rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--accent); }
.stat-row span { display: block; margin-top: 8px; color: var(--muted); font-size: .94rem; }
@media (max-width: 560px) { .stat-row { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 40px 80px -56px rgba(0, 0, 0, .5); }
.contact__info { padding: clamp(28px, 4vw, 56px); background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.contact__info::after { content: ""; position: absolute; width: 380px; height: 380px; right: -140px; bottom: -140px; border-radius: 50%; background: var(--red); filter: blur(90px); opacity: .5; }
.contact__info h2 { font-size: var(--h-md); position: relative; }
.contact__details { position: relative; display: grid; gap: 22px; margin-top: 40px; z-index: 1; }
.contact__details span { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 4px; }
.contact__details a { text-decoration: none; font-size: 1.15rem; font-weight: 500; }
.contact__details a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact__form { padding: clamp(28px, 4vw, 56px); }
.contact__map { margin-top: 18px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); height: 360px; filter: grayscale(1) contrast(1.05); }
.contact__map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.form { display: grid; gap: 18px; }
.form__title { font-size: var(--h-md); }
.form__intro { color: var(--muted); margin-top: -6px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field__label { font-size: .88rem; font-weight: 600; }
.field__label span { color: var(--red); }
.field input, .field textarea {
	width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg);
	font: inherit; color: inherit; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(0, 0, 0, .06); }
.form .btn { justify-self: start; }
.form__hp { position: absolute; left: -9999px; }
.form__notice { padding: 14px 16px; border-radius: 14px; font-size: .95rem; }
.form__notice--ok { background: #e7f6ee; color: #14633b; }
.form__notice--err { background: #fdecec; color: #8f1414; }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card a { display: flex; flex-direction: column; gap: 10px; height: 100%; text-decoration: none; }
.post-card__img { aspect-ratio: 16 / 10; border-radius: var(--r-md); overflow: hidden; background: var(--ink) center / cover; filter: grayscale(.3); margin-bottom: 8px; transition: transform .5s var(--ease); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card a:hover .post-card__img { transform: scale(.98); }
.post-card__meta { font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.post-card h2 { font-size: 1.45rem; letter-spacing: -.03em; }
.post-card p:last-child { color: var(--muted); font-size: .98rem; }
.post-card a:hover h2 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.post-card--feature { grid-column: 1 / -1; }
.post-card--feature a { display: grid; grid-template-columns: 7fr 5fr; gap: 14px 48px; align-items: center; }
.post-card--feature .post-card__img { grid-row: 1 / span 3; aspect-ratio: 16 / 9; }
.post-card--feature h2 { font-size: var(--h-md); }
@media (max-width: 960px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .posts { grid-template-columns: 1fr; } .post-card--feature a { display: flex; } }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 56px; }
.pagination .page-numbers { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { color: var(--muted); }

.article-cover { margin: 0 auto 56px; max-width: 980px; border-radius: var(--r-lg); overflow: hidden; }
.prose { margin-inline: auto; font-size: 1.12rem; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-size: var(--h-md); margin-top: 2em; scroll-margin-top: 110px; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; }
.prose a { color: var(--red-deep); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose img { border-radius: var(--r-sm); }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--red); font-family: var(--serif); font-size: 1.5rem; line-height: 1.4; }
.prose--legal { margin-inline: 0; font-size: 1rem; color: var(--muted); }
.prose--legal h2 { color: var(--ink); font-size: 1.5rem; }
.prose--legal strong { color: var(--ink); }
.legal-layout .prose { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(64px, 8vw, 110px) 0 28px; }
.site-footer::before { content: ""; position: absolute; z-index: -1; width: 60vw; height: 60vw; right: -20vw; top: -35vw; border-radius: 50%; background: var(--red); filter: blur(120px); opacity: .35; }
.site-footer__cta { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: end; padding-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line-dark); }
.site-footer__cta h2 { font-size: var(--h-lg); max-width: 16ch; }
.site-footer__cta .eyebrow { color: #ff6b73; }
.site-footer__cta-side p { color: rgba(255, 255, 255, .65); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding: 56px 0; }
.site-footer h3 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 18px; font-weight: 600; }
.site-footer li + li { margin-top: 10px; }
.site-footer a { text-decoration: none; color: rgba(255, 255, 255, .85); }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer__about p { margin-top: 18px; max-width: 34ch; color: rgba(255, 255, 255, .6); font-size: .98rem; }
.contact-lines span { display: block; font-size: .8rem; color: rgba(255, 255, 255, .45); }
.contact-lines address { color: rgba(255, 255, 255, .85); }
.social { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: .88rem; color: rgba(255, 255, 255, .5); }
.site-footer__base p a { margin-left: 18px; }
@media (max-width: 900px) {
	.site-footer__cta { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Reading progress */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--red); z-index: 60; }

/* ==========================================================================
   Service pages — per-service hero effects, animated art, body layouts
   ========================================================================== */

/* Animated art (shared) */
.art .flow { stroke-dasharray: 3 7; animation: dash 1.4s linear infinite; animation-delay: calc(var(--i, 0) * -.2s); opacity: .55; }
.art .node { transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .28s); }
.art .halo { stroke: currentColor; transform-box: fill-box; transform-origin: center; animation: halo 2.4s ease-out infinite; }
.art .bar { transform-box: fill-box; transform-origin: 50% 100%; animation: grow 3.4s var(--ease) infinite alternate; animation-delay: calc(var(--i, 0) * .18s); }
.art .line { stroke-dasharray: 400; animation: draw 3.4s ease-in-out infinite alternate; }
.art .cloud { animation: bob 5s ease-in-out infinite; }
.art .check { stroke-dasharray: 60; animation: tick 3.6s ease-in-out infinite; }
.art .packet { animation: packet 2.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .45s); }
@keyframes dash { to { stroke-dashoffset: -20; } }
@keyframes pulse { 0%, 100% { opacity: .45; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.45); } }
@keyframes halo { 0% { opacity: .9; transform: scale(.5); } 100% { opacity: 0; transform: scale(2.4); } }
@keyframes grow { 0% { transform: scaleY(.15); } 70%, 100% { transform: scaleY(1); } }
@keyframes draw { from { stroke-dashoffset: 400; } 70%, to { stroke-dashoffset: 0; } }
@keyframes bob { 50% { transform: translateY(-5px); } }
@keyframes tick { 0%, 20% { stroke-dashoffset: 60; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 60; } }
@keyframes packet { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(-62px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .art *, .fx i, .ai-card::after { animation: none !important; } }

/* Hero backdrops */
.fx { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.fx i { position: absolute; left: calc(var(--x) * 1%); }
.fx--cloud-digital-transformation i {
	top: calc(var(--y) * .8% + 6%); width: calc(var(--s) * 3px + 80px); height: calc(var(--s) * .8px + 26px); border-radius: 999px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent); left: -30%;
	animation: drift calc(var(--t) * 3s + 14s) linear infinite; animation-delay: calc(var(--d) * -5s);
}
@keyframes drift { to { left: 110%; } }
.fx--ai-machine-learning i {
	top: calc(var(--y) * 1%); width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
	opacity: .5; animation: twinkle calc(var(--t) * .5s + 2s) ease-in-out infinite; animation-delay: calc(var(--d) * -.7s);
	box-shadow: 0 0 14px 2px var(--accent);
}
@keyframes twinkle { 0%, 100% { opacity: .08; transform: translateY(0) scale(.6); } 50% { opacity: .9; transform: translateY(-14px) scale(1.2); } }
.fx--data-analytics i {
	bottom: 0; width: calc(100% / 24); height: calc(var(--s) * 1.4px + 20px); left: calc(var(--x) * 1%);
	background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 45%, transparent), transparent);
	border-radius: 6px 6px 0 0; transform-origin: bottom; animation: rises calc(var(--t) * .6s + 2s) ease-in-out infinite alternate; animation-delay: calc(var(--d) * -.5s);
}
@keyframes rises { from { transform: scaleY(.25); opacity: .4; } to { transform: scaleY(1); opacity: .9; } }

.chips--hero { margin-top: 26px; }
.chips--hero li { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid var(--line-dark); }
.svc-hero--cloud-digital-transformation .svc-hero__art { border-radius: 40px 40px var(--r-lg) var(--r-lg); }
.svc-hero--ai-machine-learning .svc-hero__art { border-radius: var(--r-sm); background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 60px -20px var(--accent); }
.svc-hero--data-analytics .svc-hero__art { border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 4px; }

.svc-intro p { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.9rem); line-height: 1.4; letter-spacing: -.02em; max-width: 52ch; font-weight: 500; }
.svc-prelude { margin-top: 28px; }
.svc-prelude .stat-row { margin-top: 0; max-width: 760px; }

/* Cloud: timeline */
.svc-cloud { background: linear-gradient(#f7f6f3, #eef0ff 70%, #f7f6f3); }
.timeline { position: relative; margin-top: clamp(48px, 6vw, 80px); padding-left: 64px; counter-reset: tl; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 21px; top: 0; width: 2px; border-radius: 2px; }
.timeline::before { bottom: 0; background: var(--line); }
.timeline::after { height: calc(var(--p, 0) * 100%); background: var(--accent); box-shadow: 0 0 14px var(--accent); transition: height .15s linear; }
.timeline__step { position: relative; padding-bottom: 28px; }
.timeline__node {
	position: absolute; left: -64px; top: 6px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
	background: var(--surface); border: 2px solid var(--line); font-weight: 700; color: var(--muted); z-index: 1; transition: .4s var(--ease);
}
.timeline__step.in .timeline__node { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 18%, transparent); }
.timeline__card { padding: clamp(24px, 3vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform .4s var(--ease), box-shadow .4s; }
.timeline__card:hover { transform: translateX(6px); box-shadow: 0 30px 60px -40px var(--accent); }
.timeline__card h2 { font-size: var(--h-md); }
.timeline__intro p { margin-top: 12px; color: var(--muted); }
.timeline__items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 24px; }
.timeline__items > div { padding: 20px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--accent) 6%, var(--bg)); }
.timeline__items h3 { font-size: 1.05rem; letter-spacing: -.02em; }
.timeline__items p { margin-top: 8px; color: var(--muted); font-size: .96rem; }
@media (max-width: 760px) { .timeline { padding-left: 48px; } .timeline__node { left: -48px; width: 36px; height: 36px; } .timeline::before, .timeline::after { left: 17px; } .timeline__items { grid-template-columns: 1fr; } }

/* AI: console */
.svc-ai { background: #07070b; position: relative; }
.svc-ai::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(#000, transparent 80%); pointer-events: none; }
.svc-ai .wrap { position: relative; }
.svc-ai .svc-intro p { color: #fff; }
.ai-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.ai-card {
	--mx: 50%; --my: 0%; position: relative; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-md); overflow: hidden;
	background: rgba(255, 255, 255, .03); border: 1px solid var(--line-dark); transition: border-color .3s;
}
.ai-card--wide { grid-column: 1 / -1; }
.ai-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 28%, transparent), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.ai-card:hover::before { opacity: 1; }
.ai-card:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.ai-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: scan 5s ease-in-out infinite; }
@keyframes scan { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.ai-card > * { position: relative; }
.ai-card__tag { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .8rem; color: var(--accent); margin-bottom: 14px; }
.ai-card__tag::before { content: "> "; }
.ai-card h2 { font-size: var(--h-md); }
.ai-card__intro p { margin-top: 12px; color: rgba(255, 255, 255, .66); }
.ai-card__item { margin-top: 12px; border-top: 1px solid var(--line-dark); padding-top: 12px; }
.ai-card__item summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.ai-card__item summary::-webkit-details-marker { display: none; }
.ai-card__item summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform .3s var(--ease); }
.ai-card__item[open] summary::after { transform: rotate(45deg); }
.ai-card__item p { margin-top: 10px; color: rgba(255, 255, 255, .62); font-size: .98rem; }
@media (max-width: 760px) { .ai-grid { grid-template-columns: 1fr; } }

/* Data: bento with mini charts */
.svc-data { background: #f2f7f5; }
.data-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.data-nav a { padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-size: .9rem; font-weight: 500; transition: .2s; }
.data-nav a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.data-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: clamp(32px, 4vw, 56px); }
.data-card { position: relative; grid-column: span 2; padding: clamp(22px, 2.6vw, 32px); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.data-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -40px var(--accent); }
.data-card--0 { grid-column: span 4; }
.data-card--3 { grid-column: span 4; }
.data-card:nth-child(n + 5):nth-child(5n) { grid-column: span 3; }
.spark { display: flex; align-items: flex-end; gap: 5px; height: 48px; margin-bottom: 18px; }
.spark span { width: 10px; height: 4px; border-radius: 3px; background: color-mix(in srgb, var(--accent) calc(40% + var(--i) * 9%), transparent); transition: height 1s var(--ease); transition-delay: calc(var(--i) * .08s); }
.data-card.in .spark span { height: calc(var(--h) * 1%); }
.data-card h2 { font-size: 1.45rem; }
.data-card__intro p { margin-top: 10px; color: var(--muted); font-size: .98rem; }
.data-card__items { margin-top: 18px; display: grid; gap: 0; }
.data-card__items li { padding: 14px 0; border-top: 1px solid var(--line); }
.data-card__items h3 { font-size: 1rem; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.data-card__items h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.data-card__items p { margin-top: 6px; color: var(--muted); font-size: .94rem; padding-left: 18px; }
@media (max-width: 960px) { .data-grid { grid-template-columns: 1fr 1fr; } .data-card, .data-card--0, .data-card--3, .data-card:nth-child(n + 5):nth-child(5n) { grid-column: span 1; } }
@media (max-width: 640px) { .data-grid { grid-template-columns: 1fr; } }

/* Keep exploring */
.svc-more__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.svc-more__card { display: flex; align-items: center; gap: 22px; padding: 22px 26px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .4s var(--ease), border-color .3s; }
.svc-more__card:hover { transform: translateY(-4px); border-color: var(--accent); }
.svc-more__card .art { width: 96px; flex: none; color: var(--accent); }
.svc-more__card span:nth-of-type(1) { display: grid; gap: 4px; flex: 1; }
.svc-more__card small { color: var(--muted); }
.svc-more__card .dot { background: var(--accent); }
@media (max-width: 760px) { .svc-more__grid { grid-template-columns: 1fr; } }

/* Captcha */
.field--captcha input[type="text"] { max-width: 180px; }
