/* ==========================================================================
   Taher — main stylesheet
   Structure after Aoutive, palette and restraint after Opaque.
   No borders or frames: separation comes from space and #F7F7F7 surfaces.
   ========================================================================== */

@font-face {
	font-family: "Clarity City";
	src: url("../fonts/clarity-city.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Mona Sans";
	src: url("../fonts/mona-sans.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Mona Sans";
	src: url("../fonts/mona-sans-italic.woff2") format("woff2");
	font-weight: 400 700;
	font-style: italic;
	font-display: swap;
}

:root {
	--bg: #ffffff;
	--surface: #f7f7f7;
	--surface-2: #eeeeee;
	--text: #333333;
	--ink: #000000;
	--muted: #757575;
	--faint: #a6a6a6;

	--font-head: "Clarity City", ui-sans-serif, system-ui, sans-serif;
	--font-body: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

	--container: 1200px;
	--narrow: 860px;
	--gutter: clamp(20px, 4vw, 32px);
	--header-h: 72px;
	--section: clamp(80px, 10vw, 140px);

	--r-sm: 10px;
	--r: 16px;
	--r-lg: 24px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------------------------------------------------------------- Base */

*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img,
svg,
video,
iframe { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button,
input { font: inherit; color: inherit; }

:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection { background: var(--ink); color: #fff; }

.tb-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

.tb-skip {
	position: fixed;
	top: 12px; left: 12px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--ink);
	color: #fff;
	border-radius: var(--r-sm);
	transform: translateY(-200%);
}
.tb-skip:focus { transform: none; }

/* ---------------------------------------------------------- Typography */

.tb-heading,
.tb-prose h2,
.tb-prose h3,
.tb-prose h4 {
	font-family: var(--font-head);
	font-weight: 600;
	color: var(--ink);
	text-wrap: balance;
}

.tb-heading {
	font-size: clamp(2rem, 1.35rem + 2.4vw, 3.25rem);
	line-height: 1.06;
	letter-spacing: -0.04em;
}

.tb-hero__title {
	font-size: clamp(2.5rem, 1.5rem + 4.2vw, 4.5rem);
	line-height: 1.02;
	letter-spacing: -0.045em;
}

.tb-muted { color: var(--faint); }
/* Aoutive-style two-line headings: grey line always starts on its own row. */
.tb-heading .tb-muted { display: block; }

.tb-eyebrow {
	margin-bottom: 18px;
	color: var(--muted);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.tb-eyebrow a:hover { color: var(--ink); }

.tb-lead {
	color: var(--muted);
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
	line-height: 1.6;
	text-wrap: pretty;
}

.tb-link {
	color: var(--ink);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: var(--faint);
	text-underline-offset: 4px;
	transition: text-decoration-color 0.2s;
}
.tb-link:hover { text-decoration-color: var(--ink); }

/* -------------------------------------------------------------- Layout */

.tb-container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.tb-narrow {
	width: 100%;
	max-width: calc(var(--narrow) + var(--gutter) * 2);
	margin-inline: auto;
	padding: clamp(64px, 8vw, 104px) var(--gutter) 40px;
}

.tb-section { padding-block: var(--section); }
.tb-section--tight { padding-block: clamp(48px, 6vw, 80px); }
.tb-section--flush-top { padding-top: 0; }

.tb-section-head {
	max-width: 760px;
	margin-bottom: clamp(40px, 5vw, 64px);
}
.tb-section-head--center { margin-inline: auto; text-align: center; }
.tb-section-head .tb-lead { margin-top: 20px; }

.tb-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(24px, 6vw, 96px);
	align-items: end;
}
.tb-split--top { align-items: start; }
.tb-split .tb-lead { max-width: 520px; }
.tb-split > div > .tb-lead { margin-top: 20px; }

.tb-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 36px;
}
.tb-actions--center { justify-content: center; }

/* ------------------------------------------------------------- Buttons */

.tb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: 12px;
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.tb-btn--primary { background: var(--ink); color: #fff; }
.tb-btn--primary:hover { background: #2a2a2a; }
.tb-btn--secondary { background: var(--surface); color: var(--ink); }
.tb-btn--secondary:hover { background: var(--surface-2); }
.tb-btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.tb-btn:active { transform: scale(0.98); }

.tb-icon { width: 20px; height: 20px; flex: none; }
.tb-btn__icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.tb-btn:hover .tb-btn__icon { transform: translateX(3px); }
.tb-btn:hover .tb-btn__icon--down { transform: translateY(2px) rotate(90deg); }
.tb-btn__icon--down { transform: rotate(90deg); }

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

.tb-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.86);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
}

.tb-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	height: var(--header-h);
}

.tb-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	font-family: var(--font-head);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.02em;
	white-space: nowrap;
}
.tb-brand img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

.tb-nav { flex: 1; display: flex; justify-content: center; }
.tb-nav ul { display: flex; gap: 32px; }
.tb-nav a:not(.tb-btn) {
	color: var(--muted);
	font-size: 15px;
	font-weight: 500;
	transition: color 0.2s;
}
.tb-nav a:not(.tb-btn):hover,
.tb-nav a[aria-current="page"] { color: var(--ink); }
.tb-nav__cta { display: none; }

.tb-menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	margin-right: -10px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ink);
	cursor: pointer;
	align-items: center;
	justify-content: center;
}
.tb-menu-toggle .tb-icon { width: 24px; height: 24px; }
.tb-menu-toggle__close { display: none; }

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

