/* ==========================================================================
   Bruna Secco — app.css
   Hand-authored (no build step / no Tailwind) — see PR notes in the audit
   report for rationale behind each fix. Sections are ordered:
   1. @font-face            5. Header
   2. Tokens (:root)        6. Hero
   3. Reset & base          7. Sections (sobre/historia/trabalhos/identidades/depoimentos/roteiro)
   4. Accessibility         8. Footer
                            9. Breakpoints are inlined per-component
   ========================================================================== */

/* ---------- 1. @font-face ------------------------------------------------
   Real licensed files (found at project root, moved to assets/fonts/).
   They're OpenType (.otf), not .woff2 — that's fine, every evergreen
   browser loads @font-face .otf directly, and at ~25KB each the woff2
   compression gain would be marginal. font-display:swap + a solid serif
   fallback stack means legibility never breaks even before they load.
   -------------------------------------------------------------------------- */
@font-face {
	font-family: "Beige Culture";
	src: url("../fonts/BeigeCulture-Regular.otf") format("opentype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Beige Culture";
	src: url("../fonts/BeigeCulture-Italic.otf") format("opentype");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

/* ---------- 2. Design tokens ---------------------------------------------- */
:root {
	/* Palette (unchanged brand identity) */
	--ink: #03110d;
	--wine: #390517;
	--wine-soft: #4a0a20;
	--paper: #f3e6d8;
	--paper-dim: #cdb8a8; /* verified >= 9:1 contrast on both --ink and --wine */

	/* Typography */
	--font-display: "Beige Culture", Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
	--font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	/* ONE responsive gutter/container scale used by every section (fix P1-7, P1-10) */
	--gutter: clamp(1rem, 3.5vw, 4rem);
	--container-max: min(76.5rem, 100%); /* 1224px, grows on ultra-wide below */
	--spine: 5px;
	--header-h: 4.5rem;

	/* Motion (disabled wholesale under reduced-motion, see section 4) */
	--ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. Reset & base ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

html, body {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
}

body {
	background: var(--ink);
	color: var(--paper);
	font-family: var(--font-body);
	font-size: 1rem; /* 16px floor — body text never drops below this */
	line-height: 1.65;
	border-left: var(--spine) solid var(--wine); /* the "spine" */
	/* Safety net only — the real fix is box-sizing:border-box above so the
	   spine border no longer adds to body's rendered width, plus the
	   overflow sources fixed throughout this file (fluid clamp()s, ch caps,
	   overflow-wrap on headings). See report item P1-5. */
	overflow-x: hidden;
}

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

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* Headings/long words never force horizontal scroll (root-cause fix, P1-5) */
h1, h2, h3, .voice__quote, .pull-quote, .footer__email {
	overflow-wrap: break-word;
	word-break: break-word;
	hyphens: auto;
}

/* Shared container: every section uses this so left/right edges align
   (fix P1-7 / P1-10 — one gutter + one max-width, everywhere) */
.container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

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

.skip-link {
	position: absolute;
	left: var(--gutter);
	top: -3rem;
	background: var(--paper);
	color: var(--ink);
	padding: .75rem 1.25rem;
	border-radius: .25rem;
	font-weight: 600;
	z-index: 1000;
	transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* Anchor targets never hide under the fixed header when navigated to
   (fix "fixed header overlaps content" validation item) */
#topo, #sobre-mim, #minha-historia, #trabalhos, #identidades, #depoimentos, #como-funciona, #contato {
	scroll-margin-top: calc(var(--header-h) + 1rem);
}

/* ---------- 4. Accessibility: focus, contrast helpers, reduced motion ---- */

/* Visible focus ring on every interactive element (fix P2-13) */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--paper);
	outline-offset: 3px;
	border-radius: 2px;
}
.section--wine a:focus-visible,
.section--wine button:focus-visible {
	outline-color: var(--paper);
}
/* Remove tap highlight flash on touch without removing the focus ring above */
a, button { -webkit-tap-highlight-color: transparent; }

.eyebrow, .num, .cat, .site-nav a, .footer__links a {
	/* Small uppercase labels: bumped from 0.62rem/0.68rem to a legible
	   0.75rem floor + weight 600 (fix P2-12) — contrast already verified
	   >= 9:1 (--paper-dim on --ink and --wine), size was the real issue. */
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--paper-dim);
}
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; }
.eyebrow__tick { width: 1.25rem; height: 1px; background: var(--wine-soft); flex: none; }
.section--wine .eyebrow__tick { background: var(--paper-dim); }

