/*
Theme Name: Sindo Group
Theme URI: https://sindo-group.com
Author: PT Sindo Saripati Samudra
Description: Single-page corporate theme for Sindo Group: services, group companies and contact on one page, with a full blog for SEO. Edit homepage copy in inc/content.php.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sindo
*/

/* Colours come from the Sindo logo: navy ring, steel dot, pale ring. */
:root {
	--ink: #073e59;
	--ink-deep: #042a3d;
	--steel: #6f9db0;
	--steel-text: #3f7086;
	--pale: #b9c9d1;
	--accent: #00aff2;
	--muted: #51666f;
	--line: #dde7ec;
	--band: #f1f5f7;
	--white: #ffffff;
	--radius: 10px;
	--radius-sm: 6px;
	--container: 1160px;
	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--spring: cubic-bezier(.2, .9, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; }
p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }

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

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--container) + 48px); margin: 0 auto; padding: 0 24px; }

/* ---------- Type ---------- */

.display {
	font-size: clamp(2.75rem, 5vw, 4.25rem);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -.03em;
}
.h2 {
	font-size: clamp(2rem, 3.6vw, 2.875rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.03em;
	max-width: 720px;
}
.lede {
	margin-top: 20px;
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--muted);
	max-width: 560px;
}
.label { font-size: .9375rem; font-weight: 700; color: var(--steel-text); margin-bottom: 12px; }

.section-head { margin-bottom: 48px; }
.section-head__link { display: inline-block; margin-top: 18px; }
.section-head--row { display: flex; align-items: end; justify-content: space-between; gap: 24px; }

.link {
	font-size: .9375rem; font-weight: 700; color: var(--ink);
	text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--pale); text-underline-offset: 5px;
	transition: text-decoration-color .15s ease;
}
.link:hover { text-decoration-color: currentColor; }

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 14px 24px; border-radius: 6px; border: 0; cursor: pointer;
	background: var(--ink); color: var(--white);
	font: 700 .9375rem/1.2 var(--font); text-decoration: none; white-space: nowrap;
	transition: transform .1s ease-out, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--ink-deep); }
.btn:active { transform: scale(.97); }
.btn--small { padding: 10px 18px; font-size: .875rem; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--pale); }
.btn--ghost:hover { background: var(--band); box-shadow: inset 0 0 0 1.5px var(--steel); }
.btn--bright { background: var(--accent); color: var(--ink-deep); }
.btn--bright:hover { background: #45c8f8; }

/* ---------- Header ---------- */

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .8);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	        backdrop-filter: saturate(180%) blur(20px);
	box-shadow: 0 1px 0 transparent;
	transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.site-header__inner { display: flex; align-items: center; height: 76px; gap: 24px; }
.brand { display: inline-flex; margin-right: auto; }
.brand img { height: 54px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; order: 2; }
.header-tools { display: flex; align-items: center; gap: 12px; order: 3; }
.nav__list { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav__list a {
	font-size: .875rem; font-weight: 600; color: var(--muted); text-decoration: none;
	padding: 6px 0; position: relative; transition: color .15s ease;
}
.nav__list a:hover, .nav__list a.is-active { color: var(--ink); }
.nav__list a.is-active::after, .nav__sub-toggle.is-active::before {
	content: ""; position: absolute; left: 50%; bottom: -4px; width: 5px; height: 5px; margin-left: -2.5px;
	border-radius: 50%; background: var(--steel);
}

.lang { display: inline-flex; padding: 3px; border-radius: 6px; background: var(--band); }
.lang a {
	font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; color: var(--muted);
	padding: 6px 10px; border-radius: 4px; line-height: 1; transition: background-color .2s ease, color .2s ease;
}
.lang a[aria-current] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(7, 62, 89, .15); }

