/* ==========================================================================
   TK Solutions Modern — main stylesheet
   Dark charcoal base + light-blue accent, carried over from the previous
   Shuttershot theme's palette, rebuilt with modern layout/typography.
   ========================================================================== */

:root {
	--tkm-bg: #0f1216;
	--tkm-bg-alt: #14181e;
	--tkm-surface: #1b212a;
	--tkm-surface-2: #222a35;
	--tkm-border: #2a323d;
	--tkm-text: #eef1f5;
	--tkm-text-muted: #97a2af;
	--tkm-accent-1: #4a90d9;
	--tkm-accent-2: #3b6ea5;
	--tkm-accent-3: #6bb0e8;
	--tkm-accent-4: #2c5478;
	--tkm-radius: 14px;
	--tkm-max: 1160px;
	--tkm-ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--tkm-bg);
	color: var(--tkm-text);
	font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--tkm-accent-3); }

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Fixed background photo crossfade ---------- */
/* Same London / NYC photo set as the previous theme's fullscreen
   slideshow, sitting behind everything on every page. */

.tkm-bg {
	position: fixed;
	inset: 0;
	z-index: -2;
	overflow: hidden;
	background: var(--tkm-bg);
}

.tkm-bg__slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	animation: tkmBgFade 42s infinite;
}

.tkm-bg__slide:nth-child(1) { animation-delay: 0s; }
.tkm-bg__slide:nth-child(2) { animation-delay: 6s; }
.tkm-bg__slide:nth-child(3) { animation-delay: 12s; }
.tkm-bg__slide:nth-child(4) { animation-delay: 18s; }
.tkm-bg__slide:nth-child(5) { animation-delay: 24s; }
.tkm-bg__slide:nth-child(6) { animation-delay: 30s; }
.tkm-bg__slide:nth-child(7) { animation-delay: 36s; }

@keyframes tkmBgFade {
	0%   { opacity: 0; }
	4%   { opacity: 1; }
	16%  { opacity: 1; }
	21%  { opacity: 0; }
	100% { opacity: 0; }
}

.tkm-bg__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(9, 11, 14, .5) 0%, rgba(9, 11, 14, .68) 55%, rgba(9, 11, 14, .88) 100%);
}

@media (prefers-reduced-motion: reduce) {
	.tkm-bg__slide { animation: none; opacity: 0; }
	.tkm-bg__slide:first-child { opacity: 1; }
}

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

.tkm-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(15, 18, 22, .85);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--tkm-border);
}

.tkm-header__inner {
	max-width: var(--tkm-max);
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.tkm-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--tkm-text);
}

.tkm-brand__mark,
.tkm-brand img {
	width: 40px;
	height: 40px;
	object-fit: contain;
}

.tkm-brand__name {
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: .01em;
}

.tkm-header__cta {
	color: var(--tkm-bg);
	background: var(--tkm-accent-1);
	padding: 9px 18px;
	border-radius: 999px;
	font-weight: 600;
	font-size: .92rem;
	text-decoration: none;
	transition: background .2s var(--tkm-ease), transform .2s var(--tkm-ease);
	white-space: nowrap;
}

.tkm-header__cta:hover,
.tkm-header__cta:focus-visible {
	background: var(--tkm-accent-3);
	transform: translateY(-1px);
}

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

.tkm-hero {
	max-width: var(--tkm-max);
	margin: 0 auto;
	padding: 72px 24px 40px;
	text-align: center;
}

.tkm-hero__eyebrow {
	margin: 0 0 14px;
	text-transform: uppercase;
	letter-spacing: .14em;
	font-size: .8rem;
	font-weight: 700;
	color: var(--tkm-accent-3);
}

.tkm-hero__title {
	margin: 0 0 18px;
	font-size: clamp(2rem, 4.5vw, 3.2rem);
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -.01em;
}

.tkm-hero__lede {
	margin: 0 auto;
	max-width: 640px;
	color: var(--tkm-text-muted);
	font-size: 1.1rem;
}

/* ---------- Tiles (centerpiece) ---------- */

.tkm-tiles {
	max-width: 900px;
	margin: 0 auto;
	padding: 16px 24px 88px;
}

.tkm-tiles__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 22px;
}

.tkm-tile {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: var(--tkm-radius);
	overflow: hidden;
	box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
}

.tkm-tile__hit {
	position: absolute;
	inset: 0;
	display: block;
	text-decoration: none;
	color: inherit;
	border-radius: inherit;
	outline-offset: 4px;
}

.tkm-tile__face,
.tkm-tile__back {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 20px;
	border-radius: inherit;
}

.tkm-tile__face {
	z-index: 2;
	background: color-mix(in srgb, var(--tkm-surface) 62%, transparent);
	border: 1px solid rgba(255, 255, 255, .12);
	backdrop-filter: blur(7px);
	transition: transform .6s var(--tkm-ease), opacity .6s var(--tkm-ease);
	will-change: transform;
}

