/* ==========================================================================
   TechSol Site — templates for Work page, project pages and the homepage
   Selected Work bridge. Same tokens, fonts and breakpoints as the Elementor
   pages (tablet ≤1024px, mobile ≤767px).
   ========================================================================== */

:root {
	--tsx-blue: #0245EC;
	--tsx-lime: #D9FF3A;
	--tsx-ink: #080D18;
	--tsx-white: #FFFFFF;
	--tsx-tint: #F3F6FD;
	--tsx-muted: rgba(8, 13, 24, .72);
	--tsx-line: rgba(8, 13, 24, .14);
	--tsx-display: "Archivo", Arial, sans-serif;
	--tsx-mono: "JetBrains Mono", ui-monospace, monospace;
	--tsx-gutter: 48px;
}
@media (max-width: 1024px) { :root { --tsx-gutter: 32px; } }
@media (max-width: 767px)  { :root { --tsx-gutter: 20px; } }

/* ---------- base (scoped to plugin templates) ---------- */
body.tsx-body { margin: 0; background: var(--tsx-white); color: var(--tsx-ink); font-family: var(--tsx-display); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.tsx-body *, .tsx-body *::before, .tsx-body *::after { box-sizing: border-box; }
.tsx-body a { color: inherit; }
.tsx-body img { max-width: 100%; height: auto; display: block; }
.tsx-body h1, .tsx-body h2, .tsx-body h3, .tsx-body h4 { font-family: var(--tsx-display); color: inherit; margin: 0; }
.tsx-body p { margin: 0; }
.tsx-body :focus-visible { outline: 2px solid var(--tsx-white); outline-offset: 2px; box-shadow: 0 0 0 6px var(--tsx-ink); }
.tsx-wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--tsx-gutter); }
.tsx-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }
.tsx-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--tsx-ink); color: var(--tsx-white) !important; text-decoration: none; }
.tsx-skip:focus { top: 12px; }

