/*
 * TCC 2b "Loud Iraqi": signature elements that theme.json can't express.
 * Tokens (colours, fonts, sizes, shadows) come from theme.json presets.
 */

:root {
	--tcc-ink: var(--wp--preset--color--ink-brown);
	--tcc-header-h: 6.5rem;
	/* Accent: mustard. (A turquoise trial, D21, was removed: D47. Add a "turquoise" palette entry to bring it back.) */
	--tcc-accent: var(--wp--preset--color--turquoise, var(--wp--preset--color--mustard));
	/* Motion tokens (2026-11-21): every transition uses these, so the site moves as one. */
	--tcc-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--tcc-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
	--tcc-dur-press: 140ms;
	--tcc-dur-ui: 220ms;
	--tcc-dur-reveal: 600ms;
}

@media (max-width: 781px) {
	:root {
		--tcc-header-h: 5.25rem;
	}
}

/* Halftone dot texture on the page background (pure CSS). */
body {
	background-image: radial-gradient(rgb(30 10 8 / 0.16) 1.5px, transparent 1.7px);
	background-size: 13px 13px;
}

@media (max-width: 781px) {
	body {
		background-image: radial-gradient(rgb(30 10 8 / 0.16) 1.3px, transparent 1.5px);
		background-size: 11px 11px;
	}
}

/* Keyboard focus that stays visible on red, mustard and ink. */
:where(a, button, summary, .wp-element-button):focus-visible {
	outline: 3px solid var(--wp--preset--color--cream);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--tcc-ink);
}

/* ---------- Block style: Offset shadow (heading, paragraph) ---------- */
/* Echoes the logo lettering. Scales with font size: 8px at the hero, 3px at the wordmark. */
.is-style-tcc-offset {
	--tcc-offset: clamp(3px, 0.055em, 8px);
	text-shadow: var(--tcc-offset) var(--tcc-offset) 0 var(--tcc-ink);
}

/* ---------- Text wrapping: no single word left alone on the last line ---------- */
:where(h1, h2, h3, h4, h5, h6, .tcc-stat-label, .tcc-dir__title) {
	text-wrap: balance;
}

:where(p, li, figcaption, summary) {
	text-wrap: pretty;
}

/* ---------- Menu: current page ---------- */
.wp-block-navigation-item__content[aria-current="page"] {
	text-decoration: underline;
	text-decoration-color: var(--tcc-accent);
	text-decoration-thickness: 3px;
	text-underline-offset: 0.35em;
}

/* ---------- Buttons: a "press" on hover ---------- */
.wp-block-button__link {
	transition: transform var(--tcc-dur-press) var(--tcc-ease-out), box-shadow var(--tcc-dur-press) var(--tcc-ease-out), background-color var(--tcc-dur-press) var(--tcc-ease-out), color var(--tcc-dur-press) var(--tcc-ease-out);
}

/* Movement on hover only with a real mouse: on phones a tap would leave it stuck. */
@media (hover: hover) and (pointer: fine) {
	.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
		transform: translate(2px, 2px);
		box-shadow: 2px 2px 0 var(--tcc-ink);
	}
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--cream);
	color: var(--tcc-ink);
}

/* Pressed: the button sinks fully into its shadow. */
.wp-block-button:not(.is-style-outline) .wp-block-button__link:active,
.tcc-form__actions .wp-element-button:active,
.wp-block-navigation .tcc-nav-cta > .wp-block-navigation-item__content:active {
	transform: translate(4px, 4px);
	box-shadow: 0 0 0 var(--tcc-ink);
}

.wp-block-button.is-style-outline .wp-block-button__link:active {
	transform: translateY(1px);
}

/* ---------- D21 accent: hovers only behind ink text (turquoise fails as text on red) ---------- */
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.wp-block-navigation .tcc-nav-cta > .wp-block-navigation-item__content:hover {
	background-color: var(--tcc-accent);
	color: var(--tcc-ink);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--tcc-accent);
	background-color: var(--tcc-accent);
}

.wp-block-navigation-item__content:hover,
.tcc-footer a:hover,
.tcc-post-card a:hover,
.tcc-article-body a:hover {
	text-decoration: underline;
	text-decoration-color: var(--tcc-accent);
	text-decoration-thickness: 3px;
	text-underline-offset: 0.25em;
}

/* The one highlighted word (on ink only). */
.tcc-band mark.tcc-accent-word {
	background: transparent;
	color: var(--tcc-accent);
}

/* ---------- Logo lockup (interim: six-dot symbol + typed TCC until the SVG lockups arrive) ---------- */
/* The logo keeps Anton; headlines use Tinos (owner, 2026-11-26). */
.tcc-wordmark,
.wp-block-group.is-style-tcc-stamp > .has-display-font-family {
	font-family: var(--wp--preset--font-family--logo) !important;
}

.tcc-wordmark a {
	display: inline-flex;
	align-items: center;
	gap: 0.32em;
	text-decoration: none;
}

.tcc-symbol {
	display: block;
	width: auto;
	height: 0.82em;
}

