/* =========================================================================
   Pace Sports - main stylesheet
   Wembi-inspired system: off-white base, black type, lime signal accent,
   pastel color-block sections as full-bleed rounded cards. Light-only.
   Shape lock: section cards 24px, buttons pill, tcards 18px, inputs underline.
   ========================================================================= */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
	font-family: 'Space Grotesk';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/space-grotesk-latin-400-normal.woff2') format('woff2');
}
@font-face {
	font-family: 'Space Grotesk';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
}
@font-face {
	font-family: 'Space Grotesk';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
}
@font-face {
	font-family: 'IBM Plex Mono';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
	font-family: 'IBM Plex Mono';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
	--font-display: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

	/* Paleta Wembi: off-white + preto + lima assinatura + blocos pastéis.
	   Lima é cor CLARA: sobre fundo claro, só como FILL (barras, pills,
	   sublinhados, highlight atrás de texto preto). Texto lima apenas
	   sobre o card escuro do hero. Light-only por decisão de projeto. */
	--bg: #ede8e8;
	--surface: #ffffff;
	--fg: #0e0f0d;
	--fg-muted: #5b5b56;
	--line: rgba(14, 15, 13, 0.16);
	--accent: #beff8b;
	--accent-strong: #a9f070;
	--accent-ink: #0e0f0d;
	--block-blue: #c0dfe9;
	--block-lilac: #d5bafb;
	--btn-bg: var(--accent);
	--btn-fg: var(--accent-ink);

	--wrap: 1200px;
	--gutter: clamp(1.25rem, 5vw, 4rem);
	--section-y: clamp(5.5rem, 11vw, 11rem);
	--header-h: 84px;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.nav-open {
	overflow: hidden;
}
img {
	max-width: 100%;
	height: auto;
	display: block;
}
a {
	color: inherit;
	text-decoration: none;
}
h1, h2, h3 {
	margin: 0;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.05;
}
p {
	margin: 0 0 1rem;
}
ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}
::selection {
	background: #beff8b;
	color: #0e0f0d;
}
:focus-visible {
	outline: 2px solid var(--fg);
	outline-offset: 3px;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.mono {
	font-family: var(--font-mono);
	font-weight: 400;
	font-feature-settings: 'tnum' 1;
}
/* Lime-as-text only works on the dark hero card; over light backgrounds
   emphasis becomes black text on a lime highlight (Wembi-style). */
.accent {
	color: var(--accent);
	font-style: normal;
}
.audience__lead .accent {
	display: inline;
	color: #0e0f0d;
	background: #beff8b;
	padding: 0 0.18em;
	border-radius: 12px;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--fg);
	color: var(--bg);
	padding: 0.75rem 1rem;
}
.skip-link:focus {
	left: 1rem;
	top: 1rem;
}

/* ---------- Eyebrow (rationed: hero, territory, case only) ---------- */
.eyebrow {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--fg-muted);
	margin: 0 0 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 1rem;
	line-height: 1;
	padding: 0.95rem 1.6rem;
	border: 1px solid transparent;
	border-radius: 999px; /* pills, Wembi-style */
	cursor: pointer;
	white-space: nowrap;
	transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.18s, background 0.18s, color 0.18s;
}
.btn--sm {
	padding: 0.7rem 1.1rem;
	font-size: 0.9rem;
}
.btn--primary {
	background: var(--btn-bg);
	color: var(--btn-fg);
}
.btn--primary:hover {
	transform: translateY(-1px);
	opacity: 0.92;
}
.btn--ghost {
	background: transparent;
	color: var(--fg);
	border-color: color-mix(in srgb, var(--fg) 35%, transparent);
}
.btn--ghost:hover {
	background: var(--fg);
	color: var(--bg);
	transform: translateY(-1px);
}
.btn:active {
	transform: translateY(0) scale(0.99);
}

.link-arrow {
	font-family: var(--font-mono);
	font-size: 0.85rem;
	letter-spacing: 0.02em;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding-bottom: 2px;
	border-bottom: 1px solid var(--line);
	transition: border-color 0.2s, gap 0.2s;
}
.link-arrow::after {
	content: '\2192'; /* right arrow */
	color: var(--fg);
	transition: transform 0.2s;
}
.link-arrow:hover {
	border-color: var(--fg);
}
.link-arrow:hover::after {
	transform: translateX(3px);
}

/* ---------- Duotone media treatment (placeholders) ---------- */
.case__media {
	position: relative;
	overflow: hidden;
	background: var(--surface);
}

/* ---------- Reveal ---------- */
/* Wembi-style reveal: opacity + translate + blur-in. */
[data-reveal] {
	opacity: 0;
	transform: translateY(18px);
	filter: blur(10px);
	transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
	opacity: 1;
	transform: none;
	filter: none;
}