.tb-hero { padding-top: clamp(72px, 10vw, 128px); }
.tb-hero--page { padding-bottom: clamp(48px, 6vw, 80px); }
.tb-hero__inner { text-align: center; }
.tb-hero__title { max-width: 980px; margin-inline: auto; }
.tb-hero__lead { max-width: 640px; margin: 24px auto 0; }

.tb-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 28px;
	padding: 5px 16px 5px 5px;
	border-radius: 999px;
	background: var(--surface);
	color: var(--text);
	font-size: 14px;
	font-weight: 500;
}
.tb-hero__eyebrow img { width: 28px; height: 28px; border-radius: 50%; }

/* --------------------------------------------------------------- Logos */

.tb-logos { margin-top: clamp(64px, 8vw, 104px); }
.tb-logos__label {
	margin-bottom: 28px;
	color: var(--muted);
	font-size: 14px;
	text-align: center;
}
.tb-logos__viewport {
	display: flex;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.tb-logos__track {
	display: flex;
	flex: none;
	align-items: center;
	gap: 64px;
	padding-right: 64px;
	animation: tb-marquee 42s linear infinite;
}
.tb-logos__viewport:hover .tb-logos__track { animation-play-state: paused; }
.tb-logos__word {
	color: var(--faint);
	font-family: var(--font-head);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.02em;
	white-space: nowrap;
}
.tb-logos__img {
	width: auto;
	height: 30px;
	max-width: 160px;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.5;
}

@keyframes tb-marquee {
	to { transform: translateX(-100%); }
}

/* ------------------------------------------------------------- Pillars */

.tb-pillars {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(24px, 4vw, 48px);
	margin-top: clamp(48px, 6vw, 80px);
}
.tb-pillar__num,
.tb-step__num {
	color: var(--faint);
	font-family: var(--font-head);
	font-size: 15px;
	font-weight: 600;
}
.tb-pillar h3,
.tb-step h3 {
	margin: 14px 0 8px;
	color: var(--ink);
	font-family: var(--font-head);
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: -0.02em;
}
.tb-pillar p,
.tb-step p { color: var(--muted); font-size: 15.5px; }

/* --------------------------------------------------------------- Stats */

.tb-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin-bottom: clamp(48px, 6vw, 72px);
	text-align: center;
}
.tb-stat { display: flex; flex-direction: column-reverse; gap: 4px; }
.tb-stat dd {
	color: var(--ink);
	font-family: var(--font-head);
	font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.045em;
	font-variant-numeric: tabular-nums;
}
.tb-stat dt { color: var(--muted); font-size: 15px; }
.tb-stats--about { margin: clamp(64px, 8vw, 104px) 0 0; }

/* ------------------------------------------------------- Lessons and AI */

.tb-lessons {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}
.tb-lesson { padding: clamp(24px, 3vw, 32px); border-radius: 20px; background: var(--surface); }
.tb-lesson h3 {
	color: var(--ink);
	font-family: var(--font-head);
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.3;
}
.tb-lesson p { margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.tb-ai .tb-lead + .tb-lead { margin-top: 16px; }
.tb-ai .tb-actions { margin-top: 28px; }

/* --------------------------------------------------------- Work cards */

.tb-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px 24px;
}

.tb-card__link { display: block; }
.tb-card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: var(--r);
	background: var(--surface);
}
.tb-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--ease);
}
.tb-card__link:hover .tb-card__media img { transform: scale(1.03); }

