/* ==========================================================================
   TTD Modern – main stylesheet
   ========================================================================== */

:root {
	--navy: #2e3092;
	--navy-700: #24267a;
	--navy-900: #15174a;
	--orange: #f7931d;
	--orange-700: #c96f05;
	--lime: #cadb2a;
	--lime-700: #7f8a10;
	--ink: #191b3a;
	--text: #3b3e5c;
	--muted: #6b6f8c;
	--line: #e3e5f0;
	--surface: #f4f5fb;
	--white: #fff;

	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(21, 23, 74, .06), 0 8px 24px rgba(21, 23, 74, .06);
	--shadow-lg: 0 2px 4px rgba(21, 23, 74, .06), 0 20px 48px rgba(21, 23, 74, .12);
	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 76px;

	--font: "Century Gothic", CenturyGothic, "URW Gothic", "URW Gothic L", "TeX Gyre Adventor", AppleGothic, sans-serif;
}

/* Reset -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--orange-700); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .6em; font-weight: 750; }
p { margin: 0 0 1.1em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

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

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

.ttd-icon { width: 1.25em; height: 1.25em; flex: none; }

/* Buttons ---------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; gap: .55em;
	padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent;
	font-weight: 700; font-size: .975rem; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn .ttd-icon { width: 1.1em; height: 1.1em; transition: transform .2s; }
.btn:hover .ttd-icon { transform: translateX(3px); }
.btn--primary { background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(46, 48, 146, .25); }
.btn--primary:hover { background: var(--navy-700); color: #fff; transform: translateY(-1px); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { background: var(--lime); color: var(--navy-900); }
.btn--sm { padding: .6em 1.1em; font-size: .9rem; box-shadow: none; }

.eyebrow {
	display: inline-flex; align-items: center; gap: .6em;
	margin: 0 0 1rem; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-700);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: currentColor; }

.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; text-decoration: none; }
.link-arrow .ttd-icon { transition: transform .2s; }
.link-arrow:hover .ttd-icon { transform: translateX(3px); }

/* Header ------------------------------------------------------------------ */
.brand-stripe { display: flex; height: 4px; }
.brand-stripe span { flex: 1; }
.brand-stripe span:nth-child(1) { background: var(--navy); flex: 2; }
.brand-stripe span:nth-child(2) { background: var(--orange); }
.brand-stripe span:nth-child(3) { background: var(--lime); }

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s, box-shadow .2s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(21, 23, 74, .06); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand__img { width: 52px; height: 52px; object-fit: contain; }
.brand__text { font-size: .78rem; font-weight: 700; line-height: 1.2; letter-spacing: .02em; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); }
.brand:hover { color: var(--ink); }
/* Header logo sits top right: text first, mark on the far right. */
.brand--header { flex-direction: row-reverse; margin-left: auto; text-align: right; }
.brand--header .brand__text { padding-left: 0; border-left: 0; padding-right: 12px; border-right: 1px solid var(--line); }

.site-nav { display: flex; flex: 1; align-items: center; gap: 20px; }
.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.primary-nav .menu > li { position: relative; display: flex; align-items: center; }
.primary-nav .menu > li > a {
	display: block; padding: 10px 12px; border-radius: 8px;
	font-weight: 650; font-size: .95rem; color: var(--ink); text-decoration: none;
}
.primary-nav .menu > li > a:hover,
.primary-nav .menu > li:focus-within > a { color: var(--navy); background: var(--surface); }
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current-menu-parent > a,
.primary-nav .current_page_item > a,
.primary-nav .current_page_ancestor > a { color: var(--navy) !important; box-shadow: inset 0 -2px 0 var(--orange); border-radius: 8px 8px 0 0; }

.submenu-toggle {
	display: none; background: none; border: 0; padding: 6px; margin-left: -8px; color: var(--muted); cursor: pointer; border-radius: 6px;
}
.submenu-toggle .ttd-icon { width: 16px; height: 16px; transition: transform .2s; }
.submenu-toggle[aria-expanded="true"] .ttd-icon { transform: rotate(180deg); }

