/* ==========================================================================
   DavinLabs Elastic — theme styles
   Section markup keeps the design's exact inline values; this file holds the
   tokens, global rules, interactive states, hover effects and motion.
   ========================================================================== */

/* Tokens (mirrored in theme.json) ---------------------------------------- */
:root {
	--eyebrow-font: 'Space Grotesk', sans-serif;
	--base: #FFFFFF;
	--base-2: #F5F5F0;
	--surface: #FFFFFF;
	--surface-2: #F5F5F0;
	--ink: #131313;
	--ink-2: #575969;
	--ink-3: #6E7081;
	--brand: #2657C7;
	--accent: #2657C7;
	--accent-soft: #DCE6FA;
	--line: #ECEAE4;
	--line-2: #DCD9D1;
	--btn: #131313;
	--on-btn: #FFFFFF;
	--panel: #121212;
	--panel-line: #2A2A2A;
	--panel-ink: #F5F3EE;
	--panel-ink-2: #A3A19C;
	--highlight: #2657C7;
	--tint-mix: 80%;
	--paper: #FFFFFF;
	--dot: 14, 15, 26;
	--shadow: 0 30px 60px -34px rgba(14, 15, 26, .28);
	--card-shadow: 0 1px 2px rgba(14, 15, 26, .04), 0 10px 24px -18px rgba(14, 15, 26, .22);
	--polaroid-shadow: 0 1px 2px rgba(14, 15, 26, .06), 0 18px 30px -22px rgba(14, 15, 26, .35);
	--ease: cubic-bezier(.2, .8, .2, 1);
	--font: 'DM Sans', 'Noto Sans Arabic', 'Noto Sans Tamil', 'Noto Sans Sinhala', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans TC', system-ui, sans-serif;
	--mono: 'DM Mono', ui-monospace, monospace;
	--hand: 'Caveat', cursive;
	color-scheme: light;
}

:root[data-theme="dark"] {
	/* Matte graphite dark: a soft #161616 base instead of pure black, surfaces lifted a
	   step at a time, off-white headings, muted grey body text, quiet borders. */
	--base: #161616;
	--base-2: #1A1A1A;
	--surface: #1E1E1E;
	--surface-2: #232323;
	--ink: #EAEAEA;
	--ink-2: #939393;
	--ink-3: #6E6E6E;
	--brand: #C9CCF5;
	--accent: #5b82e0;
	--accent-soft: #221B0D;
	--line: #2C2C2C;
	--line-2: #383838;
	--btn: #EAEAEA;
	--on-btn: #161616;
	--panel: #1A1A1A;
	--panel-line: #2C2C2C;
	--panel-ink: #EAEAEA;
	--panel-ink-2: #939393;
	--highlight: #C99A1C;
	--dot: 234, 234, 234;
	--tint-mix: 9%;
	--paper: #202020;
	--shadow: 0 0 0 1px #2C2C2C, 0 40px 80px -48px rgba(0, 0, 0, .7);
	--card-shadow: 0 0 0 1px rgba(255, 255, 255, .02);
	--polaroid-shadow: 0 0 0 1px rgba(255, 255, 255, .03), 0 18px 30px -22px rgba(0, 0, 0, .6);
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
	margin: 0;
	background: var(--base);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transition: background .3s, color .3s;
}
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font); }