/* Line reveal: split titles rise line by line from behind clipped masks.
   Each WORD gets its own inline-block mask; words on the same visual line
   share a --lri delay index, so lines rise together without reparenting
   across inline elements (keeps the hero <em> and highlight spans intact).
   Spans are injected by initLineReveal() in main.js; the .is-visible state
   from the shared reveal observer triggers the rise. */
.lr-line {
	display: inline-block;
	overflow: clip;
	padding-bottom: 0.08em; /* descender reserve so the clip never shaves g/j/ç */
	margin-bottom: -0.08em;
	vertical-align: bottom;
}
/* With word masks inside, the audience highlight moves to the inner spans
   so the lime bar does not paint before the words arrive. */
.audience__lead .accent:has(.lr-inner) {
	background: transparent;
	padding: 0;
}
.audience__lead .accent .lr-inner {
	color: #0e0f0d;
	background: #beff8b;
	padding: 0 0.18em;
	border-radius: 12px;
}
.lr-line > .lr-inner {
	display: inline-block;
	transform: translateY(115%);
	transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
	transition-delay: calc(var(--lri, 0) * 95ms);
	will-change: transform;
}
.is-visible .lr-line > .lr-inner {
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.lr-line > .lr-inner {
		transform: none !important;
		transition: none !important;
	}
}
@media (prefers-reduced-motion: reduce) {
	[data-reveal] {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: saturate(140%) blur(10px);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s, background 0.3s;
}
.site-header.is-scrolled {
	border-bottom-color: var(--line);
}
.site-header__inner {
	height: var(--header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}
.wordmark {
	display: inline-flex;
	align-items: center;
}
/* Stacked logo in the header bar (square mark, fills most of the bar). */
.wordmark__img {
	display: block;
	height: 76px;
	width: auto;
}
/* Stacked logo in the footer. */
.site-footer__logo {
	display: block;
	width: clamp(150px, 18vw, 210px);
	height: auto;
}
.site-nav__list {
	display: flex;
	align-items: center;
	gap: 1.75rem;
}
.site-nav__list a {
	font-size: 0.95rem;
	color: var(--fg-muted);
	padding: 0.4em 0.85em;
	border-radius: 999px;
	transition: color 0.2s, background 0.2s;
}
.site-nav__list a:hover {
	color: var(--fg);
}
/* Active section: lime pill, Wembi-style. */
.site-nav__list a[aria-current='true'] {
	color: var(--accent-ink);
	background: var(--accent);
}
.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: 999px;
	cursor: pointer;
	position: relative;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: '';
	position: absolute;
	left: 50%;
	width: 18px;
	height: 1.5px;
	background: var(--fg);
	transform: translateX(-50%);
}
.nav-toggle__bars {
	top: 50%;
	transform: translate(-50%, -50%);
}
.nav-toggle__bars::before {
	top: -6px;
}
.nav-toggle__bars::after {
	top: 6px;
}
.mobile-nav {
	border-top: 1px solid var(--line);
	background: var(--bg);
	padding: 1rem var(--gutter) 1.5rem;
}
.mobile-nav__list {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}
.mobile-nav__list a {
	display: block;
	padding: 0.85rem 0;
	font-size: 1.1rem;
	border-bottom: 1px solid var(--line);
}
.mobile-nav__list .btn {
	margin-top: 1rem;
	border-bottom: none;
}

/* =========================================================================
   Sections (shared)
   ========================================================================= */
.section {
	padding-block: var(--section-y);
}
/* Color-block sections: full-bleed rounded cards on the off-white base.
   overflow: clip (NOT hidden) keeps position: sticky working inside
   (the território pinned stage lives in one of these). */
.section--block {
	margin: 10px;
	border-radius: 24px;
	overflow: clip;
	/* Muted text needs more ink on tinted pastels to hold AA contrast. */
	--fg-muted: #454a42;
}
.section--blue {
	background: var(--block-blue);
}
.section--lilac {
	background: var(--block-lilac);
}
.section--lime {
	/* Literal lime: --accent is overridden below and would self-reference. */
	background: #beff8b;
	--accent: #0e0f0d; /* inside the lime card, accent fills flip to ink */
	--btn-bg: #0e0f0d;
	--btn-fg: #beff8b;
}
.section__head {
	max-width: 56ch;
	margin-bottom: clamp(3rem, 6vw, 5.5rem);
}
.section__title {
	font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.1rem);
	text-wrap: balance;
}
.section__intro {
	margin-top: 1.25rem;
	font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
	color: var(--fg-muted);
	max-width: 58ch;
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
	position: relative;
	overflow: hidden;
	background: var(--bg);
	/* Dark video card inside the light page. */
	margin: 10px;
	border-radius: 24px;
}