/* Respect prefers-reduced-motion everywhere: grain, cursor, panel "rise"
   (fix P2-14) */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
	html { scroll-behavior: auto; }
	.grain { display: none; }
	.cursor-dot, .cursor-ring { display: none !important; }
	.rise { opacity: 1 !important; transform: none !important; }
}

/* Grain overlay (static + very subtle drift; fully off under reduced-motion
   and on coarse pointers where it adds no value) */
.grain {
	position: fixed;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	opacity: .05;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
	background-size: 180px 180px;
	animation: grain-drift 8s steps(8) infinite;
}
@keyframes grain-drift {
	0% { transform: translate(0,0); }
	100% { transform: translate(-60px,40px); }
}

/* Custom cursor: fine pointers only, and only when motion is allowed
   (fix P2-14, JS also gates this via matchMedia) */
.cursor-dot, .cursor-ring { display: none; }
@media (pointer: fine) {
	.cursor-dot, .cursor-ring {
		display: block;
		position: fixed;
		top: 0; left: 0;
		z-index: 1000;
		pointer-events: none;
		border-radius: 50%;
		transform: translate(-50%, -50%);
		will-change: transform;
	}
	.cursor-dot { width: 6px; height: 6px; background: var(--paper); }
	.cursor-ring {
		width: 34px; height: 34px;
		border: 1px solid var(--paper-dim);
		transition: width .15s var(--ease), height .15s var(--ease), opacity .15s var(--ease);
	}
	.cursor-ring.is-active { width: 48px; height: 48px; opacity: .6; }
}
@media (prefers-reduced-motion: reduce), (pointer: coarse) {
	.cursor-dot, .cursor-ring { display: none !important; }
}

/* Rise-in animation for sections/panels, disabled under reduced-motion above */
.rise { opacity: 0; transform: translateY(1rem); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.rise.is-visible { opacity: 1; transform: none; }

/* ---------- 5. Header ------------------------------------------------------
   Uses the same .container as every section, so the wordmark lines up with
   section headings below it (fix P1-10).
   Mobile: brand left + hamburger right (2-col). Desktop: brand + nav row. */
.site-header {
	position: fixed;
	top: 0;
	left: var(--spine);
	right: 0;
	z-index: 100;
	height: var(--header-h);
	display: flex;
	align-items: center;
	background: rgba(3, 17, 13, .82);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid rgba(243, 230, 216, .08);
}
.site-header__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "brand toggle";
	align-items: center;
	column-gap: 1rem;
	width: 100%;
	min-width: 0;
}
.wordmark { grid-area: brand; justify-self: start; }
.nav-toggle { grid-area: toggle; justify-self: end; }
.site-nav { grid-area: nav; }

.wordmark {
	display: inline-flex;
	align-items: baseline;
	gap: .5rem;
	font-family: var(--font-display);
	font-size: 1.25rem;
	line-height: 1;
	white-space: nowrap;
	min-width: 0;
	max-width: 100%;
}
.wordmark__mark { color: var(--wine-soft); font-size: 1.6rem; flex: none; }
.wordmark__text {
	overflow: hidden;
	text-overflow: ellipsis;
}

.site-nav__list {
	display: flex;
	justify-content: flex-end;
	gap: clamp(1rem, 2vw, 2rem);
}
.site-nav__list a {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}
.site-nav__list a::after {
	content: "";
	position: absolute;
	left: 0; right: 100%;
	bottom: 10px;
	height: 1px;
	background: currentColor;
	transition: right .2s var(--ease);
}
.site-nav__list a:hover::after,
.site-nav__list a:focus-visible::after { right: 0; }
@media (prefers-reduced-motion: reduce) {
	.site-nav__list a::after { transition: none; }
}

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 44px;
	height: 44px;
	margin-inline: -0.35rem -0.35rem; /* optical align with container padding edge */
	border-radius: 4px;
	flex-shrink: 0;
	position: relative;
	z-index: 2;
}
.nav-toggle:focus-visible {
	outline: 2px solid var(--paper);
	outline-offset: 2px;
}
.nav-toggle__bars {
	position: relative;
	display: block;
	width: 22px;
	height: 14px;
}
.nav-toggle__bar {
	position: absolute;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--paper);
	border-radius: 1px;
	transition: transform .2s var(--ease), opacity .2s var(--ease), top .2s var(--ease);
}
.nav-toggle__bar:nth-child(1) { top: 0; }
.nav-toggle__bar:nth-child(2) { top: 6px; }
.nav-toggle__bar:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
	top: 6px;
	transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
	opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
	top: 6px;
	transform: rotate(-45deg);
}
@media (prefers-reduced-motion: reduce) {
	.nav-toggle__bar { transition: none; }
}