.tcc-lockup-tagline {
	font-family: var(--wp--preset--font-family--label);
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

/* Small labels use Inter, echoing the logo's Latin type. */
.tcc-kicker,
.tcc-footer-label,
.tcc-dir__head,
.tcc-dir__group-label,
.tcc-dir__count,
.wp-block-list.is-style-tcc-tags > li,
.wp-block-list.tcc-facts strong,
.tcc-byline-label {
	font-family: var(--wp--preset--font-family--label);
}

/* ---------- Header ---------- */
.tcc-lockup {
	flex-wrap: nowrap;
}

.tcc-lockup .tcc-wordmark a {
	color: inherit;
}

.wp-block-navigation .tcc-nav-cta > .wp-block-navigation-item__content {
	background: var(--wp--preset--color--mustard);
	color: var(--tcc-ink);
	padding: 0.75rem 1.375rem;
	border-radius: 6px;
	box-shadow: 3px 3px 0 var(--tcc-ink);
	transition: transform var(--tcc-dur-press) var(--tcc-ease-out), box-shadow var(--tcc-dur-press) var(--tcc-ease-out);
}

@media (hover: hover) and (pointer: fine) {
	.wp-block-navigation .tcc-nav-cta > .wp-block-navigation-item__content:hover {
		color: var(--tcc-ink);
		transform: translate(2px, 2px);
		box-shadow: 1px 1px 0 var(--tcc-ink);
	}
}

/* Core switches to the hamburger only below 600px; our five items wrap onto
   two rows until about 880px, so keep the hamburger up to 899px. */
@media (min-width: 600px) and (max-width: 899px) {
	header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

/* Mobile menu button: 44px target, outlined like the secondary button. */
.wp-block-navigation__responsive-container-open {
	width: 44px;
	height: 44px;
	justify-content: center;
	border: 2px solid var(--wp--preset--color--cream);
	border-radius: 6px;
}

/* ---------- Hero ---------- */
/* First screen: statement grows to fill, lead + CTAs sit at the bottom, strip closes it. */
.tcc-hero {
	display: flex;
	flex-direction: column;
	min-height: calc(100svh - var(--tcc-header-h));
}

.tcc-hero > * {
	box-sizing: border-box;
	width: 100%;
}

.tcc-hero > .alignfull {
	width: auto;
	align-self: stretch;
}

.tcc-hero__statement {
	position: relative;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-block: var(--wp--preset--spacing--40);
}

/* Optical alignment: the serif's side bearing makes the giant H1 look indented. */
.tcc-hero__statement > h1 {
	margin-inline-start: -0.02em;
}

/* Spacing between campaign names, matching the 26px gaps in the design. */
.is-style-tcc-strip span[aria-hidden="true"] {
	margin-inline: 0.6em;
}

.tcc-hero__lead {
	max-width: 36.25rem;
	margin: 0;
}

/* Short intro next to a section heading. */
.tcc-section-lead {
	max-width: 24rem;
	margin: 0;
}

/* Primary CTA comes first in the DOM (and first on mobile); on desktop the design puts it on the right. */
@media (min-width: 782px) {
	.tcc-hero__ctas {
		flex-direction: row-reverse;
	}
}

@media (max-width: 781px) {
	.tcc-hero__bottom {
		flex-direction: column;
		align-items: stretch !important;
	}

	.tcc-hero__ctas {
		flex-direction: column;
		align-items: stretch;
	}

	.tcc-hero__ctas .wp-block-button,
	.tcc-hero__ctas .wp-block-button__link {
		width: 100%;
	}
}

/* ---------- Block style: Stamp (group) ---------- */
/* Rotated "NOW TCC, formerly Masar Agency" badge for the 12-month transition. */
.wp-block-group.is-style-tcc-stamp {
	--tcc-stamp-u: clamp(9px, 0.83vw, 12px);
	position: absolute;
	inset-block-start: calc(var(--tcc-stamp-u) * 4.5);
	inset-inline-end: calc(var(--tcc-stamp-u) * 3);
	z-index: 1;
	width: calc(var(--tcc-stamp-u) * 15.67);
	aspect-ratio: 1;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: calc(var(--tcc-stamp-u) * 0.33);
	text-align: center;
	background: var(--wp--preset--color--mustard);
	color: var(--tcc-ink);
	box-shadow: 5px 5px 0 var(--tcc-ink);
	transform: rotate(-12deg);
}

.wp-block-group.is-style-tcc-stamp > * {
	margin: 0;
	font-size: var(--tcc-stamp-u);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.wp-block-group.is-style-tcc-stamp > .has-display-font-family {
	font-size: calc(var(--tcc-stamp-u) * 3.83);
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
}

/* The mobile design has no stamp; the lockup already says "formerly Masar Agency". */
@media (max-width: 1023px) {
	.wp-block-group.is-style-tcc-stamp {
		display: none;
	}
}

/* ---------- Block style: Campaign strip (group) ---------- */
.wp-block-group.is-style-tcc-strip {
	overflow: hidden;
	white-space: nowrap;
}

.wp-block-group.is-style-tcc-strip > * {
	margin: 0;
}

/* ---------- Ink band (How we work) ---------- */
/* The offset shadow is ink brown; on an ink band it vanishes, so use brick red here only. */
.tcc-band .is-style-tcc-offset {
	text-shadow: var(--tcc-offset) var(--tcc-offset) 0 var(--wp--preset--color--brick-red);
}

/* Explicit columns so four principles never wrap 3 + 1. */
.wp-block-group.tcc-principles {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1099px) {
	.wp-block-group.tcc-principles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 599px) {
	.wp-block-group.tcc-principles {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Footer ---------- */
.wp-block-group.tcc-footer-grid {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 700px) {
	.wp-block-group.tcc-footer-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.tcc-footer-label {
	margin: 0;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tcc-footer-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tcc-footer-links li {
	margin: 0;
}

/* Comfortable tap targets for a stacked link list. */
.tcc-footer-links a {
	display: inline-block;
	padding-block: 0.3rem;
}

.tcc-footer a:hover,
.tcc-footer a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.tcc-footer .wp-block-button__link:hover,
.tcc-footer .tcc-wordmark a:hover {
	text-decoration: none;
}

.tcc-footer-bottom p {
	margin: 0;
	opacity: 0.85;
}

/* ---------- Case study page ---------- */
.tcc-cs-brand:empty {
	display: none;
}

.tcc-cs-meta > * {
	margin: 0;
}

.tcc-cs-chip,
.tcc-cs-meta .wp-block-post-terms {
	padding: 0.35em 0.9em;
	border: 2px solid var(--wp--preset--color--cream);
	border-radius: 999px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.tcc-cs-chip:empty {
	display: none;
}

.tcc-cs-meta a {
	color: inherit;
	text-decoration: none;
}

/* Numbers grid used in case-study results. */
.wp-block-group.tcc-stats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
	gap: var(--wp--preset--spacing--30);
}

.tcc-stat {
	padding-top: 0.75rem;
	border-top: 2px solid var(--wp--preset--color--mustard);
}

.tcc-stat > * {
	margin: 0;
}

.tcc-stat-number {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2.25rem, 1.8rem + 2vw, 3.5rem);
	line-height: 1;
	color: var(--wp--preset--color--mustard);
}

.tcc-stat-label {
	margin-top: 0.4rem;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
}

/* Facts list ("At a glance"). */
.wp-block-list.tcc-facts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
	gap: 1rem 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wp-block-list.tcc-facts > li {
	margin: 0;
	padding-top: 0.5rem;
	border-top: 1px solid rgb(243 233 198 / 0.5);
	line-height: 1.45;
}

.wp-block-list.tcc-facts strong {
	display: block;
	color: var(--wp--preset--color--mustard);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* Content pages built by scripts/build_content.py */
.tcc-kicker {
	margin: 0;
	color: var(--wp--preset--color--mustard);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tcc-hero-lead {
	max-width: 40rem;
}

.tcc-slogan {
	color: var(--wp--preset--color--mustard);
	line-height: 1.5;
}

/* Columns follow the number of cards so rows never end with a lone card. */
.wp-block-group.tcc-card-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--30);
}

@media (min-width: 700px) {
	.wp-block-group.tcc-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wp-block-group.tcc-card-grid:has(> :nth-child(3):last-child) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.wp-block-group.tcc-card-grid:has(> :nth-child(6):last-child),
	.wp-block-group.tcc-card-grid:has(> :nth-child(3):last-child) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.wp-block-group.tcc-card-grid:has(> :nth-child(4):last-child) {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.wp-block-group.tcc-card-grid:has(> :only-child) {
	grid-template-columns: minmax(0, 1fr);
	max-width: 40rem;
}

.tcc-content-card {
	padding: var(--wp--preset--spacing--30);
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--ink-brown);
	box-shadow: var(--wp--preset--shadow--offset-xl);
}

.tcc-content-card > * {
	margin: 0;
}

.tcc-content-card > * + * {
	margin-top: 0.75rem;
}

.tcc-content-card h3 {
	color: var(--wp--preset--color--ink-brown);
}

.tcc-content-card a {
	color: var(--wp--preset--color--brick-red);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.tcc-card-number {
	color: var(--wp--preset--color--brick-red);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--wordmark);
	line-height: 1;
}

/* Arabic (Cairo, loaded only when Arabic text appears): no letter spacing or
   caps transforms (they break joined script), and roomier line heights than Anton's. */
:lang(ar) {
	letter-spacing: 0;
	text-transform: none;
}

:lang(ar) :where(h1, h2, h3, h4),
:where(h1, h2, h3, h4):lang(ar),
.tcc-slogan :lang(ar) {
	font-family: var(--wp--preset--font-family--arabic-display); /* Cairo (owner, 2026-11-25) */
	font-weight: 900;
	line-height: 1.35;
}

article:lang(ar) .tcc-article-body {
	font-family: var(--wp--preset--font-family--arabic);
	line-height: 1.9;
}

/* RTL article: logical properties keep the layout mirrored correctly. */
article[dir="rtl"] .tcc-byline-label {
	margin-inline-end: 0.35em;
}

/* Placeholder frame for media the owner will add (D27). */
.tcc-media-placeholder {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	background-color: var(--wp--preset--color--ink-brown);
	background-image: radial-gradient(rgb(220 203 85 / 0.22) 1.6px, transparent 1.8px);
	background-size: 14px 14px;
	color: var(--wp--preset--color--mustard);
	font-family: var(--wp--preset--font-family--display);
	text-transform: uppercase;
}

.tcc-media-placeholder > * {
	margin: 0;
}

/* ---------- Blog ---------- */
.tcc-byline > * {
	margin: 0;
}

.tcc-byline-label {
	margin-inline-end: 0.35em;
	font-weight: 700;
	opacity: 0.85;
}

.tcc-article-kicker a,
.tcc-article-tags a {
	color: inherit;
}

.tcc-article-body {
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.7;
}

.tcc-article-body :where(h2, h3) {
	margin-top: 1.75em;
	line-height: 1.05;
}

.tcc-article-body a {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.tcc-posts .wp-block-post-template {
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
}

@media (max-width: 1023px) {
	.tcc-posts .wp-block-post-template.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 599px) {
	.tcc-posts .wp-block-post-template.is-layout-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.tcc-post-card .wp-block-post-title a {
	color: var(--wp--preset--color--mustard);
	text-decoration: none;
}

.tcc-post-card > * {
	margin: 0;
}

/* ---------- Contact: two columns, stacked below 900px ---------- */
.wp-block-group.tcc-contact-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
}

@media (max-width: 899px) {
	.wp-block-group.tcc-contact-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Block style: Client wall (list) ---------- */
/* Names now, logos later: each cell can hold text or an image. Ten cells = 5x2 / 2x5. */
.wp-block-list.is-style-tcc-wall {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 2px solid var(--wp--preset--color--cream);
	border-left: 2px solid var(--wp--preset--color--cream);
}

.wp-block-list.is-style-tcc-wall > li {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(6.5rem, 5rem + 4vw, 9.5rem);
	margin: 0;
	padding: 1rem;
	border-right: 2px solid var(--wp--preset--color--cream);
	border-bottom: 2px solid var(--wp--preset--color--cream);
	text-align: center;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
	line-height: 1;
	text-transform: uppercase;
	color: var(--wp--preset--color--mustard);
	text-wrap: balance;
}

/* The "your brand next" cell: mustard, ink text, whole cell clickable. */
.wp-block-list.is-style-tcc-wall > li:has(> a) {
	padding: 0;
	background: var(--wp--preset--color--mustard);
}

.wp-block-list.is-style-tcc-wall > li > a {
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	width: 100%;
	padding: 1rem;
	color: var(--tcc-ink);
	transition: background-color var(--tcc-dur-press) var(--tcc-ease-out), color var(--tcc-dur-press) var(--tcc-ease-out);
}

.wp-block-list.is-style-tcc-wall > li > a:hover {
	background: var(--tcc-ink);
	color: var(--wp--preset--color--mustard);
}

.wp-block-list.is-style-tcc-wall > li > a:focus-visible {
	outline-offset: -6px;
	box-shadow: none;
	outline-color: var(--tcc-ink);
}

@media (max-width: 1099px) {
	.wp-block-list.is-style-tcc-wall {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-list.is-style-tcc-wall > li > a {
		transition: none;
	}
}

/* ---------- Block style: Card (group) ---------- */
/* Colours, padding and shadow come from block attributes; this keeps tags at the bottom. */
.wp-block-group.is-style-tcc-card {
	box-sizing: border-box;
	height: 100%;
}

.wp-block-group.is-style-tcc-card > .is-style-tcc-tags {
	margin-block-start: auto;
}

.wp-block-group.is-style-tcc-card :where(h2, h3, h4) {
	margin: 0;
}

.is-style-tcc-card .tcc-card-link a {
	color: var(--wp--preset--color--brick-red);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}

/* ---------- Block style: Tags (list) ---------- */
.wp-block-list.is-style-tcc-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-inline: 0;
	padding: 0;
	list-style: none;
}

.wp-block-list.is-style-tcc-tags > li {
	margin: 0;
	padding: 0.35em 0.85em;
	border: 2px solid currentColor;
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-button__link,
	.wp-block-navigation .tcc-nav-cta > .wp-block-navigation-item__content {
		transition: none;
	}

	.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
	.wp-block-navigation .tcc-nav-cta > .wp-block-navigation-item__content:hover {
		transform: none;
	}
}

/* Heading rhythm (owner review 2026-11-14; headlines in Tinos since 2026-11-26). Smaller headings (cards, article titles) get a looser line height so
   wrapped lines don't touch; the hero keeps its tight stack. */
body :is(h3, h4, h5, h6, .wp-block-post-title) {
	line-height: 1.05;
	letter-spacing: 0.01em;
}
body h1.has-hero-font-size {
	line-height: 0.95;
}
/* Arabic letters join: letter spacing would break the words apart. */
body :lang(ar) :is(h1, h2, h3, h4, h5, h6),
body :is(h1, h2, h3, h4, h5, h6):lang(ar) {
	letter-spacing: 0;
}

/* Section heading + intro on the wide edge, above a card grid (inner pages). */
.tcc-section-head > .tcc-section-lead {
	max-width: 40rem;
	margin-top: var(--wp--preset--spacing--20);
}

/* The grid sets its own gap: drop the flow layout's top margin on cards 2+,
   which pushed the first card higher than the rest. */
.wp-block-group.tcc-card-grid > * {
	margin-block: 0;
}

/* Contact section: the phone number and email are the point, so make them big. */
.tcc-contact-details {
	font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
	overflow-wrap: anywhere;
}

/* ---------- Review round 2 (2026-11-15) ---------- */

/* Article titles are long sentences: smaller than a section heading. */
.tcc-article .tcc-article-title {
	font-size: clamp(2.25rem, 1.55rem + 3vw, 4.25rem);
	line-height: 1;
}

/* One left edge on inner pages: narrow text blocks start where the wide blocks
   (cards, facts, video) start, instead of floating in a centred column. */
.wp-block-post-content.alignfull > section.is-layout-constrained > :where(:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright)) {
	margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size)) / 2)) !important;
	margin-right: auto !important;
}

.wp-block-post-content.alignfull > section.is-layout-constrained > h1 {
	max-width: min(100%, 62rem);
}

/* Smooth cross-fade between pages (browsers that support it). */
@view-transition {
	navigation: auto;
}

/* ---------- Motion ---------- */
/* Everything here is decoration: content is visible without JS, and all of it
   is off under prefers-reduced-motion (see the end of this block). */

/* Card hover: lift toward the top-left, shadow grows. */
.wp-block-group.is-style-tcc-card {
	transition: transform var(--tcc-dur-press) var(--tcc-ease-out), box-shadow var(--tcc-dur-press) var(--tcc-ease-out);
}

@media (hover: hover) and (pointer: fine) {
	.wp-block-group.is-style-tcc-card:has(a):hover {
		transform: translate(-3px, -3px);
		box-shadow: calc(var(--tcc-card-shadow, 6px) + 4px) calc(var(--tcc-card-shadow, 6px) + 4px) 0 var(--tcc-ink);
	}
}

/* Ticker: motion.js doubles the strip's content, CSS slides it by one copy. */
.is-style-tcc-strip .tcc-ticker {
	display: flex;
	width: max-content;
	max-width: none !important;
	margin: 0 !important;
	animation: tcc-ticker var(--tcc-ticker-time, 40s) linear infinite;
}

.is-style-tcc-strip .tcc-ticker > * {
	flex: none;
	margin: 0;
}

.is-style-tcc-strip.is-paused .tcc-ticker,
.is-style-tcc-strip:focus-within .tcc-ticker {
	animation-play-state: paused;
}

@media (hover: hover) and (pointer: fine) {
	.is-style-tcc-strip:hover .tcc-ticker {
		animation-play-state: paused;
	}
}

/* Pause / play button (added by motion.js), at the strip's end. */
.wp-block-group.is-style-tcc-strip:has(> .tcc-ticker-toggle) {
	position: relative;
}

.tcc-ticker-toggle {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: 0.75rem;
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 2px solid currentColor;
	border-radius: 999px;
	/* The strip's own colours (motion.js sets --tcc-strip-bg); a soft halo hides the text running under it. */
	background: var(--tcc-strip-bg, var(--tcc-ink));
	box-shadow: 0 0 0 0.5rem var(--tcc-strip-bg, var(--tcc-ink)), -1.5rem 0 1.25rem 0.5rem var(--tcc-strip-bg, var(--tcc-ink));
	color: inherit;
	cursor: pointer;
	translate: 0 -50%;
	transition: scale var(--tcc-dur-press) var(--tcc-ease-out);
}

.tcc-ticker-toggle:active {
	scale: 0.94;
}

/* Two bars = pause; a triangle = play. */
.tcc-ticker-toggle > span {
	width: 0.7rem;
	height: 0.75rem;
	border-inline: 0.22rem solid currentColor;
}

.tcc-ticker-toggle[aria-pressed="true"] > span {
	width: 0;
	height: 0;
	margin-inline-start: 0.2rem;
	border-block: 0.4rem solid transparent;
	border-inline-start: 0.65rem solid currentColor;
	border-inline-end: 0;
}

@keyframes tcc-ticker {
	to {
		transform: translateX(-50%);
	}
}

/* Hero entrance (CSS only, so it never waits for a script). */
@keyframes tcc-rise {
	from {
		transform: translateY(0.22em);
		clip-path: inset(0 0 100% 0);
	}
	to {
		transform: none;
		clip-path: inset(-0.2em -0.2em -0.2em -0.2em);
	}
}

@keyframes tcc-shadow-snap {
	from {
		text-shadow: 0 0 0 transparent;
	}
}

@keyframes tcc-fade-up {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
}

@keyframes tcc-stamp-in {
	0% {
		opacity: 0;
		scale: 2.4;
	}
	70% {
		opacity: 1;
		scale: 0.94;
	}
	100% {
		scale: 1;
	}
}

@keyframes tcc-stamp-turn {
	to {
		rotate: 40deg;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.tcc-hero h1 {
		animation: tcc-rise 0.6s cubic-bezier(0.2, 0.9, 0.25, 1) both, tcc-shadow-snap 0.18s steps(2, end) 0.55s both;
	}

	.tcc-hero__lead,
	.tcc-hero__ctas {
		animation: tcc-fade-up 0.5s ease-out 0.35s both;
	}

	.tcc-hero__ctas {
		animation-delay: 0.45s;
	}

	.tcc-hero .is-style-tcc-stamp {
		animation: tcc-stamp-in 0.4s cubic-bezier(0.3, 1.3, 0.5, 1) 0.8s both;
	}

	@supports (animation-timeline: scroll()) {
		.tcc-hero .is-style-tcc-stamp {
			animation: tcc-stamp-in 0.4s cubic-bezier(0.3, 1.3, 0.5, 1) 0.8s both, tcc-stamp-turn linear both;
			animation-timeline: auto, scroll();
			animation-range: normal, 0 100vh;
		}
	}

	/* Scroll reveals: motion.js adds .tcc-reveal only to things below the fold. */
	.tcc-reveal {
		opacity: 0;
		transform: translateY(22px);
		transition: opacity 0.5s var(--tcc-ease-out), transform var(--tcc-dur-reveal) var(--tcc-ease-out);
		transition-delay: var(--tcc-reveal-delay, 0s);
	}

	.tcc-reveal.is-in {
		opacity: 1;
		transform: none;
	}

	/* Big headings rise without their shadow, then the shadow snaps on, like the hero. */
	.is-style-tcc-offset.tcc-reveal {
		transition:
			opacity 0.5s var(--tcc-ease-out) var(--tcc-reveal-delay, 0s),
			transform var(--tcc-dur-reveal) var(--tcc-ease-out) var(--tcc-reveal-delay, 0s),
			text-shadow 0.18s steps(2, end) calc(var(--tcc-reveal-delay, 0s) + 0.45s);
	}

	.is-style-tcc-offset.tcc-reveal:not(.is-in) {
		text-shadow: 0 0 0 transparent;
	}

	/* Mobile menu: links arrive one after another when it opens. */
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
		animation: tcc-fade-up 0.35s var(--tcc-ease-out) both;
	}

	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(2) { animation-delay: 40ms; }
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(3) { animation-delay: 75ms; }
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(4) { animation-delay: 105ms; }
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(5) { animation-delay: 130ms; }
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(n + 6) { animation-delay: 150ms; }

	.tcc-stat-number {
		font-variant-numeric: tabular-nums;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-group.is-style-tcc-card {
		transition: none;
	}

	.wp-block-group.is-style-tcc-card:has(a):hover {
		transform: none;
	}

	.is-style-tcc-strip .tcc-ticker {
		animation: none;
	}
}

@media print {
	.tcc-reveal {
		opacity: 1 !important;
		transform: none !important;
	}
}

/* ---------- Pictures (2026-11-15) ---------- */
.tcc-cs-cover {
	margin-top: var(--wp--preset--spacing--30);
	box-shadow: var(--wp--preset--shadow--offset-xl);
}

.tcc-cs-cover img {
	display: block;
	width: 100%;
}

/* Photo slots: honest empty frames until the owner's pictures arrive. */
.tcc-photo-slot {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	margin: 0;
	padding: 1rem;
	border: 2px dashed var(--wp--preset--color--mustard);
	background: var(--wp--preset--color--ink-brown);
	color: var(--wp--preset--color--mustard);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-align: center;
	text-transform: uppercase;
}

.tcc-photo-slot--portrait {
	aspect-ratio: 4 / 5;
}

.tcc-photo-slot--face {
	flex: none;
	width: 3.5rem;
	aspect-ratio: 1;
	padding: 0;
	border-radius: 50%;
	font-size: 0.5625rem;
}

/* Testimonials */
.tcc-quote {
	display: flex;
	flex-direction: column;
}

.tcc-quote__text::before {
	content: "“";
	display: block;
	height: 0.55em;
	font-family: var(--wp--preset--font-family--display);
	font-size: 4rem;
	line-height: 1;
	color: var(--wp--preset--color--brick-red);
}

.tcc-content-card.tcc-quote > .tcc-quote__who {
	margin-top: auto;
	padding-top: 1.25rem;
	gap: 0.875rem;
	align-items: center;
}

.tcc-quote__who p {
	margin: 0;
	line-height: 1.35;
}

/* People (About) */
.tcc-founder {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	align-items: center;
}

.tcc-founder > * {
	margin: 0;
}

.tcc-founder__quote {
	line-height: 1.05;
	text-transform: uppercase;
	color: var(--wp--preset--color--mustard);
}

.tcc-people__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--30);
}

.tcc-people__grid > * {
	margin: 0;
}

@media (min-width: 782px) {
	.tcc-founder {
		grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
	}

	.tcc-people__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Dialect strip: big Arabic, runs the other way. */
.tcc-strip--dialect {
	font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3.5rem);
	font-weight: 800;
	line-height: 1.5;
}

.tcc-strip--dialect p {
	white-space: nowrap;
}

.tcc-strip--dialect .tcc-ticker {
	animation-direction: reverse;
}

/* ---------- Two-column text sections on inner pages (wide screens) ---------- */
/* A section that is only a heading plus text: heading on the left, text on the right. */
@media (min-width: 1024px) {
	.wp-block-post-content.alignfull > section.is-layout-constrained:has(> h2:first-child):not(:has(> .alignwide, > .alignfull)) {
		display: grid;
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		column-gap: var(--wp--preset--spacing--50);
		padding-inline: max(var(--wp--style--root--padding-left, 1.25rem), calc((100% - var(--wp--style--global--wide-size)) / 2));
	}

	.wp-block-post-content.alignfull > section.is-layout-constrained:has(> h2:first-child):not(:has(> .alignwide, > .alignfull)) > * {
		grid-column: 2;
		max-width: 44rem;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	.wp-block-post-content.alignfull > section.is-layout-constrained:has(> h2:first-child):not(:has(> .alignwide, > .alignfull)) > h2:first-child {
		grid-column: 1;
		grid-row: 1 / span 30;
		align-self: start;
		position: sticky;
		top: 2rem;
	}

	.wp-block-post-content.alignfull > section.is-layout-constrained:has(> h2:first-child):not(:has(> .alignwide, > .alignfull)) > :nth-child(2) {
		margin-top: 0;
	}
}

/* ---------- Article upgrade ---------- */
/* Reading progress: a mustard bar that fills as the page scrolls (CSS only). */
@supports (animation-timeline: scroll()) {
	.single-post body::before,
	body.single-post::before {
		content: "";
		position: fixed;
		z-index: 50;
		inset: 0 0 auto 0;
		height: 5px;
		background: var(--wp--preset--color--mustard);
		transform-origin: 0 50%;
		animation: tcc-progress linear both;
		animation-timeline: scroll(root);
	}

	body.single-post.rtl::before {
		transform-origin: 100% 50%;
	}
}

@keyframes tcc-progress {
	from {
		transform: scaleX(0);
	}
}

/* The migrated posts are one sentence per paragraph: pull them together so they read as prose. */
.tcc-article-body > p {
	margin-block: 0.7em;
}

.tcc-toc {
	margin-block: 0 var(--wp--preset--spacing--40);
	padding: var(--wp--preset--spacing--30);
	background: var(--wp--preset--color--ink-brown);
	box-shadow: 6px 6px 0 var(--wp--preset--color--mustard);
}

.tcc-toc__title {
	margin: 0 0 0.75rem;
	color: var(--wp--preset--color--mustard);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tcc-toc ol {
	margin: 0;
	padding-inline-start: 1.25em;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.5;
}

.tcc-toc li + li {
	margin-top: 0.35em;
}

.tcc-toc a {
	color: var(--wp--preset--color--cream);
	text-decoration: none;
}

.tcc-toc a:hover,
.tcc-toc a:focus-visible {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--mustard);
	text-underline-offset: 0.2em;
}

.tcc-article-body :is(h2, h3)[id] {
	scroll-margin-top: 2rem;
}

.tcc-read-next {
	margin-top: var(--wp--preset--spacing--50);
}

/* ---------- Floating WhatsApp button (small screens) ---------- */
.tcc-wa-float {
	position: fixed;
	z-index: 40;
	inset-block-end: max(1rem, env(safe-area-inset-bottom));
	inset-inline-end: 1rem;
	display: none;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	border: 2px solid var(--wp--preset--color--ink-brown);
	border-radius: 999px;
	background: var(--wp--preset--color--mustard);
	box-shadow: 3px 3px 0 var(--wp--preset--color--ink-brown);
	color: var(--wp--preset--color--ink-brown);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	text-decoration: none;
	transition: opacity var(--tcc-dur-ui) var(--tcc-ease-out), transform var(--tcc-dur-ui) var(--tcc-ease-out);
}

.tcc-wa-float svg {
	width: 1.25rem;
	height: 1.25rem;
}

.tcc-wa-float.is-hidden {
	opacity: 0;
	transform: translateY(1rem);
	pointer-events: none;
}

@media (max-width: 781px) {
	.tcc-wa-float {
		display: inline-flex;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tcc-wa-float {
		transition: none;
	}
}

@media (min-width: 782px) {
	.tcc-toc ol {
		columns: 2;
		column-gap: 2.5rem;
	}

	.tcc-toc li {
		break-inside: avoid;
	}
}

/* ---------- FAQ accordions (2026-11-21) ---------- */
/* Every answer stays in the page's HTML whether open or closed, so search engines
   and AI read it (plus FAQPage schema and /llms-full.txt). The motion is for people. */
.wp-block-details {
	margin-block: 0 !important;
	border-block-start: 2px solid color-mix(in srgb, currentColor 35%, transparent);
}

.wp-block-details:not(:has(+ .wp-block-details)) {
	border-block-end: 2px solid color-mix(in srgb, currentColor 35%, transparent);
}

.wp-block-details > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	padding-block: 1.1rem;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	line-height: 1.35;
	list-style: none;
	cursor: pointer;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.wp-block-details > summary::-webkit-details-marker {
	display: none;
}

/* A bold plus that turns into a cross when the answer is open. */
.wp-block-details > summary::after {
	content: "";
	flex: none;
	width: 1.375rem;
	height: 1.375rem;
	background:
		linear-gradient(currentColor, currentColor) center / 100% 3px no-repeat,
		linear-gradient(currentColor, currentColor) center / 3px 100% no-repeat;
	transition: rotate var(--tcc-dur-ui) var(--tcc-ease-out);
}

.wp-block-details[open] > summary::after {
	rotate: 135deg;
}

@media (hover: hover) and (pointer: fine) {
	.wp-block-details > summary:hover {
		text-decoration: underline;
		text-decoration-color: var(--tcc-accent);
		text-decoration-thickness: 3px;
		text-underline-offset: 0.25em;
	}
}

.wp-block-details > :not(summary) {
	max-width: 44rem;
	margin-block: 0 1.25rem;
}

/* Smooth open and close where the browser supports it (Chrome, Edge); elsewhere it snaps. */
@media (prefers-reduced-motion: no-preference) {
	@supports (interpolate-size: allow-keywords) {
		.wp-block-details {
			interpolate-size: allow-keywords;
		}

		.wp-block-details::details-content {
			block-size: 0;
			overflow: clip;
			opacity: 0;
			transition:
				block-size var(--tcc-dur-ui) var(--tcc-ease-out),
				opacity var(--tcc-dur-ui) var(--tcc-ease-out),
				content-visibility var(--tcc-dur-ui) allow-discrete;
		}

		.wp-block-details[open]::details-content {
			block-size: auto;
			opacity: 1;
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-details > summary::after {
		transition: none;
	}
}

/* ---------- Link underlines that draw in (menu and footer, mouse only) ---------- */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	.wp-block-navigation .wp-block-navigation-item:not(.tcc-nav-cta) > .wp-block-navigation-item__content:not([aria-current]),
	.tcc-footer-links a {
		background: linear-gradient(var(--tcc-accent), var(--tcc-accent)) 0 100% / 0 3px no-repeat;
		transition: background-size var(--tcc-dur-ui) var(--tcc-ease-out);
	}

	.wp-block-navigation .wp-block-navigation-item:not(.tcc-nav-cta) > .wp-block-navigation-item__content:not([aria-current]):hover,
	.tcc-footer-links a:hover {
		background-size: 100% 3px;
		text-decoration: none;
	}
}

/* ---------- Team photos: tilted prints with tape (2026-11-21) ---------- */
/* Photos come from tcc_team_photo() (functions.php); drop files into assets/team/. */
.tcc-polaroids {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: center;
	gap: clamp(1rem, 2.5vw, 2.25rem);
	padding-block: 1rem;
}

.tcc-polaroid {
	box-sizing: border-box;
	position: relative;
	flex: 0 1 clamp(9.5rem, 21vw, 17rem);
	margin: 0;
	padding: 0.6rem 0.6rem 0;
	background: var(--wp--preset--color--cream);
	box-shadow: 6px 6px 0 var(--tcc-ink);
	color: var(--tcc-ink);
	rotate: -2.5deg;
	transition:
		rotate var(--tcc-dur-ui) var(--tcc-ease-out),
		translate var(--tcc-dur-ui) var(--tcc-ease-out),
		box-shadow var(--tcc-dur-ui) var(--tcc-ease-out);
}

.tcc-polaroid--wide {
	flex-basis: clamp(16rem, 34vw, 26rem);
}

.tcc-polaroid--portrait {
	flex-basis: clamp(9rem, 18vw, 14.5rem);
}

/* Each print sits at its own angle and height, like they were pinned by hand. */
.tcc-polaroid:nth-child(4n + 2) { rotate: 2deg; margin-top: 1.75rem; }
.tcc-polaroid:nth-child(4n + 3) { rotate: -1.25deg; margin-top: 0.5rem; }
.tcc-polaroid:nth-child(4n + 4) { rotate: 3deg; margin-top: 2.25rem; }

/* Tape strip across the top edge. */
.tcc-polaroid::before {
	content: "";
	position: absolute;
	z-index: 1;
	inset-block-start: -0.7rem;
	inset-inline-start: 50%;
	width: 4.5rem;
	height: 1.4rem;
	background: color-mix(in srgb, var(--wp--preset--color--mustard) 78%, transparent);
	translate: -50% 0;
	rotate: -4deg;
}

.tcc-polaroid img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}

.tcc-polaroid--wide img {
	aspect-ratio: 3 / 2;
}

.tcc-polaroid--portrait img {
	aspect-ratio: 4 / 5;
}

.tcc-polaroid figcaption {
	margin: 0;
	padding: 0.6rem 0.25rem 0.75rem;
	font-family: var(--wp--preset--font-family--label);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-align: center;
	text-transform: uppercase;
}

/* Mouse hover: the print straightens and lifts off the wall. */
@media (hover: hover) and (pointer: fine) {
	.tcc-polaroid:hover {
		rotate: 0deg;
		translate: -3px -6px;
		box-shadow: 10px 12px 0 var(--tcc-ink);
	}
}

/* Wide screens: all prints on one row (they shrink rather than wrap). */
@media (min-width: 1024px) {
	.tcc-polaroids {
		flex-wrap: nowrap;
	}
}

/* One print on its own (contact section, 404). */
.tcc-polaroids--single {
	justify-content: flex-start;
	padding-inline-start: 0.5rem;
}

.tcc-polaroids--single .tcc-polaroid {
	flex-basis: clamp(10rem, 22vw, 14rem);
	margin-top: 0;
}

.tcc-polaroids--lost .tcc-polaroid {
	rotate: 6deg;
}

@media (max-width: 781px) {
	.tcc-polaroids:not(.tcc-polaroids--single) .tcc-polaroid {
		flex-basis: calc(50% - 1rem);
	}

	.tcc-polaroids:not(.tcc-polaroids--single) .tcc-polaroid--wide {
		flex-basis: 100%;
		max-width: 26rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tcc-polaroid {
		transition: none;
	}
}

/* ---------- More faces (2026-11-21, round 2) ---------- */
/* Footer: a row of round face stickers, overlapping like a group photo. */
.tcc-footer-faces {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
}

.tcc-footer-faces__label {
	margin: 0;
	color: var(--wp--preset--color--mustard);
	font-family: var(--wp--preset--font-family--label);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tcc-faces {
	display: flex;
	margin: 0;
	padding: 0 0 0 0.75rem;
	list-style: none;
}

.tcc-faces > li {
	margin: 0 0 0 -0.75rem;
	transition: translate var(--tcc-dur-ui) var(--tcc-ease-out), rotate var(--tcc-dur-ui) var(--tcc-ease-out);
}

.tcc-faces > li:nth-child(odd) { rotate: -6deg; }
.tcc-faces > li:nth-child(even) { rotate: 5deg; }

.tcc-face {
	display: block;
	width: 3.25rem;
	height: 3.25rem;
	border: 3px solid var(--wp--preset--color--cream);
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 3px 3px 0 var(--wp--preset--color--brick-red);
}

/* Mouse hover: the face pops up and straightens, like it heard its name. */
@media (hover: hover) and (pointer: fine) {
	.tcc-faces > li:hover {
		position: relative;
		z-index: 1;
		translate: 0 -8px;
		rotate: 0deg;
	}
}

/* Article byline: the author's face before the name. */
.tcc-byline-author {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
}

.tcc-byline-author .tcc-face {
	width: 2.5rem;
	height: 2.5rem;
	border-width: 2px;
	box-shadow: 2px 2px 0 var(--tcc-ink);
}

/* Services and Work: a line of text next to three prints. */
.tcc-team-moment__inner {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	align-items: center;
}

.tcc-team-moment__text h2 {
	margin: 0 0 0.75rem;
}

.tcc-team-moment__text p {
	max-width: 26rem;
	margin: 0;
}

@media (min-width: 1024px) {
	.tcc-team-moment__inner {
		grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	}
}

/* ---------- More motion (2026-11-21, round 2) ---------- */
/* Card links end in an arrow, which leans forward when the card is pointed at. */
.is-style-tcc-card .tcc-card-link a::after {
	content: "\00a0→";
	display: inline-block;
	transition: translate var(--tcc-dur-ui) var(--tcc-ease-out);
}

@media (prefers-reduced-motion: no-preference) {
	/* Prints sway a little as they scroll past (scroll-driven, no JavaScript;
	   Chrome and Edge). They settle straight-ish in the middle of the screen. */
	@supports (animation-timeline: view()) {
		.tcc-polaroids .tcc-polaroid {
			animation: tcc-sway linear both;
			animation-timeline: view();
			animation-range: entry 0% exit 100%;
		}

		.tcc-polaroids .tcc-polaroid:nth-child(even) {
			animation-name: tcc-sway-back;
		}
	}

	/* Pictures wipe open from the top the first time they scroll into view (motion.js adds .tcc-wipe). */
	.tcc-wipe {
		clip-path: inset(0 0 100% 0);
		transition: clip-path 0.7s var(--tcc-ease-in-out);
	}

	.tcc-wipe.is-in {
		clip-path: inset(0 0 0 0);
	}

	/* The WhatsApp button nudges once, a few seconds after the page opens (motion.js adds .is-nudge). */
	.tcc-wa-float.is-nudge {
		animation: tcc-nudge 0.9s var(--tcc-ease-out) 1;
	}
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	.is-style-tcc-card:hover .tcc-card-link a::after {
		translate: 5px 0;
	}

	/* The "formerly Masar" stamp wobbles when pointed at. */
	.tcc-hero .is-style-tcc-stamp:hover {
		animation-play-state: paused;
	}

	.tcc-hero .is-style-tcc-stamp:hover > * {
		animation: tcc-wobble 0.5s var(--tcc-ease-out) 1;
	}
}

/* transform, not translate: the hover lift uses translate, so both can run together. */
@keyframes tcc-sway {
	from { transform: translateY(2.5rem); }
	50% { transform: none; }
	to { transform: translateY(-1.5rem); }
}

@keyframes tcc-sway-back {
	from { transform: translateY(1rem); }
	50% { transform: none; }
	to { transform: translateY(-2.5rem); }
}

@keyframes tcc-nudge {
	0%, 100% { rotate: 0deg; }
	20% { rotate: -8deg; }
	40% { rotate: 7deg; }
	60% { rotate: -4deg; }
	80% { rotate: 2deg; }
}

@keyframes tcc-wobble {
	0%, 100% { rotate: 0deg; }
	30% { rotate: -5deg; }
	60% { rotate: 3deg; }
}

@media print {
	.tcc-wipe {
		clip-path: none !important;
	}
}

/* ---------- Hand-drawn doodles and notes (D53 round 3) ---------- */
.tcc-doodle {
	overflow: visible;
	fill: none;
	stroke: var(--wp--preset--color--mustard);
	stroke-width: 5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Hero: a marker underline under "speak Iraqi." */
.tcc-scribbled {
	position: relative;
	display: inline-block;
}

.tcc-doodle--hero {
	position: absolute;
	inset-inline: -2% -4%;
	inset-block-end: -0.16em;
	width: 106%;
	height: 0.28em;
	stroke: var(--tcc-ink);
	stroke-width: 7;
}

/* A short handwritten-style note with a curly arrow. */
.tcc-note {
	display: flex;
	align-items: flex-end;
	gap: 0.25rem;
	margin: 0;
	color: var(--wp--preset--color--mustard);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
	line-height: 1;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	pointer-events: none;
}

.tcc-note > span {
	rotate: -6deg;
	translate: 0 -0.6em;
}

.tcc-note .tcc-doodle {
	width: 4.5rem;
	height: auto;
	stroke-width: 4;
}

.tcc-note--team {
	justify-content: flex-end;
	margin-block-end: calc(-1 * var(--wp--preset--spacing--30));
	padding-inline-end: 12%;
}

.tcc-note--team .tcc-doodle {
	rotate: 15deg;
}

/* Contact: "Say hi!" points down at the photo. */
.tcc-polaroids--hello {
	align-items: flex-end;
	gap: 0.25rem;
}

.tcc-note--hello {
	order: 2;
	flex-direction: column-reverse;
	align-items: flex-start;
}

.tcc-note--hello .tcc-doodle {
	rotate: 150deg;
	scale: 1 -1;
}

/* Call-to-action band: faces above the line. */
.tcc-cta-people {
	display: grid;
	gap: 0.75rem;
}

.tcc-cta-people h2 {
	margin: 0;
}

.tcc-cta-people__line {
	margin: 0;
	color: var(--wp--preset--color--mustard);
	font-weight: 600;
}

.tcc-cta-people .tcc-face {
	box-shadow: 3px 3px 0 var(--wp--preset--color--brick-red);
}

/* Case studies: "Made by the TCC crew". */
.tcc-crew {
	padding: var(--wp--preset--spacing--40) var(--wp--style--root--padding-right, 1.25rem) 0 var(--wp--style--root--padding-left, 1.25rem);
}

.tcc-crew__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.75rem;
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
	padding: 1.25rem 1.5rem;
	border: 2px dashed color-mix(in srgb, currentColor 45%, transparent);
}

.tcc-crew__text {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium);
}

.tcc-crew__text a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--tcc-accent);
	text-decoration-thickness: 3px;
	text-underline-offset: 0.25em;
}

@media (max-width: 781px) {
	.tcc-note--team {
		padding-inline-end: 2%;
	}
}

/* Draw-in: motion.js marks doodles below the fold as pending, then draws them when seen.
   The hero underline draws itself right after the headline lands. */
@media (prefers-reduced-motion: no-preference) {
	.tcc-doodle path {
		stroke-dasharray: 1;
		stroke-dashoffset: 0;
		transition: stroke-dashoffset 0.8s var(--tcc-ease-in-out);
	}

	.tcc-doodle.is-pending path {
		stroke-dashoffset: 1;
	}

	.tcc-doodle--hero path {
		animation: tcc-draw 0.7s var(--tcc-ease-in-out) 0.75s both;
	}
}

@keyframes tcc-draw {
	from {
		stroke-dashoffset: 1;
	}
}

/* ---------- Results band (D53 round 4) ---------- */
/* Headings on a mustard band: ink, not the default mustard (was invisible, owner 2026-11-26). */
.has-mustard-background-color :where(h1, h2, h3, h4) {
	color: var(--tcc-ink);
}

.tcc-results__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--30);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tcc-result a {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	height: 100%;
	box-sizing: border-box;
	padding: 1.25rem 1.25rem 1.5rem;
	border: 3px solid var(--tcc-ink);
	background: var(--wp--preset--color--cream);
	box-shadow: 6px 6px 0 var(--tcc-ink);
	color: var(--tcc-ink);
	text-decoration: none;
	transition: translate var(--tcc-dur-press) var(--tcc-ease-out), box-shadow var(--tcc-dur-press) var(--tcc-ease-out);
}

.tcc-result .tcc-stat-number {
	color: var(--wp--preset--color--brick-red);
	font-size: clamp(2.75rem, 2rem + 3vw, 4.5rem);
	text-shadow: 3px 3px 0 var(--tcc-ink);
	font-variant-numeric: tabular-nums;
}

.tcc-result__label {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	line-height: 1.35;
}

.tcc-result__client {
	margin-top: auto;
	padding-top: 0.75rem;
	font-family: var(--wp--preset--font-family--label);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.tcc-result__client::after {
	content: "\00a0→";
	display: inline-block;
	transition: translate var(--tcc-dur-ui) var(--tcc-ease-out);
}

@media (hover: hover) and (pointer: fine) {
	.tcc-result a:hover {
		translate: -3px -3px;
		box-shadow: 9px 9px 0 var(--tcc-ink);
	}

	.tcc-result a:hover .tcc-result__client::after {
		translate: 5px 0;
	}
}

.tcc-result a:active {
	translate: 3px 3px;
	box-shadow: 2px 2px 0 var(--tcc-ink);
}

@media (max-width: 1099px) {
	.tcc-results__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.tcc-results__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tcc-result a,
	.tcc-result__client::after {
		transition: none;
	}
}

/* ---------- Account manager card (in How we work, D12) ---------- */
.tcc-manager {
	display: grid;
	grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
	gap: var(--wp--preset--spacing--40);
	align-items: center;
	padding: var(--wp--preset--spacing--40);
	border: 2px dashed color-mix(in srgb, var(--wp--preset--color--mustard) 60%, transparent);
}

.tcc-manager .tcc-polaroid {
	rotate: -3deg;
}

.tcc-manager__text > p {
	margin: 0;
}

.tcc-manager__kicker {
	color: var(--wp--preset--color--mustard);
	font-family: var(--wp--preset--font-family--label);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tcc-manager__title {
	margin-top: 0.5rem !important;
	color: var(--wp--preset--color--mustard);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
	line-height: 1;
	text-transform: uppercase;
}

.tcc-manager__body {
	max-width: 34rem;
	margin-top: 1rem !important;
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.5;
}

@media (max-width: 781px) {
	.tcc-manager {
		grid-template-columns: minmax(0, 1fr);
		justify-items: start;
	}

	.tcc-manager .tcc-polaroid {
		width: min(15rem, 70%);
	}
}

/* ---------- Season mode (D53 round 4; dates in functions.php) ---------- */
.tcc-season {
	position: relative;
	z-index: 30;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 0.6rem 3rem 0.6rem 1rem;
	background: var(--wp--preset--color--mustard);
	color: var(--tcc-ink);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
}

.tcc-season p {
	margin: 0;
}

.tcc-season a {
	color: inherit;
	font-weight: 800;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
	white-space: nowrap;
}

.tcc-season__deco {
	flex: none;
	width: 2rem;
	height: 2rem;
	overflow: visible;
	fill: none;
	stroke: var(--tcc-ink);
	stroke-width: 3;
	stroke-linejoin: round;
}

.tcc-season__fill {
	fill: var(--wp--preset--color--brick-red);
}

.tcc-season__close {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: 0.5rem;
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	translate: 0 -50%;
}

.tcc-season__close:focus-visible {
	outline-color: var(--tcc-ink);
}

.tcc-season.is-closed {
	display: none;
}

@media (prefers-reduced-motion: no-preference) {
	.tcc-season {
		animation: tcc-season-in 0.45s var(--tcc-ease-out) 0.2s both;
	}

	/* The lantern swings gently, then rests; the sparkles twinkle twice. */
	.tcc-season__lantern {
		transform-box: fill-box;
		transform-origin: 50% 0;
		animation: tcc-swing 2.4s var(--tcc-ease-in-out) 1.6s 2 alternate;
	}

	.tcc-season__deco--sparkle path {
		transform-box: fill-box;
		transform-origin: center;
		animation: tcc-twinkle 0.9s var(--tcc-ease-out) 1.6s 2;
	}

	.tcc-season__deco--sparkle path:nth-child(2) { animation-delay: 1.8s; }
	.tcc-season__deco--sparkle path:nth-child(3) { animation-delay: 2s; }
}

@keyframes tcc-season-in {
	from {
		opacity: 0;
		transform: translateY(-100%);
	}
}

@keyframes tcc-swing {
	0% { rotate: 0deg; }
	30% { rotate: 9deg; }
	70% { rotate: -6deg; }
	100% { rotate: 0deg; }
}

@keyframes tcc-twinkle {
	0%, 100% { scale: 1; }
	45% { scale: 0.55; }
}

@media (max-width: 600px) {
	.tcc-season {
		justify-content: flex-start;
		text-align: start;
	}
}

/* ---------- Logo: the six dots hop when the logo is pointed at (D53 round 4) ---------- */
.tcc-symbol {
	overflow: visible;
}

@media (prefers-reduced-motion: no-preference) {
	.tcc-symbol circle {
		transform-box: fill-box;
		transform-origin: center;
	}

	.tcc-wordmark a:is(:hover, :focus-visible) .tcc-symbol circle {
		animation: tcc-hop 0.5s var(--tcc-ease-out) 1;
	}

	.tcc-wordmark a:is(:hover, :focus-visible) .tcc-symbol circle:nth-child(2) { animation-delay: 50ms; }
	.tcc-wordmark a:is(:hover, :focus-visible) .tcc-symbol circle:nth-child(3) { animation-delay: 100ms; }
	.tcc-wordmark a:is(:hover, :focus-visible) .tcc-symbol circle:nth-child(4) { animation-delay: 150ms; }
	.tcc-wordmark a:is(:hover, :focus-visible) .tcc-symbol circle:nth-child(5) { animation-delay: 200ms; }
	.tcc-wordmark a:is(:hover, :focus-visible) .tcc-symbol circle:nth-child(6) { animation-delay: 250ms; }
}

@keyframes tcc-hop {
	0%, 100% { translate: 0 0; }
	40% { translate: 0 -45%; }
	70% { translate: 0 8%; }
}

/* ---------- Founders: two prints side by side (2026-11-22) ---------- */
.tcc-founder__photos {
	flex-wrap: nowrap;
	justify-content: flex-start;
}

.tcc-founder__photos .tcc-polaroid {
	flex: 1 1 0;
	min-width: 0;
}

@media (min-width: 782px) {
	.tcc-founder {
		grid-template-columns: minmax(0, 30rem) minmax(0, 1fr);
	}
}

.tcc-quote__who a {
	color: inherit;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: var(--tcc-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}

/* ---------- About: "The team." grid (2026-11-22) ---------- */
.tcc-team-title {
	margin-block: var(--wp--preset--spacing--40) 0 !important;
}

.tcc-polaroids--team {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.25rem, 3vw, 2.5rem);
	max-width: 58rem;
	margin-inline: auto !important;
}

.tcc-polaroids--team .tcc-polaroid {
	margin-top: 0;
}

.tcc-polaroids--team .tcc-polaroid:nth-child(3n + 2) { margin-top: 1.5rem; }

.tcc-manager__name {
	margin-top: 0.75rem !important;
	color: var(--wp--preset--color--cream);
	font-size: var(--wp--preset--font-size--medium);
}

@media (max-width: 781px) {
	.tcc-polaroids--team {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tcc-polaroids--team .tcc-polaroid:nth-child(3n + 2) { margin-top: 0; }
	.tcc-polaroids--team .tcc-polaroid:nth-child(even) { margin-top: 1.25rem; }
}

/* Eight faces: smaller and allowed to wrap on narrow screens. */
.tcc-faces {
	flex-wrap: wrap;
	row-gap: 0.5rem;
}

@media (max-width: 520px) {
	.tcc-face {
		width: 2.6rem;
		height: 2.6rem;
		border-width: 2px;
	}

	.tcc-faces > li {
		margin-inline-start: -0.6rem;
	}
}

/* "Meet the team" link under the hero lead (owner, 2026-11-26: text only, no faces). */
.tcc-hero__team-link {
	margin: 0;
	font-family: var(--wp--preset--font-family--label);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.tcc-hero__team-link a {
	color: var(--wp--preset--color--mustard);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.25em;
}

.tcc-hero__team-link a::after {
	content: "\00a0→";
	display: inline-block;
	transition: translate var(--tcc-dur-ui) var(--tcc-ease-out);
}

@media (hover: hover) and (pointer: fine) {
	.tcc-hero__team-link a:hover::after {
		translate: 4px 0;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.tcc-hero__team-link {
		animation: tcc-fade-up 0.5s ease-out 0.4s both;
	}
}

/* Short laptop screens: cap the hero statement by screen height so the WhatsApp
   button still fits on the first screen (width-based size wins on phones). */
.tcc-hero h1.has-hero-font-size {
	font-size: min(var(--wp--preset--font-size--hero), 16.5svh) !important;
}

/* Contact: Ibraheem's print sits under the form card, overlapping its bottom edge. */
.wp-block-group.tcc-contact-side {
	flex-wrap: nowrap;
}

.tcc-contact-side > * {
	flex: none;
}

.tcc-contact-side > .tcc-polaroids--hello {
	position: relative;
	z-index: 1;
	justify-content: flex-start;
	margin: -2.5rem 0 0;
	padding-inline-start: var(--wp--preset--spacing--40);
}

.tcc-contact-side > .tcc-polaroids--hello .tcc-polaroid {
	flex: 0 0 11rem;
	width: 11rem;
	max-width: 11rem;
}

/* Contact: Ibraheem plus the team photo, side by side, with the "Say hi!" arrow. */
.tcc-polaroids--hello {
	flex-wrap: nowrap;
}

.tcc-polaroids--hello .tcc-polaroid {
	flex: 1 1 0;
	min-width: 0;
	max-width: 13rem;
}

.tcc-polaroids--hello .tcc-polaroid:nth-of-type(2) {
	margin-top: 1.5rem;
}

/* ---------- How we work: two people cards (Mariam, Adam) ---------- */
.tcc-meet {
	display: grid;
	gap: var(--wp--preset--spacing--30);
}

@media (min-width: 1100px) {
	.tcc-meet {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tcc-meet .tcc-manager {
		grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
		align-items: start;
	}

	.tcc-meet .tcc-manager__title {
		font-size: clamp(1.75rem, 1.2rem + 1.3vw, 2.5rem);
	}
}

.tcc-meet .tcc-manager:nth-child(2) .tcc-polaroid {
	rotate: 3deg;
}

/* ---------- About: "Life at TCC." wall of casual photos ---------- */
.tcc-polaroids--life {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: clamp(1rem, 2.2vw, 2rem);
}

.tcc-polaroids--life .tcc-polaroid {
	margin-top: 0;
	padding: 0.45rem 0.45rem 0;
}

.tcc-polaroids--life .tcc-polaroid figcaption {
	padding: 0.45rem 0.2rem 0.55rem;
	font-size: 0.7rem;
}

.tcc-polaroids--life .tcc-polaroid:nth-child(3n + 1) { rotate: -3deg; }
.tcc-polaroids--life .tcc-polaroid:nth-child(3n + 2) { rotate: 2deg; translate: 0 0.75rem; }
.tcc-polaroids--life .tcc-polaroid:nth-child(3n) { rotate: -1deg; }

@media (max-width: 1099px) {
	.tcc-polaroids--life {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.tcc-polaroids--life {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