.tsx-mono { font-family: var(--tsx-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5; }
.tsx-kicker { color: var(--tsx-blue); margin-bottom: 20px; }
.tsx-display { font-weight: 900; font-size: clamp(40px, 5.4vw, 88px); line-height: .92; letter-spacing: -.035em; text-transform: uppercase; }
.tsx-display em, .tsx-h2 em, .tsx-cta__title em { font-style: italic; }
.tsx-h2 { font-weight: 900; font-size: clamp(30px, 3.4vw, 54px); line-height: .95; letter-spacing: -.03em; text-transform: uppercase; }
.tsx-lede { font-size: 19px; line-height: 1.6; color: var(--tsx-muted); }
.tsx-link { font-weight: 700; font-size: 15px; text-decoration: none; padding: 4px 0; box-shadow: inset 0 -2px 0 var(--tsx-blue); }
.tsx-link:hover { color: var(--tsx-blue); }

/* buttons */
.tsx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 13px 24px; border-radius: 999px; font-family: var(--tsx-display); font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none; transition: background-color .25s, color .25s, box-shadow .25s; }
.tsx-btn--lg { min-height: 60px; padding: 18px 30px; font-size: 17px; }
.tsx-btn--blue { background: var(--tsx-blue); color: var(--tsx-white) !important; }
.tsx-btn--blue:hover { background: var(--tsx-ink); }
.tsx-btn--ink { background: var(--tsx-ink); color: var(--tsx-white) !important; }
.tsx-btn--ink:hover { background: var(--tsx-blue); }
.tsx-btn--lime { background: var(--tsx-lime); color: var(--tsx-ink) !important; font-weight: 800; }
.tsx-btn--lime:hover { background: var(--tsx-white); color: var(--tsx-blue) !important; }
.tsx-btn--ghost-light { color: var(--tsx-white) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.tsx-btn--ghost-light:hover { background: var(--tsx-white); color: var(--tsx-blue) !important; }

/* badges: concept = lime on ink, ongoing = blue, completed = ink outline */
.tsx-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 3px; font-family: var(--tsx-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; line-height: 1.3; white-space: nowrap; }
.tsx-badge--concept { background: var(--tsx-ink); color: var(--tsx-lime); }
.tsx-badge--concept::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tsx-lime); }
.tsx-badge--ongoing { background: var(--tsx-blue); color: var(--tsx-white); }
.tsx-badge--completed { background: var(--tsx-white); color: var(--tsx-ink); box-shadow: inset 0 0 0 1px var(--tsx-ink); }
.tsx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; color: var(--tsx-muted); }
.tsx-placeholder { position: absolute; left: 14px; top: 14px; z-index: 2; padding: 5px 10px; background: var(--tsx-lime); color: var(--tsx-ink); font-family: var(--tsx-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- header ---------- */
.tsx-header { position: relative; z-index: 20; }
.tsx-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; box-shadow: inset 0 -1px 0 var(--tsx-line); }
.tsx-header .tsx-wrap { box-shadow: none; }
.tsx-header__bar { background-image: linear-gradient(var(--tsx-line), var(--tsx-line)); background-size: calc(100% - 2 * var(--tsx-gutter)) 1px; background-position: center bottom; background-repeat: no-repeat; }
.tsx-logo { display: flex; flex: 0 0 auto; overflow: hidden; border-radius: 999px; background: var(--tsx-blue); }
.tsx-logo__img { width: 150px; height: 42px !important; object-fit: cover; mix-blend-mode: lighten; }
.tsx-nav { display: flex; align-items: center; gap: 40px; }
.tsx-nav__link { font-size: 15px; font-weight: 500; text-decoration: none; padding-block: 8px; }
.tsx-nav__link:hover, .tsx-nav__link.is-current { color: var(--tsx-blue); }
.tsx-nav__link.is-current { font-weight: 600; box-shadow: inset 0 -2px 0 var(--tsx-blue); }
.tsx-header__actions { display: flex; align-items: center; gap: 12px; }
.tsx-menu { position: relative; display: none; }
.tsx-menu__toggle { list-style: none; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px; border: 2px solid rgba(8, 13, 24, .25); cursor: pointer; color: var(--tsx-ink); }
.tsx-menu__toggle::-webkit-details-marker { display: none; }
.tsx-menu__toggle:hover { color: var(--tsx-blue); border-color: var(--tsx-blue); }
.tsx-burger { display: flex; flex-direction: column; gap: 5px; }
.tsx-burger i { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.tsx-menu__panel { position: absolute; right: 0; top: 58px; z-index: 30; min-width: 220px; padding: 18px 24px; border-radius: 4px; background: var(--tsx-ink); display: flex; flex-direction: column; gap: 6px; }
.tsx-menu__panel a { color: var(--tsx-white); text-decoration: none; font-size: 17px; font-weight: 500; padding-block: 6px; }
.tsx-menu__panel a:hover, .tsx-menu__panel a[aria-current] { color: var(--tsx-lime); }
@media (max-width: 1024px) { .tsx-nav { display: none; } .tsx-menu { display: block; } }
@media (max-width: 767px) { .tsx-hide-mobile { display: none; } .tsx-logo__img { width: 128px; height: 36px !important; } }

/* ---------- hero (Work page) ---------- */
.tsx-hero { padding-block: 88px 64px; }
.tsx-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: end; }
.tsx-hero__side { display: flex; flex-direction: column; gap: 18px; }
.tsx-count { color: var(--tsx-blue); }
.tsx-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--tsx-line); }
.tsx-filter__label { color: var(--tsx-muted); margin-right: 6px; }
.tsx-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(8, 13, 24, .25); transition: background-color .2s, color .2s, box-shadow .2s; }
.tsx-chip:hover { box-shadow: inset 0 0 0 1.5px var(--tsx-blue); color: var(--tsx-blue); }
.tsx-chip.is-active { background: var(--tsx-ink); color: var(--tsx-white); box-shadow: none; }
@media (max-width: 1024px) { .tsx-hero { padding-block: 64px 48px; } .tsx-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
@media (max-width: 767px) { .tsx-hero { padding-block: 48px 40px; } .tsx-display { font-size: 11vw; } .tsx-lede { font-size: 17px; } .tsx-filter { margin-top: 36px; } }

/* ---------- client work spreads ---------- */
.tsx-section-label { color: var(--tsx-muted); padding-bottom: 16px; border-bottom: 1px solid var(--tsx-line); margin-bottom: 56px !important; font-weight: 500 !important; font-size: 12px !important; }
.tsx-spreads { padding-bottom: 112px; }
.tsx-spread { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.tsx-spread + .tsx-spread { margin-top: 96px; }
.tsx-spread--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.tsx-spread--flip .tsx-spread__media { order: 2; }
.tsx-spread__media { position: relative; display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3; background: var(--tsx-tint); }
.tsx-spread__media img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .6s ease; }
.tsx-spread:hover .tsx-spread__media img { transform: scale(1.03); }
.tsx-spread__body { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.tsx-spread__num { color: var(--tsx-blue); font-size: 14px; }
.tsx-spread__title { font-weight: 900; font-size: clamp(30px, 3vw, 48px); line-height: .95; letter-spacing: -.03em; text-transform: uppercase; }
.tsx-spread__title a { text-decoration: none; }
.tsx-spread__title a:hover { color: var(--tsx-blue); }
.tsx-spread__text { font-size: 18px; line-height: 1.6; color: var(--tsx-muted); max-width: 520px; }
.tsx-spread__role { color: var(--tsx-ink); }
.tsx-spread__body .tsx-btn { margin-top: 6px; }
@media (max-width: 1024px) {
	.tsx-spread, .tsx-spread--flip { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.tsx-spread--flip .tsx-spread__media { order: 0; }
	.tsx-spread + .tsx-spread { margin-top: 72px; }
	.tsx-spreads { padding-bottom: 88px; }
}
@media (max-width: 767px) { .tsx-spread__text { font-size: 16px; } .tsx-spreads { padding-bottom: 64px; } .tsx-section-label { margin-bottom: 32px !important; } }

/* ---------- concept studies (staggered, not a uniform grid) ---------- */
.tsx-concepts { background: var(--tsx-tint); padding-block: 104px 120px; }
.tsx-concepts__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: end; margin-bottom: 56px; }
.tsx-concepts__note { font-size: 17px; line-height: 1.6; color: var(--tsx-muted); padding: 16px 20px; border-left: 4px solid var(--tsx-ink); background: var(--tsx-white); }
.tsx-concepts__note strong { color: var(--tsx-ink); }
.tsx-concepts__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 32px; align-items: start; }
.tsx-concepts__grid > :nth-child(4n+1), .tsx-concepts__grid > :nth-child(4n+4) { grid-column: span 7; }
.tsx-concepts__grid > :nth-child(4n+2), .tsx-concepts__grid > :nth-child(4n+3) { grid-column: span 5; }
.tsx-concepts__grid > :nth-child(4n+2) { margin-top: 96px; }
/* an odd last item becomes a full-width horizontal card */
.tsx-concepts__grid > :last-child:nth-child(odd) { grid-column: 1 / -1; margin-top: 0; flex-direction: row; }
.tsx-concepts__grid > :last-child:nth-child(odd) .tsx-card__media { flex: 0 0 58%; aspect-ratio: 16 / 9; }
.tsx-concepts__grid > :last-child:nth-child(odd) .tsx-card__body { justify-content: center; padding: 40px; }
.tsx-concepts__grid > :last-child:nth-child(odd) .tsx-card__title { font-size: 32px; }
@media (max-width: 1024px) { .tsx-concepts { padding-block: 80px 88px; } .tsx-concepts__head { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
@media (max-width: 1024px) { .tsx-concepts__grid > * { grid-column: span 6 !important; margin-top: 0 !important; } .tsx-concepts__grid > :last-child:nth-child(odd) { grid-column: 1 / -1 !important; } }
@media (max-width: 767px) { .tsx-concepts { padding-block: 64px; } .tsx-concepts__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } .tsx-concepts__grid > * { grid-column: auto !important; } .tsx-concepts__grid > :last-child:nth-child(odd) { flex-direction: column; } .tsx-concepts__grid > :last-child:nth-child(odd) .tsx-card__media { flex: none; aspect-ratio: 3 / 2; } .tsx-concepts__grid > :last-child:nth-child(odd) .tsx-card__body { padding: 24px 26px 26px; } .tsx-concepts__grid > :last-child:nth-child(odd) .tsx-card__title { font-size: 26px; } }

/* ---------- cards ---------- */
.tsx-card { position: relative; display: flex; flex-direction: column; background: var(--tsx-white); border-radius: 6px; overflow: hidden; box-shadow: 0 1px 0 var(--tsx-line); transition: box-shadow .3s, transform .3s; }
.tsx-card:hover { box-shadow: 0 22px 50px rgba(8, 13, 24, .12); transform: translateY(-4px); }
.tsx-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--tsx-tint); }
.tsx-card__media img { width: 100%; height: 100% !important; object-fit: cover; }
.tsx-card__badge { position: absolute; left: 14px; bottom: 14px; }
.tsx-card__body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 26px; }
.tsx-card__kicker { color: var(--tsx-muted); display: flex; gap: 12px; }
.tsx-card__num { color: var(--tsx-blue); }
.tsx-card__title { font-size: 26px; font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
.tsx-card__title a { text-decoration: none; }
.tsx-card__text { font-size: 16px; line-height: 1.55; color: var(--tsx-muted); }
.tsx-card__go { margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--tsx-blue); }
.tsx-stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tsx-card:focus-within { box-shadow: 0 0 0 3px var(--tsx-ink); }
.tsx-related .tsx-card { box-shadow: inset 0 0 0 1px var(--tsx-line); }