/* NOTE: this threshold is intentionally 859px, not 767px. At exactly
   768-859px there isn't reliably enough room for the wordmark + all 5 nav
   labels on one row without wrapping/overflowing (same "rigid grid crowds
   tablet" problem as P1-3, applied to the header) — the hamburger pattern
   is kept a little longer instead of jumping straight to the desktop nav
   (consistent with the P1-4 fix philosophy). */
@media (max-width: 859px) {
	.nav-toggle { display: inline-flex; }

	.site-nav {
		position: fixed;
		top: var(--header-h);
		left: var(--spine);
		right: 0;
		z-index: 99;
		grid-area: unset;
		width: auto;
		background: rgba(3, 17, 13, .97);
		backdrop-filter: blur(8px);
		border-bottom: 1px solid rgba(243,230,216,.1);
		max-height: calc(100svh - var(--header-h));
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		transform: translateY(-0.5rem);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s var(--ease);
	}
	.site-nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: none;
		pointer-events: auto;
	}
	.site-nav__list {
		flex-direction: column;
		align-items: stretch;
		padding: 0.75rem var(--gutter) calc(1.25rem + env(safe-area-inset-bottom, 0px));
		gap: 0;
	}
	.site-nav__list a {
		min-height: 48px;
		width: 100%;
		font-size: 1rem;
		padding-inline: 0.15rem;
	}
	.site-nav__list a::after { display: none; }
}

@media (min-width: 860px) {
	.site-header__inner {
		grid-template-columns: auto minmax(0, 1fr);
		grid-template-areas: "brand nav";
		column-gap: 1.5rem;
	}
	.nav-toggle { display: none; }
	.site-nav {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		pointer-events: auto;
		max-height: none;
		overflow: visible;
		background: transparent;
		border: 0;
		justify-self: end;
		width: auto;
	}
	.site-nav__list {
		flex-direction: row;
		padding: 0;
	}
}

/* Fixed header must never overlap short-viewport content (validation item) */
@media (max-height: 700px) {
	:root { --header-h: 3.75rem; }
}

/* ---------- 6. Hero --------------------------------------------------------
   Root cause of horizontal overflow at 320-414px (P1-5): the old hero used
   clamp(6rem, 17.5vw, 12.75rem) — at any viewport under ~960px, 17.5vw is
   SMALLER than the 6rem minimum, so clamp() falls back to the 6rem (96px)
   floor regardless of screen size, blowing out a 320-414px viewport.
   Fixed formula below uses `vw + rem` (not bare vw) so the minimum itself
   scales down on small screens instead of acting as a fixed floor, and the
   name is hard-wrapped to two lines (Bruna / Secco) so no single line is
   ever wider than one word. */
.hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	align-items: center;
	padding-block: calc(var(--header-h) + var(--gutter)) var(--gutter);
	overflow: hidden; /* keeps the oversized monogram watermark from ever affecting layout/scroll width */
}
@media (max-height: 640px) {
	.hero { min-height: auto; padding-block: calc(var(--header-h) + 1.5rem) 2.5rem; }
}
/* Decorative giant monogram behind the hero name — adds depth to what was a
   flat block of color, without touching the palette or typeface choices. */
.hero__monogram {
	position: absolute;
	top: 50%;
	right: clamp(-4rem, -2vw, 2rem);
	transform: translateY(-50%);
	font-family: var(--font-display);
	font-size: clamp(10rem, 34vw, 40rem);
	line-height: 1;
	color: var(--wine);
	opacity: .35;
	pointer-events: none;
	z-index: 0;
	user-select: none;
}
.hero__inner {
	position: relative;
	z-index: 1;
	max-width: 56rem;
	width: 100%;
	margin-inline: auto;
}
.hero__kicker {
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--paper-dim);
	margin-bottom: 1rem;
}
.hero__name {
	font-family: var(--font-display);
	font-size: clamp(2.75rem, 6vw + 2rem, 12.75rem);
	line-height: .92;
	letter-spacing: -0.01em;
	color: var(--paper);
	max-width: 100%;
}
.hero__lede {
	margin-top: 1.5rem;
	max-width: 42ch; /* line length within 45-80ch band incl. wider viewports */
	font-size: clamp(1rem, .3vw + .95rem, 1.25rem);
	color: var(--paper-dim);
}
.hero__actions {
	margin-top: 2rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
}
.hero__cta {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	min-height: 48px;
	font-weight: 600;
	border-bottom: 1px solid currentColor;
	padding-block: .25rem;
	transition: gap .2s var(--ease);
}
.hero__cta:hover { gap: .9rem; }