.primary-nav .sub-menu, .primary-nav .children {
	list-style: none; margin: 0; padding: 8px;
	position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px;
	background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.primary-nav .sub-menu::before, .primary-nav .children::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu,
.primary-nav li.is-open > .sub-menu,
.primary-nav li:hover > .children,
.primary-nav li:focus-within > .children { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a, .primary-nav .children a {
	display: block; padding: 9px 12px; border-radius: 8px; font-size: .925rem; font-weight: 600; color: var(--text); text-decoration: none;
}
.primary-nav .sub-menu a:hover, .primary-nav .children a:hover { background: var(--surface); color: var(--navy); }
.primary-nav .sub-menu .current-menu-item > a { background: var(--surface); color: var(--navy); }

.site-nav__extra { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.lang-switch ul { list-style: none; margin: 0; padding: 3px; display: flex; gap: 2px; background: var(--surface); border-radius: 999px; }
.lang-switch a {
	display: block; padding: 5px 11px; border-radius: 999px;
	font-size: .78rem; font-weight: 800; letter-spacing: .06em; color: var(--muted); text-decoration: none;
}
.lang-switch a:hover { color: var(--navy); }
.lang-switch a.is-active { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(21, 23, 74, .15); }

.nav-toggle {
	display: none; width: 44px; height: 44px; border-radius: 12px;
	border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle .ttd-icon { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

@media (max-width: 1080px) {
	.site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: fixed; inset: calc(var(--header-h) + 4px) 0 0 0; z-index: 49;
		flex-direction: column; align-items: stretch; gap: 0;
		background: #fff; padding: 12px var(--gutter) 32px; overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
	}
	.admin-bar .site-nav { top: calc(var(--header-h) + 4px + 46px); }
	.site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.primary-nav .menu > li > a { flex: 1; padding: 14px 4px; font-size: 1.05rem; box-shadow: none !important; }
	.submenu-toggle { display: inline-flex; padding: 12px; margin: 0; }
	.primary-nav .sub-menu, .primary-nav .children {
		position: static; min-width: 0; width: 100%; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 10px 8px;
		opacity: 1; visibility: visible; transform: none; display: none;
	}
	.primary-nav li.is-open > .sub-menu, .primary-nav li.is-open > .children { display: block; }
	.primary-nav li:hover > .sub-menu { display: none; }
	.primary-nav li.is-open:hover > .sub-menu { display: block; }
	.site-nav__extra { justify-content: space-between; padding-top: 20px; margin-left: 0; }
	body.nav-open { overflow: hidden; }
}
@media (max-width: 480px) {
	.brand__text { display: none; }
}

/* Hero (front page) ------------------------------------------------------- */
.hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(900px 400px at 85% -10%, rgba(202, 219, 42, .18), transparent 60%),
		radial-gradient(700px 400px at -10% 110%, rgba(46, 48, 146, .10), transparent 60%),
		var(--surface);
	padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 112px);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin-bottom: .5em; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text); max-width: 36em; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { position: relative; }
.hero__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); position: relative; z-index: 1; }
.hero__tiles { position: absolute; left: -28px; bottom: -28px; display: grid; grid-template-columns: repeat(2, 52px); gap: 6px; z-index: 2; }
.hero__tiles span { width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 6px 16px rgba(21, 23, 74, .18); }
.hero__tiles span:nth-child(1) { background: var(--navy); }
.hero__tiles span:nth-child(2) { background: var(--orange); }
.hero__tiles span:nth-child(3) { background: var(--lime); }
.hero__media::before {
	content: ""; position: absolute; top: -18px; right: -18px; width: 120px; height: 120px; border-radius: 20px;
	background-image: radial-gradient(var(--navy) 1.5px, transparent 1.5px); background-size: 12px 12px; opacity: .25;
}
@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__media { max-width: 560px; margin-left: 28px; }
}