/* The hero is a dark video card inside the light page (Wembi-style block).
   It locks to a dark token set so text and controls stay legible on footage.
   Here, and only here, lime works as TEXT (light on dark). */
.hero--video {
	--bg: #0f1210;
	--surface: #161a16;
	--fg: #f1ede3;
	--fg-muted: #b9bdb2;
	--line: rgba(241, 237, 227, 0.16);
	--accent: #beff8b;
	--accent-strong: #a9f070;
	--btn-bg: #beff8b;
	--btn-fg: #0e0f0d;
	background: #0f1210;
	color: var(--fg);
}

/* Video background */
.hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}
.hero__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Internal mask: the video dissolves to transparent at the edges so its own
	   background blends into the site background instead of clashing with it. */
	-webkit-mask-image: radial-gradient(ellipse 84% 80% at 50% 44%, #000 32%, rgba(0, 0, 0, 0) 76%);
	mask-image: radial-gradient(ellipse 84% 80% at 50% 44%, #000 32%, rgba(0, 0, 0, 0) 76%);
}
.hero__scrim {
	position: absolute;
	inset: 0;
	/* Blend the remaining video into the site bg, and settle contrast behind the centered text. */
	background:
		radial-gradient(ellipse 68% 62% at 50% 48%, color-mix(in srgb, var(--bg) 64%, transparent), transparent 74%),
		radial-gradient(ellipse 100% 96% at 50% 44%, transparent 46%, var(--bg) 86%),
		linear-gradient(to bottom, transparent 58%, var(--bg));
}

/* Centered content */
.hero__inner {
	position: relative;
	z-index: 1;
	min-height: calc(100dvh - var(--header-h) - 20px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding-block: clamp(4rem, 10vw, 7rem);
}
.hero__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 64ch;
}
/* Short thesis (4 words): larger display scale than the old long headline. */
.hero__title {
	font-size: clamp(2.5rem, 1.3rem + 4.6vw, 5rem);
	letter-spacing: -0.03em;
	line-height: 1.06;
	max-width: 20ch;
	text-wrap: balance;
}
.hero__title .accent {
	line-height: 1.1;
}
.hero__lede {
	margin-top: 1.5rem;
	font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem);
	color: var(--fg-muted);
	max-width: 52ch;
	text-wrap: pretty;
}
.hero__actions {
	margin-top: 2.25rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	justify-content: center;
}
@media (prefers-reduced-motion: reduce) {
	.hero__video {
		display: none;
	}
}

/* =========================================================================
   What we do
   ========================================================================= */
.practice__row {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: clamp(1.5rem, 5vw, 5rem);
	align-items: start;
	padding-top: clamp(2.5rem, 5vw, 4.5rem);
	margin-top: clamp(2.5rem, 5vw, 4.5rem);
	border-top: 1px solid var(--line);
}
/* Mirror the second entry: body left, heading right. No boxes, just rhythm. */
.practice__row--b {
	grid-template-columns: 1.1fr 0.9fr;
}
.practice__row--b .practice__head {
	order: 2;
}
.practice__num {
	display: block;
	font-size: clamp(2.75rem, 2rem + 3vw, 4.5rem);
	font-weight: 400;
	line-height: 1;
	color: var(--line);
	letter-spacing: 0.02em;
	/* Make the ghost number read as a mark, not text. */
	-webkit-text-stroke: 0;
}
.practice__title {
	font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem);
	margin-top: 1.25rem;
}
.practice__lead {
	margin-top: 0.9rem;
	font-weight: 500;
	font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
	max-width: 28ch;
}
.practice__body {
	max-width: 46ch;
	padding-top: 0.4rem;
}
.practice__body > p:first-child {
	color: var(--fg-muted);
	font-size: 1.0625rem;
}
.practice__pov {
	color: var(--fg);
	font-weight: 500;
	font-size: 1.15rem;
	letter-spacing: -0.01em;
	margin: 1.5rem 0;
	padding-left: 1.1rem;
	border-left: 2px solid var(--accent);
}

/* =========================================================================
   Território
   ========================================================================= */
/* Group label: quiet mono, sentence case. Not another uppercase eyebrow. */
.territory__kicker {
	font-size: 0.85rem;
	color: var(--fg-muted);
	margin: 0 0 1.25rem;
}
.territory__lead {
	padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 4vw, 3rem);
	border-bottom: 1px solid var(--line);
}
.territory__endurance {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(1.25rem, 4vw, 3.5rem);
}
.territory__endurance li {
	font-size: clamp(2.2rem, 1.2rem + 4.5vw, 4.5rem);
	font-weight: 500;
	letter-spacing: -0.035em;
	line-height: 1;
	position: relative;
}
.territory__endurance li::after {
	content: '';
	display: block;
	height: 3px;
	width: 42%;
	margin-top: 0.6rem;
	background: var(--accent);
}
.territory__field {
	padding-top: clamp(2rem, 4vw, 3rem);
}
.territory__note {
	color: var(--fg-muted);
	max-width: 52ch;
	margin: 2.75rem 0 0;
}