/* Shared WhatsApp CTA — used in hero + footer */
.btn-whatsapp {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .65rem;
	min-height: 48px;
	padding: .7rem 1.35rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: .9375rem;
	letter-spacing: .02em;
	color: var(--ink);
	background: #3fbf6f;
	border: 1px solid transparent;
	box-shadow: 0 0 0 0 rgba(63, 191, 111, .35);
	transition:
		transform .2s var(--ease),
		background-color .2s var(--ease),
		box-shadow .2s var(--ease),
		color .2s var(--ease);
}
.btn-whatsapp__icon {
	flex: none;
	width: 1.125rem;
	height: 1.125rem;
}
.btn-whatsapp:hover {
	background: #4fd484;
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(63, 191, 111, .28);
}
.btn-whatsapp:active { transform: translateY(0); }
.btn-whatsapp--footer {
	margin-top: .75rem;
	margin-bottom: 1.25rem;
}
@media (prefers-reduced-motion: no-preference) {
	.btn-whatsapp { animation: whatsapp-glow 2.4s ease-in-out infinite; }
}
@keyframes whatsapp-glow {
	0%, 100% { box-shadow: 0 0 0 0 rgba(63, 191, 111, .35); }
	50% { box-shadow: 0 0 0 6px rgba(63, 191, 111, 0); }
}
@media (prefers-reduced-motion: reduce) {
	.btn-whatsapp:hover { transform: none; }
}
@media (max-width: 479px) {
	.hero__actions {
		flex-direction: column;
		align-items: stretch;
		gap: .85rem;
	}
	.hero__cta,
	.btn-whatsapp {
		width: 100%;
		justify-content: center;
	}
	.hero__cta { border-bottom: 0; border: 1px solid rgba(243, 230, 216, .28); border-radius: 999px; padding-inline: 1.25rem; }
}

/* ---------- 6a. Marquee (decorative, aria-hidden in markup) ----------------
   Text is vertically centered in the ribbon via flex + line-height:1.
   Track is centered so ultra-wide viewports never leave a left-heavy ribbon.
   Separators use equal inline padding so dots sit optically between items. */
.marquee {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 3.25rem;
	overflow: hidden;
	background: var(--wine);
	border-block: 1px solid rgba(243, 230, 216, .15);
	padding-block: 0;
	width: 100%;
}
.marquee__track {
	display: flex;
	align-items: center;
	justify-content: center;
	width: max-content;
	min-width: 100%;
	animation: marquee-scroll 32s linear infinite;
	will-change: transform;
}
.marquee__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	padding-inline: 1.25rem;
	font-family: var(--font-display);
	font-style: italic;
	font-size: clamp(1rem, .6vw + .9rem, 1.5rem);
	line-height: 1;
	color: var(--paper-dim);
	white-space: nowrap;
	flex: none;
}
.marquee__item::after {
	content: "·";
	display: inline-block;
	line-height: 1;
	color: rgba(243, 230, 216, .35);
	transform: translateY(-0.05em); /* optical nudge for italic baseline */
}
@keyframes marquee-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); } /* track content is duplicated in markup, so -50% is a seamless loop */
}
@media (prefers-reduced-motion: reduce) {
	.marquee__track { animation: none; }
}
@media (max-width: 479px) {
	.marquee { min-height: 2.75rem; }
	.marquee__item { gap: 1.25rem; padding-inline: .85rem; }
}

/* ---------- 7. Section shell + type ---------------------------------------- */
.section { padding-block: clamp(3rem, 7vw, 6.5rem); }
.section--wine { background: var(--wine); }