/* Sections ---------------------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--surface { background: var(--surface); }
.section__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.025em; margin: 0; }

.intro__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro__text p:first-child { font-size: 1.2rem; color: var(--ink); font-weight: 500; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li {
	display: flex; align-items: center; gap: 18px; padding: 18px 22px; background: #fff;
	border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.facts strong { font-size: 2.1rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; line-height: 1; min-width: 2.6ch; }
.facts li:nth-child(2) strong { color: var(--orange-700); }
.facts li:nth-child(3) strong { color: var(--lime-700); }
.facts span { font-weight: 600; color: var(--text); line-height: 1.35; }
@media (max-width: 900px) { .intro__grid { grid-template-columns: 1fr; } }

/* Link cards (sub pages) -------------------------------------------------- */
.link-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 2rem 0 0; }
.link-cards--3 { grid-template-columns: repeat(3, 1fr); margin: 0; }
@media (max-width: 900px) { .link-cards--3 { grid-template-columns: 1fr; } }
.link-card {
	position: relative; display: flex; flex-direction: column; gap: 10px;
	padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	text-decoration: none; color: var(--text); box-shadow: var(--shadow);
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--text); }
.link-card__icon {
	width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
	background: rgba(46, 48, 146, .08); color: var(--navy); margin-bottom: 6px;
}
.link-card__icon .ttd-icon { width: 26px; height: 26px; }
.link-card:nth-child(3n+2) .link-card__icon { background: rgba(247, 147, 29, .12); color: var(--orange-700); }
.link-card:nth-child(3n+3) .link-card__icon { background: rgba(202, 219, 42, .22); color: var(--lime-700); }
.link-card__title { font-size: 1.3rem; font-weight: 800; color: var(--ink); letter-spacing: -.015em; }
.link-card__text { font-size: .975rem; line-height: 1.6; flex: 1; }
.link-card__more { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--navy); font-size: .925rem; margin-top: 6px; }
.link-card__more .ttd-icon { width: 1.05em; height: 1.05em; transition: transform .2s; }
.link-card:hover .link-card__more .ttd-icon { transform: translateX(4px); }

/* Tech tiles (front) ------------------------------------------------------ */
.tech-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tech-tiles a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; padding: 26px; background: #fff; height: 100%; text-decoration: none; color: var(--text); transition: background-color .2s; }
.tech-tiles a:hover { background: var(--surface); }
.tech-tiles__icon { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--navy); border: 1px solid var(--line); background: #fff; }
.tech-tiles__icon .ttd-icon { width: 22px; height: 22px; }
.tech-tiles__title { font-weight: 800; color: var(--ink); font-size: 1.1rem; }
.tech-tiles__text { font-size: .9rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) { .tech-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tech-tiles { grid-template-columns: 1fr; } }

