/**
 * Holo Base: base stylesheet (ARCHITECTURE.md §7.2, §7.3).
 *
 * The prototype CSS (PROTO src/assets/css/site.css) moves here verbatim, one
 * rule per line as in the prototype, in the order of the port map:
 * base and buttons (25–79), footer (145–161), bands, prose, features, chips
 * and tags (484–528), blog cards (550–567), steps, logos, press and CTA band
 * (614–646), posts (657–664), the contact page grid (from 665–696), legal,
 * links and reveal (697–707), reduced motion (736–749).
 *
 * Classes emitted by holo render.php files and by patterns (className) keep
 * their prototype names. Core-block renderings get alias selectors in the
 * same rule (for example `.band, .is-style-band`; `.actions,
 * .wp-block-buttons`). Where core markup differs structurally, a short
 * "core blocks" rule follows the prototype rule it maps. The markup
 * conventions are listed in readme.txt and exercised by
 * tests/fixtures/blocks/theme-*.html.
 *
 * Deviation: `body` takes its font stack from theme.json, which adds the
 * metric-adjusted 'Space Grotesk Fallback' face (§8.2).
 */

/* Alias layer (§7.2): the ported CSS keeps its variable names. */
:root {
	--ink: var(--wp--preset--color--ink);
	--page: var(--wp--preset--color--page);
	--page-2: var(--wp--preset--color--page-2);
	--accent: var(--wp--preset--color--accent);
	--glow: var(--wp--custom--glow);
	--muted: var(--wp--custom--muted);
	--line: var(--wp--custom--line);
	--panel: var(--wp--custom--panel);
	--radius: var(--wp--custom--radius);
	--pad: var(--wp--custom--pad);
	--maxw: var(--wp--style--global--wide-size);
	--ease: var(--wp--custom--ease);
	--sat: env(safe-area-inset-top, 0px);
	--sab: env(safe-area-inset-bottom, 0px);
	--pad-x: max(var(--pad), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--wp--preset--font-family--body);
  color: var(--ink); background: var(--page);
  font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul[class], ol[class] { list-style: none; }
h1, h2, h3 { font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
address { font-style: normal; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.vh, .skip-link:not(:focus) {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link, .skip-link.screen-reader-text:focus { position: fixed; left: 12px; top: 12px; z-index: 300; background: #fff; color: #0c0a24; padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
/* core blocks: core's skip link also carries .screen-reader-text (block-library common.css) */
.skip-link.screen-reader-text:focus { font-size: inherit; line-height: inherit; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.wrap { width: min(var(--maxw), 100% - 2 * var(--pad-x)); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 2 * var(--pad-x)); }

.kicker, .is-style-kicker { font-size: 13px; letter-spacing: .32em; text-transform: uppercase; font-weight: 500; opacity: .85; }
.h-xl, .has-h-xl-font-size { font-size: clamp(32px, 5vw, 64px); letter-spacing: -.03em; }
.h-lg, .has-h-lg-font-size { font-size: clamp(26px, 3.4vw, 42px); letter-spacing: -.025em; }
.lead, .is-style-lead { font-size: clamp(16px, 1.35vw, 20px); line-height: 1.5; opacity: .92; }
.holo, .is-style-holo { text-shadow: -3px 0 0 rgba(0, 255, 255, .5), 3px 0 0 rgba(255, 0, 170, .5), 0 0 40px rgba(var(--glow), .5); }

/* ---------- buttons ---------- */
/* core blocks: core/button styles `cta` and `ghost` style the link inside the button block */
.cta, .is-style-cta > .wp-block-button__link, .is-style-ghost > .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 14px; padding: 16px 28px; border-radius: 999px; font-size: 15px; font-weight: 600;
  color: #fff; text-decoration: none; background: rgba(0, 0, 0, .3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .3); transition: background .3s, transform .3s; cursor: pointer; white-space: nowrap;
}
.cta:hover, .is-style-cta > .wp-block-button__link:hover, .is-style-ghost > .wp-block-button__link:hover { background: rgba(0, 0, 0, .5); }
.cta svg, .is-style-cta > .wp-block-button__link svg, .is-style-ghost > .wp-block-button__link svg { transition: transform .3s; flex: none; }
.cta:hover svg, .is-style-cta > .wp-block-button__link:hover svg, .is-style-ghost > .wp-block-button__link:hover svg { transform: translateX(5px); }
.cta-ghost, .is-style-ghost > .wp-block-button__link { background: transparent; }
.cta-ghost:hover, .is-style-ghost > .wp-block-button__link:hover { background: rgba(255, 255, 255, .1); }
.cta-ghost svg[viewBox="0 0 32 32"], .is-style-ghost > .wp-block-button__link svg[viewBox="0 0 32 32"] { transform: none !important; }
.actions, .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); text-decoration: none; font-weight: 500; }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow svg { transition: transform .3s; }

/* ---------- footer ---------- */
.site-footer { position: relative; z-index: 2; background: #08071a; border-top: 1px solid var(--line); padding: 72px 0 calc(28px + var(--sab)); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 42px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); max-width: 34ch; margin-bottom: 14px; }
.footer-brand address { color: var(--muted); }
.footer-h { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; font-weight: 600; margin: 0 0 14px; opacity: .7; }
.site-footer ul + .footer-h { margin-top: 26px; }
.site-footer li { margin: 6px 0; }
.site-footer a { text-decoration: none; opacity: .86; }
.site-footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-legal ul { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal li { margin: 0; }
/* core blocks: the link columns and the legal row are core/list, which always
   carries .wp-block-list, so `ul[class]` would drop the markers PROTO's footer
   lists show (same alias as `.prose` below). `ul.social` keeps none, as PROTO's
   only classed footer list. */
.site-footer ul.wp-block-list { list-style: revert; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } .site-footer { padding-top: 56px; padding-bottom: calc(90px + var(--sab)); } }

/* ---------- bands ---------- */
.band, .is-style-band, .is-style-band-tint, .is-style-cta-band { padding: clamp(56px, 8vw, 110px) 0; position: relative; }
.band-tight { padding-top: 24px; padding-bottom: 24px; }
.band-tint, .is-style-band-tint { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--c, #2d17a8) 22%, transparent), transparent); }
.band-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 28px; margin-bottom: 36px; }
.band-head .kicker, .band-head .is-style-kicker { flex-basis: 100%; }
.band-head .h-xl, .band-head .h-lg { max-width: 22ch; }
.band-sub { color: var(--muted); max-width: 52ch; flex-basis: 100%; }
.intro-band .h-xl { margin: 14px 0 22px; }
.intro-band p { color: var(--muted); font-size: 19px; margin-bottom: 14px; }

.svc-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.svc-links a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 500;
  background: color-mix(in srgb, var(--c, #2d17a8) 55%, transparent); border: 1px solid rgba(255, 255, 255, .22); transition: background .3s; }
.svc-links a:hover { background: var(--c); }

/* ---------- prose ---------- */
.prose { font-size: 18px; line-height: 1.72; color: rgba(255, 255, 255, .9); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(24px, 3vw, 34px); margin-top: 1.9em; color: #fff; }
.prose h2:first-child { margin-top: 0; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .45em 0; }
.prose strong { color: #fff; font-weight: 600; }
.article-body .videos { margin: 2em 0; display: grid; gap: 28px; }
/* core blocks: content lists always carry .wp-block-list, so `ul[class]` would drop their bullets */
.prose ul.wp-block-list:not([class*="is-style-"]), .prose ol.wp-block-list:not([class*="is-style-"]) { list-style: revert; }

/* ---------- features / uses / chips ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature { padding: 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.feature h3 { font-size: 21px; margin-bottom: 10px; }
.feature p { color: var(--muted); }
.uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 36px; }
.uses li, .uses > .wp-block-group { padding: 22px 0; border-top: 1px solid var(--line); }
.uses h3 { font-size: 20px; margin-bottom: 6px; }
.uses p { color: var(--muted); }
.chips-static, .wp-block-list.is-style-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips-static li, .wp-block-list.is-style-chips > li { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 15px; }

/* ---------- tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; text-decoration: none;
  background: color-mix(in srgb, var(--c, #6d5cff) 55%, transparent); border: 1px solid rgba(255, 255, 255, .2); }
a.tag:hover { background: var(--c, #6d5cff); }

/* ---------- blog cards (core/post-template style `cards`) ---------- */
.bgrid, .wp-block-post-template.is-style-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 34px 26px; }
.bcard-link { display: block; text-decoration: none; }
.bcard-media, .is-style-cards .wp-block-post-featured-image { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #2d17a8, #123fb8); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.bcard-media img, .is-style-cards .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bcard-link:hover img, .is-style-cards .wp-block-post-featured-image a:hover img { transform: scale(1.05); }
.bcard-ph { display: block; width: 100%; height: 100%; }
.bcard-body { padding-top: 14px; }
.bcard-date, .is-style-cards .wp-block-post-date { font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.bcard-title, .is-style-cards .wp-block-post-title { font-size: 20px; line-height: 1.25; margin: 6px 0 8px; }
.bcard-link:hover .bcard-title, .is-style-cards .wp-block-post-title a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.bcard-ex, .is-style-cards .wp-block-post-excerpt { color: var(--muted); font-size: 15px; }
.bcard .tags, .is-style-cards .wp-block-post-terms { margin-top: 10px; }
.pagination, .wp-block-query-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 56px; }
.pg, .wp-block-query-pagination .page-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; }
.pg:hover, .wp-block-query-pagination a.page-numbers:hover, .wp-block-query-pagination-previous:hover, .wp-block-query-pagination-next:hover { background: rgba(255, 255, 255, .08); }
.pg.is-current, .wp-block-query-pagination .page-numbers.current { background: #fff; color: #120f33; }
/* core blocks: the card is a stack of post blocks (image, date, title, excerpt, terms), not one link */
.is-style-cards .wp-block-post-featured-image { margin-bottom: 14px; }
.is-style-cards .wp-block-post-featured-image a { display: block; height: 100%; }
.is-style-cards .wp-block-post-title a { text-decoration: none; }
.is-style-cards .wp-block-post-terms { display: flex; flex-wrap: wrap; gap: 6px; }
.is-style-cards .wp-block-post-terms a { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; text-decoration: none; background: color-mix(in srgb, var(--c, #6d5cff) 55%, transparent); border: 1px solid rgba(255, 255, 255, .2); }
.is-style-cards .wp-block-post-terms a:hover { background: var(--c, #6d5cff); }
.is-style-cards .wp-block-post-terms__separator { display: none; }
.wp-block-query-pagination > * { margin: 0; }
.wp-block-query-pagination-numbers { display: contents; }
.wp-block-query-pagination-previous, .wp-block-query-pagination-next { display: inline-flex; align-items: center; gap: .3em; }
.wp-block-query-pagination-previous-arrow, .wp-block-query-pagination-next-arrow { display: inline; margin: 0; }

/* ---------- blog category chips (core/categories style `chips`) ---------- */
.wp-block-categories.is-style-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.wp-block-categories.is-style-chips a { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); text-decoration: none; font-size: 15px; font-weight: 500; transition: background .3s, color .3s; }
.wp-block-categories.is-style-chips a:hover { background: rgba(255, 255, 255, .08); }
.wp-block-categories.is-style-chips .current-cat > a { background: #fff; color: #120f33; border-color: #fff; }

/* ---------- steps (core/list style `steps`) ---------- */
.steps, .wp-block-list.is-style-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: s; }
.steps li, .wp-block-list.is-style-steps > li { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.step-n { display: block; font-size: 13px; letter-spacing: .2em; color: var(--accent); margin-bottom: 18px; }
.steps h3 { font-size: 22px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }
@media (max-width: 1000px) { .steps, .wp-block-list.is-style-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps, .wp-block-list.is-style-steps { grid-template-columns: 1fr; } }
/* core blocks: a list item holds its step inline, "<strong>Title</strong> description"; the number is a counter */
.wp-block-list.is-style-steps > li, .wp-block-list.steps > li:not(:has(> .step-n)) { color: var(--muted); font-size: 15px; counter-increment: s; }
.wp-block-list.is-style-steps > li::before, .wp-block-list.steps > li:not(:has(> .step-n))::before { content: counter(s, decimal-leading-zero); display: block; font-size: 13px; letter-spacing: .2em; color: var(--accent); margin-bottom: 18px; }
.wp-block-list.is-style-steps > li > strong:first-child, .wp-block-list.steps > li > strong:first-child { display: block; margin-bottom: 8px; color: var(--ink); font-size: 22px; font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }

/* ---------- logos (core/gallery style `logos`) ---------- */
.clients-band { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .03), transparent); }
.clients-band .kicker { text-align: center; margin-bottom: 30px; }
.logo-wall, .wp-block-gallery.is-style-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 30px 52px; }
.logo-wall img, .wp-block-gallery.is-style-logos img { height: 46px; width: auto; max-width: 150px; object-fit: contain; opacity: .8; transition: opacity .3s; }
.logo-wall li:hover img, .wp-block-gallery.is-style-logos figure:hover img { opacity: 1; }
.client-name { font-size: 18px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
@media (max-width: 600px) { .logo-wall, .wp-block-gallery.is-style-logos { gap: 22px 30px; } .logo-wall img, .wp-block-gallery.is-style-logos img { height: 34px; max-width: 110px; } }
/* core blocks: undo the gallery grid (item widths, cropping); the figure carries the max width because core forces img max-width: 100% */
.wp-block-gallery.is-style-logos.has-nested-images { align-items: center; }
.wp-block-gallery.is-style-logos.has-nested-images figure.wp-block-image:not(#individual-image) { width: auto; max-width: 150px; flex-grow: 0; margin: 0; }
.wp-block-gallery.is-style-logos.has-nested-images figure.wp-block-image:not(#individual-image) img { height: 46px; width: auto; flex: none; object-fit: contain; }
@media (max-width: 600px) {
  .wp-block-gallery.is-style-logos.has-nested-images figure.wp-block-image:not(#individual-image) { max-width: 110px; }
  .wp-block-gallery.is-style-logos.has-nested-images figure.wp-block-image:not(#individual-image) img { height: 34px; }
}

/* ---------- press ---------- */
.press-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }
.press-item { padding: 24px 0; border-top: 1px solid var(--line); }
.press-item h3 { font-size: 22px; margin: 8px 0; }
.press-item h3 a { text-decoration: none; }
.press-item h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.press-item p:last-child { color: var(--muted); }
@media (max-width: 860px) { .press-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band (core/group style `cta-band`) ---------- */
.cta-band, .is-style-cta-band { text-align: center; overflow: hidden; background: radial-gradient(ellipse at 50% 100%, rgba(45, 23, 168, .55), transparent 70%); }
.cta-band .h-xl, .is-style-cta-band .h-xl { margin-bottom: 16px; }
.cta-band p, .is-style-cta-band p { color: var(--muted); max-width: 56ch; margin: 0 auto 30px; }
.cta-band .actions, .cta-band .wp-block-buttons, .is-style-cta-band .actions, .is-style-cta-band .wp-block-buttons { justify-content: center; }

/* ---------- posts ---------- */
.post-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(130px + var(--sat)) 0 56px; background: var(--bg); background: radial-gradient(ellipse at 60% 30%, color-mix(in srgb, var(--bg) 70%, #fff 20%), var(--bg) 60%, var(--page) 100%); }
.post-head .kicker { margin: 18px 0 12px; }
.title-post { font-size: clamp(32px, 5vw, 64px); line-height: 1.05; letter-spacing: -.03em; margin-bottom: 20px; }
.post-feat { margin-top: -20px; margin-bottom: 44px; position: relative; z-index: 2; }
.post-feat img { width: 100%; border-radius: 12px; box-shadow: 0 30px 70px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .16); }
.post .article-body { padding-bottom: 30px; }

/* ---------- contact page grid (the form and cards are styled by their blocks) ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.contact-aside { display: grid; gap: 22px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- legal / links ---------- */
.legal h2 { font-size: 24px; }
.links-list { display: grid; gap: 12px; }
.link-pill { display: block; padding: 18px 24px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); text-align: center; text-decoration: none; font-weight: 500; background: var(--panel); }
.link-pill:hover { background: rgba(255, 255, 255, .1); }

/* reveal on scroll (only once JS confirms IntersectionObserver works) */
.reveal-ready .reveal:not(.in) { opacity: 0; transform: translateY(26px); }
.reveal-ready .reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); }
@media print { .reveal { opacity: 1 !important; transform: none !important; } }

/* =====================================================================
   Reduced motion: no parallax, no loops — plain sections
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal-ready .reveal:not(.in) { opacity: 1; transform: none; }
  .hero-dust { display: none; }
}

.motion-toggle { all: unset; cursor: pointer; font: inherit; color: inherit; opacity: .75; text-decoration: underline; text-underline-offset: 3px; }
.motion-toggle:hover { opacity: 1; }
/* `all: unset` above also wipes the global :focus-visible ring (same specificity, later) → restore it */
.motion-toggle:focus-visible { opacity: 1; outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.motion-off *, .motion-off *::before, .motion-off *::after { animation: none !important; transition: none !important; }