.eyebrow { margin-bottom: .75rem; }
.section-title {
	font-size: clamp(1.6rem, 1.6vw + 1.2rem, 2.75rem);
	line-height: 1.12;
	margin-bottom: 1.25rem;
	max-width: min(22ch, 100%);
}
.lede {
	font-size: clamp(1rem, .4vw + .95rem, 1.25rem);
	color: var(--paper-dim);
	max-width: 62ch;
}
.body-text {
	max-width: 62ch;
	margin-top: 1rem;
	font-size: clamp(.9875rem, .2vw + .95rem, 1.0625rem);
}
.pull-quote {
	font-family: var(--font-display);
	font-style: italic;
	font-size: clamp(1.25rem, 1vw + 1rem, 1.75rem);
	line-height: 1.35;
	max-width: 32ch;
	margin-top: 2rem;
	padding-left: 1.25rem;
	border-left: 2px solid var(--paper-dim);
}
.pull-quote cite { display: block; margin-top: .75rem; font-style: normal; font-size: .8rem; color: var(--paper-dim); }

/* ---------- 7a. Ofício: head + service rows --------------------------------
   Root cause (P1-3): `.oficio-head` and `.service-row` used
   minmax(16rem, X%) tracks. On a 768-1023px viewport the 16rem (256px)
   floor plus the fixed 4rem index column left too little room for the
   `1fr` body text column, which then compressed/overflowed. Fix: introduce
   an explicit 768-1023 tablet band that stacks/simplifies instead of
   jumping straight into the desktop 3-column grid, and replace every
   `minmax(16rem, X%)` with `minmax(0, X%)` so tracks can shrink instead of
   forcing overflow (P1-4). */
.oficio-head {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 1024px) {
	.oficio-head {
		grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
		column-gap: var(--gutter);
		align-items: end;
	}
}

.service-list { display: flex; flex-direction: column; }
.service-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: .5rem;
	padding-block: 1.75rem;
	border-top: 1px solid rgba(243, 230, 216, .12);
}
.service-list .service-row:last-child { border-bottom: 1px solid rgba(243, 230, 216, .12); }
.service-row__index {
	font-family: var(--font-display);
	font-style: italic;
	color: var(--paper-dim);
}
.service-row__body { max-width: 62ch; color: var(--paper-dim); }

/* Intermediate tablet band (768-1023): index + title share a row, body
   drops full-width below — no fixed rem minimums, nothing to overflow. */
@media (min-width: 768px) and (max-width: 1023px) {
	.service-row {
		grid-template-columns: 4rem 1fr;
		grid-template-areas: "idx title" "body body";
		column-gap: 1rem;
	}
	.service-row__index { grid-area: idx; }
	.service-row__title { grid-area: title; }
	.service-row__body { grid-area: body; margin-top: .25rem; }
}

/* Desktop (>=1024): full 3-column grid, using minmax(0, ...) instead of
   minmax(16rem, ...) so the body column can never be squeezed to overflow. */
@media (min-width: 1024px) {
	.service-row {
		grid-template-columns: 4rem minmax(0, 34%) 1fr;
		align-items: baseline;
		column-gap: 2rem;
	}
}

/* ---------- 7b. Perfil ------------------------------------------------------ */
.perfil {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}
.perfil__media {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	min-height: 0;
}
/* Soft decorative glow behind the real (transparent-cutout) portrait — reads
   as an intentional editorial treatment instead of a bare cropped photo. */
.perfil__media::before {
	content: "";
	position: absolute;
	inset: 8% 10% 0;
	background: radial-gradient(circle at 50% 35%, rgba(243, 230, 216, .16), transparent 70%);
	border-radius: 50%;
	z-index: 0;
}
.perfil__media img {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: min(22rem, 100%);
	height: auto;
	margin-inline: auto;
	object-fit: contain;
	object-position: center bottom;
}
@media (min-width: 768px) and (max-width: 1023px) {
	.perfil {
		grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
		column-gap: 1.5rem;
		align-items: start;
	}
	.perfil__media { min-height: 0; }
	.perfil__media img { max-width: 100%; }
}
@media (min-width: 1024px) {
	.perfil { grid-template-columns: minmax(0, 38%) minmax(0, 1fr); column-gap: var(--gutter); align-items: start; }
	.perfil__media img { max-width: 22rem; }
}

/* ---------- 7c. Trabalhos: work-index (tabs) + panels ----------------------
   Baseline fix (P1-8): the old `.num`/`.label`/`.cat` mix used
   align-items:baseline plus a manual `.cat{padding-top:.35rem}` nudge to
   fake alignment across three very different font sizes. Fixed by giving
   every child the same line-height (1) — baseline math is then consistent
   without any magic-number patch. */
.work { margin-top: 3rem; }