/* Logo wall --------------------------------------------------------------- */
.logo-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.logo-wall li { display: grid; place-items: center; height: 104px; padding: 14px 18px; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.logo-wall img { max-height: 72px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .25s, opacity .25s; }
.logo-wall li:hover img { filter: none; opacity: 1; }
.logo-wall__text { font-weight: 800; color: var(--muted); text-align: center; font-size: .95rem; line-height: 1.2; }
@media (max-width: 1000px) { .logo-wall { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .logo-wall { grid-template-columns: repeat(2, 1fr); } }

/* CTA ----------------------------------------------------------------------- */
.cta { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.cta::after {
	content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
	background: conic-gradient(var(--orange) 0 25%, var(--lime) 0 50%, transparent 0); opacity: .9;
}
.cta__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-block: clamp(44px, 6vw, 72px); }
.cta__title { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .3em; }
.cta__text { color: rgba(255, 255, 255, .82); margin: 0; max-width: 40em; }
.cta__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-right: clamp(0px, 8vw, 140px); }
.cta__phone { display: inline-flex; align-items: center; gap: .5em; color: #fff; font-weight: 700; text-decoration: none; }
.cta__phone:hover { color: var(--lime); }
@media (max-width: 700px) { .cta::after { width: 120px; height: 120px; right: -60px; top: -60px; } }

/* Page hero (inner pages) --------------------------------------------------- */
.page-hero { background: var(--surface); padding: clamp(32px, 5vw, 56px) 0 clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumbs .sep { opacity: .5; }
.page-hero__row { display: flex; align-items: center; gap: 18px; }
.page-hero__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--navy); color: #fff; flex: none; box-shadow: 0 8px 20px rgba(46, 48, 146, .25); }
.page-hero__icon .ttd-icon { width: 28px; height: 28px; }
.page-hero__title { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; letter-spacing: -.03em; margin: 0; }
.page-hero__lead { max-width: 52em; margin: 18px 0 0; font-size: 1.1rem; color: var(--text); }
.page-hero--404 { padding-block: clamp(64px, 10vw, 140px); }
.page-hero--404 .page-hero__lead { margin-bottom: 2rem; }

/* Page body ------------------------------------------------------------------ */
.page-body { padding-block: clamp(40px, 6vw, 72px); }
.page-body--aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.page-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.page-aside__figure { margin: 0; padding: 24px; background: var(--surface); border-radius: 20px; }
.page-aside__figure img { width: 100%; border-radius: 12px; mix-blend-mode: multiply; }
@media (max-width: 900px) {
	.page-body--aside { grid-template-columns: 1fr; }
	.page-aside { position: static; order: -1; max-width: 260px; }
}

.entry-content { max-width: 800px; }
.page-body:not(.page-body--aside) .entry-content { max-width: none; }
.page-body:not(.page-body--aside) .entry-content > p,
.page-body:not(.page-body--aside) .entry-content > h2,
.page-body:not(.page-body--aside) .entry-content > h3,
.page-body:not(.page-body--aside) .entry-content > ul.wp-block-list { max-width: 800px; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { font-size: 1.6rem; margin-top: 2em; }
.entry-content h3 { font-size: 1.2rem; margin-top: 1.8em; }
.entry-content h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-700); margin: 1.6em 0 .7em; }
.entry-content ul { padding-left: 1.2em; }
.entry-content li { margin-bottom: .35em; }
.entry-content li::marker { color: var(--orange); }
.entry-content .ttd-note { padding: 16px 20px; border-radius: 12px; background: #fff7ea; border-left: 4px solid var(--orange); color: var(--ink); }

/* Technology pages: lists as chips */
.section-tech .entry-content h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-700); margin: 2.2em 0 1em; }
.section-tech .entry-content h3:first-child { margin-top: 0; }
.section-tech .entry-content ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.section-tech .entry-content li {
	margin: 0; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
	font-size: .95rem; font-weight: 600; color: var(--ink); line-height: 1.4;
}