.tkm-tile__icon {
	width: 44px;
	height: 44px;
	margin-bottom: 14px;
	color: var(--tkm-accent-3);
}
.tkm-tile__icon svg { width: 100%; height: 100%; }

.tkm-tile__facetitle {
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: -.01em;
}

.tkm-tile__back {
	z-index: 1;
	justify-content: flex-end;
	align-items: flex-start;
	text-align: left;
	color: #fff;
	background-image: linear-gradient(155deg, color-mix(in srgb, var(--tile-a, var(--tkm-accent-1)) 72%, transparent) 0%, color-mix(in srgb, var(--tile-b, var(--tkm-accent-2)) 72%, transparent) 100%);
	backdrop-filter: blur(7px);
}

.tkm-tile__kicker {
	text-transform: uppercase;
	letter-spacing: .1em;
	font-size: .72rem;
	font-weight: 700;
	opacity: .85;
	margin-bottom: 6px;
}

.tkm-tile__backtitle {
	font-size: 1.2rem;
	font-weight: 800;
	margin-bottom: 8px;
}

.tkm-tile__excerpt {
	font-size: .92rem;
	line-height: 1.5;
	opacity: .95;
	margin-bottom: 14px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tkm-tile__cta {
	font-weight: 700;
	font-size: .88rem;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* Per-tile accent + the direction each face slides away on reveal —
   echoes the four panes of the logo opening outward from the centre. */
.tkm-tile--1 { --tile-a: #5aa1e6; --tile-b: #2c5478; }
.tkm-tile--2 { --tile-a: #4a90d9; --tile-b: #21405c; }
.tkm-tile--3 { --tile-a: #6bb0e8; --tile-b: #3b6ea5; }
.tkm-tile--4 { --tile-a: #3b6ea5; --tile-b: #17283a; }

.tkm-tile--1:hover .tkm-tile__face,
.tkm-tile--1:focus-within .tkm-tile__face,
.tkm-tile--1.is-open .tkm-tile__face { transform: translate(-115%, -115%) rotate(-8deg); }

.tkm-tile--2:hover .tkm-tile__face,
.tkm-tile--2:focus-within .tkm-tile__face,
.tkm-tile--2.is-open .tkm-tile__face { transform: translate(115%, -115%) rotate(8deg); }

.tkm-tile--3:hover .tkm-tile__face,
.tkm-tile--3:focus-within .tkm-tile__face,
.tkm-tile--3.is-open .tkm-tile__face { transform: translate(-115%, 115%) rotate(8deg); }

.tkm-tile--4:hover .tkm-tile__face,
.tkm-tile--4:focus-within .tkm-tile__face,
.tkm-tile--4.is-open .tkm-tile__face { transform: translate(115%, 115%) rotate(-8deg); }

.tkm-tile__hit:hover .tkm-tile__face,
.tkm-tile__hit:focus-visible .tkm-tile__face { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
	.tkm-tile__face { transition: opacity .3s ease; }
	.tkm-tile--1:hover .tkm-tile__face,
	.tkm-tile--2:hover .tkm-tile__face,
	.tkm-tile--3:hover .tkm-tile__face,
	.tkm-tile--4:hover .tkm-tile__face,
	.tkm-tile.is-open .tkm-tile__face { transform: none; opacity: 0; }
}

@media (max-width: 560px) {
	.tkm-tiles__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
	.tkm-tile { aspect-ratio: 1 / 1; }
	.tkm-tile__facetitle { font-size: .95rem; }
	.tkm-tile__backtitle { font-size: 1.05rem; }
	.tkm-tile__excerpt { font-size: .82rem; }
}

/* ---------- The "frame" — a centered card holding page text over the
   photo background, carried over from the previous theme's floating
   white "incasing" panel. ---------- */

.tkm-frame {
	max-width: 960px;
	margin: 0 auto;
	background: rgba(20, 24, 30, .58);
	border: 1px solid rgba(255, 255, 255, .09);
	border-radius: 20px;
	padding: 48px 64px;
	box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .65);
	backdrop-filter: blur(14px);
}

.tkm-frame--bottom { margin: 0 auto 80px; }

@media (max-width: 640px) {
	.tkm-frame { padding: 32px 24px; border-radius: 16px; }
}

/* ---------- Content ---------- */

.tkm-main--page { max-width: var(--tkm-max); margin: 0 auto; padding: 56px 24px 88px; }

.tkm-page-header { margin-bottom: 28px; }

.tkm-page-title {
	font-size: clamp(1.7rem, 3.4vw, 2.4rem);
	font-weight: 800;
	letter-spacing: -.01em;
	margin: 0 0 8px;
}

.tkm-page-meta { color: var(--tkm-text-muted); font-size: .9rem; margin: 0; }

.tkm-content h2, .tkm-page-body h2 { font-size: 1.5rem; margin-top: 2em; }
.tkm-content h3, .tkm-page-body h3 { font-size: 1.2rem; margin-top: 1.6em; }
.tkm-content p, .tkm-page-body p { color: var(--tkm-text); }
.tkm-content a, .tkm-page-body a { text-decoration: underline; text-underline-offset: 2px; }

.tkm-content table, .tkm-page-body table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	font-size: .95rem;
}
.tkm-content table th, .tkm-content table td,
.tkm-page-body table th, .tkm-page-body table td {
	border: 1px solid var(--tkm-border);
	padding: 8px 12px;
	text-align: left;
}
.tkm-content table th, .tkm-page-body table th { background: var(--tkm-surface); }

.tkm-embed { position: relative; margin: 1.5em 0; }
.tkm-embed iframe { width: 100%; border: 1px solid var(--tkm-border); border-radius: 10px; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 1.5em 0; }
.gallery-item img { border-radius: 10px; }
.gallery-caption { font-size: .82rem; color: var(--tkm-text-muted); margin-top: 4px; }

.tkm-content--404 { text-align: center; }

.tkm-card {
	padding: 20px 0;
	border-bottom: 1px solid var(--tkm-border);
}
.tkm-card__title { margin: 0 0 8px; font-size: 1.2rem; }
.tkm-card__title a { color: var(--tkm-text); text-decoration: none; }
.tkm-card__excerpt { color: var(--tkm-text-muted); }

/* ---------- Clients & partner badge ---------- */

.tkm-clients-section { padding: 0 24px 48px; }

.tkm-frame--gap-top { margin-top: 56px; }

.tkm-clients__heading {
	margin: 0 0 24px;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: .14em;
	font-size: .8rem;
	font-weight: 700;
	color: var(--tkm-text-muted);
}

.tkm-clients__grid {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}

.tkm-clients__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 148px;
	height: 84px;
	padding: 14px 18px;
	background: rgba(255, 255, 255, .92);
	border-radius: 12px;
	box-shadow: 0 12px 26px -16px rgba(0, 0, 0, .55);
	transition: transform .25s var(--tkm-ease);
}
.tkm-clients__item a:hover .tkm-clients__logo,
.tkm-clients__item a:focus-visible .tkm-clients__logo { transform: translateY(-3px); }

.tkm-clients__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.tkm-partner-badge {
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 360px;
	margin: 0 auto;
	padding: 14px 20px;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 14px;
	text-decoration: none;
	color: var(--tkm-text);
	transition: background .2s var(--tkm-ease), border-color .2s var(--tkm-ease);
}
.tkm-partner-badge:hover,
.tkm-partner-badge:focus-visible {
	background: rgba(255, 255, 255, .1);
	border-color: rgba(255, 255, 255, .22);
}

.tkm-partner-badge__icon {
	flex: none;
	width: 30px;
	height: 30px;
	color: var(--tkm-accent-3);
}
.tkm-partner-badge__icon svg { width: 100%; height: 100%; }

.tkm-partner-badge__label { display: block; font-weight: 700; font-size: .92rem; }
.tkm-partner-badge__link { display: block; font-size: .8rem; color: var(--tkm-text-muted); }

.tkm-partner-badge--mini {
	max-width: none;
	margin: 0;
	padding: 8px 14px;
	gap: 8px;
}
.tkm-partner-badge--mini .tkm-partner-badge__icon { width: 20px; height: 20px; }
.tkm-partner-badge--mini .tkm-partner-badge__label { font-size: .82rem; }

@media (max-width: 480px) {
	.tkm-clients__logo { width: 128px; height: 72px; }
}

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

.tkm-footer {
	border-top: 1px solid var(--tkm-border);
	background: var(--tkm-bg-alt);
}

.tkm-footer__quote {
	max-width: 560px;
	margin: 0 auto;
	padding: 22px 24px 0;
	text-align: center;
	font-style: italic;
	font-size: .8rem;
	line-height: 1.6;
	color: var(--tkm-text-muted);
	opacity: .75;
}
.tkm-footer__quote span { display: block; font-style: normal; font-size: .72rem; margin-top: 4px; }

.tkm-footer__inner {
	max-width: var(--tkm-max);
	margin: 0 auto;
	padding: 32px 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	color: var(--tkm-text-muted);
	font-size: .88rem;
}

.tkm-footer__brand { font-weight: 700; color: var(--tkm-text); }

.tkm-footer__links {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 0;
	padding: 0;
}
.tkm-footer__links a { color: var(--tkm-text-muted); text-decoration: none; }
.tkm-footer__links a:hover { color: var(--tkm-accent-3); }

.tkm-footer__meta { width: 100%; text-align: center; opacity: .7; }

@media (min-width: 620px) {
	.tkm-footer__meta { width: auto; text-align: right; opacity: 1; }
}