:root[lang|="ar"] h1, :root[lang|="ar"] h2, :root[lang|="ar"] h3,
:root[lang|="ta"] h1, :root[lang|="ta"] h2, :root[lang|="ta"] h3,
:root[lang|="si"] h1, :root[lang|="si"] h2, :root[lang|="si"] h3 { letter-spacing: 0 !important; line-height: 1.2 !important; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.tw2s-skip {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--btn); color: var(--on-btn); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.tw2s-skip:focus { top: 12px; color: var(--on-btn); }
.tw2s-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Anchored sections clear the sticky header. */
.tw2s-anchor, [id] { scroll-margin-top: 72px; }

/* Mobile helpers from the design (≤760px) */
@media (max-width: 760px) {
	[data-m-full] { grid-column: 1 / -1 !important; }
	[data-m-static] { position: static !important; }
	[data-m-pad] { padding-top: 64px !important; padding-bottom: 64px !important; }
	[data-m-hide] { display: none !important; }
}
@media (max-width: 640px) {
	/* Every 1280px content container drops its 24px side gutter to 16px. */
	[style*="max-width:1280px"], [style*="max-width:1100px"], [style*="max-width:860px"], .tw2s-page-content { padding-left: 16px !important; padding-right: 16px !important; }
}

/* Motion ----------------------------------------------------------------- */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes bob8 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes colUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes colDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@keyframes marker { from { background-size: 0% .09em; } to { background-size: 100% .09em; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes bar { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
@keyframes bar40 { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
@keyframes type { 0%, 100% { width: 30%; } 50% { width: 88%; } }
@keyframes type2 { 0%, 100% { width: 20%; } 50% { width: 78%; } }
@keyframes sheen { from { transform: translateX(-120%); } to { transform: translateX(220%); } }
@keyframes zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes wiggle { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes funnel { 0%, 100% { transform: scaleX(.82); } 50% { transform: scaleX(1); } }
@keyframes cursor { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(-90px, 40px); } 66% { transform: translate(-30px, 110px); } }
@keyframes prog { 0% { width: 0; } 70%, 100% { width: 100%; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes grow { 0%, 100% { height: 34%; } 50% { height: 62%; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Hover states (inline styles in the markup need !important to be overridden) */
.hv-btn:hover { opacity: .9; color: var(--on-btn) !important; }
.hv-outline:hover { border-color: var(--ink) !important; color: var(--ink) !important; }
.hv-outline-soft:hover { border-color: var(--ink-3) !important; color: var(--ink) !important; }
.hv-border:hover { border-color: var(--line-2) !important; color: var(--ink); }
.hv-border-soft:hover { border-color: var(--line-2) !important; color: var(--ink) !important; }
.hv-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink) !important; }
.hv-lift-b:hover { transform: translateY(-4px); border-color: var(--line-2) !important; box-shadow: var(--shadow); color: var(--ink) !important; }
.hv-shadow:hover { box-shadow: var(--shadow); color: var(--ink) !important; }
.hv-shadow-b:hover { box-shadow: var(--shadow); border-color: var(--line-2) !important; color: var(--ink) !important; }
.hv-card:hover { border-color: var(--line-2) !important; box-shadow: var(--card-shadow); color: var(--ink) !important; }
.hv-ink:hover { color: var(--ink) !important; }
.hv-underline:hover { color: var(--ink) !important; text-decoration: underline; text-underline-offset: 4px; }
.hv-toc:hover, .hv-toc.is-current { color: var(--ink) !important; border-color: var(--accent) !important; }
.hv-accent-border:hover { border-color: var(--accent) !important; color: var(--panel-ink) !important; }
.hv-gradient:hover { color: var(--ink) !important; background: linear-gradient(90deg, transparent, var(--base-2), transparent); }
.hv-social:hover { color: var(--ink) !important; border-color: var(--line-2) !important; }
.tw2s-stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* Header ----------------------------------------------------------------- */
.tw2s-header__bar {
	max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 64px;
	display: flex; align-items: center; gap: 16px;
}
.tw2s-header__logo { display: flex; align-items: center; flex: 1 1 0; min-width: max-content; }
.tw2s-header__logo img { height: 34px; width: auto; display: block; }
.tw2s-logo-dark { display: none !important; }
:root[data-theme="dark"] .tw2s-logo-light { display: none !important; }
:root[data-theme="dark"] .tw2s-logo-dark { display: block !important; }

.tw2s-nav {
	display: flex; align-items: center; justify-content: center; gap: 2px;
	flex: 0 1 auto; min-width: 0; font-size: 14px; font-weight: 500; white-space: nowrap;
}
.tw2s-nav__link {
	padding: 7px 11px; border-radius: 7px; color: var(--ink-2);
	display: flex; align-items: center; gap: 5px; background: transparent;
}
.tw2s-nav__link:hover, .tw2s-nav__link.is-open { color: var(--ink); }
.tw2s-nav__link.is-active { color: var(--ink); background: var(--base-2); }
.tw2s-header__tools { flex: 1 1 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: max-content; }
.tw2s-show-1240, .tw2s-show-640, .tw2s-show-460 { display: flex !important; }
.tw2s-burger { display: none; }

.tw2s-mega {
	position: absolute; top: 64px; left: 0; right: 0;
	display: flex; justify-content: center; padding: 0 24px; pointer-events: none;
}
.tw2s-mega__inner { pointer-events: auto; width: 100%; max-width: 1232px; display: flex; }
.tw2s-mega__panel {
	margin: 0 auto; width: min(560px, 100%);
	background: var(--surface); border: 1px solid var(--line); border-top: 0;
	border-radius: 0 0 18px 18px; box-shadow: var(--shadow); padding: 10px;
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px;
	animation: rise .25s both;
}
.tw2s-mega__item { display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: 12px; color: var(--ink); }
.tw2s-mega__item:hover, .tw2s-mega__item:focus-visible { background: var(--base-2); color: var(--ink); }

.tw2s-sheet {
	position: absolute; top: 64px; left: 0; right: 0;
	background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
	padding: 12px 20px 24px; display: flex; flex-direction: column;
	max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow: auto;
}

@media (max-width: 1239px) { .tw2s-show-1240 { display: none !important; } }
@media (max-width: 1079px) {
	.tw2s-nav, .tw2s-mega { display: none !important; }
	.tw2s-burger { display: block; }
}
@media (min-width: 1080px) { .tw2s-sheet { display: none !important; } }
@media (max-width: 639px) {
	.tw2s-show-640 { display: none !important; }
	.tw2s-header__bar { padding: 0 16px; gap: 10px; }
}
@media (max-width: 459px) { .tw2s-show-460 { display: none !important; } }

/* Theme toggles: state comes straight from html[data-theme] */
.tw2s-theme-toggle button {
	border: 0; border-radius: 999px; cursor: pointer; font: inherit;
	background: transparent; color: var(--ink-3);
}
:root:not([data-theme="dark"]) .tw2s-theme-toggle [data-set-theme="light"],
:root[data-theme="dark"] .tw2s-theme-toggle [data-set-theme="dark"] { background: var(--ink); color: var(--base); }

/* Hero ------------------------------------------------------------------- */
.tw2s-hero__canvas {
	position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none;
	-webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 4%, #000 95%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 2.5%, #000 97.5%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(180deg, transparent 0%, #000 4%, #000 95%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 2.5%, #000 97.5%, transparent 100%);
	mask-composite: intersect;
}
.tw2s-float { display: none; }
@media (min-width: 1200px) { .tw2s-float { display: block; position: absolute; inset: 0; pointer-events: none; } }
.tw2s-float__card {
	background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; width: 228px;
	display: flex; flex-direction: column; gap: 12px; box-shadow: var(--card-shadow); text-align: start;
}
.tw2s-marker {
	white-space: nowrap;
	background-image: linear-gradient(var(--highlight), var(--highlight));
	background-repeat: no-repeat; background-position: 0 94%; background-size: 100% .09em;
	animation: marker 1s .6s cubic-bezier(.6, 0, .2, 1) both; padding-bottom: .04em;
}
@media (max-width: 460px) { .tw2s-marker { white-space: normal; } }
/* CJK has no spaces to wrap on: let highlights wrap, keep the underline per line, give glyphs air. */
:is(:lang(ja), :lang(zh), :lang(ko)) .tw2s-marker { white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
:is(:lang(ja), :lang(zh), :lang(ko)) h1.wp-block-heading { font-size: clamp(34px, 4.8vw, 64px) !important; line-height: 1.16 !important; letter-spacing: -0.02em !important; max-inline-size: 11em; margin-inline: auto; }
:lang(ko) h1.wp-block-heading { word-break: keep-all; }
:is(:lang(ja), :lang(zh), :lang(ko)) h2.wp-block-heading { line-height: 1.18 !important; letter-spacing: -0.02em !important; }
.tw2s-marquee-mask {
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tw2s-marquee:hover { animation-play-state: paused; }
.tw2s-client-logo { filter: grayscale(1); }
:root[data-theme="dark"] .tw2s-client-logo { filter: grayscale(1) invert(1) brightness(1.4); }

/* Story illustration swaps tone in dark mode */
.tw2s-og { background: var(--base-2); }
:root[data-theme="dark"] .tw2s-og { background: var(--surface); }
:root[data-theme="dark"] .tw2s-og__img { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.95); }

/* Elastic Team Gantt */
.tw2s-phase {
	padding: 7px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600;
	white-space: nowrap; overflow: hidden; transition: background .4s, color .4s;
	background: color-mix(in srgb, var(--panel-ink) 7%, transparent); color: var(--panel-ink-2);
}
.tw2s-phase.is-on { background: #2657C7; color: #121212; }
.tw2s-panel-btn {
	height: 34px; border-radius: 9px; border: 1px solid var(--panel-line);
	background: transparent; color: var(--panel-ink); cursor: pointer; font: inherit;
}
.tw2s-panel-btn:hover { border-color: var(--accent); }

/* Kanban */
[data-kcol] {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 400px;
}
.tw2s-kcard {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 11px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 10px;
	height: 114px;
	min-height: 114px;
	box-sizing: border-box;
	box-shadow: var(--card-shadow);
	animation: rise .5s both;
}
.tw2s-kcard > span:first-child {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--ink);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.tw2s-kcard > div:last-child {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: auto;
}

/* Toolbox tabs + tilted columns */
.tw2s-tab {
	font: inherit; font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 9px; border: 0; cursor: pointer;
	background: transparent; color: var(--ink-3); box-shadow: none;
}
.tw2s-tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px -4px rgba(14, 15, 26, .3); }
.tw2s-stack-view {
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
	mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}
@media (max-width: 760px) { .tw2s-stack-view { height: 380px !important; } }

/* Team Builder 2.0 (Modern Squad Configurator) */
.tw2s-builder-card {
	border: 1px solid var(--line);
	border-radius: 28px;
	background: var(--surface);
	display: grid;
	grid-template-columns: 1.08fr 1fr;
	overflow: hidden;
	box-shadow: var(--shadow);
	position: relative;
}
@media (max-width: 960px) {
	.tw2s-builder-card {
		grid-template-columns: 1fr;
	}
}
.tw2s-builder__main {
	padding: clamp(32px, 4.5vw, 56px);
	display: flex;
	flex-direction: column;
	gap: 28px;
	background: color-mix(in srgb, var(--base-2) 45%, var(--surface));
	border-inline-end: 1px solid var(--line);
}
@media (max-width: 960px) {
	.tw2s-builder__main {
		border-inline-end: 0;
		border-bottom: 1px solid var(--line);
	}
}
.tw2s-builder__side {
	padding: clamp(32px, 4.5vw, 56px);
	background: var(--surface);
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Modern Interactive Chips */
.tw2s-chip-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.tw2s-chip {
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	height: 44px;
	padding: 0 16px 0 14px;
	border-radius: 999px;
	border: 1px solid var(--line-2);
	background: var(--surface);
	color: var(--ink);
	display: inline-flex;
	align-items: center;
	gap: 9px;
	transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
	user-select: none;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.tw2s-chip:hover {
	border-color: color-mix(in srgb, var(--accent) 55%, var(--line-2));
	transform: translateY(-2px);
	box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.08);
}
.tw2s-chip__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 700;
	background: color-mix(in srgb, var(--ink) 8%, transparent);
	color: var(--ink-2);
	transition: all 0.2s;
}
.tw2s-chip.is-on {
	background: color-mix(in srgb, var(--accent) 10%, var(--surface));
	border-color: var(--accent);
	color: var(--ink);
	box-shadow: 0 4px 14px -3px color-mix(in srgb, var(--accent) 35%, transparent);
}
:root[data-theme="dark"] .tw2s-chip.is-on {
	background: color-mix(in srgb, var(--accent) 22%, #161724);
	border-color: color-mix(in srgb, var(--accent) 80%, #ffffff);
	color: #FFFFFF;
	box-shadow: 0 4px 16px -2px color-mix(in srgb, var(--accent) 45%, transparent);
}
.tw2s-chip.is-on .tw2s-chip__mark {
	background: var(--accent);
	color: #FFFFFF;
}

/* Builder perks card (fills the left space cleanly) */
.tw2s-builder-perks {
	margin-top: auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
	gap: 16px;
	padding: 18px 20px;
	border-radius: 18px;
	background: var(--surface);
	border: 1px solid var(--line);
}
.tw2s-builder-perk {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding-inline-start: 12px;
	border-inline-start: 2px solid color-mix(in srgb, var(--accent) 45%, var(--line));
}
.tw2s-builder-perk strong {
	font-size: 13.5px;
	font-weight: 700;
	display: block;
	color: var(--ink);
	line-height: 1.3;
}
.tw2s-builder-perk span {
	font-size: 12px;
	color: var(--ink-2);
	line-height: 1.4;
	display: block;
	margin-top: 2px;
}

/* Squad Member Card (Modern Specialist Pass) */
.tw2s-crew-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 16px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--surface);
	transition: all 0.2s ease;
	animation: rise .35s both;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.tw2s-crew-card:hover {
	border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
	transform: translateX(3px);
	box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.06);
}
.tw2s-crew-info {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}
.tw2s-crew-details {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.tw2s-role-badge {
	font-size: 11px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
	white-space: nowrap;
	letter-spacing: 0.02em;
	flex-shrink: 0;
}
.tw2s-role-badge--design {
	background: color-mix(in srgb, #6C74D9 14%, transparent);
	color: #6C74D9;
}
.tw2s-role-badge--code {
	background: color-mix(in srgb, var(--accent) 14%, transparent);
	color: var(--accent);
}
.tw2s-role-badge--growth {
	background: color-mix(in srgb, #2FA36B 14%, transparent);
	color: #23935C;
}
.tw2s-role-badge--lead {
	background: color-mix(in srgb, #F0AC0E 16%, transparent);
	color: #D97706;
}
:root[data-theme="dark"] .tw2s-role-badge--lead {
	color: #FBBF24;
}

/* Counter pill */
.tw2s-crew-counter {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ink-2);
	background: color-mix(in srgb, var(--ink) 6%, transparent);
	padding: 5px 12px;
	border-radius: 999px;
	border: 1px solid var(--line);
}
.tw2s-live-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #2FA36B;
	box-shadow: 0 0 0 2px color-mix(in srgb, #2FA36B 30%, transparent);
	animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.6; transform: scale(1.15); }
}

/* Founder direct line card */
.tw2s-founder-box {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	border-radius: 16px;
	background: color-mix(in srgb, var(--base-2) 65%, var(--surface));
	border: 1px solid var(--line);
	margin-top: auto;
}

/* Form refinement */
.tw2s-crew-form summary {
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
	list-style: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--ink) 4%, transparent);
	border: 1px solid var(--line);
	transition: all 0.2s;
	width: fit-content;
}
.tw2s-crew-form summary:hover {
	background: color-mix(in srgb, var(--ink) 8%, transparent);
}
.tw2s-crew-form input,
.tw2s-crew-form textarea {
	transition: border-color 0.2s, box-shadow 0.2s;
}
.tw2s-crew-form input:focus,
.tw2s-crew-form textarea:focus {
	outline: none;
	border-color: var(--accent) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
@media (max-width: 860px) { .tw2s-builder__side { border-inline-start: 0 !important; border-top: 1px solid var(--line); } }

/* Filter pills (Work, Articles, Case studies) */
.tw2s-pill {
	font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer; height: 38px; padding: 0 16px;
	border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
	display: inline-flex; gap: 8px; align-items: center; white-space: nowrap;
}
.tw2s-pill--sm { font-size: 14px; height: 36px; padding: 0 14px; }
.tw2s-pill:hover { color: var(--ink); border-color: var(--line-2); }
.tw2s-pill.is-on { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }
.tw2s-tag {
	font: inherit; font-size: 13px; cursor: pointer; height: 34px; padding: 0 12px; border-radius: 8px;
	border: 1px solid var(--line); background: transparent; color: var(--ink-2);
}
.tw2s-tag:hover { color: var(--ink); }
.tw2s-tag.is-on { background: var(--accent-soft); color: var(--ink); border-color: var(--accent); }

/* Checkbox chips (Growth Partnership form) */
.tw2s-check-chip { position: relative; display: inline-flex; }
.tw2s-check-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tw2s-check-chip > span {
	height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2);
	background: var(--base); color: var(--ink); font-size: 13.5px; cursor: pointer;
	display: inline-flex; align-items: center; gap: 4px; user-select: none;
}
.tw2s-check-chip__mark::before { content: "+"; }
.tw2s-check-chip input:checked + span { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }
.tw2s-check-chip input:checked + span .tw2s-check-chip__mark::before { content: "✓"; }
.tw2s-check-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

/* FAQ */
.tw2s-faq[open] .tw2s-faq__icon { background: var(--base-2); }
.tw2s-faq summary:hover span:first-child { color: var(--ink); }

/* Company polaroids */
.tw2s-polaroid {
	margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
	padding: 10px 10px 18px; box-shadow: var(--polaroid-shadow);
	transform: rotate(var(--tilt, 0deg)); transition: transform .35s var(--ease);
	display: flex; flex-direction: column; gap: 14px;
}
.tw2s-polaroid:hover { transform: rotate(0deg) translateY(-6px); }
.tw2s-polaroid__img {
	width: 112%; max-width: none; margin: 0 -6%; display: block;
	transform-origin: 50% 100%; transition: transform .5s var(--ease);
}
.tw2s-polaroid:hover .tw2s-polaroid__img { transform: scale(1.05) rotate(-1.5deg); }

/* Industries core cards stack their visual on narrow screens */
@media (max-width: 900px) { .tw2s-core-visual { border-inline-start: 0 !important; border-top: 1px solid var(--line); } }
@media (max-width: 860px) { .tw2s-apply__form { border-inline-start: 0 !important; border-top: 1px solid var(--line); } }

/* Editor content --------------------------------------------------------- */
.tw2s-prose { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.tw2s-prose > * + * { margin-top: 1.1em; }
.tw2s-prose > :first-child { margin-top: 0; }
.tw2s-prose h2, .tw2s-prose h3, .tw2s-prose h4 { color: var(--ink); letter-spacing: -0.025em; line-height: 1.15; margin: 1.8em 0 .5em; }
.tw2s-prose h2 { font-size: 28px; }
.tw2s-prose h3 { font-size: 22px; }
.tw2s-prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.tw2s-prose a:hover { color: var(--brand); }
.tw2s-prose ul, .tw2s-prose ol { padding-inline-start: 1.2em; }
.tw2s-prose li + li { margin-top: .4em; }
.tw2s-prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-inline-start: 3px solid var(--accent); font-size: 21px; line-height: 1.45; color: var(--ink); }
.tw2s-prose img, .tw2s-prose figure img { border-radius: 16px; }
.tw2s-prose figure { margin: 1.6em 0; }
.tw2s-prose figcaption { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.tw2s-prose code { font-family: var(--mono); font-size: .9em; background: var(--base-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.tw2s-prose pre { background: var(--panel); color: var(--panel-ink); padding: 18px; border-radius: 14px; overflow: auto; }
.tw2s-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tw2s-prose th, .tw2s-prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: start; }
.tw2s-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

.tw2s-prose--article { font-size: 18px; line-height: 1.75; }
.tw2s-prose--article h2 { margin-top: 40px; margin-bottom: 16px; font-size: 28px; font-weight: 700; }
.tw2s-prose--article > h2:first-child { margin-top: 0; }
.tw2s-prose--article p + p { margin-top: 16px; }
.tw2s-h2-num { font-family: var(--mono); font-size: 14px; color: var(--accent); margin-inline-end: 10px; font-weight: 500; letter-spacing: 0; vertical-align: middle; }

.alignwide { max-width: 1280px; }
.wp-block-button__link { text-decoration: none; }

/* Pagination */
.tw2s-pagination .nav-links, .tw2s-pagination { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.tw2s-pagination .page-numbers, .tw2s-pagination a, .tw2s-pagination > span {
	height: 38px; min-width: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
	display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); background: var(--surface); font-size: 14px;
}
.tw2s-pagination .page-numbers.current { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }
.tw2s-pagination h2 { display: none; }

/* Third-party form embeds pick up the design language */
.tw2s-form-embed input[type="text"], .tw2s-form-embed input[type="email"], .tw2s-form-embed input[type="url"],
.tw2s-form-embed input[type="tel"], .tw2s-form-embed select, .tw2s-form-embed textarea {
	width: 100%; min-height: 46px; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px;
	background: var(--base); color: var(--ink); font-size: 15px;
}
.tw2s-form-embed input[type="submit"], .tw2s-form-embed button[type="submit"] {
	height: 50px; border: 0; border-radius: 999px; padding: 0 24px; background: var(--btn); color: var(--on-btn); font-weight: 600; cursor: pointer;
}
.tw2s-form-embed label { font-size: 13px; font-weight: 600; color: var(--ink); }

/* Comments */
.tw2s-comments .comment-body { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--surface); }
.tw2s-comments .children { list-style: none; padding-inline-start: 24px; }
.tw2s-comments input:not([type="submit"]):not([type="checkbox"]), .tw2s-comments textarea {
	width: 100%; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; background: var(--base); color: var(--ink);
}
.tw2s-comments input[type="submit"] { height: 46px; border: 0; border-radius: 999px; padding: 0 22px; background: var(--btn); color: var(--on-btn); font-weight: 600; cursor: pointer; }

/* WordPress core alignment helpers */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, .gallery-caption { font-size: 13px; color: var(--ink-3); }
.sticky, .bypostauthor { outline: 0; }

/* Elastic Team Gantt on narrow screens: the role column stays pinned while the
   timeline glides after the yellow "today" line (theme.js). Width is kept. */
@media (max-width: 820px) {
	.tw2s-gantt { scroll-behavior: smooth; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: thin; }
	.tw2s-gantt { padding-left: 0 !important; }
	.tw2s-gantt__grid { grid-template-columns: 150px minmax(0, 1fr) !important; }
	.tw2s-gantt__label { position: sticky; left: 0; z-index: 2; padding-left: 14px; background: color-mix(in srgb, var(--panel-ink) 3%, var(--panel)); box-shadow: 12px 0 14px -12px rgba(0, 0, 0, .35); }
	.tw2s-gantt__controls { padding-left: 14px; }
	.tw2s-gantt__role { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
	.tw2s-gantt__controls { grid-column: 1 / -1; position: sticky; left: 0; width: var(--gantt-vw, 100%); box-sizing: border-box; }
	.tw2s-gantt__spacer { display: none; }
}

/* Sprint board on narrow screens: keeps its full size and glides to the card that moved. */
.tw2s-kanban-wrap { scrollbar-width: thin; }
@media (max-width: 820px) {
	.tw2s-kanban-wrap { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
}

/* Why Elastic: table on desktop; stacked cards with tabs on tablet and mobile (no sideways swiping). */
/* Modern Comparison Table Redesign */
.tw2s-cmp-table {
	margin: 0;
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: 24px;
	background: var(--surface);
	box-shadow: var(--card-shadow);
	position: relative;
}
.tw2s-cmp-row {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr 1.45fr;
	transition: background 0.2s ease;
}
.tw2s-cmp-row:hover {
	background: color-mix(in srgb, var(--ink) 2.5%, transparent);
}
.tw2s-cmp-cell {
	padding: 18px 20px;
	border-bottom: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	justify-content: center;
	font-size: 14px;
	line-height: 1.45;
}
.tw2s-cmp-cell--head {
	padding: 24px 20px;
	font-weight: 700;
	border-bottom: 1px solid var(--line);
}
.tw2s-cmp-cell--highlight {
	background: color-mix(in srgb, var(--accent) 6%, var(--surface));
	border-inline: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}
.tw2s-cmp-cell--highlight.tw2s-cmp-cell--head {
	background: color-mix(in srgb, var(--accent) 12%, var(--surface));
	border-inline: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
:root[data-theme="dark"] .tw2s-cmp-cell--highlight {
	background: color-mix(in srgb, var(--accent) 10%, #151620) !important;
	border-inline-color: color-mix(in srgb, var(--accent) 30%, transparent) !important;
}
:root[data-theme="dark"] .tw2s-cmp-cell--highlight.tw2s-cmp-cell--head {
	background: color-mix(in srgb, var(--accent) 18%, #171926) !important;
	border-inline-color: color-mix(in srgb, var(--accent) 40%, transparent) !important;
}
.tw2s-check-icon {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--accent) 18%, transparent);
	color: var(--accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
:root[data-theme="dark"] .tw2s-check-icon {
	background: color-mix(in srgb, var(--accent) 28%, transparent);
	color: #60A5FA;
}
.tw2s-cmp-cell--center {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.tw2s-icon-hero {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--accent);
	color: #FFFFFF;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px -1px color-mix(in srgb, var(--accent) 45%, transparent);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tw2s-cmp-row:hover .tw2s-icon-hero {
	transform: scale(1.1);
	box-shadow: 0 4px 12px -2px color-mix(in srgb, var(--accent) 60%, transparent);
}
.tw2s-icon-yes {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: color-mix(in srgb, #22C55E 14%, transparent);
	color: #16A34A;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
:root[data-theme="dark"] .tw2s-icon-yes {
	background: color-mix(in srgb, #22C55E 18%, transparent);
	color: #4ADE80;
}
.tw2s-icon-partial {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: color-mix(in srgb, #F59E0B 14%, transparent);
	color: #D97706;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
:root[data-theme="dark"] .tw2s-icon-partial {
	background: color-mix(in srgb, #F59E0B 18%, transparent);
	color: #FBBF24;
}
.tw2s-icon-no {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--ink) 6%, transparent);
	color: var(--ink-3);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.tw2s-tag-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	padding: 3px 9px;
	border-radius: 6px;
	width: fit-content;
}
.tw2s-tag-status--yes {
	background: color-mix(in srgb, #22C55E 14%, transparent);
	color: #16A34A;
}
:root[data-theme="dark"] .tw2s-tag-status--yes {
	background: color-mix(in srgb, #22C55E 18%, transparent);
	color: #4ADE80;
}
.tw2s-tag-status--limited,
.tw2s-tag-status--sometimes {
	background: color-mix(in srgb, #F59E0B 14%, transparent);
	color: #D97706;
}
:root[data-theme="dark"] .tw2s-tag-status--limited,
:root[data-theme="dark"] .tw2s-tag-status--sometimes {
	background: color-mix(in srgb, #F59E0B 18%, transparent);
	color: #FBBF24;
}
.tw2s-tag-status--no,
.tw2s-tag-status--difficult {
	background: color-mix(in srgb, var(--ink) 8%, transparent);
	color: var(--ink-3);
}

.tw2s-cmp { display: none; }
@media (max-width: 1024px) {
	.tw2s-cmp-table { display: none; }
	.tw2s-cmp { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: start; }
}
.tw2s-cmp__card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tw2s-cmp__head h3 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.tw2s-cmp__head p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.tw2s-cmp__tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--base-2); border: 1px solid var(--line); border-radius: 12px; }
.tw2s-cmp__tabs button { font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.2; min-height: 42px; padding: 8px 6px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.tw2s-cmp__tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(14, 15, 26, .08), inset 0 0 0 1px var(--line); }
.tw2s-cmp__tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tw2s-cmp__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tw2s-cmp__list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.4; font-weight: 500; color: var(--ink); animation: rise .35s both; }
.tw2s-cmp__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.tw2s-cmp__list li:nth-child(2) { animation-delay: .04s; }
.tw2s-cmp__list li:nth-child(3) { animation-delay: .08s; }
.tw2s-cmp__list li:nth-child(4) { animation-delay: .12s; }
.tw2s-cmp__list li:nth-child(5) { animation-delay: .16s; }
.tw2s-cmp__list li:nth-child(n+6) { animation-delay: .2s; }
.tw2s-cmp__ico { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; border: 1px solid var(--line); background: radial-gradient(115% 121% at 80% 10%, var(--surface) 0%, var(--base-2) 100%); display: flex; align-items: center; justify-content: center; color: var(--ink-3); }
.tw2s-cmp__card--us { background: var(--panel); border-color: color-mix(in srgb, var(--accent) 45%, var(--panel-line)); color: var(--panel-ink); }
.tw2s-cmp__card--us .tw2s-cmp__head h3 { color: var(--panel-ink); }
.tw2s-cmp__card--us .tw2s-cmp__head p { color: var(--panel-ink-2); }
.tw2s-cmp__card--us .tw2s-cmp__list li { color: var(--panel-ink); border-color: var(--panel-line); }
.tw2s-cmp__card--us .tw2s-cmp__ico { background: color-mix(in srgb, var(--panel-ink) 6%, transparent); border-color: var(--panel-line); color: var(--accent); }
.tw2s-cmp__crew { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13.5px; font-weight: 500; color: var(--panel-ink-2); padding-bottom: 4px; border-bottom: 1px solid var(--panel-line); padding: 0 0 16px; }
@media (max-width: 380px) { .tw2s-cmp__tabs button { font-size: 12.5px; } .tw2s-cmp__card { padding: 18px; } }
@media (prefers-reduced-motion: reduce) { .tw2s-cmp__list li { animation: none; } }

/* Footer: "Get an AI summary" */
.tw2s-ai { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.tw2s-ai__label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tw2s-ai__label svg { color: var(--accent); flex-shrink: 0; }
.tw2s-ai__list { display: inline-flex; gap: 8px; }
.tw2s-ai__btn {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--surface);
	color: var(--ink);
	border: 1px solid var(--line-2);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.tw2s-ai__btn:hover {
	transform: translateY(-2px);
	background: color-mix(in srgb, var(--accent) 12%, var(--surface));
	border-color: var(--accent);
	color: var(--accent);
	box-shadow: 0 4px 14px -3px color-mix(in srgb, var(--accent) 40%, transparent);
}
.tw2s-ai__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Secondary buttons: white outline pill in light mode, solid light pill in dark mode. */
.tw2s-btn-secondary { background: var(--surface) !important; color: var(--ink) !important; border: 1px solid var(--line-2); transition: border-color .2s, opacity .2s; }
.tw2s-btn-secondary:hover { border-color: var(--ink); color: var(--ink) !important; }
[data-theme="dark"] .tw2s-btn-secondary { background: var(--btn) !important; color: var(--on-btn) !important; border-color: var(--btn); }
[data-theme="dark"] .tw2s-btn-secondary:hover { opacity: .9; color: var(--on-btn) !important; }

/* Dark mode: no bright blocks on black ---------------------------------------- */
:root[data-theme="dark"] .tw2s-paper { background: var(--paper) !important; border-color: #222 !important; box-shadow: 0 0 0 1px #1D1D1D !important; }
:root[data-theme="dark"] .tw2s-paper [style*="#131313"], :root[data-theme="dark"] .tw2s-paper[style*="color:#131313"] { color: #E6E6E6 !important; }
:root[data-theme="dark"] .tw2s-paper [style*="#EEE"], :root[data-theme="dark"] .tw2s-paper [style*="#E5E3DD"] { border-color: #222 !important; background-color: #262626 !important; }
:root[data-theme="dark"] .tw2s-paper img:not(.tw2s-feat) { filter: grayscale(1) invert(1) brightness(1.6); opacity: .85; }
:root[data-theme="dark"] [data-row-bar] { filter: brightness(.72) saturate(.8); }
:root[data-theme="dark"] .tw2s-pastel { background: color-mix(in srgb, var(--bgc) 16%, #111) !important; }

:root[data-theme="dark"] .tw2s-kcard, :root[data-theme="dark"] .tw2s-float__card { background: var(--surface-2); }
/* Featured images with a dark twin: show the matching one. */
.tw2s-feat--dark { display: none !important; }
:root[data-theme="dark"] .tw2s-feat--light { display: none !important; }
:root[data-theme="dark"] .tw2s-feat--dark { display: block !important; }
/* A light image with no dark twin: take the glare off. */
:root[data-theme="dark"] img.tw2s-feat:not(.tw2s-feat--dark) { filter: brightness(.86) saturate(.9); }
/* Crew illustrations carry their own pastel paper: soften it on black. */
:root[data-theme="dark"] .tw2s-polaroid__img { filter: brightness(.8) saturate(.85); }

/* Project and case study hero images on phones: the whole image, centred, at its own
   proportions (the desktop frame would crop a 4:3 or 16:9 image to a near-square). */
@media (max-width: 760px) {
	.tw2s-hero-media { aspect-ratio: auto !important; min-height: 0 !important; display: flex; align-items: center; justify-content: center; }
	.tw2s-hero-media img.tw2s-feat { position: static !important; width: 100% !important; height: auto !important; object-fit: contain !important; object-position: center; }
}

/* Case study "Elastic Team in action": one column per phase, each as wide as its longest
   job title (never cropped). Fills the card on wide screens; scrolls sideways and glides on
   its own (theme.js) when the phases don't fit. */
.tw2s-phases { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--panel-line) transparent; margin: 0 calc(-1 * clamp(24px, 3.5vw, 40px)); padding: 0 clamp(24px, 3.5vw, 40px) 10px; scroll-padding: 0 clamp(24px, 3.5vw, 40px); }
.tw2s-phases:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tw2s-phases.is-scrollable { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 40px), transparent); }
.tw2s-phases__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(max-content, 1fr); gap: 12px; align-items: end; min-height: 220px; width: max-content; min-width: 100%; }
.tw2s-phases__col { display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; height: 100%; min-width: 150px; }
.tw2s-phases__bar { height: 32px; border-radius: 8px; color: #121212; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tw2s-phases__bar img, .tw2s-phases__bar > span:first-child { flex-shrink: 0; }

/* Mobile touch accessibility enhancements */
@media (max-width: 768px) {
	.wp-block-breadcrumbs a {
		display: inline-flex;
		align-items: center;
		min-height: 36px;
		padding: 4px 6px;
	}
	.site-footer .wp-block-navigation a {
		display: inline-flex;
		align-items: center;
		min-height: 34px;
		padding: 4px 0;
	}
	.product-card a {
		min-height: 32px;
	}
}