.work-index {
	display: flex;
	flex-direction: column;
	border-top: 1px solid rgba(243, 230, 216, .15);
}
.work-index__tab {
	display: none; /* re-enabled >=1024, see below (P1-6) */
}

.work-panels { display: flex; flex-direction: column; gap: clamp(2.5rem, 5vw, 4rem); }
.work-panel__heading {
	font-size: clamp(1.375rem, 1vw + 1.1rem, 1.75rem);
	margin-bottom: 1.25rem;
}
.work-panel[hidden] { display: none; }

.work-grid {
	display: grid;
	/* Always at least 2 columns on phones so thumbs stay compact (not full-bleed 4:5 towers). */
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .65rem;
	margin: 0;
}
@media (min-width: 640px) {
	.work-grid {
		grid-template-columns: repeat(auto-fill, minmax(min(11rem, 100%), 1fr));
		gap: 1rem;
	}
}
@media (min-width: 1024px) {
	.work-grid {
		grid-template-columns: repeat(auto-fill, minmax(min(12.5rem, 100%), 1fr));
	}
}
.work-thumb {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 5; /* Instagram portrait exports (~640×800) */
	overflow: hidden;
	background: rgba(243, 230, 216, .04);
	border: 1px solid rgba(243, 230, 216, .12);
}
.work-thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}
.work-thumb--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		linear-gradient(135deg, rgba(243, 230, 216, .06), rgba(57, 5, 23, .35)),
		rgba(243, 230, 216, .03);
}
.work-thumb__label {
	position: relative;
	z-index: 1;
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1rem;
	color: var(--paper-dim);
	letter-spacing: .04em;
}
/* The grayscale->color "reveal" is a mouse-hover flourish only. Gated to
   (pointer:fine) so touch visitors — the majority of an Instagram-driven
   audience — always see the real, full-color work with nothing to hover. */
@media (pointer: fine) {
	.work-thumb img {
		filter: grayscale(45%);
		transform: scale(1);
		transition: transform .4s var(--ease), filter .4s var(--ease);
	}
	.work-thumb:hover img, .work-thumb:focus-within img {
		filter: grayscale(0%);
		transform: scale(1.04);
	}
	@media (prefers-reduced-motion: reduce) {
		.work-thumb img { transition: filter .2s linear; }
		.work-thumb:hover img, .work-thumb:focus-within img { transform: none; }
	}
}

/* Tablist only makes sense with room for a true index column — enabled at
   >=1024 (P1-6: below that, the stacked panels above already carry visible
   numbering + category heading, so the mobile experience reads as an
   intentional list, not "hidden desktop UI"). */
@media (min-width: 1024px) {
	.work { display: grid; grid-template-columns: minmax(0, 32%) minmax(0, 1fr); column-gap: var(--gutter); margin-top: 2rem; }

	.work-index__tab {
		display: grid;
		grid-template-columns: 2.5rem minmax(0, 1fr) auto;
		align-items: baseline;
		column-gap: .65rem;
		width: 100%;
		text-align: left;
		padding-block: 1rem;
		border-bottom: 1px solid rgba(243, 230, 216, .15);
		color: var(--paper-dim);
	}
	.work-index__tab .num,
	.work-index__tab .label,
	.work-index__tab .cat {
		line-height: 1.15;
	}
	.work-index__tab .num { font-family: var(--font-display); font-style: italic; font-size: .95rem; }
	.work-index__tab .label {
		font-family: var(--font-display);
		font-size: clamp(1rem, .4vw + .9rem, 1.1rem);
		color: var(--paper);
		overflow-wrap: anywhere;
	}
	.work-index__tab .cat {
		font-size: .7rem;
		letter-spacing: .06em;
		text-transform: uppercase;
		justify-self: end;
		white-space: nowrap;
	}
	.work-index__tab[aria-selected="true"] { color: var(--paper); }
	.work-index__tab[aria-selected="true"] .num { color: var(--paper); }

	.work-panel__heading { display: none; } /* the active tab already states the category at this width */
}
@media (min-width: 1024px) and (max-width: 1199px) {
	.work { grid-template-columns: minmax(0, 36%) minmax(0, 1fr); }
	.work-index__tab .cat { display: none; } /* frees room for long category labels */
}

/* ---------- 7d. Identidades: responsive logo/board grid --------------------
   Identity uploads vary in ratio (Amanda Boff is the reference case). A fixed
   cover crop into 4:5 / 1:1 made boards look stretched or clipped. Frame is a
   stable square; images use contain so the full mark stays visible. */
