/* ==========================================================================
   Homepage — hero "We build it. We staff it. We run it." + homepage sections
   Ported from the approved prototype (05-Development/design-preview). Loaded on the front page only.
   ========================================================================== */

/* ---------- Hero shell ---------- */
.btk-blocks .btk-home-hero {
	position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) 0 0;
	background:
		radial-gradient(60% 70% at 78% 40%, rgba(8,126,105,.38) 0%, rgba(8,126,105,0) 60%),
		radial-gradient(50% 60% at 8% 100%, rgba(61,214,163,.10) 0%, rgba(61,214,163,0) 70%),
		linear-gradient(180deg, var(--bt-teal-950) 0%, var(--bt-teal-900) 100%);
}
.btk-home-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: linear-gradient(rgba(169,195,188,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(169,195,188,.07) 1px, transparent 1px);
	background-size: 64px 64px; mask-image: radial-gradient(70% 70% at 60% 45%, #000 30%, transparent 80%); }
.btk-home-hero::after { content: ""; position: absolute; z-index: -1; width: 46vw; aspect-ratio: 1; right: -8vw; top: 6vh; border-radius: 50%; pointer-events: none;
	background: radial-gradient(circle, rgba(61,214,163,.22), rgba(61,214,163,0) 65%); filter: blur(10px); animation: btkh-glow 18s var(--ease-in-out) infinite alternate; }
@keyframes btkh-glow { to { transform: translate(-6vw, 8vh) scale(1.12); } }
.btk-blocks .btk-home-hero > .wp-block-group__inner-container > * + * { margin-top: 0 !important; }

.btk-blocks .btk-home-hero__grid { display: grid !important; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(2rem, 4vw, 5rem); padding-bottom: 3rem; }
.btk-home-hero__copy { display: grid; justify-items: start; }
.btk-home-hero__copy > * { margin: 0 !important; }

.btk-blocks .btk-home-kicker { display: inline-flex; align-items: center; gap: .65rem; padding: .45rem .9rem .45rem .55rem !important; margin-bottom: 1.75rem !important; border-radius: 999px; border: 1px solid var(--color-border-dark); background: rgba(255,255,255,.04);
	font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--bt-grey-300); }
.btk-home-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bt-mint-400); box-shadow: 0 0 0 0 rgba(61,214,163,.6); animation: btkh-ping 2.4s var(--ease-out) infinite; }
@keyframes btkh-ping { to { box-shadow: 0 0 0 7px rgba(61,214,163,0); } }