.nav-toggle {
	display: none; width: 42px; height: 42px; border: 0; border-radius: 50%;
	background: var(--band); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
	display: block; width: 16px; height: 1.6px; background: var(--ink); position: relative; transition: transform .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Sections ---------- */

.section { padding: 128px 0; }
.section--tight { padding-top: 0; }

/* ---------- Hero ---------- */

.hero { padding: 56px 0 0; overflow: hidden; }
.hero__grid {
	display: grid; grid-template-columns: 1.25fr .9fr; align-items: center; gap: 40px;
	min-height: calc(100svh - 76px - 150px);
}
.hero__copy .lede { font-size: 1.1875rem; max-width: 580px; }
.hero__sub { margin-top: 18px; font-size: 1.375rem; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; color: var(--steel-text); max-width: 560px; }
.hero__sub + .lede { margin-top: 14px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__media { position: relative; }
.hero__video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }

/* The Sindo mark in motion: one ring per service, orbiting the core. */
.orbit { position: relative; width: 100%; max-width: 540px; margin-left: auto; aspect-ratio: 1; }
.orbit::before {
	content: ""; position: absolute; inset: 8%; border-radius: 50%; z-index: -1;
	background: radial-gradient(circle, rgba(111, 157, 176, .2), rgba(111, 157, 176, 0) 70%);
}
.orbit__svg { width: 100%; height: 100%; overflow: visible; }
.orbit__track { fill: none; stroke: var(--line); stroke-width: 1.5; }
.orbit__core { fill: var(--steel); transform-box: fill-box; transform-origin: center; animation: core-in .7s var(--spring) .1s both; }
.orbit__arc {
	fill: none; stroke-width: 14; stroke-linecap: round;
	transform-box: fill-box; transform-origin: center;
	transition: stroke-width .3s var(--spring), opacity .3s ease;
}
.orbit__arc--1 { --a: 200deg; stroke: var(--ink);        --len: 30; animation: arc-draw 1.1s var(--spring) .2s both, spin 46s linear infinite; }
.orbit__arc--2 { --a: 300deg; stroke: var(--steel);      --len: 24; animation: arc-draw 1.1s var(--spring) .35s both, spin-back 60s linear infinite; }
.orbit__arc--3 { --a: 40deg; stroke: var(--accent);     --len: 18; animation: arc-draw 1.1s var(--spring) .5s both, spin 52s linear infinite; }
.orbit__arc--4 { --a: 120deg; stroke: var(--pale);       --len: 22; animation: arc-draw 1.1s var(--spring) .65s both, spin-back 74s linear infinite; }
.orbit__arc--5 { --a: 250deg; stroke: var(--steel-text); --len: 14; animation: arc-draw 1.1s var(--spring) .8s both, spin 66s linear infinite; }
@keyframes arc-draw { from { stroke-dasharray: 0 100; } to { stroke-dasharray: var(--len) 100; } }
@keyframes spin { from { transform: rotate(var(--a, 0deg)); } to { transform: rotate(calc(var(--a, 0deg) + 360deg)); } }
@keyframes spin-back { from { transform: rotate(var(--a, 0deg)); } to { transform: rotate(calc(var(--a, 0deg) - 360deg)); } }
@keyframes core-in { from { transform: scale(0); } to { transform: none; } }

.orbit__labels { list-style: none; }
.orbit__label { position: absolute; animation: label-in .6s var(--spring) both; }
.orbit__label a {
	display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 12px; border-radius: 6px;
	background: var(--white); box-shadow: 0 1px 2px rgba(7, 62, 89, .08), 0 6px 20px rgba(7, 62, 89, .08), inset 0 0 0 1px var(--line);
	font-size: .8125rem; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap;
	transition: transform .1s ease-out, box-shadow .2s ease;
}
.orbit__label a:active { transform: scale(.96); }
.orbit__label a::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.orbit__label--1 { --c: var(--ink);    top: 6%;  left: 2%;   animation-delay: .9s; }
.orbit__label--2 { --c: var(--steel);  top: 16%; right: -2%; animation-delay: 1s; }
.orbit__label--3 { --c: var(--accent); bottom: 14%; right: 0; animation-delay: 1.1s; }
.orbit__label--4 { --c: var(--pale);   bottom: 2%; left: 30%; animation-delay: 1.2s; }
.orbit__label--5 { --c: var(--steel-text); top: 50%; left: -4%; animation-delay: 1.3s; }
@keyframes label-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Hovering a label lifts its ring and quiets the others. */
.orbit:has(.orbit__label a:hover, .orbit__label a:focus-visible) .orbit__arc { opacity: .35; }
.orbit:has(.orbit__label--1 a:hover, .orbit__label--1 a:focus-visible) .orbit__arc--1,
.orbit:has(.orbit__label--2 a:hover, .orbit__label--2 a:focus-visible) .orbit__arc--2,
.orbit:has(.orbit__label--3 a:hover, .orbit__label--3 a:focus-visible) .orbit__arc--3,
.orbit:has(.orbit__label--4 a:hover, .orbit__label--4 a:focus-visible) .orbit__arc--4,
.orbit:has(.orbit__label--5 a:hover, .orbit__label--5 a:focus-visible) .orbit__arc--5 { opacity: 1; stroke-width: 22; }

.hero__media.is-paused .orbit__arc { animation-play-state: paused; }

/* Pause control for anything that moves on its own. */
.motion-toggle {
	display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
	font: 600 .8125rem var(--font); color: var(--muted); background: none; border: 0; padding: 8px 0;
}
.motion-toggle::before {
	content: ""; width: 10px; height: 10px; flex: none;
	background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%);
}
.motion-toggle[aria-pressed="true"]::before { background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.motion-toggle:hover { color: var(--ink); }
.hero__pause { position: absolute; right: 0; bottom: -8px; }

.hero__facts {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
	margin-top: 48px; padding: 28px 0 0; border-top: 1px solid var(--line);
}
.hero__facts dt { font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; }
.hero__facts dd { font-size: .9375rem; color: var(--muted); margin-top: 2px; }

/* ---------- Services: list + panel ---------- */

.svc { display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: start; }
.svc__list { display: grid; gap: 6px; position: sticky; top: 100px; }
.svc__tab {
	display: flex; align-items: center; gap: 16px; width: 100%; padding: 14px 18px 14px 14px;
	border: 0; border-radius: 10px; background: transparent; cursor: pointer; text-align: left;
	font: 700 1.0625rem/1.3 var(--font); color: var(--muted);
	transition: background-color .25s ease, color .2s ease, transform .1s ease-out;
}
.svc__tab:hover { background: var(--band); color: var(--ink); }
.svc__tab:active { transform: scale(.98); }
.svc__tab[aria-selected="true"] { background: var(--band); color: var(--ink); }
.svc__icon {
	flex: none; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
	background: var(--steel); color: var(--white);
	transition: background-color .3s ease, transform .4s var(--spring);
}
.svc__tab[aria-selected="true"] .svc__icon { background: var(--ink); transform: scale(1.06); }
.svc__icon svg { width: 28px; height: 28px; }

.svc__panel {
	padding: 48px; border-radius: 14px; background: var(--band);
	animation: panel-in .45s var(--spring);
}
.svc__panel:focus-visible { outline-offset: 4px; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.svc__by { font-size: .875rem; font-weight: 700; color: var(--steel-text); }
.svc__panel h3 { margin-top: 10px; font-size: 2rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.svc__desc { margin-top: 14px; font-size: 1.0625rem; color: var(--muted); max-width: 560px; }
.svc__points { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.svc__points li {
	padding: 20px; border-radius: 10px; background: var(--white);
	font-size: .9375rem; line-height: 1.55; color: var(--muted);
}
.svc__points strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 4px; }
.svc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }

/* Without JavaScript every panel is simply shown in turn. */
html:not(.js) .svc { grid-template-columns: 1fr; }
html:not(.js) .svc__list { display: none; }
html:not(.js) .svc__panel[hidden] { display: block !important; margin-top: 16px; }

/* ---------- How we work ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; counter-reset: step; }
.steps li { padding-top: 24px; border-top: 2px solid var(--ink); }
.steps li::before {
	counter-increment: step; content: counter(step);
	display: block; font-size: 3.5rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--pale); margin-bottom: 20px;
}
.steps h3 { font-size: 1.3125rem; letter-spacing: -.015em; margin-bottom: 8px; }
.steps p { font-size: 1rem; color: var(--muted); max-width: 320px; }

/* ---------- Nexus ---------- */

.nexus { background: var(--band); }
.nexus__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.nexus__body { margin-top: 20px; font-size: 1.0625rem; line-height: 1.7; color: var(--muted); max-width: 500px; }
.nexus__list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 32px; }
.nexus__list li { padding: 8px 14px; border-radius: 4px; background: var(--white); font-size: .875rem; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }

/* Illustration: a dashboard that fills in when scrolled into view. */
.dash {
	padding: 22px; border-radius: 14px; background: var(--white);
	box-shadow: 0 2px 4px rgba(7, 62, 89, .04), 0 24px 60px -12px rgba(7, 62, 89, .22);
}
.dash__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dash__top img { height: 30px; width: auto; }
.dash__dots { display: flex; gap: 5px; }
.dash__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dash__kpis span { height: 64px; border-radius: 8px; background: var(--band); position: relative; overflow: hidden; }
.dash__kpis span::after { content: ""; position: absolute; left: 14px; bottom: 14px; width: 45%; height: 10px; border-radius: 3px; background: var(--pale); }
.dash__kpis span:first-child::after { background: var(--steel); width: 60%; }
.dash__chart {
	display: flex; align-items: flex-end; gap: 10px; height: 180px; margin-top: 12px; padding: 18px;
	border-radius: 8px; background: var(--band);
}
.dash__chart span {
	flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: var(--steel);
	transform-origin: bottom; transform: scaleY(.04);
	transition: transform .9s var(--spring) calc(var(--i) * 70ms);
}
.dash__chart span:last-child { background: var(--ink); }
.dash__chat { display: grid; gap: 8px; margin-top: 14px; }
.dash__chat p {
	max-width: 85%; padding: 10px 14px; border-radius: 8px; font-size: .8125rem; line-height: 1.45;
	opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .5s var(--spring);
}
.dash__q { justify-self: end; background: var(--ink); color: var(--white); border-bottom-right-radius: 4px; transition-delay: .8s !important; }
.dash__a { background: var(--band); color: var(--ink); border-bottom-left-radius: 4px; transition-delay: 1.4s !important; }
.dash.is-in .dash__chart span { transform: none; }
.dash.is-in .dash__chat p { opacity: 1; transform: none; }
html:not(.js) .dash__chart span, html:not(.js) .dash__chat p { transform: none; opacity: 1; }

/* ---------- Group carousel ---------- */

.group { background: var(--ink); color: var(--white); padding: 120px 0 96px; }
.group .h2 { color: var(--white); }
.group .lede { color: rgba(255, 255, 255, .75); }
.marquee__viewport {
	display: flex; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
	        mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee__viewport::-webkit-scrollbar { display: none; }
.marquee__viewport:focus-visible { outline-offset: -2px; }
.marquee__track { display: flex; gap: 14px; padding-right: 14px; list-style: none; flex: none; }
.marquee__controls { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.marquee__arrow {
	display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 6px; cursor: pointer;
	background: var(--band); color: var(--ink); transition: background-color .15s ease, transform .1s ease-out;
}
.marquee__arrow:hover { background: #e2eaee; }
.marquee__arrow:active { transform: scale(.94); }
.marquee__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.marquee__controls .motion-toggle { margin-left: 8px; }
.group .marquee__arrow { background: rgba(255, 255, 255, .1); color: var(--white); }
.group .marquee__arrow:hover { background: rgba(255, 255, 255, .2); }
.logo-tile {
	flex: none; width: 210px; padding: 16px 16px 18px; border-radius: 10px;
	background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.logo-tile__img { display: grid; place-items: center; height: 104px; padding: 14px; border-radius: 6px; background: var(--white); margin-bottom: 14px; }
.logo-tile__img img { width: 100%; height: 76px; object-fit: contain; }
.logo-tile strong { display: block; font-size: .875rem; line-height: 1.35; }
.logo-tile > span:last-child { display: block; margin-top: 2px; font-size: .8125rem; color: rgba(255, 255, 255, .65); }
.group .motion-toggle { color: rgba(255, 255, 255, .7); }
.section .logo-tile { background: var(--band); box-shadow: none; }
.section .logo-tile > span:last-child { color: var(--muted); }
.group .motion-toggle:hover { color: var(--white); }

/* ---------- About ---------- */

.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 72px; align-items: start; }
.about__body { margin-top: 28px; }
.about__body p { font-size: 1.0625rem; line-height: 1.75; color: var(--muted); max-width: 620px; }
.about__body p + p { margin-top: 18px; }
.facts { display: grid; gap: 0; margin-top: 8px; }
.facts div { padding: 22px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-size: .875rem; font-weight: 600; color: var(--steel-text); margin-bottom: 4px; }
.facts dd { font-size: 1.0625rem; font-weight: 600; color: var(--ink); line-height: 1.5; }

/* ---------- Posts ---------- */

/* Insights: an editorial list, text first, with a small muted thumbnail. */
.posts { display: grid; border-top: 1px solid var(--line); }
.post-card { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 48px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.post-card:not(:has(.post-card__thumb)) { grid-template-columns: 1fr; }
.post-card__thumb { order: 2; aspect-ratio: 3 / 2; border-radius: 8px; background: var(--band); overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7); transition: transform .6s var(--spring), filter .4s ease; }
.post-card:hover .post-card__thumb img { transform: scale(1.04); filter: none; }
.post-card__body { max-width: 720px; }
.post-card__meta { display: block; font-size: .8125rem; font-weight: 600; color: var(--steel-text); margin-bottom: 10px; }
.post-card h3 { font-size: 1.375rem; line-height: 1.3; letter-spacing: -.015em; }
.post-card:hover h3 { text-decoration: underline; text-decoration-color: var(--pale); text-underline-offset: 4px; }
.post-card p { margin-top: 10px; font-size: .9375rem; line-height: 1.6; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__more { display: none; }
.empty { color: var(--muted); font-size: 1rem; }

/* ---------- Contact ---------- */

.contact {
	display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start;
	padding: 64px; border-radius: 14px; background: var(--ink);
}
.contact .h2 { color: var(--white); }
.contact .lede { color: rgba(255, 255, 255, .75); margin-bottom: 32px; }
.contact__details { display: grid; gap: 18px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .14); }
.contact__details dt { font-size: .8125rem; font-weight: 600; color: rgba(255, 255, 255, .6); }
.contact__details a { color: var(--white); font-weight: 600; text-decoration: none; }
.contact__details a:hover { text-decoration: underline; }

.form { background: var(--white); border-radius: 14px; padding: 32px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: start; }
.field--wide { grid-column: 1 / -1; }
.field__opt { font-weight: 500; color: var(--muted); }
.form__note { font-size: .8125rem; color: var(--muted); margin: 0 0 12px; }
.form__foot small a { color: inherit; font-weight: 600; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .8125rem; font-weight: 700; color: var(--ink); }
.field input, .field textarea, .field select {
	width: 100%; font: 400 1rem/1.4 var(--font); color: var(--ink);
	padding: 13px 15px; border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--band);
	transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--steel); background: var(--white); box-shadow: 0 0 0 4px rgba(111, 157, 176, .2); }
.field textarea { min-height: 130px; resize: vertical; }
.field__hint { font-size: .8125rem; color: var(--muted); line-height: 1.5; }
.field__err { font-size: .8125rem; font-weight: 600; color: #a12626; line-height: 1.5; }
.field [aria-invalid="true"] { border-color: #c43c3c; background: #fdf3f3; }
.btn:disabled { opacity: .7; cursor: progress; transform: none; }
.notice:focus { outline: 2px solid var(--steel); outline-offset: 2px; }
.notice a { display: inline-block; margin-top: 4px; font-weight: 700; color: inherit; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.form__foot small { font-size: .75rem; color: var(--muted); line-height: 1.5; max-width: 280px; }
.hp { position: absolute; left: -9999px; }
.cf-turnstile { margin: 4px 0 16px; min-height: 65px; }
.notice { padding: 14px 16px; border-radius: var(--radius-sm); font-size: .875rem; margin-bottom: 20px; }
.notice--ok { background: #e3f1f6; color: var(--ink); }
.notice--err { background: #fdecec; color: #8a1f1f; }

/* ---------- Floating WhatsApp (appears once the hero is behind you) ---------- */

.wa-float {
	position: fixed; right: 20px; bottom: 20px; z-index: 40;
	display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border-radius: 6px;
	background: #1f8f4e; color: var(--white); font: 700 .875rem var(--font); text-decoration: none;
	box-shadow: 0 10px 30px rgba(4, 42, 61, .25);
	transition: transform .35s var(--spring), opacity .25s ease, visibility .25s;
}
.wa-float:active { transform: scale(.96); }
.wa-float svg { width: 20px; height: 20px; }
.wa-float.is-hidden { opacity: 0; visibility: hidden; transform: translateY(12px); }

/* ---------- Footer ---------- */

.site-footer { padding: 96px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 48px; border-top: 1px solid var(--line); }
.footer-grid img { height: 56px; width: auto; margin-bottom: 18px; }
.footer-grid p { font-size: .875rem; line-height: 1.7; color: var(--muted); }
.footer-grid h4 { font-size: .875rem; font-weight: 700; margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { font-size: .875rem; color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-notice {
	margin-top: 48px; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--band);
	font-size: .8125rem; line-height: 1.6; color: var(--muted); max-width: 780px;
}
.footer-base {
	margin-top: 32px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	font-size: .8125rem; color: var(--muted);
}
.footer-base a { color: var(--muted); }

/* ---------- Blog ---------- */

.page-hero { padding: 88px 0 56px; }
.page-hero .lede { margin-top: 16px; }
.office-photo { display: block; width: 100%; height: auto; margin-bottom: 40px; border-radius: var(--radius); }
.archive-grid { padding-bottom: 120px; }
.pagination { margin-top: 56px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
	min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center;
	border-radius: 6px; background: var(--band); font-size: .875rem; font-weight: 600; text-decoration: none; color: var(--ink);
}
.pagination .current { background: var(--ink); color: var(--white); }
.search-form { display: flex; gap: 8px; max-width: 460px; margin-top: 28px; }
.search-form input { flex: 1; font: 400 1rem var(--font); padding: 12px 18px; border: 0; border-radius: 6px; background: var(--band); }
.page-hero .hero__actions { margin-top: 32px; }

.article { padding: 88px 0 120px; }
.article__inner { max-width: 700px; margin: 0 auto; }
.article__back { font-size: .875rem; font-weight: 600; text-decoration: none; color: var(--muted); display: inline-block; margin-bottom: 32px; }
.article__back:hover { color: var(--ink); }
.article h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.article__meta { margin-top: 20px; font-size: .875rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.article__thumb { margin: 40px 0 0; border-radius: var(--radius); overflow: hidden; }

.entry-content { margin-top: 40px; font-size: 1.0625rem; line-height: 1.8; color: #2c4552; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2 { font-size: 1.75rem; letter-spacing: -.02em; line-height: 1.25; margin-top: 1.8em; }
.entry-content h3 { font-size: 1.3125rem; letter-spacing: -.01em; line-height: 1.3; margin-top: 1.6em; }
.entry-content a { color: var(--steel-text); text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0; }
.entry-content li + li { margin-top: .4em; }
.entry-content blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--steel); color: var(--ink); font-weight: 500; }
.entry-content img, .entry-content figure { border-radius: 8px; }
.entry-content figure { margin: 2em 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content code { background: var(--band); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.entry-content pre { background: var(--ink-deep); color: #e6f0f4; padding: 20px; border-radius: 8px; overflow-x: auto; }
.entry-content pre code { background: none; padding: 0; }
/* Articles imported from the old Elementor site: flatten its wrappers and inline font styles. */
.entry-content :is(p, ul, ol, blockquote, table) { margin-top: 1.2em; }
.entry-content li > ul { margin-top: 0; padding-left: 0; }
.entry-content li[style*="none"] { list-style: none; }
.entry-content ul + ul { margin-top: .4em; }
.entry-content [style] { font-size: inherit !important; font-weight: inherit !important; letter-spacing: inherit !important; }
.entry-content strong[style] { font-weight: 700 !important; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.entry-content img.emoji { display: inline; width: 1em; height: 1em; vertical-align: -.1em; border-radius: 0; }
.alignwide, .alignfull { margin-left: auto; margin-right: auto; }

.article__cta {
	margin-top: 64px; padding: 32px; border-radius: 14px; background: var(--ink); color: var(--white);
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.article__cta strong { display: block; font-size: 1.25rem; letter-spacing: -.015em; }
.article__cta p { color: rgba(255, 255, 255, .75); font-size: .9375rem; margin-top: 6px; }
.article__cta .btn { background: var(--accent); color: var(--ink-deep); }

.post-nav { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a { display: block; padding: 22px; border-radius: 10px; background: var(--band); text-decoration: none; transition: background-color .2s ease; }
.post-nav a:hover { background: #e7eef2; }
.post-nav small { display: block; font-size: .8125rem; color: var(--steel-text); margin-bottom: 6px; font-weight: 600; }
.post-nav span { font-size: 1rem; font-weight: 700; }
.post-nav .next { text-align: right; grid-column: 2; }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.orbit__arc, .orbit__core, .orbit__label, .svc__panel { animation: none !important; }
	.orbit__arc { stroke-dasharray: var(--len) 100; }
	.orbit__arc--2 { transform: rotate(120deg); }
	.orbit__arc--3 { transform: rotate(220deg); }
	.orbit__arc--4 { transform: rotate(310deg); }
	.orbit__arc--5 { transform: rotate(40deg); }
	.hero__pause { display: none; }
	.dash__chart span, .dash__chat p { transition: opacity .2s ease; transform: none; }
	/* Logos sit still in a wrapped grid instead of scrolling. */
	.marquee .motion-toggle { display: none; }
}

@media (prefers-reduced-transparency: reduce) {
	.site-header { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
	.svc { grid-template-columns: 300px 1fr; }
	.svc__panel { padding: 36px; }
	.svc__points { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; }
	.nav {
		position: fixed; inset: 76px 0 auto 0; background: var(--white); box-shadow: 0 1px 0 var(--line);
		flex-direction: column; align-items: stretch; gap: 16px; padding: 8px 24px 24px;
		transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .25s var(--spring), visibility .2s;
	}
	.nav-open .nav { transform: none; opacity: 1; visibility: visible; }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__list a { display: block; padding: 14px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
	.nav__list a.is-active::after, .nav__sub-toggle.is-active::before { display: none; }
	.nav .btn { align-self: flex-start; }

	.hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 24px; }
	.orbit { margin: 0 auto; max-width: 460px; }

	/* Services: icons become a row of choices above the panel. */
	.svc { grid-template-columns: 1fr; }
	.svc__list { position: static; grid-template-columns: repeat(5, 1fr); }
	.svc__tab { flex-direction: column; text-align: center; gap: 10px; padding: 14px 8px; font-size: .875rem; }

	.steps { grid-template-columns: 1fr; gap: 32px; }
	.nexus__grid, .about { grid-template-columns: 1fr; gap: 48px; }
	.post-card { grid-template-columns: minmax(0, 1fr) 180px; gap: 32px; }
	.contact { grid-template-columns: 1fr; padding: 48px 32px; gap: 40px; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
	.container { padding: 0 16px; }
	.section { padding: 88px 0; }
	.section--tight { padding-top: 0; }
	.group { padding: 88px 0 72px; }
	.hero { padding-top: 32px; }
	.hero__copy .lede { font-size: 1.0625rem; }
	.hero__actions .btn { flex: 1 1 auto; }
	.orbit { max-width: 340px; }
	.orbit__label a { padding: 7px 11px 7px 9px; font-size: .75rem; }
	.hero__facts { grid-template-columns: 1fr 1fr; gap: 20px; }
	.hero__facts > :last-child { display: none; }
	.hero__facts dt { font-size: 1.125rem; }
	.lang a { padding: 6px 8px; }
	.section-head { margin-bottom: 36px; }
	.section-head--row { flex-direction: column; align-items: flex-start; }

	.svc__list { grid-template-columns: repeat(2, 1fr); }
	.svc__tab { flex-direction: row; text-align: left; padding: 10px; gap: 10px; font-size: .8125rem; }
	.svc__icon { width: 44px; height: 44px; }
	.svc__icon svg { width: 22px; height: 22px; }
	.svc__panel { padding: 28px 22px; border-radius: 12px; }
	.svc__panel h3 { font-size: 1.5rem; }
	.svc__points li { padding: 16px; }

	.post-card { grid-template-columns: minmax(0, 1fr) 88px; gap: 16px; padding: 24px 0; align-items: start; }
	.post-card__thumb { aspect-ratio: 1; }
	.post-card h3 { font-size: 1.0625rem; }
	.post-card p { font-size: .875rem; }
	.contact { padding: 36px 20px 20px; border-radius: 14px; }
	.form { padding: 22px; border-radius: 10px; }
	.form__grid { grid-template-columns: 1fr; }
	.form__foot, .article__cta { flex-direction: column; align-items: flex-start; }
	.logo-tile { width: 170px; }
	.logo-tile__img { height: 88px; }
	.logo-tile__img img { height: 60px; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav .next { grid-column: auto; }
	.wa-float span { display: none; }
	.wa-float { padding: 14px; }
	.footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
}

/* =========================================================================
 * Clients, Team and Portfolio
 * ====================================================================== */

/* ---------- Shared closing band ---------- */

.cta-band {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	padding: 48px; border-radius: 14px; background: var(--ink);
}
.cta-band .h2 { color: var(--white); font-size: clamp(1.5rem, 2.6vw, 2.125rem); }

/* ---------- Team: flip cards ---------- */

.team-group { padding-bottom: 72px; }
.team-group__title { font-size: 1.25rem; letter-spacing: -.01em; margin-bottom: 20px; }
.team { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flip__inner { position: relative; aspect-ratio: 4 / 5.3; perspective: 1400px; }
/* Each face turns on its own (angle and tilt set by main.js), rather than the
 * whole card turning. The visible face is then always flat to the screen, which
 * Firefox needs to send clicks to the Back button and links on the bio side. */
.flip__front { transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--flip, 0deg) + var(--ry, 0deg))); }
/* April 1st only: cards can be grabbed and spun (see main.js). */
.april-fools .flip__inner { cursor: grab; touch-action: pan-y; }
.flip.is-flipped .flip__inner { --flip: 180deg; }
.flip.is-tilting .flip__face { transition: transform .15s ease-out; }
.flip.is-dragging .flip__inner { cursor: grabbing; }
/* Only the side facing the viewer takes clicks. Safari and Firefox can otherwise
 * send a click on Back to the turned-away front face, which sits in the same plane. */
.flip.is-flipped .flip__front, .flip:not(.is-flipped) .flip__back { pointer-events: none; }
.flip__face {
	position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden;
	-webkit-backface-visibility: hidden; backface-visibility: hidden;
	transition: transform .75s var(--spring);
}
.flip__front { background: var(--band); }
.flip__front img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--spring); }
.flip__front:hover img { transform: scale(1.03); }
.flip__meta {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 18px 18px;
	background: linear-gradient(rgba(4, 42, 61, 0), rgba(4, 42, 61, .88));
}
.flip__meta h3 { color: var(--white); font-size: 1.0625rem; line-height: 1.3; }
.flip__meta p { margin-top: 2px; font-size: .8125rem; color: rgba(255, 255, 255, .8); }
.flip__open { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; border-radius: var(--radius); }
.flip__open::after {
	/* The plus is drawn with two bars so it sits exactly in the centre, whatever the font. */
	content: ""; position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
	background:
		linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
		linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat,
		rgba(255, 255, 255, .92);
	transition: transform .35s var(--spring);
}
.flip__open:hover::after { transform: scale(1.1); }
.flip__open:active::after { transform: scale(.94); }
.flip__back {
	transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--flip, 0deg) + 180deg + var(--ry, 0deg)));
	background: var(--ink); color: var(--white);
	display: flex; flex-direction: column; padding: 24px;
}
.flip__back h3 { color: var(--white); font-size: 1.125rem; line-height: 1.3; }
.flip__role { margin-top: 4px; font-size: .8125rem; font-weight: 600; color: var(--accent); }
.flip__bio { flex: 1; margin-top: 12px; font-size: .8125rem; line-height: 1.55; color: rgba(255, 255, 255, .85); overflow: auto; }
.flip__foot {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .15);
}
.flip__in { font-size: .8125rem; font-weight: 700; color: var(--white); text-underline-offset: 4px; }
.flip__close {
	flex: none; border: 0; border-radius: 6px; padding: 8px 14px; cursor: pointer;
	background: rgba(255, 255, 255, .14); color: var(--white); font: 700 .8125rem var(--font);
	transition: background-color .15s ease, transform .1s ease-out;
}
.flip__close:hover { background: rgba(255, 255, 255, .24); }
.flip__close:active { transform: scale(.96); }

/* Without JavaScript the bio simply sits under the photo. */
html:not(.js) .flip__inner { aspect-ratio: auto; transform: none; }
html:not(.js) .flip__face { position: static; transform: none; }
html:not(.js) .flip__front { aspect-ratio: 4 / 5; }
html:not(.js) .flip__open, html:not(.js) .flip__close { display: none; }

/* ---------- Portfolio ---------- */

.pf-services { padding-bottom: 72px; }
.pf-cats { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.pf-cats li { padding: 22px; border-radius: 10px; background: var(--band); }
.pf-cats h2 { font-size: 1.0625rem; letter-spacing: -.01em; line-height: 1.3; }
.pf-cats p { margin-top: 8px; font-size: .875rem; line-height: 1.55; color: var(--muted); }

.pf-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.pf-filter button {
	border: 0; padding: 10px 16px; border-radius: 6px; cursor: pointer;
	background: var(--band); color: var(--ink); font: 600 .875rem var(--font);
	transition: background-color .2s ease, color .2s ease, transform .1s ease-out;
}
.pf-filter button:hover { background: #e4ecf0; }
.pf-filter button:active { transform: scale(.96); }
.pf-filter button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
html:not(.js) .pf-filter { display: none; }

.pf-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.pf-card { animation: panel-in .4s var(--spring); }
.pf-card { display: flex; flex-direction: column; align-items: flex-start; }
.pf-card__img { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--band); margin-bottom: 16px; }
.pf-card__img img { width: 100%; height: 100%; object-fit: cover; }
.pf-card__company { font-size: .875rem; font-weight: 700; color: var(--steel-text); }
.pf-card__company span { margin-left: 6px; padding: 2px 8px; border-radius: 4px; background: var(--band); font-size: .75rem; font-weight: 600; color: var(--muted); }
.pf-card h3 { margin-top: 6px; font-size: 1.25rem; line-height: 1.3; letter-spacing: -.015em; }
.pf-card__desc { margin-top: 8px; font-size: .9375rem; color: var(--muted); }
.pf-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.pf-card__tags span { padding: 4px 10px; border-radius: 4px; background: var(--band); font-size: .75rem; font-weight: 600; color: var(--steel-text); }
.pf-card__open { margin-top: auto; background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--font); }
.pf-dialog__brief { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
.pf-dialog__brief h3, .pf-dialog__work { font-size: 1rem; margin-bottom: 6px; }
.pf-dialog__brief p { color: var(--muted); font-size: .9375rem; }
.pf-dialog__work { margin-top: 28px; }
.pf-empty { color: var(--muted); }

.pf-dialog {
	width: min(960px, calc(100% - 32px)); max-height: calc(100% - 48px); padding: 32px;
	border: 0; border-radius: 14px; color: var(--ink); overflow: auto;
}
.pf-dialog::backdrop { background: rgba(4, 42, 61, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pf-dialog[open] { animation: dialog-in .45s var(--spring); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.pf-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pf-dialog__head .label { margin-bottom: 6px; }
.pf-dialog h2 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.pf-dialog__close {
	width: 42px; height: 42px; border: 0; border-radius: 6px; cursor: pointer;
	background: var(--band); color: var(--ink); font: 400 1.5rem/1 var(--font);
}
.pf-dialog__gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.pf-dialog__gallery img { width: 100%; border-radius: 8px; background: var(--band); }
.pf-dialog__gallery img:first-child { grid-column: 1 / -1; }

@media (prefers-reduced-motion: reduce) {
	.flip__face { transform: none !important; }
	.flip__back { opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s; }
	.flip.is-flipped .flip__back { opacity: 1; visibility: visible; }
	.pf-card, .pf-dialog[open] { animation: none; }
}

@media (max-width: 1080px) {
	.team { grid-template-columns: repeat(3, 1fr); }
	.pf-cats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
	.team { grid-template-columns: repeat(2, 1fr); }
	.pf-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.team { grid-template-columns: 1fr; gap: 16px; }
	.flip__inner { aspect-ratio: 4 / 4.6; }
	.pf-cats { grid-template-columns: 1fr 1fr; gap: 10px; }
	.pf-cats li { padding: 16px; }
	.pf-grid { grid-template-columns: 1fr; }
	.pf-dialog { padding: 22px; border-radius: 12px; }
	.pf-dialog h2 { font-size: 1.375rem; }
	.pf-dialog__gallery { grid-template-columns: 1fr; }
	.cta-band { flex-direction: column; align-items: flex-start; padding: 32px 22px; }
}


/* =========================================================================
 * Navigation sub-menu, buttons with icons, service pages, Our Group page
 * ====================================================================== */

/* Buttons and links that carry an icon */
.btn--icon svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.link--arrow { display: inline-flex; align-items: center; gap: 6px; }
.link--arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--spring); }
.link--arrow:hover svg { transform: translateX(3px); }
.svc__explore { margin-top: 20px; }

/* Advisory sub-menu */
.nav__has-sub { position: relative; }
.nav__sub-toggle {
	display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; border: 0; background: none; cursor: pointer;
	font: 600 .875rem/1.6 var(--font); color: var(--muted); vertical-align: middle;
}
.nav__sub-toggle::after {
	content: ""; width: 7px; height: 7px; margin-top: -3px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
	transform: rotate(45deg); transition: transform .2s ease;
}
.nav__sub-toggle[aria-expanded="true"]::after { transform: translateY(3px) rotate(-135deg); }
.nav__sub-toggle:hover, .nav__sub-toggle.is-active, .nav__sub-toggle[aria-expanded="true"] { color: var(--ink); }
.nav__sub {
	position: absolute; top: calc(100% + 14px); left: -16px; min-width: 240px; list-style: none; padding: 8px;
	background: var(--white); border-radius: 10px; box-shadow: 0 1px 2px rgba(7, 62, 89, .08), 0 16px 40px rgba(7, 62, 89, .16);
	opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s ease, transform .25s var(--spring), visibility .18s;
}
.nav__sub-toggle[aria-expanded="true"] + .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: 10px 12px; border-radius: 6px; font-size: .9375rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.nav__sub a:hover { background: var(--band); }
.nav__sub a[aria-current] { background: var(--band); box-shadow: inset 3px 0 0 var(--steel); }
.nav__sub-toggle { position: relative; }
.nav__sub-toggle.is-active::before { margin-left: -9px; } /* centre the dot under the label, not label + chevron */

/* Service pages */
.svc-hero { padding: 88px 0 72px; }
.svc-hero .display { max-width: 880px; }
.svc-hero .lede { max-width: 640px; }
/* Banner photos keep their right side for the subject; the white fade keeps the copy on the left readable. */
.svc-hero--img { background: linear-gradient(90deg, var(--white) 40%, rgba(255,255,255,.8) 55%, rgba(255,255,255,0) 75%), var(--hero-img) right center / cover no-repeat; }
.svc-hero--img .display, .svc-hero--img .lede { max-width: 600px; }
.svc-section { padding: 96px 0; }
.svc-section--band { background: var(--band); }
.info-cards { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.info-cards li { padding: 28px; border-radius: 10px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.svc-section--band .info-cards li { box-shadow: none; }
.info-cards h3 { font-size: 1.1875rem; letter-spacing: -.01em; margin-bottom: 8px; }
.info-cards p { color: var(--muted); }
.situations, .checklist { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.situations li, .checklist li {
	position: relative; padding: 20px 20px 20px 52px; border-radius: 10px; background: var(--white);
	font-size: 1.0625rem; font-weight: 600; line-height: 1.45; box-shadow: inset 0 0 0 1px var(--line);
}
.situations li::before { content: ""; position: absolute; left: 22px; top: 27px; width: 14px; height: 2px; background: var(--steel); }
.checklist li::before {
	content: ""; position: absolute; left: 20px; top: 21px; width: 18px; height: 18px; border-radius: 4px; box-shadow: inset 0 0 0 1.6px var(--steel);
}
.prose { max-width: 680px; }
.prose p { font-size: 1.125rem; line-height: 1.75; color: var(--muted); }
.prose p + p { margin-top: 16px; }
.svc-note { margin-top: 24px; max-width: 680px; color: var(--muted); }
.svc-section .link--arrow { margin-top: 24px; }
.svc-section .steps li { border-top-color: var(--ink); }
.questions { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.questions .situations { grid-template-columns: 1fr; }
.questions__fig { margin: 0; }
.questions__fig figcaption { margin-top: 12px; font-size: .8125rem; color: var(--muted); }
.faq { max-width: 820px; display: grid; gap: 10px; }
.faq details { border-radius: 10px; background: var(--band); }
.faq summary {
	list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
	font-size: 1.0625rem; font-weight: 700; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 16px; font-size: 1.5rem; font-weight: 400; color: var(--steel-text); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 22px; color: var(--muted); max-width: 680px; }
.contact__alt { margin: 8px 0 12px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.related { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 32px; }

/* Our Group page: structure diagram */
.org { padding-bottom: 96px; }
.org__root { display: flex; justify-content: center; padding: 20px; position: relative; }
.org__root img { height: 72px; width: auto; }
.org__branches { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; padding-top: 40px; }
.org__branches::before { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 20px; background: var(--pale); }
.org__branches::after { content: ""; position: absolute; top: 20px; left: 16.66%; right: 16.66%; height: 2px; background: var(--pale); }
.org__branches li { position: relative; padding: 28px; border-radius: 10px; background: var(--band); }
.org__branches li::before { content: ""; position: absolute; top: -20px; left: 50%; width: 2px; height: 20px; background: var(--pale); }
.org__branches h2 { font-size: 1.1875rem; letter-spacing: -.01em; margin-bottom: 8px; }
.org__branches p { color: var(--muted); }

/* Our Group page: companies by sector with a detail panel */
.sector + .sector { margin-top: 48px; }
.sector__title { font-size: 1.0625rem; color: var(--steel-text); margin-bottom: 14px; }
.sector__grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.co-tile {
	display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; height: 100%; padding: 14px 14px 16px;
	border: 0; border-radius: 10px; background: var(--band); cursor: pointer; text-align: left; font-family: var(--font); color: var(--ink);
	transition: box-shadow .2s ease, transform .1s ease-out;
}
.co-tile:hover { box-shadow: inset 0 0 0 1.5px var(--pale); }
.co-tile:active { transform: scale(.98); }
.co-tile[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.co-tile__logo { display: grid; place-items: center; width: 100%; height: 88px; padding: 12px; margin-bottom: 8px; border-radius: 6px; background: var(--white); }
.co-tile__logo img { width: 100%; height: 64px; object-fit: contain; }
.co-tile strong { font-size: .9375rem; line-height: 1.35; }
.co-tile > span:last-child { font-size: .8125rem; color: var(--muted); }
.co-panel {
	position: relative; display: grid; grid-template-columns: 160px 1fr; gap: 28px; align-items: start;
	margin-top: 12px; padding: 28px 64px 28px 28px; border-radius: 14px; background: var(--ink); color: var(--white);
	animation: panel-in .35s var(--spring);
}
.co-panel__logo { display: grid; place-items: center; height: 120px; padding: 16px; border-radius: 8px; background: var(--white); }
.co-panel__logo img { width: 100%; height: 88px; object-fit: contain; }
.co-panel .label { color: var(--accent); margin-bottom: 4px; }
.co-panel h4 { font-size: 1.375rem; color: var(--white); letter-spacing: -.015em; }
.co-panel p { color: rgba(255, 255, 255, .82); max-width: 640px; }
.co-panel h4 + p { margin-top: 8px; }
.co-panel .link { margin-top: 16px; color: var(--white); text-decoration-color: rgba(255, 255, 255, .4); }
.co-panel__close {
	position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border: 0; border-radius: 6px; cursor: pointer;
	background: rgba(255, 255, 255, .12); color: var(--white); font: 400 1.375rem/1 var(--font);
}

@media (prefers-reduced-motion: reduce) {
	.co-panel { animation: none; }
}

@media (max-width: 960px) {
	.nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 8px 12px; min-width: 0; display: none; }
	.nav__sub-toggle[aria-expanded="true"] + .nav__sub { display: block; }
	.nav__sub-toggle { width: 100%; justify-content: space-between; padding: 14px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
	.questions { grid-template-columns: 1fr; }
	.org__branches { grid-template-columns: 1fr; padding-top: 0; }
	.org__branches::before, .org__branches::after, .org__branches li::before { display: none; }
}
@media (max-width: 640px) {
	.svc-hero { padding: 56px 0 48px; }
	.svc-hero--img { padding-bottom: 80vw; background: var(--hero-img) right bottom / 170% auto no-repeat, var(--white); }
	.svc-section { padding: 72px 0; }
	.info-cards, .situations, .checklist, .pf-dialog__brief { grid-template-columns: 1fr; }
	.info-cards li { padding: 22px; }
	.co-panel { grid-template-columns: 1fr; padding: 22px; gap: 16px; }
	.co-panel__logo { height: 96px; }
	.sector__grid { grid-template-columns: 1fr 1fr; }
}

.group .link { color: var(--white); text-decoration-color: rgba(255, 255, 255, .4); }
.group .link:hover { text-decoration-color: var(--white); }

/* Grid columns may shrink below their content (long select options, long words). */
.contact > *, .form__grid > *, .questions > * { min-width: 0; }
.field select { max-width: 100%; text-overflow: ellipsis; }

/* =========================================================================
 * Scroll reveals: elements fade up as they come into view (main.js adds
 * .reveal and --rd). Uses `translate`, so it never fights hover/press transforms.
 * ====================================================================== */
.js .reveal { opacity: 0; translate: 0 18px; transition: opacity .7s ease, translate .8s var(--spring); transition-delay: var(--rd, 0s); }
/* Page hero text is hidden from the first paint (it is on screen before main.js runs), then fades in line by line. */
.js .svc-hero .container > *, .js .page-hero .container > * { opacity: 0; translate: 0 18px; }
.js .svc-hero .reveal, .js .page-hero .reveal { transition-duration: 1s, 1.1s; }
.js .reveal.is-in { opacity: 1; translate: none; }

/* Our Group diagram: logo appears, the lines draw out to each branch, then the cards rise in turn. */
.js .org .org__root { opacity: 0; scale: .94; transition: opacity .5s ease, scale .6s var(--spring); }
.js .org .org__branches::before { transform: scaleY(0); transform-origin: top; transition: transform .3s ease .4s; }
.js .org .org__branches::after { transform: scaleX(0); transform-origin: center; transition: transform .6s cubic-bezier(.65, 0, .35, 1) .7s; }
.js .org .org__branches li::before { transform: scaleY(0); transform-origin: top; transition: transform .3s ease 1.25s; }
.js .org .org__branches li { opacity: 0; translate: 0 22px; transition: opacity .6s ease, translate .8s var(--spring); transition-delay: calc(1.4s + var(--i, 0) * .14s); }
.js .org.is-in .org__root { opacity: 1; scale: 1; }
.js .org.is-in .org__branches::before, .js .org.is-in .org__branches::after, .js .org.is-in .org__branches li::before { transform: none; }
.js .org.is-in .org__branches li { opacity: 1; translate: none; }
@media (max-width: 960px) {
	.js .org .org__branches li { transition-delay: calc(.3s + var(--i, 0) * .14s); }
}

@media (prefers-reduced-motion: reduce) {
	.js .reveal, .js .svc-hero .container > *, .js .page-hero .container > *, .js .org .org__root, .js .org .org__branches li { opacity: 1; translate: none; scale: 1; transition: none; }
	.js .org .org__branches::before, .js .org .org__branches::after, .js .org .org__branches li::before { transform: none; transition: none; }
}


/* ---------- Team cards: foil shine, glare and the shiny easter egg ---------- */
.flip__front::before, .flip__front::after {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
	opacity: 0; transition: opacity .35s ease;
}
/* Rainbow foil that slides with the pointer. */
.flip__front::before {
	background: linear-gradient(115deg, transparent 22%, rgba(255, 90, 200, .55) 36%, rgba(90, 235, 255, .55) 44%, rgba(255, 238, 100, .5) 52%, rgba(130, 140, 255, .55) 60%, transparent 74%);
	background-size: 300% 300%; background-position: var(--px, 50%) var(--py, 50%);
	mix-blend-mode: color-dodge;
}
/* Light catching the card where the pointer is. */
.flip__front::after { background: radial-gradient(circle at var(--px, 50%) var(--py, 50%), rgba(255, 255, 255, .5), transparent 45%); mix-blend-mode: overlay; }
.flip.is-tilting .flip__front::before { opacity: .3; }
.flip.is-tilting .flip__front::after, .flip.is-dragging .flip__front::after { opacity: 1; }

/* Shiny rare mode (Konami code or five taps on the title). */
.shiny-cards .flip__inner { border-radius: var(--radius); box-shadow: 0 0 0 3px #e7c46a, 0 18px 40px -16px rgba(231, 196, 106, .8); }
.shiny-cards .flip__front::before { opacity: .7; animation: holo-drift 7s linear infinite; }
.shiny-cards .flip.is-tilting .flip__front::before { opacity: .9; animation: none; }
.shiny-cards .flip__open::before {
	content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
	background:
		radial-gradient(circle, #fff 0 1.5px, transparent 2.5px) 12% 22% / 100% 100% no-repeat,
		radial-gradient(circle, #fff 0 2px, transparent 3px) 78% 14% / 100% 100% no-repeat,
		radial-gradient(circle, #fff 0 1.5px, transparent 2.5px) 64% 58% / 100% 100% no-repeat,
		radial-gradient(circle, #fff 0 2px, transparent 3px) 24% 70% / 100% 100% no-repeat,
		radial-gradient(circle, #fff 0 1.5px, transparent 2.5px) 88% 80% / 100% 100% no-repeat;
	animation: twinkle 1.8s ease-in-out infinite alternate;
}
@keyframes holo-drift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
@keyframes twinkle { from { opacity: .25; } to { opacity: 1; } }

.egg-toast {
	position: fixed; left: 50%; bottom: 28px; z-index: 60; translate: -50% 20px; opacity: 0; pointer-events: none;
	padding: 12px 18px; border-radius: 10px; background: var(--ink); color: var(--white); font-weight: 700; font-size: .9375rem;
	box-shadow: 0 12px 30px rgba(4, 42, 61, .3); transition: opacity .3s ease, translate .45s var(--spring);
}
.egg-toast.is-shown { opacity: 1; translate: -50% 0; animation: toast-out 3s forwards; }
@keyframes toast-out { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
	.shiny-cards .flip__front::before, .shiny-cards .flip__open::before { animation: none; }
	.egg-toast { transition: opacity .2s ease; translate: -50% 0; }
}
