/* Creative One — component styles. Colors, type and spacing live in theme.json. */

:root {
	--cos-ink: var(--wp--preset--color--ink, #0b1230);
	--cos-navy: var(--wp--preset--color--navy, #14205c);
	--cos-brand: var(--wp--preset--color--brand, #2d3691);
	--cos-cyan: var(--wp--preset--color--cyan, #36abdf);
	--cos-surface: var(--wp--preset--color--surface, #f4f7fb);
	--cos-line: var(--wp--preset--color--line, #dde3ee);
	--cos-muted: var(--wp--preset--color--muted, #5a6584);
	--cos-radius: 18px;
	--cos-shadow: 0 1px 2px rgba(11, 18, 48, .06), 0 8px 24px -12px rgba(11, 18, 48, .18);
	--cos-shadow-lg: 0 2px 4px rgba(11, 18, 48, .06), 0 24px 48px -20px rgba(11, 18, 48, .35);
}

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
::selection { background: var(--cos-cyan); color: var(--cos-ink); }
:focus-visible { outline: 3px solid var(--cos-cyan); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header ---------- */
.cos-topbar {
	background: var(--cos-ink);
	color: #c9d3ee;
	font-size: .82rem;
}
.cos-topbar a { color: #fff; text-decoration: none; }
.cos-topbar a:hover { color: var(--cos-cyan); }
.cos-topbar .cos-live::before {
	content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
	background: #3ddc97; margin-right: .5rem; vertical-align: middle;
	box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: cos-pulse 2s infinite;
}
@keyframes cos-pulse { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }

header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar header.wp-block-template-part { top: 0; } }

.cos-header {
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(160%) blur(12px);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: box-shadow .25s ease, border-color .25s ease;
}
.cos-header.is-scrolled { border-color: var(--cos-line); box-shadow: 0 6px 24px -18px rgba(11, 18, 48, .5); }
.cos-header .cos-logo img { height: 60px; width: auto; display: block; }
.cos-header .wp-block-navigation a { color: var(--cos-ink); text-decoration: none; }
.cos-header .wp-block-navigation a:hover { color: var(--cos-brand); }
.cos-header .wp-block-navigation .current-menu-item > a,
.cos-header .wp-block-navigation a[aria-current="page"] { color: var(--cos-brand); box-shadow: inset 0 -2px 0 var(--cos-cyan); }
.cos-header .wp-block-button__link { padding: .6rem 1.2rem; background: var(--cos-brand); color: #fff; }
.cos-header .wp-block-button__link:hover { background: var(--cos-cyan); color: var(--cos-ink); }
@media (max-width: 900px) { .cos-header .cos-header-cta { display: none; } }

/* ---------- Shared section bits ---------- */
.cos-eyebrow {
	display: inline-block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--cos-brand);
	padding: .35rem .8rem; border-radius: 999px;
	background: var(--wp--preset--color--cyan-soft, #e3f4fb);
	margin-bottom: .25rem !important;
}
.cos-dark .cos-eyebrow { background: rgba(54, 171, 223, .14); color: var(--cos-cyan); }
.cos-lede { color: var(--cos-muted); font-size: var(--wp--preset--font-size--large); max-width: 46rem; }
.cos-dark .cos-lede { color: #b8c3e6; }
.cos-center { text-align: center; }
.cos-center .cos-lede { margin-inline: auto; }

.cos-section { padding-block: var(--wp--preset--spacing--60); }
.cos-surface { background: var(--cos-surface); }
.cos-dark {
	background: var(--wp--preset--gradient--night, var(--cos-navy));
	color: #dfe5f7;
}
.cos-dark :where(h1, h2, h3, h4) { color: #fff; }
.cos-dark a:not(.wp-element-button) { color: var(--cos-cyan); }

/* ---------- Hero ---------- */
.cos-hero {
	position: relative; overflow: hidden;
	background: var(--wp--preset--gradient--night, var(--cos-navy));
	color: #dfe5f7;
	padding-block: clamp(4rem, 9vw, 8rem) clamp(4rem, 8vw, 7rem);
}
.cos-hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image:
		linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
}
.cos-hero::after {
	content: ""; position: absolute; width: 60vw; height: 60vw; right: -18vw; top: -22vw; pointer-events: none;
	background: radial-gradient(circle, rgba(54,171,223,.35), rgba(54,171,223,0) 62%);
}
.cos-hero > * { position: relative; z-index: 1; }
.cos-hero h1 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.25rem); line-height: 1.05; letter-spacing: -.035em; }
.cos-hero h1 em { font-style: normal; background: linear-gradient(90deg, #36abdf, #8fd6f5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cos-hero .cos-lede { color: #c2cce9; }
.cos-hero .is-style-outline .wp-block-button__link { color: #fff; border: 1.5px solid rgba(255,255,255,.35); background: transparent; }
.cos-hero .is-style-outline .wp-block-button__link:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.cos-hero-trust { font-size: .9rem; color: #9fb0dc; }
.cos-hero-trust strong { color: #fff; font-weight: 600; }

.cos-panel {
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 22px;
	padding: 1.5rem !important;
	backdrop-filter: blur(6px);
	box-shadow: 0 40px 80px -40px rgba(0,0,0,.6);
}
.cos-panel-head { font-family: var(--wp--preset--font-family--heading); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #9fb0dc; }
.cos-panel-row {
	display: flex; align-items: center; gap: .9rem;
	background: rgba(11,18,48,.55); border: 1px solid rgba(255,255,255,.08);
	border-radius: 14px; padding: .85rem 1rem !important; margin: 0 !important;
}
.cos-panel-row + .cos-panel-row { margin-top: .6rem !important; }
.cos-panel-row p { margin: 0; color: #fff; font-weight: 500; }
.cos-panel-row p.cos-panel-sub { color: #9fb0dc; font-weight: 400; font-size: .85rem; }
.cos-panel-row .cos-icon { background: rgba(54,171,223,.16); }
.cos-panel-row .cos-icon::before { background: var(--cos-cyan); }
.cos-badge-ok {
	margin-left: auto !important; font-size: .75rem; font-weight: 600; color: #3ddc97;
	background: rgba(61,220,151,.12); padding: .2rem .55rem; border-radius: 999px; white-space: nowrap;
}

/* ---------- Icons ---------- */
.cos-icon {
	flex: none; width: 48px; height: 48px; border-radius: 14px;
	background: var(--wp--preset--color--cyan-soft, #e3f4fb);
	display: grid; place-items: center; margin: 0 !important;
}
.cos-icon::before {
	content: ""; width: 24px; height: 24px; background: var(--cos-brand);
	-webkit-mask: var(--cos-i) center / contain no-repeat; mask: var(--cos-i) center / contain no-repeat;
}
.cos-icon--sm { width: 38px; height: 38px; border-radius: 11px; }
.cos-icon--sm::before { width: 19px; height: 19px; }
.cos-icon--shield { --cos-i: url(../icons/shield.svg); }
.cos-icon--server { --cos-i: url(../icons/server.svg); }
.cos-icon--cloud { --cos-i: url(../icons/cloud.svg); }
.cos-icon--managed { --cos-i: url(../icons/managed.svg); }
.cos-icon--mobile { --cos-i: url(../icons/mobile.svg); }
.cos-icon--compliance { --cos-i: url(../icons/compliance.svg); }
.cos-icon--backup { --cos-i: url(../icons/backup.svg); }
.cos-icon--voip { --cos-i: url(../icons/voip.svg); }
.cos-icon--emergency { --cos-i: url(../icons/emergency.svg); }
.cos-icon--strategy { --cos-i: url(../icons/strategy.svg); }
.cos-icon--web { --cos-i: url(../icons/web.svg); }
.cos-icon--onsite { --cos-i: url(../icons/onsite.svg); }
.cos-icon--pin { --cos-i: url(../icons/pin.svg); }
.cos-icon--mail { --cos-i: url(../icons/mail.svg); }
.cos-icon--check { --cos-i: url(../icons/check.svg); }

/* ---------- Stats strip ---------- */
.cos-stats { border-top: 1px solid var(--cos-line); border-bottom: 1px solid var(--cos-line); }
.cos-stat { padding-block: 1.75rem !important; }
.cos-stat .cos-stat-num {
	font-family: var(--wp--preset--font-family--heading); font-weight: 650; letter-spacing: -.03em;
	font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1; color: var(--cos-brand); margin: 0;
}
.cos-stat .cos-stat-label { color: var(--cos-muted); font-size: .92rem; margin: .45rem 0 0; }

/* ---------- Service cards ---------- */
.cos-card {
	position: relative;
	background: #fff; border: 1px solid var(--cos-line); border-radius: var(--cos-radius);
	padding: 1.6rem !important;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
	height: 100%;
}
.cos-card:hover { transform: translateY(-4px); box-shadow: var(--cos-shadow-lg); border-color: transparent; }
.cos-card::after {
	content: ""; position: absolute; left: 1.6rem; right: 1.6rem; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
	background: linear-gradient(90deg, var(--cos-brand), var(--cos-cyan));
	transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.cos-card:hover::after { transform: scaleX(1); }
.cos-card h3 { font-size: 1.12rem; margin-top: 1.1rem !important; margin-bottom: .4rem !important; }
.cos-card p { color: var(--cos-muted); font-size: .97rem; margin: 0; }
.cos-card--feature { background: var(--cos-ink); border-color: var(--cos-ink); color: #c2cce9; }
.cos-card--feature h3 { color: #fff; }
.cos-card--feature p { color: #b8c3e6; }
.cos-card--feature .cos-icon { background: rgba(54,171,223,.16); }
.cos-card--feature .cos-icon::before { background: var(--cos-cyan); }

/* Detailed service rows (Services page) */
.cos-service-row { border-top: 1px solid var(--cos-line); padding-block: 2rem !important; }
.cos-service-row h3 { margin-top: 0 !important; }
.cos-service-row p { color: var(--cos-muted); }

/* ---------- Why us / checklist ---------- */
.cos-checklist { list-style: none; padding: 0 !important; }
.cos-checklist li { position: relative; padding-left: 2rem; margin-bottom: .8rem; }
.cos-checklist li::before {
	content: ""; position: absolute; left: 0; top: .2rem; width: 1.3rem; height: 1.3rem; border-radius: 50%;
	background: var(--cos-cyan) url(../icons/check.svg) center / 70% no-repeat;
}
.cos-dark .cos-checklist li { color: #dfe5f7; }

.cos-steps { counter-reset: step; }
.cos-step { counter-increment: step; border-top: 2px solid var(--cos-line); padding-top: 1.25rem !important; }
.cos-dark .cos-step { border-color: rgba(255,255,255,.14); }
.cos-step::before {
	content: "0" counter(step);
	font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: .85rem; letter-spacing: .1em; color: var(--cos-cyan);
}
.cos-step h3 { margin-top: .4rem !important; font-size: 1.1rem; }
.cos-step p { color: var(--cos-muted); font-size: .96rem; }
.cos-dark .cos-step p { color: #b8c3e6; }

/* ---------- Industries ---------- */
.cos-industry {
	display: flex; align-items: center; gap: .75rem;
	background: #fff; border: 1px solid var(--cos-line); border-radius: 14px;
	padding: 1rem 1.15rem !important; font-weight: 550; color: var(--cos-ink);
	transition: border-color .2s ease, transform .2s ease;
	margin: 0 !important;
}
.cos-industry:hover { border-color: var(--cos-cyan); transform: translateY(-2px); }
.cos-industry::before {
	content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg);
	background: linear-gradient(135deg, var(--cos-brand), var(--cos-cyan));
}

/* ---------- Case studies ---------- */
.cos-case {
	background: #fff; border-radius: var(--cos-radius); overflow: hidden;
	border: 1px solid var(--cos-line); height: 100%;
	display: flex; flex-direction: column;
	transition: transform .25s ease, box-shadow .25s ease;
}
.cos-case:hover { transform: translateY(-4px); box-shadow: var(--cos-shadow-lg); }
.cos-case-top {
	background: var(--wp--preset--gradient--night, var(--cos-navy)); color: #fff;
	padding: 1.5rem !important; margin: 0 !important; position: relative;
}
.cos-case-top::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(circle at 100% 0, rgba(54,171,223,.35), transparent 55%);
}
.cos-case-metric {
	font-family: var(--wp--preset--font-family--heading); font-size: clamp(1.9rem, 3vw, 2.4rem);
	font-weight: 650; letter-spacing: -.03em; color: #fff; margin: 0; line-height: 1.05;
}
.cos-case-metric-label { color: #9fd9f2; font-size: .9rem; margin: .35rem 0 0; }
.cos-case-body { padding: 1.5rem !important; margin: 0 !important; flex: 1; }
.cos-case-body h3 { margin-top: 0 !important; font-size: 1.15rem; }
.cos-case-body p { color: var(--cos-muted); font-size: .96rem; }
.cos-case-tag { font-size: .75rem !important; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--cos-brand) !important; margin-bottom: .4rem !important; }
.cos-link-arrow a, a.cos-link-arrow { font-weight: 600; text-decoration: none; }
.cos-link-arrow a::after { content: " →"; transition: margin .2s ease; }
.cos-link-arrow a:hover::after { margin-left: .2rem; }

/* ---------- Testimonials ---------- */
.cos-quote {
	background: #fff; border: 1px solid var(--cos-line); border-radius: var(--cos-radius);
	padding: 1.75rem !important; margin: 0 !important; height: 100%;
	position: relative;
}
.cos-quote::before {
	content: "\201C"; position: absolute; top: .4rem; right: 1.25rem;
	font-family: Georgia, serif; font-size: 5rem; line-height: 1; color: var(--wp--preset--color--cyan-soft, #e3f4fb);
}
.cos-quote p { font-size: 1.04rem; color: var(--cos-ink); position: relative; }
.cos-quote cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 600; color: var(--cos-brand); font-size: .95rem; }
.cos-quote cite::before { content: "— "; color: var(--cos-cyan); }

/* ---------- Partners ---------- */
.cos-partners p {
	font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.45rem);
	color: #9aa4c2; margin: 0; letter-spacing: -.01em;
}

/* ---------- CTA ---------- */
.cos-cta {
	border-radius: 28px; overflow: hidden; position: relative;
	background: linear-gradient(120deg, var(--cos-brand), #1f6fb4 55%, var(--cos-cyan));
	color: #eaf6fd;
	padding: clamp(2rem, 5vw, 3.5rem) !important;
}
.cos-cta::after {
	content: ""; position: absolute; right: -10%; top: -60%; width: 60%; height: 220%; pointer-events: none;
	background: radial-gradient(closest-side, rgba(255,255,255,.18), transparent);
}
.cos-cta > * { position: relative; z-index: 1; }
.cos-cta h2 { color: #fff; }
.cos-cta .wp-block-button__link { background: #fff; color: var(--cos-ink); }
.cos-cta .wp-block-button__link:hover { background: var(--cos-ink); color: #fff; }
.cos-cta .is-style-outline .wp-block-button__link { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }

/* ---------- Inner page hero ---------- */
.cos-page-hero {
	position: relative; overflow: hidden;
	background: var(--wp--preset--gradient--night, var(--cos-navy)); color: #c2cce9;
	padding-block: clamp(3.5rem, 7vw, 6rem) !important;
}
.cos-page-hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: linear-gradient(90deg, transparent, #000 60%);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.cos-page-hero > * { position: relative; }
.cos-page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.cos-page-hero .cos-lede { color: #b8c3e6; }

/* Article body (blog + case studies) */
.cos-prose { font-size: 1.075rem; }
.cos-prose h2, .cos-prose h3 { margin-top: 2.2em; }
.cos-prose p, .cos-prose li { color: #2b3555; }
.cos-result {
	background: var(--cos-surface); border-left: 4px solid var(--cos-cyan); border-radius: 0 14px 14px 0;
	padding: 1.25rem 1.5rem !important;
}

/* ---------- Contact ---------- */
.cos-contact-card {
	display: flex; gap: 1rem; align-items: flex-start;
	padding: 1.1rem 0 !important; border-bottom: 1px solid var(--cos-line); margin: 0 !important;
}
.cos-contact-card p { margin: 0; }
.cos-contact-card .cos-k { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cos-muted); font-weight: 600; }
.cos-contact-card .cos-v { font-weight: 600; color: var(--cos-ink); }
.cos-contact-card .cos-v a { color: inherit; text-decoration: none; }
.cos-contact-card .cos-v a:hover { color: var(--cos-brand); }
.cos-form-shell {
	background: #fff; border: 1px solid var(--cos-line); border-radius: 22px;
	padding: clamp(1.25rem, 3vw, 2.25rem) !important; box-shadow: var(--cos-shadow);
}
.cos-form { display: grid; gap: 1rem; }
.cos-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .cos-form-row { grid-template-columns: 1fr; } }
.cos-form label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 550; color: var(--cos-ink); }
.cos-form input, .cos-form select, .cos-form textarea {
	font: inherit; font-weight: 400; color: var(--cos-ink);
	width: 100%; box-sizing: border-box;
	padding: .8rem .95rem; border: 1px solid var(--cos-line); border-radius: 12px; background: var(--cos-surface);
	transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.cos-form input:focus, .cos-form select:focus, .cos-form textarea:focus {
	outline: none; border-color: var(--cos-cyan); background: #fff; box-shadow: 0 0 0 4px rgba(54,171,223,.18);
}
.cos-form button { justify-self: start; border: 0; cursor: pointer; background: var(--cos-brand); color: #fff; }
.cos-form button:hover { background: var(--cos-cyan); color: var(--cos-ink); }
.cos-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cos-form-notice { border-radius: 12px; padding: .9rem 1.1rem; font-weight: 500; }
.cos-form-notice.is-success { background: #e8f8f0; color: #11633d; }
.cos-form-notice.is-error { background: #fdecef; color: #8f1c33; }

/* ---------- Footer ---------- */
.cos-footer { background: var(--cos-ink); color: #a8b3d6; font-size: .95rem; }
.cos-footer h2, .cos-footer h3, .cos-footer h4 { color: #fff; font-size: .82rem !important; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.cos-footer a { color: #dfe5f7; text-decoration: none; }
.cos-footer a:hover { color: var(--cos-cyan); }
.cos-footer .cos-logo img { height: 64px; width: auto; }
.cos-footer .wp-block-navigation { gap: .55rem; }
.cos-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; color: #7f8bb2; }
.cos-footer .wp-block-social-links .wp-social-link { background: rgba(255,255,255,.08) !important; color: #fff !important; }
.cos-footer .wp-block-social-links .wp-social-link:hover { background: var(--cos-cyan) !important; color: var(--cos-ink) !important; }

/* ---------- Blog cards ---------- */
.cos-post-card {
	background: #fff; border: 1px solid var(--cos-line); border-radius: var(--cos-radius);
	padding: 1.6rem !important; height: 100%;
	transition: transform .25s ease, box-shadow .25s ease;
}
.cos-post-card:hover { transform: translateY(-4px); box-shadow: var(--cos-shadow-lg); }
.cos-post-card .wp-block-post-title { font-size: 1.15rem; margin-top: .5rem; }
.cos-post-card .wp-block-post-title a { color: var(--cos-ink); text-decoration: none; }
.cos-post-card .wp-block-post-title a:hover { color: var(--cos-brand); }
.cos-post-card .wp-block-post-excerpt { color: var(--cos-muted); font-size: .96rem; }
.cos-post-card .wp-block-post-date { font-size: .82rem; color: var(--cos-muted); }

/* ---------- Reveal on scroll ---------- */
.cos-js .cos-reveal { transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, border-color .25s ease; }
.cos-js .cos-reveal:not(.is-visible) { opacity: 0; transform: perspective(900px) translateY(48px) rotateX(12deg); }
@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Editor: show reveal items normally */
.editor-styles-wrapper .cos-reveal { opacity: 1 !important; transform: none !important; }

@media (max-width: 700px) { .cos-topbar { display: none; } }

/* Sections stack flush — no gaps between full-width bands. */
main.wp-block-group > .alignfull,
main.wp-block-group > .alignfull + * { margin-block-start: 0 !important; }
.cos-footer a[href^="mailto:"] { overflow-wrap: anywhere; }
@media (max-width: 480px) { .cos-badge-ok { display: none; } }

/* Search field */
.wp-block-search__inside-wrapper { gap: .5rem; max-width: 34rem; }
.wp-block-search__input { border: 1px solid var(--cos-line); border-radius: 999px; padding: .75rem 1.1rem; font: inherit; }
.cos-page-hero .wp-block-search__input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.cos-page-hero .wp-block-search__input::placeholder { color: #9fb0dc; }

/* Mid widths (tablet / small laptop): give the hero and footer room. */
@media (max-width: 1100px) {
	.cos-hero .wp-block-columns { flex-wrap: wrap !important; }
	.cos-hero .wp-block-columns > .wp-block-column { flex-basis: 100% !important; }
	.cos-hero .cos-panel { max-width: 560px; }
	.cos-footer .wp-block-columns { flex-wrap: wrap !important; row-gap: 2rem; }
	.cos-footer .wp-block-columns > .wp-block-column { flex-basis: calc(50% - 1.5rem) !important; flex-grow: 0; }
}
@media (max-width: 600px) {
	.cos-footer .wp-block-columns > .wp-block-column { flex-basis: 100% !important; }
}

.cos-cta .wp-block-buttons { flex-wrap: wrap; }
.cos-cta .wp-block-button__link { overflow-wrap: anywhere; }

/* =========================================================================
 * Cinematic layer (v1.1)
 * ========================================================================= */

/* ---------- Hero: full screen with 3D globe ---------- */
.cos-hero {
	min-height: calc(100svh - 7.5rem);
	display: flex; flex-direction: column; justify-content: center;
	padding-block: clamp(3rem, 7vw, 6rem) !important;
}
.cos-hero h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); line-height: 1.02; letter-spacing: -.04em; }
.cos-hero .cos-lede { max-width: 38rem; }
.cos-hero-grid { position: relative; }

.cos-globe-stage {
	position: relative;
	min-height: clamp(380px, 44vw, 640px);
}
.cos-globe {
	position: absolute; left: -35%; top: -35%; z-index: 0;
	pointer-events: none;
}
.cos-hero-copy { position: relative; z-index: 1; }

.cos-chip {
	position: absolute; z-index: 2;
	gap: .7rem !important; align-items: center;
	padding: .65rem .95rem .65rem .65rem !important; margin: 0 !important;
	border-radius: 16px;
	background: rgba(13, 22, 64, .62);
	border: 1px solid rgba(143, 214, 245, .22);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
	color: #c9d3ee; font-size: .82rem; line-height: 1.35;
	will-change: transform;
}
.cos-chip p { margin: 0; }
.cos-chip strong { color: #fff; font-weight: 600; font-size: .9rem; }
.cos-chip .cos-icon { background: rgba(54, 171, 223, .16); }
.cos-chip .cos-icon::before { background: var(--cos-cyan); }
.cos-chip--a { top: 12%; left: -2%; }
.cos-chip--b { top: 46%; right: -2%; }
.cos-chip--c { bottom: 8%; left: 10%; }

.cos-scroll-cue {
	position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%);
	margin: 0 !important; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: #7f8fc0;
	display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.cos-scroll-cue::after {
	content: ""; width: 1px; height: 38px;
	background: linear-gradient(#8fd6f5, transparent);
	animation: cos-cue 2s ease-in-out infinite; transform-origin: top;
}
@keyframes cos-cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 781px) {
	.cos-hero { min-height: 0; }
	.cos-globe-stage { min-height: 360px; margin-top: 1rem; }
	.cos-chip { font-size: .75rem; padding: .5rem .75rem .5rem .5rem !important; }
	.cos-chip--a { top: 2%; left: 0; }
	.cos-chip--b { top: 44%; right: 0; }
	.cos-chip--c { bottom: 2%; left: 6%; }
	.cos-scroll-cue { display: none; }
}

/* ---------- Header turns dark over the hero ---------- */
.cos-header { transition: background-color .4s ease, box-shadow .25s ease, border-color .25s ease; }
.cos-header.is-dark { background: #0b1230; border-color: rgba(255, 255, 255, .06); }
.cos-header.is-dark .wp-block-navigation a,
.cos-header.is-dark .wp-block-navigation__responsive-container-open { color: #e6ebfa; }
.cos-header.is-dark .wp-block-navigation a:hover { color: var(--cos-cyan); }
.cos-header.is-dark .wp-block-button__link { background: var(--cos-cyan); color: var(--cos-ink); }

/* ---------- Homepage dark run: stats → statement → services → process ---------- */
.home .cos-stats { background: var(--cos-ink); border-color: rgba(255, 255, 255, .07); }
.home .cos-stat .cos-stat-num { color: var(--cos-cyan); font-variant-numeric: tabular-nums; }
.home .cos-stat .cos-stat-label { color: #9fb0dc; }

.cos-statement {
	background: var(--cos-ink); color: #fff;
	padding-block: clamp(5rem, 14vw, 11rem) !important;
}
.cos-statement .cos-eyebrow { background: rgba(54, 171, 223, .14); color: var(--cos-cyan); }
.cos-statement-text {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.75rem, 4.4vw, 3.6rem); font-weight: 600; line-height: 1.16; letter-spacing: -.03em;
	color: #fff; text-wrap: balance; margin-top: 1.5rem !important;
}
.cos-statement-inner { max-width: 1100px; }
.cos-statement-text .cos-w { display: inline-block; will-change: opacity; }

.cos-services { background: linear-gradient(180deg, var(--cos-ink) 0%, var(--cos-navy) 100%); }
.cos-dark .cos-card {
	background-color: rgba(255, 255, 255, .04);
	border-color: rgba(255, 255, 255, .09);
}
.cos-dark .cos-card h3 { color: #fff; }
.cos-dark .cos-card p { color: #aab6dc; }
.cos-dark .cos-card .cos-icon { background: rgba(54, 171, 223, .14); }
.cos-dark .cos-card .cos-icon::before { background: var(--cos-cyan); }
.cos-dark .cos-card--feature { background-color: transparent; background-image: linear-gradient(150deg, #2d3691, #1f6fb4); border-color: transparent; }
.cos-dark .cos-card--feature p { color: #dbe7fb; }
.cos-dark .cos-card:hover { border-color: rgba(143, 214, 245, .35); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }

/* Services reel (desktop, motion on) */
.cos-services.is-reel { overflow: hidden; min-height: calc(100vh - var(--cos-header-h, 130px)); padding-block: clamp(2rem, 5vh, 4rem) !important; display: flex; flex-direction: column; justify-content: center; }
.cos-services.is-reel .cos-hscroll-track {
	display: flex !important; flex-wrap: nowrap; width: max-content; max-width: none !important;
	margin-left: max(0px, calc((100% - 1200px) / 2)) !important; margin-right: 0 !important;
	will-change: transform;
}
.cos-services.is-reel .cos-card { flex: 0 0 clamp(300px, 26vw, 360px); min-height: 300px; }

/* Process: line fills as you scroll */
.cos-step { position: relative; }
.cos-step::after {
	content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px;
	background: linear-gradient(90deg, var(--cos-cyan), #8fd6f5);
	transform-origin: left; transform: scaleX(var(--fill, 1));
}

/* ---------- Industries marquee (homepage) ---------- */
.cos-marquee {
	display: grid; gap: .75rem; overflow: hidden; margin-top: var(--wp--preset--spacing--50) !important;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.cos-marquee-track { display: flex; gap: .75rem; width: max-content; animation: cos-marquee 45s linear infinite; }
.cos-marquee-row.is-reverse .cos-marquee-track { animation-direction: reverse; animation-duration: 52s; }
.cos-marquee:hover .cos-marquee-track { animation-play-state: paused; }
.cos-marquee .cos-industry { white-space: nowrap; padding: 1.1rem 1.4rem !important; font-size: 1.02rem; }
@keyframes cos-marquee { to { transform: translateX(calc(-50% - .375rem)); } }
.cos-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; margin: 0 !important; padding: 0 !important; }

/* ---------- 3D tilt ---------- */
.cos-tilt {
	transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transform-style: preserve-3d;
	background-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, var(--glare, 0)), transparent 50%);
	transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease, border-color .3s ease;
}
.cos-tilt:hover { --glare: .10; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0); transition-duration: .12s, .3s, .3s; }
.cos-dark .cos-tilt:hover { --glare: .07; }
.cos-dark .cos-card--feature.cos-tilt { background-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, var(--glare, 0)), transparent 50%), linear-gradient(150deg, #2d3691, #1f6fb4); }

/* Headings get depth when they animate in */
.cos-motion .cos-section h2 { transform-style: preserve-3d; }
.cos-motion .cos-cta { transform-origin: 50% 100%; will-change: transform; }

/* =========================================================================
 * Cinematic layer v1.2 — particle scene, photos, cursor, loader
 * ========================================================================= */

/* ---------- Fixed WebGL scene behind the homepage ---------- */
.cos-scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; display: block; }
.cos-webgl body.home { background: var(--cos-ink); }
.cos-webgl body.home .wp-site-blocks { position: relative; z-index: 1; }
.cos-webgl body.home main > .alignfull,
.cos-webgl body.home .cos-hero,
.cos-webgl body.home .cos-stats,
.cos-webgl body.home .cos-statement,
.cos-webgl body.home .cos-services,
.cos-webgl body.home .cos-dark,
.cos-webgl body.home .cos-surface { background: transparent !important; }
.cos-webgl body.home .cos-hero::after { opacity: .45; }
.cos-webgl .cos-globe-stage { min-height: clamp(380px, 44vw, 640px); }

/* Former light sections, re-cut for the dark homepage */
.cos-webgl body.home main :is(.cos-section) h2,
.cos-webgl body.home main :is(.cos-section) h3 { color: #fff; }
.cos-webgl body.home main .cos-lede { color: #aab6dc; }
.cos-webgl body.home main .cos-eyebrow { background: rgba(54, 171, 223, .14); color: var(--cos-cyan); }
.cos-webgl body.home main .cos-link-arrow a { color: var(--cos-cyan); }
.cos-webgl body.home .cos-industry,
.cos-webgl body.home .cos-quote,
.cos-webgl body.home .cos-post-card,
.cos-webgl body.home .cos-case {
	background-color: rgba(13, 22, 64, .55); border-color: rgba(143, 214, 245, .14); color: #dfe5f7;
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.cos-webgl body.home .cos-industry { color: #fff; }
.cos-webgl body.home .cos-quote p { color: #e6ebfa; }
.cos-webgl body.home .cos-quote::before { color: rgba(54, 171, 223, .22); }
.cos-webgl body.home .cos-quote cite { color: var(--cos-cyan); }
.cos-webgl body.home .cos-case-body p { color: #aab6dc; }
.cos-webgl body.home .cos-case-body h3 { color: #fff; }
.cos-webgl body.home .cos-case-tag { color: var(--cos-cyan) !important; }
.cos-webgl body.home .cos-post-card .wp-block-post-title a { color: #fff; }
.cos-webgl body.home .cos-post-card :is(.wp-block-post-excerpt, .wp-block-post-date) { color: #aab6dc; }
.cos-webgl body.home .cos-partners p { color: #6f7fb0; }
.cos-webgl body.home .cos-stats { border-color: rgba(255, 255, 255, .07); }
.cos-webgl body.home .cos-cta { background: linear-gradient(120deg, rgba(45, 54, 145, .82), rgba(31, 111, 180, .78) 55%, rgba(54, 171, 223, .8)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cos-webgl body.home .cos-step { border-color: rgba(255, 255, 255, .12); }

/* ---------- Photo band ---------- */
.cos-band { position: relative; overflow: hidden; background: var(--cos-ink); min-height: 100vh; display: grid; place-items: center; }
.cos-band-media { position: absolute !important; inset: 0; margin: 0 !important; overflow: hidden; }
.cos-band-media img { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: 50% 50%; }
.cos-band-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 18, 48, .35), rgba(11, 18, 48, .78)); }
.cos-band-copy { position: relative; z-index: 2; text-align: center; padding: 4rem 1rem !important; }
.cos-band-copy .cos-eyebrow { background: rgba(54, 171, 223, .18); color: #8fd6f5; }
.cos-band-title { color: #fff !important; font-size: clamp(2rem, 5vw, 4.2rem) !important; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.cos-band-text { color: #c9d3ee; font-size: var(--wp--preset--font-size--large); max-width: 40rem; margin-inline: auto !important; }
.cos-band.is-cinematic { height: calc(100vh - var(--cos-header-h, 130px)); min-height: 0; }

/* ---------- Photos inside cards and columns ---------- */
.cos-case { position: relative; }
.cos-case-img { margin: 0 !important; height: 210px; overflow: hidden; }
.cos-case-img img { width: 100%; height: 125%; object-fit: cover; display: block; }
.cos-case-img + .cos-case-top { margin-top: -96px !important; background: linear-gradient(180deg, rgba(11, 18, 48, 0) 0%, rgba(11, 18, 48, .92) 55%) !important; padding-top: 3rem !important; }
.cos-case-img + .cos-case-top::after { display: none; }
.cos-motion .cos-case-grid { perspective: 1400px; }
.cos-motion .cos-case {
	rotate: x calc((1 - var(--flip, 1)) * 28deg);
	translate: 0 calc((1 - var(--flip, 1)) * 140px) calc((1 - var(--flip, 1)) * -200px);
	opacity: calc(.15 + var(--flip, 1) * .85);
	transform-origin: 50% 100%;
}
.cos-parallax-img { margin: 2rem 0 0 !important; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; }
.cos-parallax-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cos-wide-photo { aspect-ratio: 21 / 9; margin-top: 0 !important; }
.cos-photo-band { padding-block: var(--wp--preset--spacing--50) 0 !important; }
.cos-motion .cos-quote { translate: 0 var(--py, 0px); }

/* ---------- Marquee driven by GSAP ---------- */
.cos-marquee.is-gsap .cos-marquee-track { animation: none; }

/* ---------- Headline splitting ---------- */
.cos-motion :is(h1, h2) .cos-word,
.cos-motion :is(h1, h2) > div > div { will-change: transform; }
.cos-hero h1 em .cos-word, .cos-hero h1 em div {
	background: linear-gradient(90deg, #36abdf, #8fd6f5); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Cursor ---------- */
.cos-cursor-dot, .cos-cursor-ring { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 10000; border-radius: 50%; opacity: 0; transition: opacity .3s ease; }
.cos-cursor-on .cos-cursor-dot, .cos-cursor-on .cos-cursor-ring { opacity: 1; }
.cos-cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--cos-cyan); box-shadow: 0 0 12px rgba(54, 171, 223, .9); }
.cos-cursor-ring {
	width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1.5px solid rgba(54, 171, 223, .55);
	transition: opacity .3s ease, width .35s cubic-bezier(.2, .7, .2, 1), height .35s cubic-bezier(.2, .7, .2, 1), margin .35s cubic-bezier(.2, .7, .2, 1), background-color .3s ease, border-color .3s ease;
}
.cos-cursor-ring.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(54, 171, 223, .14); border-color: rgba(143, 214, 245, .8); }
.cos-cursor-ring.is-card { width: 90px; height: 90px; margin: -45px 0 0 -45px; border-color: rgba(143, 214, 245, .35); }

/* ---------- Scroll progress ---------- */
.cos-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 9999; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, #2d3691, #36abdf, #8fd6f5); pointer-events: none; }
.admin-bar .cos-progress { top: 32px; }

/* ---------- Intro loader ---------- */
.cos-loader { display: none; }
.cos-loading .cos-loader {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
	position: fixed; inset: 0; z-index: 100000; background: #0b1230;
	animation: cos-loader-safety .6s ease 3.5s forwards;
}
.cos-loader img { width: 188px; height: auto; }
.cos-loader-track { width: 160px; height: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; border-radius: 2px; }
.cos-loader-bar { display: block; height: 100%; background: linear-gradient(90deg, #36abdf, #8fd6f5); transform: scaleX(0); transform-origin: left; }
@keyframes cos-loader-safety { to { opacity: 0; visibility: hidden; } }

@media (prefers-reduced-motion: reduce) {
	.cos-loader { display: none !important; }
}
.cos-hero > .alignwide { width: 100%; }