.btk-blocks h1.btk-home-title { font-size: var(--fs-display); line-height: 1.0; letter-spacing: -0.035em; color: #fff; max-width: none; margin-bottom: 1.75rem !important; }
/* Verb highlight: underline drawn with a background gradient (no position:relative / pseudo-element,
   so the verbs stay part of the H1's text for Largest Contentful Paint). */
.btk-home-title em { font-style: normal; color: var(--bt-mint-400); background: linear-gradient(currentColor, currentColor) left 0 bottom .05em / 100% .07em no-repeat;
	transition: color var(--dur-slow) var(--ease-out), background-size var(--dur-slower) var(--ease-expo); }
.js .btk-home-title.is-cycling em { color: #fff; background-size: 0 .07em; background-position: right 0 bottom .05em; }
.js .btk-home-title.is-cycling em.is-active { color: var(--bt-mint-400); background-size: 100% .07em; background-position: left 0 bottom .05em; }

.btk-blocks .btk-home-lead { max-width: 37rem; font-size: var(--fs-lead); line-height: 1.6; color: var(--bt-grey-300); margin-bottom: 2.25rem !important; }
.btk-home-lead strong { color: #fff; font-weight: 600; }
.btk-home-hero .wp-block-buttons { margin-bottom: 2.5rem !important; }
.btk-blocks .btk-home-proof { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 0; list-style: none; }
.btk-home-proof li { position: relative; padding-left: 1.5rem; font-size: .875rem; color: var(--bt-grey-300); }
.btk-home-proof li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1rem; height: 1rem; background: var(--bt-mint-400); -webkit-mask: url("../img/icons/check.svg") center / contain no-repeat; mask: url("../img/icons/check.svg") center / contain no-repeat; }

/* Intro: CSS only (no JS wait). H1 never starts invisible, so LCP paints at once. */
.btk-home-title { animation: btkh-rise var(--dur-slower) var(--ease-expo) both .05s; }
@keyframes btkh-rise { from { transform: translateY(18px); } }
.btk-home-hero__copy > :not(.btk-home-title) { animation: btkh-fade var(--dur-slow) var(--ease-out) both; }
.btk-home-hero__copy > .btk-home-kicker { animation-delay: .05s; }
.btk-home-hero__copy > .btk-home-lead { animation-delay: .35s; }
.btk-home-hero__copy > .wp-block-buttons { animation-delay: .45s; }
.btk-home-hero__copy > .btk-home-proof { animation-delay: .55s; }
@keyframes btkh-fade { from { opacity: 0; transform: translateY(20px); } }

/* ---------- Hero visual ---------- */
.btk-hv { position: relative; width: 100%; max-width: 620px; margin-left: auto; aspect-ratio: 1; container-type: inline-size; }
.btk-hv__orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.btk-hv__rings { transform-origin: 300px 300px; animation: btkh-spin 90s linear infinite; }
.btk-hv__rings--rev { animation-duration: 140s; animation-direction: reverse; }
@keyframes btkh-spin { to { transform: rotate(360deg); } }
.btk-hv__path { fill: none; stroke: rgba(169,195,188,.28); stroke-width: 1.25; }
.btk-hv__flow { fill: none; stroke: var(--bt-mint-400); stroke-width: 1.75; stroke-linecap: round; stroke-dasharray: 3 14; opacity: .35; animation: btkh-flow 1.6s linear infinite; transition: opacity var(--dur-slow) var(--ease-out), stroke-width var(--dur-slow); }
.btk-hv__flow.is-active { opacity: 1; stroke-width: 2.25; }
@keyframes btkh-flow { to { stroke-dashoffset: -17; } }
.btk-hv__draw { stroke-dasharray: 520; animation: btkh-draw 1.4s var(--ease-expo) .5s both; }
@keyframes btkh-draw { from { stroke-dashoffset: 520; } to { stroke-dashoffset: 0; } }
.btk-hv__hub { position: absolute; left: 50%; top: 50%; width: 23cqi; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; overflow: hidden; background: #fff; display: grid; place-items: center;
	box-shadow: 0 0 0 10px rgba(61,214,163,.05), 0 0 0 22px rgba(61,214,163,.03), 0 30px 60px -10px rgba(0,0,0,.5); }
.btk-hv__hub img { width: 100%; height: 100%; object-fit: cover; scale: 1.1; }
.btk-hv__hub-text { font-family: var(--font-heading); font-weight: 900; font-size: 8cqi; color: var(--bt-teal-900); }
.btk-hv__card { position: absolute; width: 41cqi; padding: 3cqi; border-radius: 3.4cqi; font-size: 2.35cqi; line-height: 1.35;
	background: linear-gradient(160deg, rgba(23,65,74,.92), rgba(11,34,39,.92)); border: 1px solid var(--color-border-dark);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow-float);
	transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: border-color var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out), scale var(--dur-slow) var(--ease-out);
	animation: btkh-fade var(--dur-slow) var(--ease-out) both; }