.tb-card__media--type {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 28px;
	transition: background-color 0.3s;
}
.tb-card__link:hover .tb-card__media--type { background: var(--surface-2); }
.tb-card__cover-client {
	color: var(--ink);
	font-family: var(--font-head);
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.1;
}
.tb-card__cover-title {
	display: -webkit-box;
	overflow: hidden;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.5;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.tb-card__arrow {
	position: absolute;
	top: 14px;
	right: 14px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	color: var(--ink);
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.25s, transform 0.25s var(--ease);
}
.tb-card__arrow .tb-icon { width: 18px; height: 18px; }
.tb-card__link:hover .tb-card__arrow,
.tb-card__link:focus-visible .tb-card__arrow { opacity: 1; transform: none; }

.tb-card__body { padding-top: 16px; }
.tb-card__meta { color: var(--muted); font-size: 13px; }
.tb-card__title {
	margin-top: 6px;
	color: var(--ink);
	font-family: var(--font-head);
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.02em;
}
.tb-card__excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin-top: 6px;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.55;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* ------------------------------------------------------------- Niches */

.tb-niches {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
.tb-niches li {
	padding: 18px 20px;
	border-radius: 14px;
	background: var(--surface);
}
.tb-niches__name { display: block; color: var(--ink); font-weight: 600; font-size: 16px; }
.tb-niches__eg { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------- Capabilities */

.tb-cap-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
.tb-cap-card {
	display: flex;
	flex-direction: column;
	padding: 32px;
	border-radius: 20px;
	background: var(--surface);
	transition: background-color 0.25s;
}
.tb-cap-card:hover { background: var(--surface-2); }
.tb-cap-card__icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: #fff;
	color: var(--ink);
}
.tb-cap-card__icon .tb-icon { width: 24px; height: 24px; }
.tb-cap-card h3 {
	margin: 28px 0 8px;
	color: var(--ink);
	font-family: var(--font-head);
	font-size: 1.35rem;
	font-weight: 600;
	letter-spacing: -0.025em;
}
.tb-cap-card p { flex: 1; color: var(--muted); font-size: 15.5px; }
.tb-cap-card__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 24px;
	color: var(--ink);
	font-size: 14px;
	font-weight: 500;
}
.tb-cap-card__more .tb-icon { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.tb-cap-card:hover .tb-cap-card__more .tb-icon { transform: translateX(3px); }

.tb-cap-list { display: grid; gap: 12px; }
.tb-cap-list a {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	align-items: center;
	gap: 24px;
	padding: clamp(22px, 3vw, 32px) clamp(20px, 3vw, 36px);
	border-radius: 20px;
	background: var(--surface);
	transition: background-color 0.25s;
}
.tb-cap-list a:hover { background: var(--surface-2); }
.tb-cap-list__num { color: var(--faint); font-family: var(--font-head); font-size: 18px; font-weight: 600; }
.tb-cap-list__title {
	display: block;
	color: var(--ink);
	font-family: var(--font-head);
	font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.15;
}
.tb-cap-list__text { display: block; margin-top: 4px; color: var(--muted); }
.tb-cap-list__arrow {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #fff;
	color: var(--ink);
	transition: transform 0.25s var(--ease);
}
.tb-cap-list a:hover .tb-cap-list__arrow { transform: translateX(4px); }

/* --------------------------------------------------- Capability page */

.tb-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin-top: clamp(48px, 6vw, 80px);
}
.tb-step { padding: 28px; border-radius: 20px; background: var(--surface); }
.tb-step h3 { margin-top: 36px; }

.tb-deliverables {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
.tb-deliverables li {
	display: flex;
	gap: 14px;
	padding: 24px;
	border-radius: var(--r);
	background: var(--surface);
}
.tb-deliverables__icon { width: 22px; height: 22px; margin-top: 2px; color: var(--ink); }
.tb-deliverables h3 { color: var(--ink); font-size: 16.5px; font-weight: 600; line-height: 1.35; }
.tb-deliverables p { margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.55; }

.tb-faq { display: grid; gap: 12px; }
.tb-faq details { border-radius: var(--r); background: var(--surface); }
.tb-faq summary {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 24px;
	color: var(--ink);
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}
.tb-faq summary::-webkit-details-marker { display: none; }
.tb-faq summary::after {
	content: "+";
	flex: none;
	color: var(--muted);
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
	transition: transform 0.25s var(--ease);
}
.tb-faq details[open] summary::after { transform: rotate(45deg); }
.tb-faq details p { padding: 0 24px 24px; color: var(--muted); }

/* ------------------------------------------------------ Filters/chips */

.tb-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}
.tb-filter--center { justify-content: center; }
.tb-filter--sub { margin-bottom: 48px; }
.tb-filter + .tb-grid { margin-top: 48px; }
.tb-filter--sub + .tb-grid { margin-top: 0; }

.tb-tab,
.tb-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: 999px;
	font-weight: 500;
	white-space: nowrap;
	transition: background-color 0.2s, color 0.2s;
}
.tb-tab {
	padding: 10px 18px;
	background: var(--surface);
	color: var(--ink);
	font-size: 15px;
}
.tb-tab:hover { background: var(--surface-2); }
.tb-tab[aria-current="page"] { background: var(--ink); color: #fff; }
.tb-tab span,
.tb-chip span { color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }

.tb-chip {
	padding: 7px 14px;
	background: transparent;
	color: var(--muted);
	font-size: 14px;
}
.tb-chip:hover,
.tb-chip[aria-current="page"] { background: var(--surface); color: var(--ink); }
.tb-tools .tb-chip,
.tb-tags a { background: var(--surface); color: var(--ink); }

/* --------------------------------------------------------- Testimonials */

.tb-testimonials--grid { columns: 3 320px; column-gap: 20px; }
.tb-testimonials--pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.tb-testimonials--single { max-width: var(--narrow); margin-inline: auto; }
.tb-quote {
	break-inside: avoid;
	margin-bottom: 20px;
	padding: clamp(28px, 3vw, 36px);
	border-radius: 20px;
	background: var(--surface);
}
.tb-testimonials--pair .tb-quote,
.tb-testimonials--single .tb-quote { margin-bottom: 0; }
.tb-testimonials--single .tb-quote { padding: clamp(32px, 5vw, 56px); }
.tb-quote__mark { width: 28px; height: 28px; color: var(--faint); }
.tb-quote blockquote { margin: 18px 0 28px; color: var(--ink); font-size: 17.5px; line-height: 1.75; }
.tb-testimonials--single .tb-quote__mark { width: 36px; height: 36px; }
.tb-testimonials--single .tb-quote blockquote {
	margin: 24px 0 32px;
	font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
	line-height: 1.6;
	letter-spacing: -0.01em;
	text-wrap: pretty;
}
.tb-testimonials--single .tb-quote__photo { width: 52px; height: 52px; }
.tb-quote__person { display: flex; align-items: center; gap: 12px; }
.tb-quote__photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.tb-quote__name { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }
a.tb-quote__name:hover { text-decoration: underline; }
.tb-quote__role { display: block; color: var(--muted); font-size: 14px; }

/* ----------------------------------------------------------------- CTA */

.tb-cta {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: end;
	gap: 40px;
	padding: clamp(36px, 6vw, 80px);
	border-radius: 28px;
	background: var(--surface);
}
.tb-cta .tb-lead { max-width: 560px; margin-top: 18px; }
.tb-cta .tb-actions { margin-top: 0; }

/* -------------------------------------------------------------- About */

.tb-about-intro {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: clamp(32px, 6vw, 88px);
	align-items: center;
}
.tb-about-intro .tb-hero__title { margin-inline: 0; }
.tb-about-intro__photo {
	overflow: hidden;
	border-radius: var(--r-lg);
	background: var(--surface);
}
.tb-about-intro__photo img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.tb-prose--lead { margin-top: 28px; }
.tb-prose--lead p { color: var(--muted); font-size: 1.125rem; line-height: 1.7; }
.tb-prose--lead p + p { margin-top: 14px; }

.tb-resume-row {
	display: grid;
	grid-template-columns: minmax(240px, 360px) 1fr;
	gap: clamp(32px, 6vw, 88px);
	align-items: start;
}
.tb-resume-row__head { position: sticky; top: calc(var(--header-h) + 32px); }

.tb-timeline { position: relative; padding-left: 36px; }
.tb-timeline::before {
	content: "";
	position: absolute;
	top: 10px;
	bottom: 10px;
	left: 5px;
	width: 2px;
	border-radius: 2px;
	background: var(--surface-2);
}
.tb-timeline__item { position: relative; padding-bottom: 48px; }
.tb-timeline__item:last-child { padding-bottom: 0; }
.tb-timeline__item::before {
	content: "";
	position: absolute;
	top: 7px;
	left: -36px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--ink);
	box-shadow: 0 0 0 5px #fff;
}
.tb-timeline__item:not(:first-child)::before { background: var(--faint); }
.tb-timeline__period { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.tb-timeline__role {
	margin-top: 6px;
	color: var(--ink);
	font-family: var(--font-head);
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.2;
}
.tb-timeline__company { margin-top: 2px; color: var(--muted); }
.tb-timeline__points { margin-top: 16px; display: grid; gap: 8px; }
.tb-timeline__points li { position: relative; padding-left: 20px; }
.tb-timeline__points li::before {
	content: "";
	position: absolute;
	top: 0.72em;
	left: 2px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--faint);
}