/* ---------- Amplitude cards (flat fallback: no JS, mobile, reduced motion) ----------
   Visual cards: hyperreal scene fills the card, term sits on a bottom scrim. */
.territory__scene {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem 1.25rem;
}
/* Deliberate exception to the sharp-corner system: these media cards are
   rounded (client direction), everything else stays radius 0. No shadow. */
.tcard__inner {
	position: relative;
	width: clamp(9.5rem, 22vw, 12.5rem);
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 18px;
	user-select: none;
}
.tcard__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* Bottom scrim so the term reads over any footage. */
.tcard__inner::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(10, 12, 10, 0.86) 0%, rgba(10, 12, 10, 0.32) 34%, transparent 58%);
	pointer-events: none;
}
.tcard__term {
	position: absolute;
	left: 1.1rem;
	bottom: 0.95rem;
	z-index: 1;
	color: #f1ede3;
	font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem);
	font-weight: 500;
	letter-spacing: -0.02em;
	white-space: nowrap;
}
/* Termo longo (Food&Health) precisa de corpo menor para caber no card. */
.tcard:nth-child(8) .tcard__term {
	font-size: clamp(1.05rem, 0.85rem + 0.8vw, 1.35rem);
}

/* ---------- 3D stage mode (class added by JS on desktop, motion allowed) ---------- */
.territory--3d .territory__stage {
	height: 280vh;
}
.territory--3d .territory__pin {
	position: sticky;
	top: var(--header-h);
	min-height: calc(100dvh - var(--header-h));
	display: flex;
	align-items: center;
	overflow: hidden;
}
.territory--3d .territory__pin > .wrap {
	width: 100%;
}
/* Compact type inside the pin so headline, endurance trio, scene and note
   all fit one viewport. */
.territory--3d .territory__head {
	margin-bottom: 0.9rem;
}
.territory--3d .territory__head .section__title {
	font-size: clamp(1.6rem, 1rem + 1.8vw, 2.25rem);
}
.territory--3d .territory__head .section__intro {
	margin-top: 0.8rem;
	font-size: 1rem;
}
.territory--3d .territory__lead {
	padding-block: 0.8rem 1rem;
}
.territory--3d .territory__endurance li {
	font-size: clamp(1.7rem, 1rem + 2.4vw, 2.5rem);
}
.territory--3d .territory__field {
	padding-top: 0.9rem;
}
.territory--3d .territory__note {
	margin-top: 1.75rem;
}
.territory--3d .territory__scene {
	display: block;
	position: relative;
	/* Tall enough for the lowest card slot (--ty 3.9rem + 17rem card) so the
	   cards never spill over the note below. */
	height: max(21.75rem, 36vh);
	perspective: 1100px;
	perspective-origin: 68% 38%;
}
.territory--3d .tcard {
	position: absolute;
	top: var(--ty, 0);
	left: var(--lx, 0);
	opacity: 0;
	transform-style: preserve-3d;
	will-change: transform, opacity;
	z-index: var(--z, 1);
}
.territory--3d .tcard__inner {
	width: clamp(10rem, 14.5vw, 12.75rem);
}
/* Fanned, overlapping slots (like a hand of cards): varied x, y, base tilt,
   float rhythm and depth per card. Eight slots. */
.territory--3d .tcard:nth-child(1) { --lx: 0%;    --ty: 0.9rem; --tilt: -2deg;   --fdur: 5.6s; --fdel: 0s;    --z: 4; }
.territory--3d .tcard:nth-child(2) { --lx: 11%;   --ty: 3.6rem; --tilt: 1.5deg;  --fdur: 6.4s; --fdel: -1.8s; --z: 3; }
.territory--3d .tcard:nth-child(3) { --lx: 22%;   --ty: 0.2rem; --tilt: -1deg;   --fdur: 5.9s; --fdel: -3.1s; --z: 5; }
.territory--3d .tcard:nth-child(4) { --lx: 33%;   --ty: 3.9rem; --tilt: 2.2deg;  --fdur: 6.8s; --fdel: -0.9s; --z: 2; }
.territory--3d .tcard:nth-child(5) { --lx: 44.5%; --ty: 0.6rem; --tilt: -1.8deg; --fdur: 6.1s; --fdel: -4.2s; --z: 4; }
.territory--3d .tcard:nth-child(6) { --lx: 55.5%; --ty: 3.4rem; --tilt: 1.2deg;  --fdur: 5.7s; --fdel: -2.5s; --z: 3; }
.territory--3d .tcard:nth-child(7) { --lx: 66.5%; --ty: 0.4rem; --tilt: -2.4deg; --fdur: 6.6s; --fdel: -5s;   --z: 5; }
.territory--3d .tcard:nth-child(8) { --lx: 78%;   --ty: 3.1rem; --tilt: 1.8deg;  --fdur: 6.3s; --fdel: -3.7s; --z: 2; }
/* Idle drift: light translation only. The hand-laid tilt stays static. */
.territory--3d .tcard__inner {
	animation: tcard-float var(--fdur, 6s) ease-in-out var(--fdel, 0s) infinite alternate;
}
@keyframes tcard-float {
	from {
		transform: translate3d(0, -4px, 0) rotateZ(var(--tilt, 0deg));
	}
	to {
		transform: translate3d(2px, 5px, 0) rotateZ(var(--tilt, 0deg));
	}
}
@media (prefers-reduced-motion: reduce) {
	.tcard__inner {
		animation: none;
	}
}