.identity-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .85rem;
	margin-top: 2rem;
}
@media (min-width: 640px) and (max-width: 899px) {
	.identity-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
}
@media (min-width: 900px) {
	.identity-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
}
.identity-card { margin: 0; min-width: 0; }
.identity-card__media {
	position: relative;
	margin: 0;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	display: grid;
	place-items: center;
	padding: clamp(0.65rem, 2.5vw, 1.15rem);
	background:
		radial-gradient(circle at 50% 40%, rgba(243, 230, 216, .08), transparent 65%),
		rgba(3, 17, 13, .28);
	border: 1px solid rgba(243, 230, 216, .14);
}
.identity-card__media img {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
}
.identity-card__media--placeholder {
	background:
		radial-gradient(circle at 30% 25%, rgba(243, 230, 216, .12), transparent 55%),
		linear-gradient(160deg, rgba(3, 17, 13, .35), rgba(57, 5, 23, .45));
}
.identity-card__mark {
	font-family: var(--font-display);
	font-style: italic;
	font-size: clamp(1.75rem, 2vw + 1.25rem, 2.5rem);
	color: var(--paper-dim);
	opacity: .7;
}
.identity-card__caption {
	margin-top: .75rem;
	font-size: .8125rem;
	font-weight: 500;
	letter-spacing: .02em;
	text-transform: none;
	line-height: 1.45;
	color: var(--paper-dim);
	overflow-wrap: break-word;
}
@media (pointer: fine) {
	.identity-card__media img {
		filter: grayscale(28%);
		transform: scale(1);
		transition: transform .4s var(--ease), filter .4s var(--ease);
	}
	.identity-card:hover .identity-card__media img,
	.identity-card:focus-within .identity-card__media img {
		filter: grayscale(0%);
		transform: scale(1.03);
	}
	@media (prefers-reduced-motion: reduce) {
		.identity-card__media img { transition: filter .2s linear; }
		.identity-card:hover .identity-card__media img,
		.identity-card:focus-within .identity-card__media img { transform: none; }
	}
}