/* ---------- single project ---------- */
.tsx-project__head { padding-block: 56px 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.tsx-back { font-size: 15px; font-weight: 600; text-decoration: none; color: var(--tsx-muted) !important; }
.tsx-back:hover { color: var(--tsx-blue) !important; }
.tsx-project__title { max-width: 1100px; font-size: clamp(40px, 6vw, 96px); }
.tsx-project__lede { max-width: 760px; font-size: 21px; }
.tsx-demo-note { max-width: 760px; padding: 16px 20px; border-radius: 4px; background: var(--tsx-ink); color: var(--tsx-white); font-size: 16px; line-height: 1.55; }
.tsx-demo-note strong { color: var(--tsx-lime); }
.tsx-project__hero { position: relative; margin: 0 auto; }
.tsx-project__hero img { width: 100%; max-height: 720px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.tsx-project__hero .tsx-placeholder { left: calc(var(--tsx-gutter) + 14px); }
.tsx-project__layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 72px; padding-block: 72px 112px; align-items: start; }
.tsx-facts { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 24px; }
.tsx-facts dl { margin: 0; }
.tsx-facts dl > div { padding: 14px 0; border-top: 1px solid var(--tsx-line); }
.tsx-facts dl > div:last-child { border-bottom: 1px solid var(--tsx-line); }
.tsx-facts dt { color: var(--tsx-muted); margin-bottom: 4px; }
.tsx-facts dd { margin: 0; font-weight: 700; font-size: 16px; line-height: 1.4; }
.tsx-facts__list p { color: var(--tsx-blue); margin-bottom: 10px; }
.tsx-facts__list ul { margin: 0; padding: 0; list-style: none; }
.tsx-facts__list li { padding: 6px 0 6px 18px; position: relative; font-size: 16px; }
.tsx-facts__list li::before { content: ""; position: absolute; left: 0; top: 15px; width: 8px; height: 2px; background: var(--tsx-blue); }
.tsx-facts__note { font-size: 14px; color: var(--tsx-muted); }
.tsx-facts .tsx-btn { align-self: flex-start; }
@media (max-width: 1024px) {
	.tsx-project__layout { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 48px 88px; }
	.tsx-facts { position: static; }
	.tsx-facts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
	.tsx-facts dl > div:last-child { border-bottom: 0; }
}
@media (max-width: 767px) { .tsx-project__head { padding-block: 36px 32px; } .tsx-project__title { font-size: 11vw; } .tsx-project__lede { font-size: 18px; } .tsx-facts dl { grid-template-columns: minmax(0, 1fr); } .tsx-project__hero img { aspect-ratio: 4 / 3; } }

/* ---------- Block Editor content ---------- */
.tsx-prose { max-width: 760px; font-size: 18px; line-height: 1.7; color: rgba(8, 13, 24, .86); }
.tsx-prose > * + *, .tsx-body .tsx-prose > * + * { margin-top: 1.25em; }
.tsx-body .tsx-prose > * { margin-bottom: 0; }
.tsx-body .tsx-prose > h2 { margin-top: 2em; }
.tsx-body .tsx-prose > h3 { margin-top: 1.8em; }
.tsx-body .tsx-prose > h4 { margin-top: 1.6em; }
.tsx-body .tsx-prose > :is(h2, h3, h4) + * { margin-top: .65em; }
.tsx-body .tsx-prose > :first-child { margin-top: 0; }
.tsx-prose h2 { margin-top: 2em; font-size: clamp(26px, 2.4vw, 36px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--tsx-ink); }
.tsx-prose h3 { margin-top: 1.8em; font-size: 24px; font-weight: 800; line-height: 1.2; color: var(--tsx-ink); }
.tsx-prose h4 { margin-top: 1.6em; font-size: 19px; font-weight: 700; color: var(--tsx-ink); }
.tsx-prose > :first-child { margin-top: 0; }
.tsx-prose a { color: var(--tsx-blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tsx-prose ul, .tsx-prose ol { padding-left: 1.3em; }
.tsx-prose li + li { margin-top: .4em; }
.tsx-prose li::marker { color: var(--tsx-blue); }
.tsx-prose figure { margin-inline: 0; }
.tsx-prose img { border-radius: 6px; }
.tsx-prose figcaption { margin-top: 10px; font-size: 14px; color: var(--tsx-muted); text-align: start; }
.tsx-prose .alignwide { width: min(1100px, calc(100vw - 2 * var(--tsx-gutter))); max-width: none; }
.tsx-prose .alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.tsx-prose .alignfull img { border-radius: 0; }
.tsx-prose .wp-block-quote { margin-inline: 0; padding: 20px 24px; border-left: 4px solid var(--tsx-blue); background: var(--tsx-tint); font-size: 20px; line-height: 1.5; color: var(--tsx-ink); }
.tsx-prose .wp-block-quote cite { display: block; margin-top: 10px; font-family: var(--tsx-mono); font-size: 12px; font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--tsx-muted); }
.tsx-prose .wp-block-pullquote { padding: 32px 0; border-block: 2px solid var(--tsx-ink); text-align: start; }
.tsx-prose .wp-block-pullquote blockquote p { font-size: 28px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.tsx-prose pre, .tsx-prose .wp-block-code { padding: 20px 22px; border-radius: 6px; background: var(--tsx-ink); color: #E6EAF5; font-family: var(--tsx-mono); font-size: 14px; line-height: 1.6; overflow-x: auto; }
.tsx-prose code { font-family: var(--tsx-mono); font-size: .88em; }
.tsx-prose :not(pre) > code { padding: 2px 6px; border-radius: 3px; background: var(--tsx-tint); }
.tsx-prose .wp-block-gallery { gap: 12px; }
.tsx-prose .wp-block-embed, .tsx-prose .wp-block-video { margin-inline: 0; }
.tsx-prose .wp-block-separator { border: 0; height: 2px; background: var(--tsx-line); }
.tsx-prose .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.tsx-prose .wp-block-table th, .tsx-prose .wp-block-table td { padding: 10px 12px; border-bottom: 1px solid var(--tsx-line); text-align: start; }
.tsx-prose .wp-block-button__link { border-radius: 999px; background: var(--tsx-blue); color: var(--tsx-white); font-weight: 700; padding: 13px 24px; text-decoration: none; }
.tsx-prose .wp-block-columns { gap: 32px; }
@media (max-width: 767px) { .tsx-prose { font-size: 17px; } .tsx-prose .wp-block-quote { font-size: 18px; } }

/* ---------- related ---------- */
.tsx-related { padding-block: 96px; background: var(--tsx-tint); }
.tsx-related__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.tsx-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tsx-related .tsx-card__title { font-size: 22px; }
@media (max-width: 1024px) { .tsx-related { padding-block: 72px; } .tsx-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .tsx-related__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- empty state ---------- */
.tsx-empty { padding-block: 24px 112px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

.tsx-404 { padding-block: 88px 112px; gap: 22px; }
.tsx-404__links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 8px; }
@media (max-width: 767px) { .tsx-404 { padding-block: 48px 72px; } }

/* ---------- CTA band ---------- */
.tsx-cta { background: var(--tsx-blue); color: var(--tsx-white); padding-block: 112px; }
.tsx-cta .tsx-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.tsx-cta__label { color: var(--tsx-lime); }
.tsx-cta__title { font-weight: 900; font-size: clamp(44px, 6.4vw, 104px); line-height: .9; letter-spacing: -.04em; text-transform: uppercase; color: var(--tsx-white); }
.tsx-cta__text { font-size: 19px; color: rgba(255, 255, 255, .9); max-width: 560px; }
.tsx-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 10px; }
@media (max-width: 1024px) { .tsx-cta { padding-block: 88px; } }
@media (max-width: 767px) { .tsx-cta { padding-block: 64px; } .tsx-cta__title { font-size: 13vw; } .tsx-cta__actions { flex-direction: column; align-self: stretch; } .tsx-cta__actions .tsx-btn { width: 100%; } }

/* ---------- footer ---------- */
.tsx-footer { background: var(--tsx-ink); color: var(--tsx-white); padding-block: 72px 40px; }
.tsx-footer__top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.tsx-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.tsx-footer__logo img { width: 56px; height: 56px !important; border-radius: 6px; }
.tsx-footer__tag { font-size: 22px; font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; }
.tsx-footer__mail { color: var(--tsx-lime) !important; text-decoration: none; }
.tsx-footer__col { display: flex; flex-direction: column; gap: 4px; }
.tsx-footer__col .tsx-mono { color: rgba(255, 255, 255, .7); margin-bottom: 8px; }
.tsx-footer__col a { color: var(--tsx-white); text-decoration: none; font-size: 15px; padding-block: 8px; }
.tsx-footer__col a:hover { color: var(--tsx-lime); }
.tsx-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .7); }
@media (max-width: 1024px) { .tsx-footer { padding-block: 64px 36px; } }
@media (max-width: 767px) { .tsx-footer { padding-block: 56px 32px; } .tsx-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } .tsx-footer__brand { grid-column: span 2; } .tsx-footer__bottom { flex-direction: column; margin-top: 40px; } }

/* ---------- homepage Selected Work bridge (adds links to the Elementor markup) ---------- */
.tsx-hw-tile { position: relative; }
.tsx-hw-tile h3 a { color: inherit; text-decoration: none; }
.tsx-hw-tile h3 a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.tsx-hw-tile h3 a:focus-visible { outline: none; box-shadow: none; }
.tsx-hw-tile:focus-within { outline: 2px solid #FFFFFF; outline-offset: 2px; box-shadow: 0 0 0 6px #080D18; }
.tsx-hw-media { display: block; position: relative; }
/* Selected Work sits on near-black: light link (was ink-on-ink, invisible). */
.tsx-hw-all { align-self: flex-end; font-family: "Archivo", sans-serif; font-weight: 700; font-size: 15px; color: #FFFFFF; text-decoration: none; padding: 4px 0; box-shadow: inset 0 -2px 0 #D9FF3A; }
.tsx-hw-all:hover { color: #D9FF3A; }

/* ==========================================================================
   Insights (native posts): archive, single article, article cards and the
   homepage "Ideas Worth Exploring" fill.
   ========================================================================== */

/* meta line: topic · date · reading time */
.tsx-ins-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; color: var(--tsx-muted); font-family: var(--tsx-mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; line-height: 1.5; }
.tsx-ins-meta > * + *::before { content: "·"; margin-inline: 10px; color: rgba(8, 13, 24, .4); }
.tsx-ins-topic { color: var(--tsx-blue); font-weight: 600; text-decoration: none; }
a.tsx-ins-topic { position: relative; z-index: 2; padding-block: 8px; }
a.tsx-ins-topic:hover { text-decoration: underline; text-underline-offset: 3px; }

/* hero */
.tsx-ins-hero { padding-block: 88px 56px; }
.tsx-ins-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: end; }
.tsx-ins-hero__side { display: flex; flex-direction: column; gap: 18px; }
.tsx-ins-title { font-weight: 900; font-size: clamp(40px, 5vw, 80px); line-height: .95; letter-spacing: -.035em; text-transform: uppercase; }
.tsx-ins-title em { font-style: italic; color: var(--tsx-blue); }
.tsx-ins-crumb { color: inherit; text-decoration: none; padding-block: 8px; }
.tsx-ins-crumb:hover { text-decoration: underline; }
.tsx-chip__n { margin-left: 8px; font-family: var(--tsx-mono); font-size: 11px; opacity: .65; }
.tsx-ins-topics { margin-top: 48px; }
@media (max-width: 1024px) { .tsx-ins-hero { padding-block: 64px 44px; } .tsx-ins-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
@media (max-width: 767px) { .tsx-ins-hero { padding-block: 44px 36px; } .tsx-ins-title { font-size: 10.5vw; } .tsx-ins-topics { margin-top: 32px; } }

/* lead article: near-black band */
.tsx-ins-lead { background: var(--tsx-ink); color: var(--tsx-white); padding-block: 72px; }
.tsx-ins-lead__card { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.tsx-ins-lead__media { display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 16 / 9; background: #121a2c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.tsx-ins-lead__media img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .6s ease; }
.tsx-ins-lead__card:hover .tsx-ins-lead__media img { transform: scale(1.02); }
.tsx-ins-lead__body { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.tsx-ins-lead__label { color: var(--tsx-lime); }
.tsx-ins-lead .tsx-ins-meta { color: rgba(255, 255, 255, .72); }
.tsx-ins-lead .tsx-ins-meta > * + *::before { color: rgba(255, 255, 255, .4); }
.tsx-ins-lead .tsx-ins-topic { color: var(--tsx-white); }
.tsx-ins-lead__title { font-size: clamp(30px, 3vw, 46px); font-weight: 800; line-height: 1.05; letter-spacing: -.025em; }
.tsx-ins-lead__title a { color: var(--tsx-white); text-decoration: none; }
.tsx-ins-lead__title a:hover { color: var(--tsx-lime); }
.tsx-ins-lead__text { font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .8); }
.tsx-ins-lead__body .tsx-btn { margin-top: 8px; }
@media (max-width: 1024px) { .tsx-ins-lead { padding-block: 56px; } .tsx-ins-lead__card { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
@media (max-width: 767px) { .tsx-ins-lead { padding-block: 40px 48px; } .tsx-ins-lead__text { font-size: 16px; } .tsx-ins-lead__body .tsx-btn { align-self: stretch; } }

/* editorial index rows */
.tsx-ins-index { padding-block: 88px 48px; }
.tsx-ins-index .tsx-section-label { margin-bottom: 0 !important; }
.tsx-ins-rows { list-style: none; margin: 0; padding: 0; }
.tsx-ins-row { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) 300px; gap: 40px; align-items: start; padding-block: 36px; box-shadow: inset 0 -1px 0 var(--tsx-line); }
.tsx-ins-row__num { color: var(--tsx-blue); font-size: 14px; padding-top: 4px; }
.tsx-ins-row__body { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.tsx-ins-row__title { font-size: clamp(22px, 2vw, 30px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.tsx-ins-row__title a { text-decoration: none; }
.tsx-ins-row:hover .tsx-ins-row__title a { color: var(--tsx-blue); }
.tsx-ins-row:focus-within { box-shadow: inset 0 -1px 0 var(--tsx-line), 0 0 0 3px var(--tsx-ink); }

.tsx-ins-row__text { font-size: 17px; line-height: 1.6; color: var(--tsx-muted); }
.tsx-ins-row__media { overflow: hidden; border-radius: 4px; aspect-ratio: 16 / 10; background: var(--tsx-tint); }
.tsx-ins-row__media img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .5s ease; }
.tsx-ins-row:hover .tsx-ins-row__media img { transform: scale(1.04); }
@media (max-width: 1024px) { .tsx-ins-row { grid-template-columns: 48px minmax(0, 1fr) 220px; gap: 28px; } .tsx-ins-index { padding-block: 64px 40px; } }
@media (max-width: 767px) {
	.tsx-ins-row { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-block: 28px; }
	.tsx-ins-row__media { order: -1; }
	.tsx-ins-row__num { display: none; }
	.tsx-ins-row__text { font-size: 16px; }
}

/* pagination */
.tsx-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 8px 104px; }
.tsx-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 10px 16px; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(8, 13, 24, .25); }
.tsx-pager a.page-numbers:hover { color: var(--tsx-blue); box-shadow: inset 0 0 0 1.5px var(--tsx-blue); }
.tsx-pager .page-numbers.current { background: var(--tsx-ink); color: var(--tsx-white); box-shadow: none; }
.tsx-pager .page-numbers.dots { box-shadow: none; min-width: 24px; }
.tsx-pager .prev, .tsx-pager .next { padding-inline: 22px; }
@media (max-width: 767px) { .tsx-pager { padding-bottom: 72px; } }

/* article card (related + homepage) — self-contained so it also works inside Elementor pages */
.tsx-icard { position: relative; display: flex; flex-direction: column; box-sizing: border-box; height: 100%; background: var(--tsx-white); border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--tsx-line); font-family: var(--tsx-display); color: var(--tsx-ink); transition: box-shadow .3s, transform .3s; }
.tsx-icard *, .tsx-icard *::before, .tsx-icard *::after { box-sizing: border-box; }
.tsx-icard:hover { box-shadow: inset 0 0 0 1px var(--tsx-line), 0 22px 50px rgba(8, 13, 24, .12); transform: translateY(-4px); }
.tsx-icard:focus-within { box-shadow: 0 0 0 3px var(--tsx-ink); }
.tsx-icard__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--tsx-tint); }
.tsx-icard__media img { display: block; width: 100%; height: 100% !important; max-width: 100%; object-fit: cover; }
.tsx-icard__body { display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; padding: 22px 24px 24px; }
.tsx-icard__title { margin: 0; font-family: var(--tsx-display); font-size: 21px; font-weight: 800; line-height: 1.2; letter-spacing: -.015em; color: var(--tsx-ink); text-transform: none; }
.tsx-icard__title a { color: inherit; text-decoration: none; }
.tsx-icard__title a:focus-visible { outline: none; box-shadow: none; }
.tsx-icard:hover .tsx-icard__title a { color: var(--tsx-blue); }
.tsx-icard__text { margin: 0; font-size: 16px; line-height: 1.55; color: var(--tsx-muted); }
.tsx-icard__go { margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 700; color: var(--tsx-blue); }

/* single article */
.tsx-article__head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-block: 56px 48px; }
.tsx-article__title { max-width: 980px; font-size: clamp(36px, 4.6vw, 68px); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; }
.tsx-article__dek { max-width: 760px; font-size: 21px; line-height: 1.55; color: var(--tsx-muted); }
.tsx-article__cover { margin: 0 auto; }
.tsx-article__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--tsx-tint); }
.tsx-article__cover figcaption { margin-top: 10px; font-size: 14px; color: var(--tsx-muted); }
.tsx-article__layout { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 72px; padding-block: 64px 104px; align-items: start; }
.tsx-article__layout.no-toc { grid-template-columns: minmax(0, 720px); padding-left: calc(var(--tsx-gutter) + 312px); }
@media (min-width: 1025px) { .tsx-article__head { padding-left: calc(var(--tsx-gutter) + 312px); } }
.tsx-toc { position: sticky; top: 24px; }
.tsx-toc__label { color: var(--tsx-blue); padding-block: 6px 14px; }
.tsx-toc__box { display: none; }
.tsx-toc__box summary { list-style: none; cursor: pointer; color: var(--tsx-blue); min-height: 44px; display: flex; align-items: center; }
.tsx-toc__box summary::-webkit-details-marker { display: none; }
.tsx-toc ol { list-style: none; margin: 0; padding: 0; box-shadow: inset 2px 0 0 var(--tsx-line); counter-reset: toc; }
.tsx-toc li { counter-increment: toc; }
.tsx-toc a { display: grid; grid-template-columns: 28px 1fr; padding: 8px 0 8px 16px; font-size: 15px; line-height: 1.4; color: var(--tsx-muted); text-decoration: none; }
.tsx-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--tsx-mono); font-size: 11px; padding-top: 3px; color: var(--tsx-blue); }
.tsx-toc a:hover { color: var(--tsx-ink); box-shadow: inset 2px 0 0 var(--tsx-blue); }
.tsx-article__prose { max-width: 720px; }
.tsx-article__prose h2, .tsx-article__prose h3 { scroll-margin-top: 24px; }
.tsx-article__prose .alignwide, .tsx-article__prose .alignfull { width: 100%; margin-left: 0; }
.tsx-article__prose .alignfull img { border-radius: 6px; }
.tsx-prose pre, .tsx-prose .wp-block-code { margin-inline: 0; border: 0; white-space: pre; word-wrap: normal; overflow-wrap: normal; tab-size: 2; }
.tsx-prose pre code, .tsx-body .tsx-prose .wp-block-code code { padding: 0; background: none; color: inherit; font-size: inherit; white-space: pre; overflow-wrap: normal; word-break: normal; display: block; min-width: max-content; }
.tsx-prose code, .tsx-prose pre { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
.tsx-prose .wp-block-table { overflow-x: auto; margin-inline: 0; }
.tsx-prose .wp-block-table thead { border-bottom: 2px solid var(--tsx-ink); }
.tsx-prose .wp-block-table th { font-size: 14px; font-weight: 700; }
.tsx-prose .wp-block-table td { vertical-align: top; }
.tsx-body .tsx-prose .wp-block-table th, .tsx-body .tsx-prose .wp-block-table td { border: 0; border-bottom: 1px solid var(--tsx-line); background: transparent; }
.tsx-body .tsx-prose .wp-block-table thead th { border-bottom: 2px solid var(--tsx-ink); }
.tsx-body .tsx-prose .wp-block-table thead { border: 0; }
.tsx-body .tsx-prose .wp-block-table td:first-child { font-weight: 600; color: var(--tsx-ink); }
.tsx-prose .wp-block-table figcaption { margin-top: 10px; }
.tsx-prose .wp-block-image figcaption { text-align: start; }
.tsx-prose .wp-block-gallery figure { margin: 0; }
.tsx-prose .wp-block-embed__wrapper iframe { width: 100%; }
.tsx-prose .tsx-note { padding: 18px 22px; border-radius: 4px; background: var(--tsx-tint); box-shadow: inset 4px 0 0 var(--tsx-blue); font-size: 16px; }
.tsx-article__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 48px; }
.tsx-article__tags .tsx-mono { color: var(--tsx-muted); margin-right: 6px; }
.tsx-article__tags a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(8, 13, 24, .2); }
.tsx-article__tags a:hover { color: var(--tsx-blue); box-shadow: inset 0 0 0 1.5px var(--tsx-blue); }
.tsx-article__ask { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 48px; padding: 26px 28px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--tsx-line), inset 4px 0 0 var(--tsx-blue); }
.tsx-article__ask .tsx-mono { color: var(--tsx-blue); }
.tsx-article__ask-text { font-size: 17px; line-height: 1.6; color: var(--tsx-muted); }
@media (max-width: 1024px) {
	.tsx-article__layout, .tsx-article__layout.no-toc { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px var(--tsx-gutter) 88px; }
	.tsx-toc { position: static; max-width: 720px; }
	.tsx-toc__label, .tsx-toc__list { display: none; }
	.tsx-toc__box { display: block; padding: 2px 20px; border-radius: 4px; background: var(--tsx-tint); }
	.tsx-toc__box[open] { padding-bottom: 14px; }
	.tsx-toc__box summary::after { content: "+"; margin-left: 10px; }
	.tsx-toc__box[open] summary::after { content: "−"; }
}
@media (max-width: 767px) {
	.tsx-article__head { padding-block: 32px; gap: 16px; }
	.tsx-article__title { font-size: 9vw; }
	.tsx-article__dek { font-size: 18px; }
	.tsx-article__head .tsx-ins-meta { font-size: 11px; letter-spacing: .06em; }
	.tsx-article__head .tsx-ins-meta > * + *::before { margin-inline: 7px; }
	.tsx-article__cover img { border-radius: 4px; }
	.tsx-prose pre, .tsx-prose .wp-block-code { padding: 16px; font-size: 13px; border-radius: 4px; }
	.tsx-prose .wp-block-table table { font-size: 14px; }
	.tsx-article__ask { padding: 22px 20px; }
}