/* =========================================================================
   Case
   ========================================================================= */
.case__grid {
	display: grid;
	grid-template-columns: 0.82fr 1.18fr;
	gap: clamp(2rem, 6vw, 5.5rem);
	align-items: center;
}
.case__title {
	max-width: 16ch;
}
.case__lead {
	margin-top: 1.75rem;
	font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.7rem);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.25;
	max-width: 30ch;
}
.case__note {
	margin: 1.25rem 0 0;
	color: var(--fg-muted);
	max-width: 42ch;
}
.case__note--pov {
	color: var(--fg);
	font-weight: 500;
	padding-left: 1.1rem;
	border-left: 2px solid var(--accent);
}
.case__media {
	aspect-ratio: 4 / 5;
	margin: 0;
}
.case__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* Video variant: real footage, 16:9, no duotone tint, no accent overlay. */
.case__media--video {
	aspect-ratio: 16 / 9;
	align-self: center;
}
.case__media--video::after {
	content: none;
}
.video-embed {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: #0f1210;
	cursor: pointer;
}
.video-embed img {
	transition: opacity 0.25s;
}
.video-embed:hover img {
	opacity: 0.82;
}
/* Play control: plain circle + triangle, CSS only. */
.video-embed__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: color-mix(in srgb, #0f1210 72%, transparent);
	border: 1px solid rgba(241, 237, 227, 0.4);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s;
}
.video-embed__play::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 53%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 12px 0 12px 20px;
	border-color: transparent transparent transparent #f1ede3;
}
.video-embed:hover .video-embed__play,
.video-embed:focus-visible .video-embed__play {
	transform: translate(-50%, -50%) scale(1.08);
	background: #beff8b;
}
.video-embed:hover .video-embed__play::before,
.video-embed:focus-visible .video-embed__play::before {
	border-color: transparent transparent transparent #0e0f0d;
}
.case__media--video iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}
/* Stat band: no cells, no boxes. One hairline, big mono numbers, room to breathe. */
.statline {
	margin-top: 1.5rem;
	padding-top: clamp(1.75rem, 3vw, 2.5rem);
	border-top: 1px solid var(--line);
	display: flex;
	flex-wrap: wrap;
	gap: clamp(2rem, 5vw, 4.5rem) clamp(2.5rem, 6vw, 5.5rem);
}
.statline__item {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}
.statline__value {
	font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.01em;
}
.statline__label {
	font-size: 0.9rem;
	color: var(--fg-muted);
	max-width: 16ch;
}
.case__disclaimer {
	margin: 1.5rem 0 0;
	font-size: 0.75rem;
	color: var(--fg-muted);
	letter-spacing: 0.02em;
}
/* ---------- Case expander: operação oculta, abre no clique ----------
   Trigger com gradiente das cores do site (lima/azul/lilás) que desliza no
   hover e na abertura; painel expande via grid-rows e o conteúdo entra em
   stagger com movimento + blur. */