.btk-hv__card--build { left: 0; top: 4cqi; animation-delay: .4s; }
.btk-hv__card--staff { right: -2cqi; top: 34cqi; width: 36cqi; animation-delay: .55s; }
.btk-hv__card--run { left: 10cqi; bottom: 0; animation-delay: .7s; }
.btk-hv__float { animation: btkh-bob 7s var(--ease-in-out) infinite alternate; }
.btk-hv__card--build .btk-hv__float { animation-duration: 6.5s; } .btk-hv__card--run .btk-hv__float { animation-duration: 8s; }
@keyframes btkh-bob { from { translate: 0 -1.2cqi; } to { translate: 0 1.2cqi; } }
.btk-hv__card.is-active { border-color: rgba(61,214,163,.75); box-shadow: 0 0 0 4px rgba(61,214,163,.12), var(--shadow-float); scale: 1.03; }
.btk-hv__head { display: flex; align-items: center; justify-content: space-between; gap: 1cqi; margin-bottom: 2.2cqi; }
.btk-hv__tag { display: inline-flex; align-items: center; gap: 1.2cqi; font-family: var(--font-heading); font-weight: 700; font-size: 2.7cqi; color: #fff; }
.btk-hv__tag .btk-i { width: 4cqi; height: 4cqi; color: var(--bt-mint-400); }
.btk-hv__dots { display: flex; gap: .8cqi; } .btk-hv__dots i { width: 1.3cqi; height: 1.3cqi; border-radius: 50%; background: rgba(169,195,188,.35); }
.btk-hv__code { display: grid; gap: 1.3cqi; }
.btk-hv__code span { display: block; height: 1.5cqi; border-radius: 1cqi; background: rgba(169,195,188,.22); transform-origin: left; animation: btkh-type 5.5s var(--ease-out) infinite; animation-delay: calc(var(--i) * 180ms); }
.btk-hv__code span:nth-child(1) { width: 62%; } .btk-hv__code span:nth-child(2) { width: 84%; margin-left: 4cqi; background: rgba(61,214,163,.55); } .btk-hv__code span:nth-child(3) { width: 48%; margin-left: 4cqi; } .btk-hv__code span:nth-child(4) { width: 70%; margin-left: 8cqi; background: rgba(61,214,163,.3); } .btk-hv__code span:nth-child(5) { width: 36%; }
@keyframes btkh-type { 0% { transform: scaleX(0); } 18%, 80% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
.btk-hv__avatars { display: flex; margin-bottom: 1.8cqi; }
.btk-hv__avatars b { display: grid; place-items: center; width: 6.6cqi; height: 6.6cqi; border-radius: 50%; margin-right: -1.6cqi; border: .5cqi solid var(--bt-teal-900); font-family: var(--font-heading); font-size: 2.2cqi; color: var(--bt-teal-900); }
.btk-hv__avatars b:nth-child(1) { background: #E8F5EE; } .btk-hv__avatars b:nth-child(2) { background: #3DD6A3; } .btk-hv__avatars b:nth-child(3) { background: #A9C3BC; } .btk-hv__avatars b:nth-child(4) { background: #fff; }
.btk-hv__meta { color: var(--bt-grey-300); }
.btk-hv__bar { height: 1.3cqi; border-radius: 1cqi; background: rgba(169,195,188,.2); overflow: hidden; margin-top: 1.8cqi; }
.btk-hv__bar i { display: block; height: 100%; width: 72%; border-radius: inherit; background: linear-gradient(90deg, var(--bt-green-600), var(--bt-mint-400)); transform-origin: left; animation: btkh-grow 4s var(--ease-in-out) infinite alternate; }
@keyframes btkh-grow { from { transform: scaleX(.55); } to { transform: scaleX(1); } }
.btk-hv__status { display: grid; gap: 1.5cqi; margin: 0; padding: 0; list-style: none; }
.btk-hv__status li { display: flex; align-items: center; justify-content: space-between; gap: 2cqi; color: var(--bt-grey-300); font-size: inherit; }
.btk-hv__status li span { display: inline-flex; align-items: center; gap: 1.3cqi; color: #fff; }
.btk-hv__status li span::before { content: ""; width: 1.5cqi; height: 1.5cqi; border-radius: 50%; background: var(--bt-mint-400); box-shadow: 0 0 0 .7cqi rgba(61,214,163,.18); }

/* ---------- Marquee ---------- */
.btk-marquee { width: 100% !important; border-top: 1px solid var(--color-border-dark); overflow: hidden; padding: 1.35rem 0 calc(1.35rem + 32px); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.btk-marquee__track { display: flex; width: max-content; animation: btkh-marquee 48s linear infinite; }
.btk-marquee:hover .btk-marquee__track { animation-play-state: paused; }
.btk-marquee ul { display: flex; gap: 3rem; margin: 0; padding: 0 1.5rem; list-style: none; }
.btk-marquee li { display: inline-flex; align-items: center; gap: 3rem; white-space: nowrap; font-family: var(--font-heading); font-weight: 500; font-size: 1.125rem; color: var(--bt-grey-300); }
.btk-marquee li::after { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--bt-mint-400); transform: rotate(45deg); }
@keyframes btkh-marquee { to { transform: translateX(-50%); } }

/* ---------- Curtain (section rising over the hero) ---------- */
.btk-blocks .btk-curtain { position: relative; z-index: 2; margin-top: -32px !important; border-radius: var(--radius-xl) var(--radius-xl) 0 0; background: #fff; }

/* ---------- Logo grid (core image blocks) ---------- */
.btk-blocks .btk-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--bt-border); border-left: 1px solid var(--bt-border); }
.btk-logos .wp-block-image { display: grid; place-items: center; margin: 0 !important; aspect-ratio: 194 / 100; padding: 1.25rem; border-right: 1px solid var(--bt-border); border-bottom: 1px solid var(--bt-border); background: #fff; transition: background-color var(--dur-base) var(--ease-out); }
.btk-logos img { width: 100%; max-width: 160px; height: auto; filter: grayscale(1); opacity: .72; transition: filter var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
@media (hover: hover) { .btk-logos .wp-block-image:hover { background: var(--bt-grey-50); } .btk-logos .wp-block-image:hover img { filter: none; opacity: 1; transform: scale(1.04); } }

/* ---------- Split rows (people, Managed IT, partners) ---------- */
.btk-blocks .btk-split { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.btk-blocks .btk-split > .wp-block-column > * + * { margin-top: 1.1rem; }
.btk-split .wp-block-image { margin: 0; border-radius: var(--radius-xl); overflow: hidden; }
.btk-split .wp-block-image img { width: 100%; height: auto; display: block; }
.btk-pills { display: flex !important; flex-wrap: wrap; gap: .5rem; padding: 0 !important; list-style: none; }
.btk-pills li { padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--color-border-dark); background: rgba(255,255,255,.04); font-family: var(--font-heading); font-weight: 500; font-size: .9375rem; color: #fff; }

/* ---------- Mobile ---------- */
@media (max-width: 980px) {
	.btk-blocks .btk-home-hero__grid, .btk-blocks .btk-split { grid-template-columns: 1fr; }
	.btk-hv { margin-inline: auto; max-width: 520px; }
}
@media (max-width: 600px) {
	.btk-blocks .btk-home-kicker { margin-bottom: 1.25rem !important; font-size: .6875rem; }
	.btk-blocks h1.btk-home-title { margin-bottom: 1.25rem !important; }
	.btk-blocks .btk-home-lead { margin-bottom: 1.75rem !important; font-size: 1.0625rem; }
	.btk-home-hero .wp-block-buttons { flex-direction: column; align-items: stretch; width: 100%; }
	.btk-home-hero .wp-block-button__link { width: 100%; justify-content: space-between; }
	.btk-hv { aspect-ratio: 1 / .92; }
	.btk-hv__rings--rev { display: none; }
	.btk-marquee li { font-size: 1rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.btk-home-hero::after, .btk-home-kicker::before, .btk-hv__rings, .btk-hv__flow, .btk-hv__float, .btk-hv__code span, .btk-hv__bar i, .btk-marquee__track,
	.btk-home-title, .btk-home-hero__copy > *, .btk-hv__card, .btk-hv__draw { animation: none !important; }
	.btk-hv__draw { stroke-dashoffset: 0; }
	.btk-marquee__track { width: auto; } .btk-marquee__track > ul + ul { display: none; } .btk-marquee ul { flex-wrap: wrap; row-gap: .75rem; }
}

/* Outline button on the dark hero */
.btk-blocks .btk-home-hero .is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.32); }
.btk-blocks .btk-home-hero .is-style-outline .wp-block-button__link::before { background: #fff; }
.btk-blocks .btk-home-hero .is-style-outline .wp-block-button__link:hover { color: var(--bt-teal-900); }
.btk-blocks .btk-s.btk-curtain { padding-top: clamp(3.5rem, 2rem + 5vw, 6rem) !important; }

/* ==========================================================================
   Organisations we've delivered for — compact light band (mint + dot grid), one logo row, compact case cards
   ========================================================================== */
.btk-blocks .btk-s.btk-ow-section { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(2.5rem, 1.75rem + 2.5vw, 4.25rem) !important;
	background: radial-gradient(circle at 1px 1px, rgba(8,126,105,.16) 1px, transparent 1.5px) 0 0 / 22px 22px, linear-gradient(180deg, #F1FAF5, var(--bt-mint-100)); }
.btk-ow-section::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(40% 70% at 100% 0%, rgba(61,214,163,.22), transparent 70%), radial-gradient(35% 60% at 0% 100%, rgba(8,126,105,.1), transparent 70%); }
:is(.btk-s.btk-ow-section, .btk-s.btk-ow-section > .wp-block-group__inner-container) > * + * { margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem) !important; }
.btk-blocks .btk-ow-section .btk-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem 3rem; align-items: end; }
.btk-blocks .btk-ow-section .btk-head > .wp-block-group__inner-container { display: contents; }
.btk-blocks .btk-ow-section .btk-head .btk-eyebrow { grid-column: 1; color: var(--bt-green-700); }
.btk-blocks .btk-ow-section .btk-head h2 { grid-column: 1; font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.75rem); }
.btk-blocks .btk-ow-section .btk-head .btk-lead { grid-column: 2; grid-row: 1 / span 2; align-self: end; font-size: 1.0625rem; }
.btk-blocks .btk-ow { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.btk-ow__rows { min-width: 0; overflow: hidden; }
.btk-ow__rows { mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.btk-ow__row { overflow: hidden; padding-block: .4rem; }
.btk-ow__track { display: flex; width: max-content; animation: btk-ow-scroll 55s linear infinite; }
.btk-ow__rows:hover .btk-ow__track { animation-play-state: paused; }
.btk-ow__track ul { display: flex; gap: .75rem; margin: 0; padding: 0 .75rem 0 0; list-style: none; }
@keyframes btk-ow-scroll { to { transform: translateX(-50%); } }
.btk-ow__tile { display: grid; place-items: center; width: clamp(128px, 9.5vw, 156px); height: 68px; padding: .6rem 1rem; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(8,126,105,.1), 0 8px 20px -14px rgba(16,47,53,.35); transition: transform .35s var(--cta-ease, ease), box-shadow .35s; }
.btk-ow__tile img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.btk-ow__tile:hover { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--bt-green-600), 0 12px 24px -14px rgba(16,47,53,.45); }
.btk-ow__tile:hover img { filter: none; opacity: 1; }
.btk-ow__proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.btk-ow__card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem; align-items: start; padding: 1rem 1.1rem; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 0 0 1px rgba(8,126,105,.1); transition: transform .35s var(--cta-ease, ease), box-shadow .35s; }
.btk-ow__card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(8,126,105,.25), var(--shadow-card); }
.btk-ow__logo { display: grid; place-items: center; width: 64px; height: 44px; padding: .35rem; border-radius: 10px; background: var(--bt-grey-50); }
.btk-ow__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.btk-ow__body { display: grid; gap: .2rem; }
.btk-ow__tag { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--bt-green-700); }
.btk-blocks .btk-ow__card h3 { font-size: 1.0625rem; line-height: 1.3; color: var(--bt-teal-900); }
.btk-blocks .btk-ow__card h3 a { color: inherit !important; text-decoration: none; }
.btk-ow__card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.btk-blocks .btk-ow__card p { color: var(--bt-grey-600); font-size: .875rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.btk-ow__more { display: inline-flex; gap: .35rem; font-family: var(--font-heading); font-weight: 500; font-size: .875rem; color: var(--bt-green-700); }
.btk-ow__more::after { content: "→"; transition: transform .3s var(--cta-ease, ease); }
.btk-ow__card:hover .btk-ow__more::after { transform: translateX(4px); }
.btk-ow__card:focus-within { outline: 2px solid var(--bt-teal-900); outline-offset: 3px; }
.btk-ow__card h3 a:focus-visible { outline: none; box-shadow: none; }
.btk-ow-section .btk-more a { color: var(--bt-green-700); }
@media (max-width: 980px) {
	.btk-blocks .btk-ow-section .btk-head { grid-template-columns: 1fr; }
	.btk-blocks .btk-ow-section .btk-head .btk-lead { grid-column: 1; grid-row: auto; }
	/* small screens: case cards become a swipeable row instead of a tall stack */
	.btk-ow__proof { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(260px, 82%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; scrollbar-width: thin; }
	.btk-ow__card { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
	.btk-ow__track { animation: none; width: auto; }
	.btk-ow__dup { display: none !important; }
	.btk-ow__track ul { flex-wrap: wrap; justify-content: center; padding: 0; }
	.btk-ow__rows { mask-image: none; -webkit-mask-image: none; }
	.btk-ow__tile, .btk-ow__card { transition: none; }
	.btk-ow__track ul { gap: .5rem; }
	.btk-ow__tile { width: clamp(96px, 28vw, 140px); height: 56px; padding: .45rem .7rem; }
}

/* ==========================================================================
   Software we build and run — two flip cards side by side
   ========================================================================== */
.btk-blocks .btk-pshow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.btk-flip { position: relative; perspective: 1600px; }
.btk-flip__inner { position: relative; display: grid; height: 100%; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3,1.25,.4,1); }
.btk-flip__face { grid-area: 1 / 1; display: grid; align-content: start; border-radius: var(--radius-xl); overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; color: #fff;
	background: radial-gradient(70% 90% at 90% 0%, rgba(8,126,105,.5), transparent 65%), linear-gradient(160deg, var(--bt-teal-800), var(--bt-teal-950)); box-shadow: 0 30px 60px -36px rgba(11,34,39,.8); }
.btk-flip__back { transform: rotateY(180deg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); gap: 1rem;
	background: radial-gradient(60% 80% at 0% 100%, rgba(61,214,163,.22), transparent 65%), linear-gradient(200deg, var(--bt-teal-800), var(--bt-teal-950)); }
.btk-flip.is-flipped .btk-flip__inner { transform: rotateY(180deg); }
@media (hover: hover) { .btk-flip:not(.is-flipped):hover .btk-flip__inner { transform: rotateY(-6deg) rotateX(2deg); } }
.btk-flip__art { padding: 1.25rem 1.25rem 0; background: linear-gradient(180deg, rgba(255,255,255,.03), transparent); }
.btk-flip__art .btk-il { max-height: 300px; margin-inline: auto; }
.btk-flip__body { display: grid; gap: .6rem; justify-items: start; padding: 1rem clamp(1.5rem, 1rem + 2vw, 2.25rem) clamp(1.5rem, 1rem + 2vw, 2.25rem); }
.btk-flip__cat { margin: 0; padding: .3rem .65rem; border-radius: 8px; background: rgba(61,214,163,.14); color: var(--bt-mint-400); font-family: var(--font-mono); font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; justify-self: start; }
.btk-blocks .btk-flip__title { margin: 0; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); letter-spacing: -0.035em; color: #fff; }
.btk-blocks .btk-flip__title a { color: inherit !important; text-decoration: none; }
.btk-blocks .btk-flip__line { color: var(--bt-grey-300); font-size: 1.0625rem; }
.btk-flip__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .5rem; }
.btk-blocks .btk-flip__link { display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: .55rem 1.15rem; border-radius: 999px; background: var(--bt-green-600); color: #fff !important; font-family: var(--font-heading); font-weight: 500; text-decoration: none; transition: transform .35s var(--cta-ease), box-shadow .35s var(--cta-ease), background-color .25s; }
.btk-flip__link .btk-i { width: 14px; height: 14px; transition: transform .45s var(--cta-ease); }
.btk-blocks .btk-flip__ext { display: inline-flex; align-items: center; min-height: 46px; padding: .55rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); color: #fff !important; text-decoration: none; font-family: var(--font-heading); font-weight: 500; transition: border-color .25s, background-color .25s, transform .35s var(--cta-ease); }
.btk-flip__toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid rgba(61,214,163,.45); background: rgba(61,214,163,.08); color: #fff; font-family: var(--font-heading); font-weight: 500; font-size: 1rem; text-transform: none; letter-spacing: normal; line-height: 1.2; cursor: pointer; transition: background-color .25s, border-color .25s, transform .35s var(--cta-ease); }
.btk-flip__spin { display: inline-block; color: var(--bt-mint-400); transition: transform .6s var(--cta-ease); }
@media (hover: hover) {
	.btk-flip__link:hover { background: var(--bt-green-700); transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(61,214,163,.55); }
	.btk-flip__link:hover .btk-i { transform: translateX(3px); }
	.btk-flip__ext:hover { border-color: var(--bt-mint-400); background: rgba(255,255,255,.06); transform: translateY(-2px); }
	.btk-flip__toggle:hover { background: rgba(61,214,163,.18); border-color: var(--bt-mint-400); transform: translateY(-2px); }
	.btk-flip__toggle:hover .btk-flip__spin { transform: rotate(-180deg); }
}
.btk-flip__toggle:active, .btk-flip__link:active, .btk-flip__ext:active { transform: scale(.96); }
:is(.btk-flip__link, .btk-flip__ext, .btk-flip__toggle):focus-visible, .btk-flip__title a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px var(--bt-mint-400); }
.btk-flip__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem .9rem; margin: .25rem 0 0; padding: 0; list-style: none; }
.btk-flip__list li { position: relative; padding: .7rem .85rem .7rem 2.3rem; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--color-border-dark); font-family: var(--font-heading); font-weight: 500; font-size: .9375rem; color: #fff; }
.btk-flip__list li::before { content: ""; position: absolute; left: .85rem; top: 50%; width: .95rem; height: .95rem; translate: 0 -50%; background: var(--bt-mint-400); -webkit-mask: url("../img/icons/check.svg") center / contain no-repeat; mask: url("../img/icons/check.svg") center / contain no-repeat; }
.btk-flip.is-flipped .btk-flip__list li { animation: btk-flip-in .5s var(--cta-ease) both; animation-delay: calc(.35s + var(--k, 0) * 50ms); }
.btk-flip__list li:nth-child(2) { --k: 1; } .btk-flip__list li:nth-child(3) { --k: 2; } .btk-flip__list li:nth-child(4) { --k: 3; } .btk-flip__list li:nth-child(5) { --k: 4; } .btk-flip__list li:nth-child(6) { --k: 5; }
@keyframes btk-flip-in { from { opacity: 0; transform: translateY(8px); } }
.btk-blocks .btk-flip__meta { margin: 0; color: var(--bt-grey-300); font-size: .9375rem; }
.btk-flip__meta strong { display: block; font-family: var(--font-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--bt-mint-400); }
/* No JS: show both faces, no 3D */
html:not(.js) .btk-flip__face { position: static; transform: none; -webkit-backface-visibility: visible; backface-visibility: visible; grid-area: auto; }
html:not(.js) .btk-flip__inner { gap: 1rem; }
html:not(.js) .btk-flip__toggle { display: none; }
@media (max-width: 900px) { .btk-blocks .btk-pshow { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .btk-flip__list { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
	.btk-flip__inner { transition: none; transform: none !important; }
	.btk-flip__face { -webkit-backface-visibility: visible; backface-visibility: visible; transition: opacity .2s; }
	.btk-flip__back { transform: none; opacity: 0; visibility: hidden; }
	.btk-flip.is-flipped .btk-flip__back { opacity: 1; visibility: visible; }
	.btk-flip.is-flipped .btk-flip__front { opacity: 0; visibility: hidden; }
	.btk-flip__list li { animation: none !important; }
	.btk-flip__spin { transition: none; }
}
/* Front face: illustration on top, text anchored to the bottom (both faces share the taller face's height) */
.btk-flip__front { grid-template-rows: auto 1fr; }
.btk-flip__front .btk-flip__body { align-self: end; }