/* Feature cards (portfolio sub pages) ----------------------------------------- */
.ttd-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 1.5rem 0 2.5rem; }
.ttd-cards:has(> :nth-child(4):last-child), .ttd-cards:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .ttd-cards, .ttd-cards:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .ttd-cards, .ttd-cards:has(> :nth-child(4):last-child), .ttd-cards:has(> :nth-child(2):last-child) { grid-template-columns: 1fr; } }
.ttd-card {
	position: relative; padding: 28px 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
	box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.ttd-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.ttd-card::before {
	content: ""; display: block; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px;
	background-color: rgba(46, 48, 146, .08);
}
.ttd-card::after {
	content: ""; position: absolute; top: 40px; left: 38px; width: 24px; height: 24px;
	background-color: var(--navy);
	-webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.ttd-card:not([data-icon])::after { display: none; }
.ttd-card:nth-child(3n+2)::before { background-color: rgba(247, 147, 29, .12); }
.ttd-card:nth-child(3n+2)::after { background-color: var(--orange-700); }
.ttd-card:nth-child(3n+3)::before { background-color: rgba(202, 219, 42, .22); }
.ttd-card:nth-child(3n+3)::after { background-color: var(--lime-700); }
.ttd-card h3 { font-size: 1.15rem; margin: 0 0 .5em !important; }
.ttd-card p { margin: 0; font-size: .95rem; color: var(--text); line-height: 1.6; }
.entry-content > h2 + .ttd-cards { margin-top: 1rem; }

/* Icon images for cards (data-icon attribute) */
.ttd-card[data-icon="analysis"] { --icon: url("../icons/analysis.svg"); }
.ttd-card[data-icon="privacy"] { --icon: url("../icons/privacy.svg"); }
.ttd-card[data-icon="project"] { --icon: url("../icons/project.svg"); }
.ttd-card[data-icon="controlling"] { --icon: url("../icons/controlling.svg"); }
.ttd-card[data-icon="security"] { --icon: url("../icons/security.svg"); }
.ttd-card[data-icon="service"] { --icon: url("../icons/service.svg"); }
.ttd-card[data-icon="office"] { --icon: url("../icons/office.svg"); }
.ttd-card[data-icon="database"] { --icon: url("../icons/database.svg"); }
.ttd-card[data-icon="web"] { --icon: url("../icons/web.svg"); }
.ttd-card[data-icon="more"] { --icon: url("../icons/more.svg"); }
.ttd-card[data-icon="code"] { --icon: url("../icons/code.svg"); }
.ttd-card[data-icon="server"] { --icon: url("../icons/server.svg"); }
.ttd-card[data-icon="phone"] { --icon: url("../icons/phone.svg"); }
.ttd-card[data-icon="tablet"] { --icon: url("../icons/tablet.svg"); }
.ttd-card[data-icon="chart"] { --icon: url("../icons/chart.svg"); }

/* Sibling navigation ------------------------------------------------------------ */
.sibling-nav { padding-bottom: clamp(48px, 6vw, 80px); }
.sibling-nav__label { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.sibling-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sibling-nav a {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px;
	border: 1px solid var(--line); background: #fff; text-decoration: none; font-weight: 650; color: var(--ink); font-size: .95rem;
}
.sibling-nav a .ttd-icon { width: 18px; height: 18px; color: var(--navy); }
.sibling-nav a:hover { border-color: var(--navy); color: var(--navy); }
.sibling-nav a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.sibling-nav a[aria-current="page"] .ttd-icon { color: #fff; }

/* References ---------------------------------------------------------------------- */
.entry-content .ref-grid, .ref-grid { list-style: none; margin: 2rem 0 0; padding: 0; max-width: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ref-tile {
	display: flex; flex-direction: column; width: 100%; height: 100%; text-align: left; cursor: pointer;
	padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--text);
	box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s;
}
button.ref-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--navy); }
.ref-tile__logo { display: grid; place-items: center; height: 110px; margin-bottom: 14px; border-radius: 10px; background: var(--surface); padding: 14px; }
.ref-tile__logo img { max-height: 76px; width: auto; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ref-tile__logo--text { font-weight: 800; font-size: 1.15rem; color: var(--navy); text-align: center; line-height: 1.2; }
.ref-tile__name { font-weight: 800; color: var(--ink); line-height: 1.3; }
.ref-tile__loc { font-size: .875rem; color: var(--muted); margin-top: 2px; }

.ref-dialog {
	width: min(860px, calc(100vw - 32px)); max-height: min(86vh, 900px); padding: 0; border: 0; border-radius: 20px;
	box-shadow: var(--shadow-lg); color: var(--text);
}
.ref-dialog::backdrop { background: rgba(21, 23, 74, .55); backdrop-filter: blur(3px); }
.ref-dialog[open] { animation: dlg-in .22s ease-out; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.ref-dialog__head {
	position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 18px;
	padding: 22px 24px; background: #fff; border-bottom: 1px solid var(--line);
}
.ref-dialog__logo { flex: none; width: 88px; height: 56px; display: grid; place-items: center; }
.ref-dialog__logo img { max-height: 56px; width: auto; object-fit: contain; }
.ref-dialog__title { font-size: 1.35rem; margin: 0; }
.ref-dialog__loc { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: .9rem; color: var(--muted); }
.ref-dialog__loc .ttd-icon { width: 16px; height: 16px; }
.ref-dialog__close {
	margin-left: auto; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
	display: grid; place-items: center; cursor: pointer; color: var(--ink); flex: none;
}
.ref-dialog__close:hover { border-color: var(--navy); color: var(--navy); }
.ref-dialog__body { padding: 8px 28px 28px; max-width: none; }
.ref-dialog__body .wp-block-columns { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; }
.ref-dialog__body .wp-block-column:first-child ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ref-dialog__body .wp-block-column:first-child li { margin: 0; padding: 4px 11px; border-radius: 999px; background: var(--surface); font-size: .85rem; font-weight: 600; color: var(--ink); }
.ref-dialog__body .wp-block-column:last-child h4 { color: var(--navy); }
.ref-dialog__body li { font-size: .95rem; }
@media (max-width: 700px) { .ref-dialog__body .wp-block-columns { grid-template-columns: 1fr; gap: 0; } }

/* Core columns (front end fallback) */
.wp-block-columns { display: flex; gap: 32px; flex-wrap: wrap; }
.wp-block-column { flex: 1 1 260px; min-width: 0; }

/* Contact ---------------------------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: 360px 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; margin-top: 2rem; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-card { padding: 28px; border-radius: 20px; background: var(--navy); color: rgba(255, 255, 255, .88); position: relative; overflow: hidden; }
.contact-card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: conic-gradient(var(--orange) 0 25%, var(--lime) 0 50%, transparent 0); }
.contact-card__title { color: #fff; font-size: 1.1rem !important; margin: 0 0 1.2em !important; line-height: 1.4; }
.contact-card a { color: #fff; }
.contact-card a:hover { color: var(--lime); }
.contact-card .contact-list .ttd-icon { color: var(--lime); }
.contact-card .muted { color: rgba(255, 255, 255, .6); }
.contact-card .social { margin-top: 22px; position: relative; z-index: 1; }
.contact-card .social a { border-color: rgba(255, 255, 255, .25); color: #fff; }

.contact-list { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; margin: 0; line-height: 1.5; }
.contact-list .ttd-icon { width: 20px; height: 20px; margin-top: 2px; color: var(--navy); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.social { list-style: none; margin: 0; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.social li { margin: 0; }
.social a {
	display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
	font-size: .8rem; font-weight: 700; text-decoration: none; color: var(--ink);
}
.social a .ttd-icon { width: 13px; height: 13px; opacity: .6; }
.social a:hover { border-color: var(--navy); color: var(--navy); }

.contact-form { padding: clamp(24px, 3vw, 36px); border-radius: 20px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.contact-form__title { font-size: 1.35rem !important; margin: 0 0 1.2em !important; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 600px) { .field-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.field .req { color: var(--orange-700); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
	width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #cfd2e3; background: #fff; color: var(--ink);
	font: inherit; font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(46, 48, 146, .12); }
.field.has-error input, .field.has-error textarea { border-color: #c62828; }
.field__error { color: #c62828; font-size: .85rem; font-weight: 600; margin: 6px 0 0; }
.field--check { margin: 18px 0 22px; }
.field--check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .9rem; color: var(--text); }
.field--check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--navy); flex: none; }
.form-hint { font-size: .8rem; color: var(--muted); margin: 14px 0 0; }
.form-notice { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; }
.form-notice--error { background: #fdecec; color: #8e1c1c; }
.form-notice--success { display: flex; gap: 14px; align-items: flex-start; background: #f1f7d6; color: #3e4706; padding: 24px; border-radius: 20px; }
.form-notice--success .ttd-icon { width: 28px; height: 28px; color: var(--lime-700); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer ----------------------------------------------------------------------------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); padding-block: clamp(48px, 6vw, 72px); }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__tagline { margin: 18px 0 20px; max-width: 30em; }
.site-footer__title { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.site-footer__company { font-weight: 700; color: var(--ink); margin-bottom: 14px; line-height: 1.5; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-menu a { color: var(--text); text-decoration: none; font-weight: 600; }
.footer-menu a:hover { color: var(--navy); text-decoration: underline; }
.site-footer__bottom { border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.site-footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px; }
.site-footer__bottom p { margin: 0; }
.legal-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.legal-menu a { color: var(--muted); text-decoration: none; }
.legal-menu a:hover { color: var(--navy); text-decoration: underline; }

/* Misc --------------------------------------------------------------------------------- */
.post-teaser { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.alignwide { max-width: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.site-header, .site-footer, .cta, .sibling-nav { display: none; }
	.page-hero { background: none; border: 0; }
}

.ref-grid > li { margin: 0; }