.case-more {
	margin-top: clamp(2.5rem, 5vw, 4rem);
	/* One box: trigger is the header, expanded content lives inside it. */
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--surface);
	overflow: clip;
}
.case-more__trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: clamp(1.2rem, 2.5vw, 1.6rem) clamp(1.3rem, 2.5vw, 1.9rem);
	border: 0;
	cursor: pointer;
	text-align: left;
	font-family: var(--font-display);
	font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem);
	font-weight: 500;
	letter-spacing: -0.01em;
	color: var(--fg);
	background-image: linear-gradient(115deg, rgba(190, 255, 139, 0.7), rgba(192, 223, 233, 0.7) 45%, rgba(213, 186, 251, 0.7) 90%);
	background-size: 220% 220%;
	background-position: 0% 50%;
	transition: background-position 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.case-more__trigger:hover {
	background-position: 60% 50%;
}
.case-more.is-open .case-more__trigger {
	background-position: 100% 50%;
}
/* Plus icon that folds into a close mark. */
.case-more__icon {
	position: relative;
	flex: none;
	width: 1.4em;
	height: 1.4em;
	border-radius: 50%;
	background: var(--fg);
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.case-more__icon::before,
.case-more__icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 44%;
	height: 2px;
	background: #beff8b;
	transform: translate(-50%, -50%);
}
.case-more__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}
.case-more.is-open .case-more__icon {
	transform: rotate(135deg);
}
/* Panel: 0fr -> 1fr expansion. */
.case-more__panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.case-more.is-open .case-more__panel {
	grid-template-rows: 1fr;
}
.case-more__inner {
	overflow: clip;
	min-height: 0;
	padding-inline: clamp(1.3rem, 2.5vw, 1.9rem);
}
.case-more.is-open .case-more__inner {
	padding-bottom: clamp(2rem, 4vw, 3rem);
}
/* Content rises out of a blur, staggered. */
.case-more__inner > * {
	opacity: 0;
	transform: translateY(30px);
	filter: blur(14px);
	transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.case-more.is-open .case-more__inner > :nth-child(1) {
	transition-delay: 0.18s;
}
.case-more.is-open .case-more__inner > :nth-child(2) {
	transition-delay: 0.34s;
}
.case-more.is-open .case-more__inner > * {
	opacity: 1;
	transform: none;
	filter: none;
}
@media (prefers-reduced-motion: reduce) {
	.case-more__trigger,
	.case-more__icon,
	.case-more__panel,
	.case-more__inner > * {
		transition: none !important;
	}
	.case-more__inner > * {
		opacity: 1;
		transform: none;
		filter: none;
	}
}

/* Scroll-linked word fill (Wembi-style): words start faint and darken to ink
   as the paragraph crosses the viewport. Spans injected by initWordFill(). */
.wfill .wf {
	color: color-mix(in srgb, var(--fg) 24%, transparent);
	transition: color 0.3s linear;
}
.wfill .wf.is-on {
	color: var(--fg);
}
@media (prefers-reduced-motion: reduce) {
	.wfill .wf {
		color: var(--fg) !important;
		transition: none !important;
	}
}

/* Strategic threads: community delivery + brand orchestration. Offset columns, no boxes. */
.case__threads {
	margin-top: clamp(3rem, 6vw, 5rem);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 6vw, 5.5rem);
	max-width: 62rem;
}
.case__thread:last-child {
	margin-top: clamp(0rem, 3vw, 2.5rem);
}
.case__kicker {
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--fg);
	margin: 0 0 1rem;
}
.case__thread p:last-child {
	color: var(--fg-muted);
	margin: 0;
	max-width: 46ch;
}
/* Week agenda: four day-groups, whitespace only, one hairline for the block. */
.agenda {
	margin-top: clamp(3.5rem, 7vw, 6rem);
	padding-top: clamp(1.75rem, 3vw, 2.5rem);
	border-top: 1px solid var(--line);
}
.agenda__days {
	margin-top: 1.5rem;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(1.75rem, 4vw, 3.5rem);
}
.agenda__day-label {
	font-size: 0.85rem;
	color: var(--fg);
	font-weight: 500;
	margin: 0 0 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--accent);
	display: inline-block;
}
.agenda__items {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}
.agenda__item {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}
.agenda__time {
	font-size: 0.75rem;
	color: var(--fg-muted);
}
.agenda__title {
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.35;
}
.agenda__place {
	font-size: 0.85rem;
	color: var(--fg-muted);
}
.agenda__note {
	margin: clamp(1.75rem, 3vw, 2.5rem) 0 0;
	font-size: 0.85rem;
	color: var(--fg-muted);
}

/* Where: address + Google map, duotone-treated to sit in the system. */
.case__where {
	margin-top: clamp(3.5rem, 7vw, 6rem);
	display: grid;
	grid-template-columns: 0.82fr 1.18fr;
	gap: clamp(2rem, 6vw, 5.5rem);
	align-items: center;
}
.case__address {
	font-style: normal;
	font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.6rem);
	font-weight: 500;
	letter-spacing: -0.015em;
	line-height: 1.35;
}
.case__where-note {
	margin: 1.25rem 0 0;
	color: var(--fg-muted);
	max-width: 36ch;
}
.case__map {
	aspect-ratio: 16 / 10;
	background: var(--surface);
}
.case__map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	filter: grayscale(1) contrast(1.04);
	transition: filter 0.35s;
}
.case__map:hover iframe,
.case__map:focus-within iframe {
	filter: none;
}

/* =========================================================================
   Para marcas
   ========================================================================= */
.for-brands__head {
	max-width: 56ch;
	margin-bottom: clamp(2rem, 4vw, 3rem);
}
.for-brands__cta {
	margin-top: 2rem;
}