/* ---------- 7e. Depoimentos: voices-grid ------------------------------------ */
.voices-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin-top: 2rem;
}
.voice {
	padding: clamp(1.25rem, 3vw, 1.75rem);
	background: rgba(3, 17, 13, .18);
	border: 1px solid rgba(243, 230, 216, .12);
	transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.voice:hover { border-color: var(--paper-dim); background: rgba(3, 17, 13, .3); }
.voice__quote { max-width: 46ch; }
.voice__author { margin-top: 1rem; font-weight: 600; color: var(--paper-dim); font-size: .875rem; }

@media (min-width: 640px) and (max-width: 1023px) {
	.voices-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.voices-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 7f. Como funciona (roteiro) -------------------------------------
   Root cause (P1-9): even rows had `border-left` + `padding-left:2rem`
   while odd rows had neither — an asymmetric divider that didn't line up
   to a shared column axis. Fixed with a real two-column grid where both
   sides get identical padding relative to a single centered divider. */
.roteiro {
	margin-top: 2rem;
	border-top: 1px solid rgba(243, 230, 216, .15);
}
.roteiro__item {
	display: grid;
	grid-template-columns: 3.5rem 1fr;
	grid-template-areas: "num title" ".   body";
	column-gap: 1rem;
	padding-block: 1.5rem;
	border-bottom: 1px solid rgba(243, 230, 216, .15);
}
/* NB: 3 children across a 2-column grid — without explicit areas the 3rd
   child (body) auto-flows into row 2, col 1 (the 3.5rem number column),
   collapsing to a ~56px-wide multi-line block. Caught in QA (see report). */
.roteiro__num { grid-area: num; font-family: var(--font-display); font-style: italic; color: var(--paper-dim); }
.roteiro__title { grid-area: title; margin-bottom: .35rem; font-size: 1.15rem; }
.roteiro__body { grid-area: body; color: var(--paper-dim); max-width: 46ch; }

@media (min-width: 768px) {
	.roteiro {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--gutter);
		border-top: 1px solid rgba(243, 230, 216, .15);
	}
	.roteiro__item {
		grid-template-columns: 3.5rem 1fr;
		border-bottom: 1px solid rgba(243, 230, 216, .15);
	}
	/* Symmetrical divider: left column gets the border+padding on its
	   right edge, right column mirrors it on its left edge — both use the
	   same measurement, unlike the old nth-child(2n)-only rule. */
	.roteiro__item:nth-child(odd) { padding-right: var(--gutter); border-right: 1px solid rgba(243, 230, 216, .15); }
	.roteiro__item:nth-child(even) { padding-left: var(--gutter); }
	.roteiro__item:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (min-width: 768px) and (max-width: 1023px) {
	.roteiro { column-gap: 1rem; }
	.roteiro__item:nth-child(odd) { padding-right: 1rem; }
	.roteiro__item:nth-child(even) { padding-left: 1rem; }
}
@media (max-width: 767px) {
	.roteiro__item {
		grid-template-columns: 2.75rem 1fr;
		padding-block: 1.25rem;
	}
	.roteiro__title { font-size: 1.05rem; }
}

/* ---------- 8. Footer -------------------------------------------------------- */
.site-footer {
	background: var(--wine);
	padding-block: clamp(3rem, 6vw, 5rem);
	padding-bottom: calc(clamp(3rem, 6vw, 5rem) + 4.5rem); /* room for FAB on mobile */
}
.footer__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
}
.footer__lede {
	margin-top: -.25rem;
	margin-bottom: 1.25rem;
	max-width: 36ch;
}
.site-footer .section-title {
	max-width: min(28ch, 100%);
}
.footer__break {
	display: inline;
}
@media (min-width: 480px) {
	.footer__break { display: block; }
}
.footer__ig {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	min-height: 44px;
	margin-top: 1rem;
	font-weight: 600;
}

/* Fixed WhatsApp shortcut — always reachable, standard pattern for BR
   service sites and a direct answer to "not paying user attention": a
   persistent, low-friction way to start a conversation. */
.whatsapp-fab {
	position: fixed;
	right: max(1rem, env(safe-area-inset-right, 0px));
	bottom: max(1rem, env(safe-area-inset-bottom, 0px));
	z-index: 90;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #3fbf6f;
	border: 1px solid rgba(243, 230, 216, .2);
	font-size: 1.5rem;
	color: var(--ink);
	box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
	transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.whatsapp-fab:hover { transform: translateY(-3px); background: #4fd484; }
@media (prefers-reduced-motion: reduce) {
	.whatsapp-fab:hover { transform: none; }
}
.footer__copy { color: var(--paper-dim); font-size: .875rem; }
.footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.5rem;
	margin-top: 1rem;
}
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; }

@media (min-width: 768px) {
	.site-footer { padding-bottom: clamp(3rem, 6vw, 5rem); }
	.footer__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
	.footer__col--meta { text-align: right; }
	.footer__links { justify-content: flex-end; }
}

/* Extra-narrow phones */
@media (max-width: 359px) {
	:root { --gutter: 1rem; }
	.hero__name { font-size: clamp(2.35rem, 14vw, 3rem); }
	.wordmark__text { font-size: 1.05rem; }
}

/* ---------- 9. Responsivity refinements ----------------------------------- */
@media (max-width: 639px) {
	.hero__actions {
		display: grid;
		grid-template-columns: 1fr;
		gap: .85rem;
		width: 100%;
		max-width: 22rem;
	}
	.hero__cta,
	.hero .btn-whatsapp {
		width: 100%;
		justify-content: center;
	}
	.perfil {
		gap: 1.75rem;
	}
	.service-row {
		gap: .4rem;
		padding-block: 1.35rem;
	}
	.work-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: .65rem;
	}
	.identity-grid {
		gap: .75rem;
	}
	.voices-grid {
		gap: 1rem;
	}
	.voice {
		padding: 1.1rem;
	}
}

@media (min-width: 640px) and (max-width: 899px) {
	.hero__actions {
		flex-wrap: wrap;
		gap: .85rem 1rem;
	}
	.oficio-head {
		gap: 1.25rem;
	}
}

@media (max-width: 480px) {
	.site-header__inner {
		column-gap: .5rem;
	}
	.nav-toggle {
		margin-inline: -0.25rem -0.45rem;
	}
	.whatsapp-fab {
		width: 52px;
		height: 52px;
		right: max(.75rem, env(safe-area-inset-right, 0px));
		bottom: max(.75rem, env(safe-area-inset-bottom, 0px));
	}
	.site-footer {
		padding-bottom: calc(clamp(2.5rem, 6vw, 4rem) + 4.75rem);
	}
}