.tb-skills {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}
.tb-skills__group { padding: 24px; border-radius: var(--r); background: var(--surface); }
.tb-skills__group h3,
.tb-tools h3,
.tb-edu h3 {
	color: var(--ink);
	font-family: var(--font-head);
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: -0.02em;
}
.tb-skills__group ul { margin-top: 12px; display: grid; gap: 6px; font-size: 15.5px; }
.tb-tools { margin-top: 32px; }
.tb-tools ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.tb-edu { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tb-edu li { padding: 24px; border-radius: var(--r); background: var(--surface); }
.tb-edu p { margin-top: 4px; color: var(--muted); font-size: 15px; }

/* ------------------------------------------------------------ Contact */

/* Intro and "what to expect" side by side; calendar full width below so
   booking widgets get room for their compact side-by-side layout. */
.tb-contact { display: grid; gap: clamp(40px, 5vw, 64px); }
.tb-contact__intro {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: clamp(32px, 6vw, 96px);
	align-items: end;
}
.tb-contact .tb-hero__title { margin-inline: 0; }
.tb-contact .tb-lead { max-width: 560px; margin-top: 20px; }
.tb-contact__label { margin: 32px 0 14px; }
.tb-contact__aside > .tb-contact__label:first-child { margin-top: 0; }
.tb-checklist { display: grid; gap: 10px; }
.tb-checklist li { display: flex; gap: 10px; }
.tb-checklist .tb-icon { margin-top: 3px; color: var(--ink); }
.tb-contact__intro p + p { margin-top: 6px; }

.tb-calendly {
	position: relative;
	min-height: 640px;
	overflow: hidden;
	border-radius: 20px;
	background: var(--surface);
}
.tb-calendly iframe { width: 100%; height: 720px; border: 0; }
.tb-calendly[data-booking="cal"] { padding: 8px; }
.tb-calendly[data-booking="cal"] iframe { height: auto; min-height: 0; }
.tb-calendly[data-booking="cal"].is-loaded { min-height: 0; }
.tb-calendly:not(.is-loaded)::after {
	content: "Loading calendar…";
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--muted);
	font-size: 15px;
	pointer-events: none;
}
.tb-contact__fallback { padding: clamp(32px, 5vw, 56px); border-radius: 20px; background: var(--surface); }
.tb-contact__fallback .tb-heading { margin-bottom: 28px; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }

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

.tb-footer { padding: clamp(56px, 7vw, 96px) 0 40px; }
.tb-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 0.8fr 1fr 1.4fr;
	gap: 48px;
}
.tb-footer__brand p { max-width: 320px; margin-top: 16px; color: var(--muted); font-size: 15px; }
.tb-footer__social { display: flex; gap: 8px; }
.tb-footer__social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--surface);
	color: var(--ink);
	transition: background-color 0.2s;
}
.tb-footer__social a:hover { background: var(--surface-2); }
.tb-footer__social .tb-icon { width: 18px; height: 18px; }
.tb-footer__label {
	margin-bottom: 16px;
	color: var(--ink);
	font-size: 14px;
	font-weight: 600;
}
.tb-footer__col ul { display: grid; gap: 10px; }
.tb-footer__col a { color: var(--muted); font-size: 15px; transition: color 0.2s; }
.tb-footer__col a:hover { color: var(--ink); }
.tb-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: clamp(48px, 6vw, 80px);
	color: var(--faint);
	font-size: 14px;
}
.tb-footer__bottom a:hover { color: var(--ink); }

/* ---------------------------------------------------------- Subscribe */