/* ---------- Tiers: flat fallback (mobile / no-JS / reduced motion) ---------- */
.tiers__media {
	position: relative;
	margin: 0 0 2rem;
	aspect-ratio: 4 / 3;
	border-radius: 18px;
	overflow: hidden;
	background: #0f1210;
}
/* Stacked per-tier images crossfading with the active step. */
.tiers__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.tiers__media img.is-active {
	opacity: 1;
}
.tiers__num {
	display: none;
}

/* ---------- Tiers: pinned Wembi scene (class added by initTiersScene) ----------
   The image + panel lock to the viewport; scroll advances 01 -> 02 -> 03.
   Active tier name gets the lime highlight, its description expands. */
.tiers--pin .tiers__stage {
	height: 240vh;
}
.tiers--pin .tiers__pin {
	position: sticky;
	top: var(--header-h);
	min-height: calc(100dvh - var(--header-h) - 20px);
	display: flex;
	align-items: center;
}
.tiers--pin .tiers__grid {
	width: 100%;
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}
.tiers--pin .tiers__media {
	margin: 0;
	aspect-ratio: 3 / 4;
	max-height: calc(100dvh - var(--header-h) - 140px);
}
.tiers--pin .tiers__num {
	display: block;
	font-size: clamp(2.4rem, 1.5rem + 3vw, 4rem);
	font-weight: 500;
	line-height: 1;
	margin: 0 0 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--line);
}
.tiers--pin .tiers__list {
	border-top: 0;
}
.tiers--pin .tier {
	display: block;
	padding: 1.15rem 0;
	border-bottom: 1px solid var(--line);
}
.tiers--pin .tier__mark {
	display: none;
}
.tiers--pin .tier__name {
	font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem);
	letter-spacing: -0.02em;
	color: var(--fg-muted);
	transition: color 0.35s;
}
.tiers--pin .tier__name-inner {
	border-radius: 12px;
	padding: 0 0.16em;
	margin-inline: -0.16em;
	transition: background 0.35s, color 0.35s;
}
.tiers--pin .tier.is-active .tier__name {
	color: var(--fg);
}
.tiers--pin .tier.is-active .tier__name-inner {
	background: #beff8b;
	color: #0e0f0d;
}
.tiers--pin .tier__desc {
	max-height: 0;
	opacity: 0;
	overflow: clip;
	margin: 0;
	transition: max-height 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s, margin 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.tiers--pin .tier.is-active .tier__desc {
	max-height: 9em;
	opacity: 1;
	margin-top: 0.7rem;
}
.tiers__kicker {
	font-size: 0.85rem;
	color: var(--fg-muted);
	margin: 0 0 1.5rem;
}
.tiers__list {
	border-top: 1px solid var(--line);
}
.tier {
	padding: clamp(1.5rem, 3vw, 2.25rem) 0;
	border-bottom: 1px solid var(--line);
	display: grid;
	grid-template-columns: 2.5rem minmax(7rem, 0.4fr) 1fr;
	gap: 0.75rem 1.5rem;
	align-items: baseline;
}
/* The captação sub-offer below brings its own top hairline; avoid a double rule. */
.tier:last-child {
	border-bottom: 0;
}
.tier__mark {
	font-size: 0.8rem;
	color: var(--fg);
	letter-spacing: 0.06em;
}
.tier__name {
	font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
	letter-spacing: -0.02em;
}
.tier__desc {
	color: var(--fg-muted);
	margin: 0;
}
/* Captação: a named sub-offer with its own header, divided by one hairline. */
.captacao {
	margin-top: clamp(3rem, 6vw, 4.5rem);
	padding-top: clamp(1.75rem, 3.5vw, 2.75rem);
	border-top: 1px solid var(--line);
}
.captacao__title {
	font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2rem);
	letter-spacing: -0.02em;
	margin: 0 0 0.9rem;
}
.captacao__body {
	color: var(--fg-muted);
	max-width: 48ch;
	margin: 0;
}

/* =========================================================================
   Para atletas e propriedades
   ========================================================================= */
.audience__lead {
	font-size: clamp(1.9rem, 1.2rem + 3vw, 3.4rem);
	font-weight: 500;
	letter-spacing: -0.025em;
	line-height: 1.1;
	max-width: 20ch;
	text-wrap: balance;
}
.audience__lead .accent {
	display: block;
	margin-top: 0.35rem;
}
.audience__cols {
	margin-top: clamp(3rem, 7vw, 6rem);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 6vw, 5.5rem);
	max-width: 62rem;
}
/* Drop the second note to break the baseline. */
.audience__col--offset {
	margin-top: clamp(0rem, 4vw, 3.5rem);
}
.audience__kicker {
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--fg);
	margin: 0 0 1rem;
}
.audience__col p:last-child {
	color: var(--fg-muted);
	font-size: 1.0625rem;
	margin: 0;
	max-width: 42ch;
}
.audience__cta {
	margin-top: clamp(2.5rem, 5vw, 4rem);
}

