/* ==========================================================================
   Take Diversion theme styles
   Sections pad themselves to a 1140px content box; blocks inside are full
   width of that box and left aligned.
   ========================================================================== */

:root {
	--td-ink: #333333;
	--td-ink-2: #5E5A6B;
	--td-paper: #FBFAFD;
	--td-white: #FFFFFF;
	--td-line: #E7E3EF;
	--td-track: #D6CFE3;
	--td-night: #1E1A27;
	--td-night-2: #2A2535;
	--td-night-ink: #F4F1F9;
	--td-night-mute: #B9B2C9;
	--td-pink: #f408ae;
	--td-amber: #ffc126;
	--td-accent-ink: #A8178F;
	--td-bad: #DC3F45;
	--td-grad: linear-gradient(90deg, #847ff3 0%, #cf34c9 24%, #f408ae 38%, #fa4c7b 60%, #ffc126 89%);
	--td-display: var(--wp--preset--font-family--display, 'Bricolage Grotesque', sans-serif);
	--td-body: var(--wp--preset--font-family--body, 'Figtree', sans-serif);
	--td-sign: var(--wp--preset--font-family--sign, 'Overpass', sans-serif);
	--td-gutter: max(20px, env(safe-area-inset-left, 0px));
	--td-pad: max(var(--td-gutter), calc((100% - 1140px) / 2));
	--td-head: 72px;
	--td-sec-y: clamp(72px, 9vw, 120px);
}

/* ---------- Base ---------- */
body { -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
:where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol) { margin-top: 0; margin-bottom: 0; }
:where(h1, h2, h3, h4) { text-wrap: balance; }
.wp-site-blocks > * { margin-block: 0 !important; }
:focus-visible { outline: 3px solid var(--td-pink); outline-offset: 3px; border-radius: 6px; }
.td-grad { background: var(--td-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.is-style-td-eyebrow {
	font-family: var(--td-sign); font-weight: 800; font-size: 13px; line-height: 1.4;
	letter-spacing: .14em; text-transform: uppercase; color: var(--td-accent-ink);
}
.is-style-td-lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--td-ink-2); max-width: 44ch; }

/* ---------- Buttons ---------- */
.wp-block-button__link {
	position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 10px;
	white-space: nowrap; transition: transform .2s ease;
}
.wp-block-button__link::before {
	content: ""; position: absolute; inset: -3px; border-radius: inherit; background: var(--td-grad);
	z-index: -1; opacity: 0; transition: opacity .25s;
}
.wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button__link:hover::before { opacity: 1; }
.td-arrow .wp-block-button__link::after {
	content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.is-style-td-light .wp-block-button__link { background: var(--td-white); color: var(--td-night); }
@media (max-width: 420px) { .wp-block-button__link { font-size: 15px; padding: 14px 20px; } }

/* ---------- Header ---------- */
.td-header-part { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; }
.td-header {
	padding-inline: var(--td-pad);
	background: color-mix(in srgb, var(--td-paper) 88%, transparent);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--td-line);
}
body .td-header-in { min-height: var(--td-head); gap: 28px; }
.td-logo { display: block; flex: none; line-height: 0; }
.td-logo svg { display: block; width: 100%; height: auto; }
body .td-header-in > .td-nav { margin-left: auto; }
.td-nav { font-size: 15px; font-weight: 600; }
.td-nav .wp-block-navigation__container { gap: 26px; }
.td-nav .wp-block-navigation-item__content { color: var(--td-ink-2); text-decoration: none; }
.td-nav .wp-block-navigation-item__content:hover,
.td-nav .is-current .wp-block-navigation-item__content { color: var(--td-ink); }
.td-head-cta .wp-block-button__link { padding: 11px 18px; font-size: 14px; }
.td-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--td-paper); padding: 24px var(--td-gutter);
}
.td-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 0; width: 100%; }
.td-nav .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--td-line); }
.td-nav .is-menu-open .wp-block-navigation-item__content { display: block; padding: 16px 0; font-size: 22px; font-family: var(--td-display); font-weight: 700; color: var(--td-ink); }
.td-nav .wp-block-navigation__responsive-container-open svg,
.td-nav .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }
@media (max-width: 599px) {
	body .td-header-in { gap: 12px; }
	body .td-header-in > .td-nav { order: 3; margin-left: 0; }
	body .td-header-in > .td-head-cta { margin-left: auto; }
	.td-header-in .td-logo { width: 96px !important; }
	.td-head-cta .wp-block-button__link { padding: 10px 14px; font-size: 13px; }
}

/* ---------- Sections ---------- */
.td-page { overflow-x: clip; }
.td-sec { padding: var(--td-sec-y) var(--td-pad); }
.td-sec + .td-sec { padding-top: 0; }
body .td-sec > .is-style-td-eyebrow + * { margin-block-start: 14px; }
body .td-sec > h2 + * { margin-block-start: 40px; }
body .td-sec > h2 + .td-unsure,
body .td-sec > .td-picker + .td-unsure { margin-block-start: 20px; }
.td-measure { max-width: 720px; }
.td-unsure, .td-also { font-size: 15px; color: var(--td-ink-2); }
.td-unsure a { color: var(--td-ink); font-weight: 700; }
.td-also strong { color: var(--td-ink); }
body .td-sec > .td-also { margin-block-start: 32px; }
.td-plain .wp-block-query { margin-top: 40px; }