.tb-subscribe__form { display: flex; gap: 8px; }
.tb-subscribe input[type="email"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	padding: 0 16px;
	border: 0;
	border-radius: 12px;
	background: var(--surface);
	color: var(--ink);
	font-size: 15px;
}
.tb-subscribe input[type="email"]::placeholder { color: var(--faint); }
.tb-subscribe input[type="email"]:focus { outline: 2px solid var(--ink); outline-offset: 0; }
.tb-subscribe__fine { margin-top: 10px; color: var(--faint); font-size: 13px; }
.tb-subscribe__title { color: var(--ink); font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }
.tb-subscribe__text { margin: 6px 0 16px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

.tb-subscribe--inline { max-width: 520px; margin-top: 32px; }
.tb-subscribe--footer .tb-subscribe__text { margin-top: 0; font-size: 15px; }
.tb-subscribe--card {
	padding: 24px;
	border-radius: 20px;
	background: var(--surface);
}
.tb-subscribe--card .tb-subscribe__form { flex-direction: column; }
.tb-subscribe--card input[type="email"] { background: #fff; }
.tb-read .tb-subscribe--card { margin-top: 64px; padding: clamp(24px, 4vw, 40px); }
.tb-read .tb-subscribe--card .tb-subscribe__form { flex-direction: row; }

/* ------------------------------------------------- Writing (860 column) */

.tb-writing-head { margin-bottom: 16px; }
.tb-writing-head .tb-hero__title { font-size: clamp(2.5rem, 1.7rem + 3vw, 3.75rem); }
.tb-writing-head .tb-lead { margin-top: 20px; }
.tb-narrow > .tb-filter { margin-top: 40px; }
.tb-writing-label { margin: 56px 0 20px; }

.tb-recent { display: grid; gap: 56px; }
.tb-post-feature a { display: block; }
.tb-post-feature__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 24px;
}
.tb-post-feature h2 {
	color: var(--ink);
	font-family: var(--font-head);
	font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.2;
	transition: color 0.2s;
}
.tb-post-feature a:hover h2 { color: var(--muted); }
.tb-post-feature time,
.tb-row time { flex: none; color: var(--faint); font-size: 14px; font-variant-numeric: tabular-nums; }
.tb-post-feature p { margin-top: 8px; color: var(--muted); }
.tb-post-feature figure {
	overflow: hidden;
	margin-top: 20px;
	aspect-ratio: 16 / 9;
	border-radius: var(--r);
	background: var(--surface);
}
.tb-post-feature figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.tb-post-feature a:hover figure img { transform: scale(1.02); }

.tb-rows { display: grid; gap: 2px; }
.tb-row a {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 24px;
	margin-inline: -16px;
	padding: 16px;
	border-radius: 12px;
	transition: background-color 0.2s;
}
.tb-row a:hover { background: var(--surface); }
.tb-row__title { color: var(--ink); font-weight: 500; }

.tb-pagination { margin-top: 56px; }
.tb-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tb-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border-radius: 12px;
	background: var(--surface);
	color: var(--ink);
	font-size: 15px;
	font-weight: 500;
}
.tb-pagination .page-numbers.current { background: var(--ink); color: #fff; }
.tb-pagination a.page-numbers:hover { background: var(--surface-2); }

.tb-empty,
.tb-admin-hint {
	padding: 20px 24px;
	border-radius: 14px;
	background: var(--surface);
	color: var(--muted);
	font-size: 15px;
}
.tb-narrow .tb-empty { margin-top: 48px; }
.tb-admin-hint { margin-block: 24px; }
.tb-admin-hint::before { content: "Admin note — "; color: var(--ink); font-weight: 600; }

/* --------------------------------------------- Reading pages (860 col) */

.tb-read {
	width: 100%;
	max-width: calc(var(--narrow) + var(--gutter) * 2);
	margin-inline: auto;
	padding: clamp(56px, 8vw, 104px) var(--gutter) 0;
}
.tb-read__head { margin-bottom: 40px; }
.tb-read__title { font-size: clamp(2.25rem, 1.55rem + 2.8vw, 3.5rem); line-height: 1.06; letter-spacing: -0.04em; }
.tb-read__head .tb-lead { margin-top: 20px; }
.tb-read__head .tb-actions { margin-top: 28px; }
.tb-read__cover {
	overflow: hidden;
	margin-bottom: 48px;
	border-radius: 20px;
	background: var(--surface);
}
.tb-read__cover img { width: 100%; }

.tb-back {
	display: inline-block;
	margin-bottom: 24px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 500;
}
.tb-back:hover { color: var(--ink); }

.tb-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 16px 24px;
	margin-top: 32px;
	padding: 24px;
	border-radius: var(--r);
	background: var(--surface);
}
.tb-facts dt { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.tb-facts dd { margin-top: 4px; color: var(--ink); font-size: 15px; font-weight: 500; }

.tb-byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.tb-byline img { width: 40px; height: 40px; border-radius: 50%; }
.tb-byline__name { display: block; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.3; }
.tb-byline__meta { display: block; color: var(--muted); font-size: 14px; }

.tb-source { margin-top: 48px; color: var(--muted); font-size: 15px; }

/* Blog post: 860 article + sidebar */
.tb-article {
	display: grid;
	grid-template-columns: minmax(0, var(--narrow)) minmax(240px, 1fr);
	gap: clamp(40px, 5vw, 64px);
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding: clamp(56px, 8vw, 104px) var(--gutter) 0;
}
/* Sticky sidebar. It never grows past the screen: if the table of contents
   is still too long, it scrolls inside itself so the card below stays
   reachable. */
.tb-sticky {
	position: sticky;
	top: calc(var(--header-h) + 32px);
	display: flex;
	flex-direction: column;
	gap: 28px;
	max-height: calc(100vh - var(--header-h) - 56px);
}
.tb-sticky > * { flex: none; }
.tb-sticky > .tb-toc { flex: 0 1 auto; display: flex; flex-direction: column; min-height: 120px; }
.tb-sticky > .tb-toc .tb-toc__list {
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: none;
}
.tb-sticky > .tb-toc .tb-toc__list::-webkit-scrollbar { display: none; }

/* Table of contents. H2s always listed; a section's H3s open only while it
   is being read. States change colour and the rail marker only — never font
   weight or size — so titles don't re-wrap or jump. */
.tb-toc__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.tb-toc__head .tb-eyebrow { margin: 0; }
.tb-toc__toggle {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	margin-right: -6px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: none;
	color: var(--muted);
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}
.tb-toc__toggle:hover { background: var(--surface); color: var(--ink); }
.tb-toc__toggle .tb-icon { width: 16px; height: 16px; transform: rotate(90deg); transition: transform 0.25s var(--ease); }
.tb-toc__toggle[aria-expanded="false"] .tb-icon { transform: rotate(0deg); }
.tb-toc.is-collapsed .tb-toc__list { display: none; }

.tb-toc__list,
.tb-toc__sub ol { display: grid; align-content: start; }
.tb-toc__list { box-shadow: inset 2px 0 0 var(--surface-2); }
.tb-toc__link {
	position: relative;
	display: block;
	padding: 5px 0 5px 16px;
	color: var(--muted);
	font-size: 13.5px;
	line-height: 1.45;
	transition: color 0.25s;
}
.tb-toc__link::before {
	content: "";
	position: absolute;
	top: 4px;
	bottom: 4px;
	left: 0;
	width: 2px;
	border-radius: 2px;
	background: var(--ink);
	opacity: 0;
	transition: opacity 0.25s;
}
.tb-toc__link:hover { color: var(--ink); }
.tb-toc__link.is-done { color: var(--text); }
.tb-toc__link.is-active { color: var(--ink); }
.tb-toc__link.is-active::before { opacity: 1; }
.tb-toc__link--sub { padding-left: 28px; font-size: 13px; }

.tb-toc__sub {
	display: grid;
	grid-template-rows: 0fr;
	visibility: hidden;
	transition: grid-template-rows 0.3s var(--ease), visibility 0s 0.3s;
}
.tb-toc__sub > ol { min-height: 0; overflow: hidden; }
.tb-toc__section.is-open > .tb-toc__sub,
.tb-toc--inline .tb-toc__sub {
	grid-template-rows: 1fr;
	visibility: visible;
	transition: grid-template-rows 0.3s var(--ease), visibility 0s;
}

.tb-toc-mobile { display: none; margin-bottom: 32px; border-radius: var(--r); background: var(--surface); }
.tb-toc-mobile summary { padding: 16px 20px; color: var(--ink); font-weight: 600; cursor: pointer; }
.tb-toc-mobile .tb-toc { padding: 0 20px 16px; }

.tb-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.tb-tags a { padding: 7px 14px; border-radius: 999px; font-size: 14px; }

.tb-author {
	display: flex;
	gap: 20px;
	margin-top: 64px;
	padding: 28px;
	border-radius: 20px;
	background: var(--surface);
}
.tb-author img { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.tb-author__name { color: var(--ink); font-weight: 600; }
.tb-author p + p { margin-top: 6px; color: var(--muted); font-size: 15px; }

.tb-related { padding-top: 0; margin-top: 80px; }
.tb-related .tb-eyebrow { margin-bottom: 12px; }

/* Work sample: project snapshot + closing CTA */
.tb-snapshot {
	display: grid;
	gap: 20px;
	padding: 24px;
	border-radius: 20px;
	background: var(--surface);
}
.tb-snapshot .tb-eyebrow { margin: 0; }
.tb-snapshot dl { display: grid; gap: 14px; }
.tb-snapshot dt { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.tb-snapshot dd { margin-top: 2px; color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.45; }
.tb-snapshot .tb-btn { width: 100%; }
.tb-snapshot--inline { display: none; margin-top: 28px; }
.tb-snapshot--inline dl { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px 20px; }
.tb-snapshot--inline .tb-btn { width: auto; justify-self: start; }

.tb-work-cta {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 24px 40px;
	margin-top: 64px;
	padding: clamp(24px, 4vw, 40px);
	border-radius: 20px;
	background: var(--surface);
}
.tb-work-cta__title {
	color: var(--ink);
	font-family: var(--font-head);
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.2;
}
.tb-work-cta__title + p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }
.tb-work-cta .tb-actions { margin-top: 0; }

.tb-work-quote {
	margin-top: 64px;
	padding: clamp(28px, 4vw, 44px);
	border-radius: 20px;
	background: var(--surface);
}
.tb-work-quote .tb-eyebrow { margin-bottom: 20px; }
.tb-work-quote blockquote { display: grid; gap: 14px; color: var(--ink); font-size: 1.125rem; line-height: 1.7; }
.tb-work-quote blockquote p:first-child::before { content: "\201C"; }
.tb-work-quote blockquote p:last-child::after { content: "\201D"; }
.tb-work-quote__person { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.tb-work-quote__avatar {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	flex: none;
	border-radius: 50%;
	background: #fff;
	color: var(--ink);
	font-family: var(--font-head);
	font-size: 16px;
	font-weight: 600;
}
.tb-work-quote__name { display: block; color: var(--ink); font-weight: 600; }
a.tb-work-quote__name { text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
a.tb-work-quote__name:hover { text-decoration-color: var(--ink); }
.tb-work-quote__role { display: block; color: var(--muted); font-size: 14.5px; }
.tb-work-quote + .tb-work-cta { margin-top: 24px; }

/* --------------------------------------------------------------- Prose */

.tb-prose { font-size: 18px; line-height: 1.75; }
.tb-prose > * + * { margin-top: 1.25em; }
.tb-prose h2 {
	margin-top: 1.9em;
	font-size: clamp(1.6rem, 1.35rem + 1vw, 2rem);
	line-height: 1.2;
	letter-spacing: -0.03em;
}
.tb-prose h3 { margin-top: 1.75em; font-size: 1.35rem; line-height: 1.3; letter-spacing: -0.02em; }
.tb-prose h4 { margin-top: 1.6em; font-size: 1.125rem; }
/* Headings sit closer to their own section than to the one above. */
.tb-prose h2 + * { margin-top: 0.9em; }
.tb-prose h3 + *,
.tb-prose h4 + * { margin-top: 0.6em; }
.tb-prose h2 + h3 { margin-top: 0.75em; }
.tb-prose :is(h2, h3, h4) strong { font-weight: inherit; }
.tb-prose > :first-child { margin-top: 0; }
.tb-prose strong { color: var(--ink); font-weight: 600; }
.tb-prose a {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-color: var(--faint);
	text-underline-offset: 3px;
}
.tb-prose a:hover { text-decoration-color: var(--ink); }
.tb-prose ul,
.tb-prose ol { padding-left: 1.3em; }
.tb-prose ul { list-style: disc; }
.tb-prose ol { list-style: decimal; }
.tb-prose li + li { margin-top: 0.4em; }
.tb-prose li::marker { color: var(--faint); }
.tb-prose blockquote {
	padding: 24px 28px;
	border-radius: var(--r);
	background: var(--surface);
	color: var(--ink);
	font-size: 1.125em;
}
.tb-prose blockquote cite { display: block; margin-top: 12px; color: var(--muted); font-size: 15px; font-style: normal; }
.tb-prose img { border-radius: 12px; }
.tb-prose figure { margin-block: 2em; }
.tb-prose figcaption,
.tb-prose .wp-element-caption { margin-top: 10px; color: var(--muted); font-size: 14px; text-align: center; }
.tb-prose code { padding: 0.15em 0.4em; border-radius: 6px; background: var(--surface); font-size: 0.88em; }
.tb-prose pre { overflow-x: auto; padding: 20px; border-radius: 12px; background: var(--surface); font-size: 15px; line-height: 1.6; }
.tb-prose pre code { padding: 0; background: none; }
.tb-prose hr { height: 1px; margin-block: 3em; border: 0; background: var(--surface-2); }
.tb-prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.tb-prose .wp-block-table { overflow-x: auto; }
.tb-prose th,
.tb-prose td { padding: 12px 14px; border: 0; text-align: left; vertical-align: top; }
.tb-prose th { background: var(--surface); color: var(--ink); font-weight: 600; }
.tb-prose tr:nth-child(even) td { background: #fbfbfb; }
.tb-prose .wp-block-embed iframe { width: 100%; border-radius: 12px; }
.tb-prose .wp-block-gallery { gap: 12px; }
.tb-prose .wp-block-button__link { padding: 14px 22px; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; font-size: 15px; font-weight: 500; }

/* --------------------------------------------------------- Photography */

.tb-series { margin-top: clamp(56px, 7vw, 104px); }
.tb-filter + .tb-series { margin-top: clamp(40px, 5vw, 64px); }
.tb-series__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: 28px;
}
.tb-series__head h2 {
	color: var(--ink);
	font-family: var(--font-head);
	font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 1.1;
}
.tb-series__head p { color: var(--muted); }

.tb-photos { columns: 3 280px; column-gap: 16px; }
.tb-photo {
	display: block;
	width: 100%;
	margin: 0 0 16px;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 12px;
	background: var(--surface);
	cursor: zoom-in;
	break-inside: avoid;
}
.tb-photo img { width: 100%; height: auto; transition: transform 0.7s var(--ease), opacity 0.3s; }
.tb-photo:hover img { transform: scale(1.025); }
.tb-photo:focus-visible { outline-offset: 2px; }

.tb-actions--end { justify-content: flex-end; margin-top: 0; }
.tb-photo-strip {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-top: clamp(32px, 4vw, 48px);
}
.tb-photo-strip a { display: block; overflow: hidden; aspect-ratio: 1 / 1; border-radius: 14px; background: var(--surface); }
.tb-photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.tb-photo-strip a:hover img { transform: scale(1.04); }

.tb-lightbox {
	width: 100vw;
	max-width: none;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(12, 12, 12, 0.97);
	color: #fff;
}
.tb-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.tb-lightbox::backdrop { background: transparent; }
.tb-lightbox__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	max-width: calc(100vw - 176px);
}
.tb-lightbox__figure img {
	max-width: 100%;
	max-height: calc(100dvh - 150px);
	width: auto;
	height: auto;
	border-radius: 6px;
	object-fit: contain;
	transition: opacity 0.2s;
}
.tb-lightbox__figure img.is-loading { opacity: 0.25; }
.tb-lightbox__caption { display: grid; gap: 4px; color: #e6e6e6; font-size: 15px; text-align: center; }
.tb-lightbox__meta { color: #8c8c8c; font-size: 13px; font-variant-numeric: tabular-nums; }
.tb-lightbox__btn {
	position: absolute;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s;
}
.tb-lightbox__btn:hover { background: rgba(255, 255, 255, 0.18); }
.tb-lightbox__btn .tb-icon { width: 24px; height: 24px; }
.tb-lightbox__close { top: 20px; right: 20px; }
.tb-lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.tb-lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }
.tb-lightbox :focus-visible { outline-color: #fff; }

/* -------------------------------------------------------------- Motion */

.js [data-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js [data-reveal] { opacity: 1; transform: none; transition: none; }
	.tb-logos__track { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 24px; padding: 0 var(--gutter); }
	.tb-logos__track[aria-hidden="true"] { display: none; }
	.tb-logos__viewport { -webkit-mask-image: none; mask-image: none; justify-content: center; }
	* { transition-duration: 0.01ms !important; }
}

/* ---------------------------------------------------------- Responsive */

@media (max-width: 1100px) {
	.tb-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tb-deliverables { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tb-footer__grid { grid-template-columns: 1fr 1fr; }

	.tb-article { grid-template-columns: minmax(0, 1fr); max-width: calc(var(--narrow) + var(--gutter) * 2); }
	.tb-sticky { position: static; max-height: none; }
	.tb-article__side .tb-toc { display: none; }
	.tb-toc-mobile { display: block; }
	.tb-article--work .tb-article__side { display: none; }
	.tb-snapshot--inline { display: grid; }
	.tb-work-cta { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
	.tb-menu-toggle { display: inline-flex; }
	.tb-header__inner { justify-content: space-between; }
	.tb-header__cta { margin-left: auto; }

	.tb-nav {
		position: fixed;
		inset: var(--header-h) 0 0;
		z-index: 49;
		flex-direction: column;
		justify-content: flex-start;
		gap: 32px;
		padding: 24px var(--gutter) 40px;
		background: #fff;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s 0.25s;
		overflow-y: auto;
	}
	.tb-menu-open .tb-nav {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: opacity 0.25s, transform 0.25s var(--ease);
	}
	.tb-menu-open { overflow: hidden; }
	/* backdrop-filter makes the header the containing block for the fixed
	   panel, so drop it while the menu is open. */
	.tb-menu-open .tb-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
	.tb-menu-open .tb-menu-toggle__open { display: none; }
	.tb-menu-open .tb-menu-toggle__close { display: block; }
	.tb-nav ul { flex-direction: column; gap: 4px; }
	.tb-nav a:not(.tb-btn) {
		display: block;
		padding: 8px 0;
		color: var(--ink);
		font-family: var(--font-head);
		font-size: 2rem;
		font-weight: 600;
		letter-spacing: -0.03em;
	}
	.tb-nav a[aria-current="page"] { color: var(--faint); }
	.tb-nav__cta { display: inline-flex; align-self: flex-start; }

	.tb-split,
	.tb-about-intro,
	.tb-contact__intro,
	.tb-resume-row,
	.tb-cta { grid-template-columns: 1fr; }
	.tb-split { gap: 20px; align-items: start; }
	.tb-resume-row { gap: 32px; }
	.tb-resume-row__head { position: static; }
	.tb-cta { align-items: start; gap: 28px; }
	.tb-actions--end { justify-content: flex-start; }

	.tb-grid,
	.tb-cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tb-testimonials--pair { grid-template-columns: 1fr; }
	.tb-pillars { grid-template-columns: 1fr; gap: 28px; }
	.tb-lessons { grid-template-columns: 1fr; }
	.tb-stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
}

@media (max-width: 640px) {
	body { font-size: 16px; }
	.tb-photos { columns: 2; column-gap: 10px; }
	.tb-photo { margin-bottom: 10px; border-radius: 8px; }
	.tb-photo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.tb-actions--end { justify-content: flex-start; }
	.tb-lightbox__figure { max-width: 100vw; padding: 0 12px; }
	.tb-lightbox__figure img { max-height: calc(100dvh - 200px); }
	.tb-lightbox__prev,
	.tb-lightbox__next { top: auto; bottom: 24px; transform: none; }
	.tb-lightbox__prev { left: calc(50% - 64px); }
	.tb-lightbox__next { right: calc(50% - 64px); }
	.tb-header__cta { display: none; }
	.tb-grid,
	.tb-cap-grid,
	.tb-steps,
	.tb-deliverables,
	.tb-niches { grid-template-columns: 1fr; }
	.tb-footer__grid { grid-template-columns: 1fr; gap: 36px; }
	.tb-cap-list a { grid-template-columns: 1fr auto; }
	.tb-cap-list__num { display: none; }
	.tb-cap-list__arrow { width: 40px; height: 40px; }
	.tb-subscribe__form,
	.tb-read .tb-subscribe--card .tb-subscribe__form { flex-direction: column; }
	.tb-actions .tb-btn { flex: 1 1 auto; }
	.tb-post-feature__head,
	.tb-row a { flex-direction: column; gap: 2px; }
	.tb-prose { font-size: 17px; }
	.tb-author { flex-direction: column; }
	.tb-card__arrow { opacity: 1; transform: none; }
	.tb-logos__word { font-size: 19px; }
	.tb-logos__track { gap: 44px; padding-right: 44px; }
}