/* homepage "Ideas Worth Exploring" (bridge fills the Elementor section with cards) */
.tsx-hi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: 100%; }
.tsx-hi-grid .tsx-icard__title { font-size: 20px; }
@media (max-width: 1024px) and (min-width: 768px) {
	.tsx-hi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tsx-hi-grid > :nth-child(3):last-child { grid-column: 1 / -1; flex-direction: row; }
	.tsx-hi-grid > :nth-child(3):last-child .tsx-icard__media { flex: 0 0 50%; aspect-ratio: auto; min-height: 220px; display: flex; align-items: center; background: #080D18; }
	.tsx-hi-grid > :nth-child(3):last-child .tsx-icard__media img { height: auto !important; aspect-ratio: 16 / 9; object-fit: contain; }
}
@media (max-width: 767px) { .tsx-hi-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

@media (prefers-reduced-motion: reduce) {
	.tsx-icard, .tsx-icard * { transition: none !important; }
	.tsx-icard:hover, .tsx-ins-row:hover .tsx-ins-row__media img, .tsx-ins-lead__card:hover .tsx-ins-lead__media img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.tsx-body *, .tsx-hw-tile, .tsx-hw-tile * { transition: none !important; animation: none !important; }
	.tsx-spread:hover .tsx-spread__media img, .tsx-card:hover { transform: none; }
}