/* ---------- Hero: the turn ---------- */
.td-turn { position: relative; padding-inline: var(--td-pad); }
.td-turn-pin { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding-block: 40px 56px; }
.td-turn-copy { display: grid; gap: 32px; max-width: 540px; }
.td-turn-copy > * { margin: 0 !important; }
.td-turn-copy .is-style-td-lead { max-width: 30ch; font-size: clamp(19px, 1.6vw, 22px); }
.td-turn-copy .wp-block-buttons { margin-top: 8px !important; }
.td-stage {
	width: 100%; max-width: 560px; justify-self: center; aspect-ratio: 520 / 600;
	max-height: calc(100svh - var(--td-head) - 80px);
	-webkit-mask-image: linear-gradient(transparent, #000 8%, #000 94%, transparent);
	mask-image: linear-gradient(transparent, #000 8%, #000 94%, transparent);
}
.td-stage svg { width: 100%; height: 100%; display: block; overflow: hidden; }
.td-board text { font-family: var(--td-sign); font-weight: 800; font-size: 11px; letter-spacing: .06em; fill: #FFFFFF; }
.td-dsign text { font-family: var(--td-sign); font-weight: 800; fill: #1E1A27; }
@media (min-width: 900px) and (min-height: 620px) {
	.td-turn { height: calc(100svh - var(--td-head) + 120vh); }
	.td-turn-pin {
		position: sticky; top: calc(var(--td-head) + var(--wp-admin--admin-bar--height, 0px));
		height: calc(100svh - var(--td-head) - var(--wp-admin--admin-bar--height, 0px)); padding-block: 24px;
	}
}
@media (max-width: 899px) {
	.td-turn-pin { grid-template-columns: 1fr; gap: 20px; padding-block: 32px 24px; }
	.td-stage { max-width: 420px; max-height: none; }
}

/* ---------- Structure with Soul ---------- */
.td-sws-sec { padding-inline: var(--td-pad); }
.td-sws { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.td-sws-copy { display: grid; gap: 22px; }
.td-sws-copy > * { margin: 0 !important; }
.td-sws-copy .is-style-td-eyebrow + * { margin-top: -8px !important; }
.td-halves { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px !important; }
.td-halves > div {
	border: 1px solid var(--td-line); background: var(--td-white); border-radius: 16px; padding: 18px 20px;
	font-size: 15px; color: var(--td-ink-2); transition: border-color .4s, box-shadow .4s, opacity .4s;
}
.td-halves b { display: block; color: var(--td-ink); font-size: 16px; margin-bottom: 2px; }
.td-halves > div.on { border-color: var(--td-ink); box-shadow: 0 14px 28px -20px rgba(30, 26, 39, .5); }
.td-halves > div.off { opacity: .45; }
.td-sws-art { margin: 0; width: 100%; max-width: 440px; justify-self: center; display: grid; gap: 18px; }
.td-sws-art svg { width: 100%; height: auto; display: block; }
.td-sws-art .grid path { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s ease, opacity .6s; }
.td-sws-art .grid path:nth-child(n+2) { transition-delay: .15s; }
.td-sws-art .grid path:nth-child(n+5) { transition-delay: .3s; }
.td-sws-art .ln { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s cubic-bezier(.65, 0, .35, 1) .5s; }
.td-sws-art .stop, .td-sws-art .head, .td-sws-art .who {
	opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center;
	transition: opacity .35s, transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
.td-sws-art .only-structure, .td-sws-art .only-soul, .td-sws-art .together { opacity: 0; transition: opacity .5s; }
.td-sws-art .only-soul .ln { transition-duration: 2.6s; }
.td-sws-art[data-step="0"] .grid path { stroke-dashoffset: 0; }
.td-sws-art[data-step="0"] .only-structure { opacity: 1; }
.td-sws-art[data-step="0"] .only-structure .ln { stroke-dashoffset: 0; }
.td-sws-art[data-step="0"] .stop { opacity: 1; transform: none; transition-delay: 2.2s; }
.td-sws-art[data-step="1"] .grid path { stroke-dashoffset: 0; opacity: .1; }
.td-sws-art[data-step="1"] .only-soul { opacity: 1; }
.td-sws-art[data-step="1"] .only-soul .ln { stroke-dashoffset: 0; }
.td-sws-art[data-step="2"] .grid path { stroke-dashoffset: 0; }
.td-sws-art[data-step="2"] .together { opacity: 1; }
.td-sws-art[data-step="2"] .together .ln { stroke-dashoffset: 0; }
.td-sws-art[data-step="2"] .who { opacity: 1; transform: none; transition-delay: 1.2s; }
.td-sws-art[data-step="2"] .head { opacity: 1; transform: none; transition-delay: 2.2s; }
.td-sws-art.still * { transition: none !important; }
.td-art-cap { display: grid; gap: 10px; justify-items: center; text-align: center; }
.td-steps { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--td-white); border: 1px solid var(--td-line); }
.td-steps button {
	appearance: none; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--td-ink-2);
	padding: 7px 13px; border-radius: 999px; cursor: pointer; transition: background .3s, color .3s;
}
.td-steps button[aria-selected="true"] { background: var(--td-ink); color: #fff; }
.td-feel { font-family: var(--td-display); font-weight: 600; font-size: 18px; min-height: 2.6em; max-width: 32ch; margin: 0; }
@media (max-width: 860px) { .td-sws { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 460px) { .td-halves { grid-template-columns: 1fr; } .td-steps button { padding: 7px 9px; font-size: 12px; } }

/* ---------- Stage picker ---------- */
.td-picker { --stone-top: 44px; }
.td-milestones { position: relative; display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 12px; padding-bottom: 18px; }
.td-milestones::before {
	content: ""; position: absolute; left: 0; right: 0; top: var(--stone-top); height: 6px; border-radius: 3px;
	background: repeating-linear-gradient(90deg, var(--td-track) 0 18px, transparent 18px 30px);
}
.td-ms { appearance: none; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; display: grid; justify-items: center; gap: 12px; position: relative; z-index: 1; }
.td-stone {
	width: 62px; height: 82px; border-radius: 31px 31px 7px 7px; border: 2.5px solid var(--td-ink); background: var(--td-white);
	position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
	padding-bottom: 9px; transition: transform .25s; box-shadow: 0 10px 20px -14px rgba(30, 26, 39, .5);
}
.td-stone::before { content: ""; position: absolute; inset: 0 0 auto; height: 42%; background: var(--td-track); transition: background .3s; }
.td-stone small { position: relative; font-family: var(--td-sign); font-weight: 800; font-size: 10px; letter-spacing: .1em; color: var(--td-ink-2); line-height: 1; }
.td-stone b { position: relative; font-family: var(--td-sign); font-weight: 800; font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.td-ms-lbl { font-weight: 700; font-size: 16px; text-align: center; }
.td-ms-lbl span { display: block; font-weight: 500; font-size: 14px; color: var(--td-ink-2); }
.td-ms:hover .td-stone { transform: translateY(-4px); }
.td-ms[aria-selected="true"] .td-stone { transform: translateY(-6px); }
.td-ms[aria-selected="true"] .td-stone::before { background: var(--td-grad); }
.td-panel {
	margin-top: 28px; background: var(--td-white); border: 1px solid var(--td-line); border-radius: 26px;
	display: grid; grid-template-columns: 1fr 1fr 1fr; overflow: hidden; animation: td-fadeup .35s ease;
}
.td-panel > div { padding: 32px; display: grid; gap: 12px; align-content: start; }
.td-panel > div + div { border-left: 1px solid var(--td-line); }
.td-panel .k { font-family: var(--td-sign); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--td-ink-2); }
.td-panel p { font-size: 17px; }
.td-panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 16px; }
.td-panel li { display: flex; gap: 10px; align-items: baseline; }
.td-panel li::before { content: ""; flex: none; width: 12px; height: 2px; background: var(--td-ink); transform: translateY(-4px); }
.td-panel .start { background: var(--td-night); color: var(--td-night-ink); }
.td-panel .start .k { color: var(--td-night-mute); }
.td-panel .start h3 { font-size: 26px; color: var(--td-night-ink); }
.td-panel .note { font-family: var(--td-sign); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--td-amber); }
.td-panel .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.td-panel .tags span { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; border: 1px solid #4A4358; }
@keyframes td-fadeup { from { opacity: .4; transform: translateY(6px); } }
@media (max-width: 900px) { .td-panel { grid-template-columns: 1fr; } .td-panel > div + div { border-left: 0; border-top: 1px solid var(--td-line); } }
@media (max-width: 480px) {
	.td-picker { --stone-top: 36px; }
	.td-stone { width: 52px; height: 68px; } .td-stone b { font-size: 18px; }
	.td-ms-lbl { font-size: 14px; } .td-panel > div { padding: 24px; }
}

/* ---------- Founder ---------- */
body .td-founder { gap: clamp(32px, 5vw, 72px); align-items: center; }
.td-founder > .wp-block-column:last-child > .is-style-td-eyebrow + * { margin-block-start: 14px; }
.td-photo {
	aspect-ratio: 4 / 5; border-radius: 24px; border: 1px solid var(--td-line); padding: 20px;
	background: repeating-linear-gradient(135deg, var(--td-line) 0 10px, var(--td-white) 10px 20px);
	display: grid; place-items: center; text-align: center;
}
.td-photo-note { background: var(--td-white); padding: 8px 14px; border-radius: 14px; border: 1px solid var(--td-line); font-size: 14px; font-weight: 600; color: var(--td-ink-2); max-width: 24ch; }
.td-founder .wp-block-image { margin: 0; }
.td-founder .wp-block-image img { border-radius: 24px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; width: 100%; height: auto; display: block; }
.td-founder .wp-block-column > p:not([class]) { color: var(--td-ink-2); max-width: 56ch; }
.is-style-td-pull { border: 0; padding: 0; margin: 8px 0 0; }
.is-style-td-pull p { font-family: var(--td-display); font-weight: 700; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -.015em; max-width: 26ch; }
.is-style-td-pull cite { display: block; margin-top: 8px; font-style: normal; font-size: 14px; font-weight: 600; color: var(--td-ink-2); }

/* Stats, used on Home (row under founder) and About (dark band) */
body .td-stats { display: grid; grid-template-columns: repeat(4, 1fr); }
body .td-stats > * { margin: 0 !important; }
body .td-stat > * { margin: 0 !important; }
.td-stat { display: grid; gap: 6px; align-content: start; }
.td-stat-num strong { font-family: var(--td-display); font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.td-stat-label { font-size: 14px; line-height: 1.4; color: var(--td-ink-2); }
.td-stats-row { border-block: 1px solid var(--td-line); }
.td-stats-row .td-stat { padding: 18px 16px 18px 0; }
.td-stats-row .td-stat + .td-stat { padding-left: 16px; border-left: 1px solid var(--td-line); }
.td-stats-row .td-stat-num { font-size: clamp(24px, 2.3vw, 32px); line-height: 1; }
.td-band-wrap { padding-inline: var(--td-pad); }
body .td-band { gap: 28px; }
.td-band .td-stat-num { font-size: clamp(30px, 3.2vw, 46px); line-height: 1; }
.td-band .td-stat-label { color: var(--td-night-mute); font-size: 15px; max-width: 20ch; }
@media (max-width: 860px) {
	body .td-stats { grid-template-columns: 1fr 1fr; }
	.td-stats-row .td-stat:nth-child(3) { padding-left: 0; border-left: 0; }
	.td-stats-row .td-stat:nth-child(n+3) { border-top: 1px solid var(--td-line); }
}

.is-style-td-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.is-style-td-chips li { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--td-line); background: var(--td-white); }

/* ---------- Dark panels: Start card, CTA band, About band ---------- */
.is-style-td-dark { background: var(--td-night); color: var(--td-night-ink); border-radius: 28px; padding: clamp(28px, 5vw, 56px); }
.is-style-td-dark :where(h1, h2, h3, h4) { color: var(--td-night-ink); }
.is-style-td-dark .is-style-td-eyebrow { color: #F48BD8; }
.is-style-td-dark p { color: var(--td-night-mute); }
.is-style-td-dark .td-stat-num { color: var(--td-night-ink); }
body .td-start { margin-block-start: 28px; }
body .td-start-cols { gap: 48px; align-items: center; margin: 0; }
.td-start-cols .wp-block-column > * + * { margin-block-start: 18px; }
.td-start-cols h2 { max-width: 16ch; }
.is-style-td-ticks { list-style: none; padding: 0; display: grid; gap: 10px; font-size: 16px; }
.is-style-td-ticks li { display: flex; gap: 12px; align-items: baseline; }
.is-style-td-ticks li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--td-grad); transform: translateY(-1px); }
.is-style-td-dark .is-style-td-ticks li { color: var(--td-night-ink); }
body .td-cta { justify-content: space-between; align-items: center; gap: 24px 40px; }
.td-cta-copy h2 { max-width: 18ch; }
body .td-cta-copy > p { margin-block-start: 10px; max-width: 40ch; }

/* Seats */
.td-seats-card { border: 1px solid #3A3446; border-radius: 22px; padding: 26px; display: grid; gap: 14px; background: var(--td-night-2); }
.td-seats-card h3 { font-size: 22px; color: var(--td-night-ink); }
.td-seats-card p { font-size: 15px; color: var(--td-night-mute); margin: 0; }
.td-seats-card .td-seat-note { font-family: var(--td-sign); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.td-seats { display: grid; grid-template-columns: repeat(var(--n, 10), 1fr); gap: 6px; }
.td-seat { aspect-ratio: 3 / 4; border-radius: 999px 999px 4px 4px; border: 2px solid #5A526A; position: relative; overflow: hidden; display: block; }
.td-seat::before { content: ""; position: absolute; inset: 0 0 auto; height: 44%; background: #3A3446; }
.td-seat.taken { border-color: var(--td-night-ink); }
.td-seat.taken::before { background: var(--td-grad); }

/* ---------- Testimonials ---------- */
body .td-voices { gap: 20px; margin: 0; }
.is-style-td-voice { margin: 0; background: var(--td-white); border: 1px solid var(--td-line); border-radius: 20px; padding: 26px 28px; display: grid; gap: 16px; height: 100%; align-content: space-between; box-sizing: border-box; }
.is-style-td-voice p { font-size: 17px; }
.is-style-td-voice cite { font-style: normal; font-family: var(--td-sign); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--td-accent-ink); }

/* ---------- Page hero (About, Services, Contact) ---------- */
.td-phero { --s: 1; position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) var(--td-pad) 0; }
.td-phero::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: calc(27px * var(--s)); height: 2px;
	background: repeating-linear-gradient(90deg, var(--td-track) 0 10px, transparent 10px 18px);
}
.td-phero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.td-phero-copy { display: grid; gap: 24px; padding-bottom: clamp(64px, 8vw, 104px); }
.td-phero-copy > * { margin: 0 !important; }
.td-kmart { width: calc(380px * var(--s)); height: calc(260px * var(--s)); display: block; }
.td-road-in {
	position: absolute; z-index: 1; left: calc((100% - 100vw) / 2); right: calc(380px * var(--s) - 1px);
	bottom: calc(21px * var(--s)); height: calc(14px * var(--s));
	background: linear-gradient(90deg, #847ff3, #cf34c9 55%, #f408ae);
	transform: scaleX(0); transform-origin: left; animation: td-roadin .7s cubic-bezier(.5, 0, .8, .6) .15s forwards;
}
.td-kmart .ln { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: td-draw 1.25s cubic-bezier(.2, .4, .3, 1) .85s forwards; }
.td-kmart .hd { transform: scale(0); transform-box: fill-box; transform-origin: 50% 100%; animation: td-pop .45s cubic-bezier(.34, 1.56, .64, 1) 2s forwards; }
.td-kmart .capfill { opacity: 0; animation: td-fadein .5s ease 1.25s forwards; }
.td-kmart text { font-family: var(--td-sign); font-weight: 800; fill: #333; }
@keyframes td-roadin { to { transform: scaleX(1); } }
@keyframes td-draw { to { stroke-dashoffset: 0; } }
@keyframes td-pop { to { transform: scale(1); } }
@keyframes td-fadein { to { opacity: 1; } }
@media (max-width: 820px) {
	.td-phero { --s: .58; }
	.td-phero-in { grid-template-columns: 1fr; gap: 0; }
	.td-phero-copy { padding-bottom: 8px; }
	.td-kmart { justify-self: end; }
}

/* ---------- Promises ---------- */
body .td-promise { gap: clamp(24px, 4vw, 48px); }
.td-promise .wp-block-column { padding-top: 22px; border-top: 3px solid var(--td-ink); }
.td-promise .wp-block-column:nth-child(2) { border-image: linear-gradient(90deg, #847ff3, #f408ae) 1; }
.td-promise .wp-block-column:nth-child(3) { border-image: linear-gradient(90deg, #f408ae, #ffc126) 1; }
.td-promise .wp-block-column > * + * { margin-block-start: 10px; }
.td-promise p { color: var(--td-ink-2); font-size: 17px; }

/* ---------- Service tabs ---------- */
.td-tabs { display: flex; flex-wrap: wrap; gap: 8px clamp(14px, 4vw, 48px); border-bottom: 1px solid var(--td-line); }
.td-tab {
	appearance: none; border: 0; background: none; cursor: pointer; font-family: var(--td-display); font-weight: 800;
	font-size: clamp(21px, 4.2vw, 56px); letter-spacing: -.02em; line-height: 1.1; color: var(--td-track);
	padding: 0 0 16px; position: relative; transition: color .25s;
}
.td-tab:hover { color: var(--td-ink-2); }
.td-tab[aria-selected="true"] { color: var(--td-ink); }
.td-tab::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 4px; border-radius: 2px; background: var(--td-grad);
	transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.65, 0, .35, 1);
}
.td-tab[aria-selected="true"]::after { transform: scaleX(1); }
.td-tpanel { padding-top: 36px; display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 4vw, 56px); align-items: start; animation: td-fadeup .4s ease; }
.td-tline { font-family: var(--td-display); font-weight: 600; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; letter-spacing: -.01em; }
.td-tcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.td-tcards > div { background: var(--td-white); border: 1px solid var(--td-line); border-radius: 20px; padding: 26px; display: grid; gap: 10px; align-content: start; transition: transform .25s, box-shadow .25s; }
.td-tcards > div:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(30, 26, 39, .45); }
.td-tcards p { color: var(--td-ink-2); font-size: 16px; }
@media (max-width: 860px) { .td-tpanel { grid-template-columns: 1fr; } }

/* ---------- Stops (Services: how we work together) ---------- */
body .td-stops { position: relative; gap: clamp(20px, 3vw, 40px); }
.td-stops::before {
	content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px;
	background: repeating-linear-gradient(90deg, var(--td-track) 0 10px, transparent 10px 18px);
}
.td-stops .wp-block-column { position: relative; padding-top: 52px; }
.td-stops .wp-block-column::before { content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--td-paper); border: 6px solid #847ff3; box-sizing: border-box; }
.td-stops .wp-block-column:nth-child(2)::before { border-color: var(--td-pink); }
.td-stops .wp-block-column:nth-child(3)::before { border-color: var(--td-amber); }
.td-stops .wp-block-column > * + * { margin-block-start: 10px; }
.td-when { font-family: var(--td-sign); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--td-ink-2); }
.td-stops .wp-block-column > p:last-child { color: var(--td-ink-2); font-size: 17px; max-width: 32ch; }
@media (max-width: 781px) {
	.td-stops::before { left: 13px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--td-track) 0 10px, transparent 10px 18px); }
	.td-stops .wp-block-column { padding: 0 0 0 48px; }
}

/* ---------- FAQ ---------- */
.td-faqs { max-width: 820px; border-top: 1px solid var(--td-line); }
body .td-faqs > * { margin: 0 !important; }
.is-style-td-faq { border-bottom: 1px solid var(--td-line); }
.is-style-td-faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font-weight: 700; font-size: 19px; position: relative; }
.is-style-td-faq summary::-webkit-details-marker { display: none; }
.is-style-td-faq summary::after {
	content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px;
	border-right: 2.5px solid var(--td-ink); border-bottom: 2.5px solid var(--td-ink);
	transform: translateY(-70%) rotate(45deg); transition: transform .25s;
}
.is-style-td-faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.is-style-td-faq > p { padding: 0 0 24px; color: var(--td-ink-2); max-width: 62ch; margin: 0; }

/* ---------- Contact ---------- */
body .td-contact { gap: clamp(32px, 5vw, 72px); align-items: flex-start; }
.td-contact > .wp-block-column:first-child > .is-style-td-eyebrow + * { margin-block-start: 14px; }
.td-get { border-top: 1px solid var(--td-line); margin-block-start: 28px !important; }
body .td-get > * { margin: 0 !important; }
body .td-get-item { display: grid; grid-template-columns: 92px 1fr; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--td-line); }
body .td-get-item > *, body .td-get-txt > * { margin: 0 !important; }
.td-get-txt h3 { font-family: var(--td-body); font-size: 18px; font-weight: 700; letter-spacing: 0; }
.td-get-txt p { color: var(--td-ink-2); font-size: 16px; }
.td-get-ic { font-family: var(--td-display); font-weight: 800; font-size: 21px; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.td-get-ic.td-grad-ic { background: var(--td-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.td-get-ic.is-rag { font-size: 0; display: flex; gap: 6px; }
.td-get-ic.is-rag::before, .td-get-ic.is-rag::after { content: ""; width: 18px; height: 18px; border-radius: 50%; }
.td-get-ic.is-rag::before { background: var(--td-bad); box-shadow: 24px 0 0 #E39A0B; margin-right: 24px; }
.td-get-ic.is-rag::after { background: #2F9E6E; }
.td-direct-h { font-family: var(--td-body) !important; font-size: 18px !important; letter-spacing: 0 !important; margin-block-start: 32px !important; }
body .td-direct-h + .td-copy { margin-block-start: 12px; }
body .td-copy + .td-copy { margin-block-start: 10px; }
.td-copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 16px; border: 1px solid var(--td-line); border-radius: 14px; background: var(--td-white); font-weight: 600; font-size: 16px; }
.td-copy span { min-width: 0; overflow-wrap: anywhere; }
.td-copy button { appearance: none; border: 1px solid var(--td-line); background: var(--td-paper); font: inherit; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; cursor: pointer; flex: none; color: var(--td-ink); }
.td-copy button:hover { border-color: var(--td-ink); }
.td-small { font-size: 14px; color: var(--td-ink-2); }
body .td-copy + .td-small { margin-block-start: 10px; }
@media (max-width: 781px) { .td-contact > .wp-block-column:last-child { order: -1; } }
@media (max-width: 520px) { body .td-get-item { grid-template-columns: 84px 1fr; gap: 14px; } .td-get-ic { font-size: 18px; } }

/* Booking form */
.td-form { background: var(--td-white); border: 1px solid var(--td-line); border-radius: 28px; padding: clamp(22px, 4vw, 44px); display: grid; gap: 36px; box-shadow: 0 40px 80px -60px rgba(30, 26, 39, .5); }
.td-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 14px; }
.td-form legend { padding: 0; margin-bottom: 14px; font-family: var(--td-display); font-weight: 700; font-size: 22px; letter-spacing: -.01em; display: flex; gap: 12px; align-items: center; }
.td-form legend i { font-style: normal; font-family: var(--td-sign); font-weight: 800; font-size: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--td-ink); color: #fff; display: grid; place-items: center; flex: none; }
.td-chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.td-chip { position: relative; cursor: pointer; }
.td-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.td-chip span { display: block; padding: 11px 18px; border-radius: 999px; border: 1.5px solid var(--td-line); background: var(--td-paper); font-weight: 600; font-size: 16px; transition: background .2s, color .2s, border-color .2s; }
.td-chip:hover span { border-color: var(--td-ink); }
.td-chip input:checked + span { background: var(--td-ink); border-color: var(--td-ink); color: #fff; }
.td-chip input:focus-visible + span { outline: 3px solid var(--td-pink); outline-offset: 3px; }
.td-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.td-field { display: grid; gap: 6px; }
.td-field label { font-weight: 700; font-size: 14px; }
.td-field label.soft { font-weight: 500; color: var(--td-ink-2); }
.td-field input, .td-field textarea { font: inherit; font-size: 16px; color: var(--td-ink); background: var(--td-paper); border: 1.5px solid var(--td-line); border-radius: 12px; padding: 13px 14px; width: 100%; box-sizing: border-box; transition: border-color .2s, background .2s; }
.td-field textarea { min-height: 52px; resize: vertical; }
.td-field input:focus, .td-field textarea:focus { outline: none; border-color: var(--td-ink); background: var(--td-white); }
.td-field .err { font-size: 13px; color: var(--td-bad); }
.td-field.bad input { border-color: var(--td-bad); }
.td-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.td-send { display: grid; gap: 14px; }
.td-btn {
	position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
	padding: 18px 24px; border: 0; border-radius: 999px; background: var(--td-ink); color: #fff; cursor: pointer;
	font-family: var(--td-body); font-weight: 700; font-size: 17px; transition: transform .2s;
}
.td-btn::before { content: ""; position: absolute; inset: -3px; border-radius: inherit; background: var(--td-grad); z-index: -1; opacity: 0; transition: opacity .25s; }
.td-btn:hover { transform: translateY(-2px); }
.td-btn:hover::before { opacity: 1; }
.td-btn:disabled { opacity: .7; cursor: wait; transform: none; }
.td-btn svg { width: 18px; height: 18px; flex: none; }
.td-form-err { margin: 0; color: var(--td-bad); font-size: 14px; text-align: center; }
.td-send small { color: var(--td-ink-2); font-size: 14px; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center; }
.td-seats.mini { display: inline-flex; gap: 3px; }
.td-seats.mini .td-seat { width: 9px; height: 13px; aspect-ratio: auto; border: 0; border-radius: 5px 5px 2px 2px; background: var(--td-track); }
.td-seats.mini .td-seat::before { display: none; }
.td-seats.mini .td-seat.taken { background: var(--td-grad); }
.td-done { gap: 22px; }
.td-done:focus { outline: none; }
.td-tick { width: 56px; height: 56px; border-radius: 50%; background: var(--td-grad); display: grid; place-items: center; }
.td-tick svg { width: 28px; height: 28px; }
.td-next { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: n; }
.td-next li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; counter-increment: n; align-items: start; }
.td-next li::before { content: counter(n); width: 28px; height: 28px; border-radius: 50%; background: var(--td-ink); color: #fff; display: grid; place-items: center; font-family: var(--td-sign); font-weight: 800; font-size: 12px; margin-top: 2px; }
.td-next b { display: block; }
.td-next span { color: var(--td-ink-2); font-size: 16px; }
@media (max-width: 520px) { .td-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.td-footer { background: var(--td-white); border-top: 1px solid var(--td-line); margin-top: var(--td-sec-y) !important; padding: 44px var(--td-pad) 28px; font-size: 15px; color: var(--td-ink-2); }
.td-footer-part { display: block; }
body .td-foot-cols { gap: 32px; margin: 0; }
.td-foot-cols .wp-block-column > * + * { margin-block-start: 12px; }
.td-footer h4 { font-family: var(--td-sign); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--td-ink); }
.td-footer a { text-decoration: none; }
.td-footer a:hover { color: var(--td-ink); }
.td-footer p { line-height: 1.9; }
body .td-social { gap: 10px; margin-block-start: 18px !important; }
.td-social .wp-block-social-link { background: transparent !important; color: var(--td-ink) !important; border: 1.5px solid var(--td-line); border-radius: 50%; transition: background .2s, color .2s, border-color .2s; }
.td-social .wp-block-social-link a { padding: 10px !important; }
.td-social .wp-block-social-link svg { width: 20px; height: 20px; }
.td-social .wp-block-social-link:hover { background: var(--td-ink) !important; color: #fff !important; border-color: var(--td-ink); transform: none; }
.td-foot-base { margin-top: 32px !important; padding-top: 22px; border-top: 1px solid var(--td-line); font-size: 13px; gap: 12px; }
body .td-foot-base > * { margin: 0 !important; }
.td-sec ~ .td-footer-part .td-footer, .td-page:has(> :last-child.td-sec) + .td-footer-part .td-footer { margin-top: 0 !important; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.td-road-in, .td-kmart .ln, .td-kmart .hd, .td-kmart .capfill { animation: none; transform: none; stroke-dashoffset: 0; opacity: 1; }
	.td-panel, .td-tpanel { animation: none; }
	.wp-block-button__link, .td-btn { transition: none; }
}

/* ---------- Editor-only helpers ---------- */
.editor-styles-wrapper .td-edit-split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding: 48px var(--td-pad); }
.editor-styles-wrapper .td-edit-split .td-turn-copy,
.editor-styles-wrapper .td-edit-split .td-phero-copy { padding: 0; }
.editor-styles-wrapper .td-edit-art { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 28px; border: 1px dashed var(--td-track); border-radius: 20px; }
.editor-styles-wrapper .td-edit-art img { width: 160px; height: auto; }
.editor-styles-wrapper .td-edit-art p { font-size: 13px; color: var(--td-ink-2); max-width: 30ch; }
.editor-styles-wrapper .td-edit-stone span { width: 80px; height: 104px; border-radius: 40px 40px 8px 8px; border: 3px solid var(--td-ink); display: grid; align-content: end; justify-items: center; padding-bottom: 10px; background: linear-gradient(var(--td-grad)) top / 100% 42% no-repeat, #fff; background-image: linear-gradient(90deg, #847ff3, #f408ae, #fa4c7b, #ffc126); background-size: 100% 42%; background-repeat: no-repeat; }
.editor-styles-wrapper .td-edit-stone small { font-family: var(--td-sign); font-weight: 800; font-size: 11px; letter-spacing: .1em; }
.editor-styles-wrapper .td-edit-stone b { font-family: var(--td-sign); font-weight: 800; font-size: 28px; line-height: 1; }
.editor-styles-wrapper .td-ssr { padding-block: 8px; }
.editor-styles-wrapper .td-turn-copy { max-width: none; }

/* ---------- v1.4: Vision and mission (About) ---------- */
.td-vision {
	position: relative; overflow: hidden; background: var(--td-white);
	border: 1px solid var(--td-line); border-radius: 28px; padding: clamp(28px, 5vw, 64px);
}
.td-vision::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--td-grad); }
body .td-vision > * { margin: 0 !important; }
body .td-vision > .is-style-td-eyebrow + .td-vision-line { margin-top: 16px !important; }
.td-vision-line {
	font-family: var(--td-display); font-weight: 700; font-size: clamp(26px, 3.2vw, 44px);
	line-height: 1.16; letter-spacing: -.02em; color: var(--td-ink); max-width: 30ch; text-wrap: pretty;
}
body .td-vision > .td-mission { margin-top: clamp(28px, 4vw, 44px) !important; padding-top: clamp(22px, 3vw, 30px); border-top: 1px solid var(--td-line); }
body .td-mission > * { margin: 0 !important; }
body .td-mission > * + * { margin-top: 10px !important; }
.td-mission-line { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--td-ink-2); max-width: 52ch; }

/* ---------- v1.4: Point of view (Home) ---------- */
body .td-pov { gap: clamp(28px, 5vw, 72px); align-items: center; margin: 0; }
body .td-pov .is-style-td-eyebrow + * { margin-block-start: 14px; }
.td-pov h2 { max-width: 15ch; }
.td-pov-body {
	font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--td-ink); max-width: 46ch;
	padding-left: 24px; border-left: 3px solid; border-image: linear-gradient(180deg, #847ff3, #f408ae 55%, #ffc126) 1;
}
body .td-pov .td-pov-sign { margin-block-start: 14px; padding-left: 27px; font-size: 14px; font-weight: 600; color: var(--td-ink-2); }

/* ---------- v1.4: Credentials (About founder column) ---------- */
body .td-creds { display: grid; gap: 14px; margin-block-start: 28px; }
body .td-creds > * { margin: 0 !important; }
body .td-cred-row { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 520px; }
body .td-cred-row > * { margin: 0 !important; }
body .td-cred {
	display: flex; align-items: center; gap: 12px; padding: 12px 14px;
	background: var(--td-white); border: 1px solid var(--td-line); border-radius: 18px;
}
body .td-cred > * { margin: 0 !important; }
.td-cred-badge { flex: none; line-height: 0; }
body .td-founder .td-cred-badge img, .td-cred-badge img { width: 56px; height: 56px; aspect-ratio: 1; border-radius: 0; object-fit: contain; display: block; }
body .td-founder .td-cred-badge { margin: 0; }
.td-cred-badge a { display: block; border-radius: 50%; }
.td-cred-mark {
	flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
	border: 3px solid transparent;
	background: linear-gradient(var(--td-white), var(--td-white)) padding-box, var(--td-grad) border-box;
	font-family: var(--td-sign); font-weight: 800; font-size: 13px; letter-spacing: .04em; color: var(--td-ink);
}
body .td-cred-copy { display: grid; gap: 2px; min-width: 0; }
body .td-cred-copy > * { margin: 0 !important; }
.td-cred-name { overflow-wrap: normal; font-family: var(--td-display); font-weight: 700; font-size: 16px; line-height: 1.2; color: var(--td-ink); }
.td-cred-by { font-size: 13px; line-height: 1.35; color: var(--td-ink-2); }
.td-cred-link { font-size: 13px; font-weight: 600; margin-top: 2px !important; }
.td-cred-link a { color: var(--td-accent-ink); text-underline-offset: 3px; }
.td-cred-head { font-family: var(--td-sign); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--td-ink-2); }
body .td-creds > .td-cred-head { margin-top: 6px !important; }

/* v1.4.1: pin the founder photo while the credentials scroll (About, desktop only) */
@media (min-width: 782px) and (min-height: 720px) {
	body .td-founder:has(.td-creds) { align-items: flex-start !important; } /* core columns force align-items with !important */
	body .td-founder:has(.td-creds) > .wp-block-column:first-child {
		position: sticky;
		top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--td-head) + 24px);
	}
}