/* =========================================================================
   Contato
   ========================================================================= */
.contact__grid {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	gap: clamp(2.5rem, 6vw, 5rem);
	align-items: start;
}
.contact__direct {
	margin-top: 1.5rem;
	font-family: var(--font-mono);
	font-size: 0.9rem;
	color: var(--fg-muted);
}
.contact__direct a {
	color: var(--fg);
	border-bottom: 1px solid var(--accent);
	padding-bottom: 1px;
}
.contact__form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}
.field {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.field--full {
	grid-column: 1 / -1;
}
.field label {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--fg-muted);
}
/* Underline inputs, not boxed fields. */
.field input,
.field textarea {
	font-family: var(--font-display);
	font-size: 1.05rem;
	color: var(--fg);
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--line);
	padding: 0.6rem 0;
	border-radius: 0;
	transition: border-color 0.2s;
}
.field input::placeholder,
.field textarea::placeholder {
	color: color-mix(in srgb, var(--fg-muted) 70%, transparent);
}
.field textarea {
	resize: vertical;
	min-height: 6.5rem;
}
.field input:focus,
.field textarea:focus {
	outline: none;
	border-bottom-color: var(--accent);
}
.field--hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.contact__submit {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	flex-wrap: wrap;
}
.contact__hint {
	font-size: 0.75rem;
	color: var(--fg-muted);
	margin: 0;
	max-width: 40ch;
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
	border-top: 1px solid var(--line);
	padding-top: clamp(3rem, 6vw, 5rem);
}
.site-footer__inner {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2.5rem;
	padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.site-footer__line {
	margin: 1rem 0 0;
	color: var(--fg-muted);
}
.site-footer__nav {
	display: grid;
	gap: 0.7rem;
	text-align: right;
	align-content: start;
}
.site-footer__nav a {
	color: var(--fg-muted);
	transition: color 0.2s;
}
.site-footer__nav a:hover {
	color: var(--fg);
}
.site-footer__base {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	padding-block: 1.5rem;
	border-top: 1px solid var(--line);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--fg-muted);
	letter-spacing: 0.02em;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
	:root {
		--header-h: 60px;
	}
	.site-nav,
	.site-header__actions .btn {
		display: none;
	}
	.nav-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
	.practice__row,
	.practice__row--b,
	.case__grid,
	.case__threads,
	.case__where,
	.audience__cols,
	.contact__grid,
	.site-footer__inner {
		grid-template-columns: 1fr;
	}
	/* If the tiers scene was initialized on desktop and the window shrinks,
	   fall back to the flat list. */
	.tiers--pin .tiers__stage {
		height: auto;
	}
	.tiers--pin .tiers__pin {
		position: static;
		min-height: 0;
	}
	.tiers--pin .tiers__grid {
		grid-template-columns: 1fr;
	}
	.tiers--pin .tier__desc {
		max-height: none;
		opacity: 1;
		margin-top: 0.7rem;
	}
	.tiers--pin .tiers__num {
		display: none;
	}
	.case__thread:last-child {
		margin-top: 0;
	}
	.agenda__days {
		grid-template-columns: 1fr 1fr;
	}
	/* If the 3D stage was initialized on desktop and the window shrinks, fall back flat. */
	.territory--3d .territory__stage {
		height: auto;
	}
	.territory--3d .territory__pin {
		position: static;
		min-height: 0;
		overflow: visible;
	}
	.territory--3d .territory__scene {
		display: flex;
		flex-wrap: wrap;
		height: auto;
		perspective: none;
	}
	.territory--3d .tcard {
		position: static;
		opacity: 1 !important;
		transform: none !important;
	}
	.practice__row {
		gap: clamp(1rem, 4vw, 2rem);
	}
	.practice__row--b .practice__head {
		order: 0;
	}
	.practice__num {
		font-size: clamp(2.4rem, 8vw, 3.25rem);
	}
	.case__media {
		aspect-ratio: 4 / 3;
	}
	.case__media--video {
		aspect-ratio: 16 / 9;
	}
	.audience__col--offset {
		margin-top: 0;
	}
	.hero__inner {
		padding-block: clamp(3.5rem, 12vw, 5rem);
	}
	.site-footer__nav {
		text-align: left;
	}
}

@media (max-width: 560px) {
	.contact__form {
		grid-template-columns: 1fr;
	}
	.tier {
		grid-template-columns: auto 1fr;
		gap: 0.4rem 1rem;
	}
	.tier__desc {
		grid-column: 2 / -1;
	}
	.agenda__days {
		grid-template-columns: 1fr;
	}
}
