/* ==========================================================
   Rodrigo Silvestri — portfólio
   Base: PAULADA DS v1.1 — Host Grotesk Medium, azul / chalk / carbono
   ========================================================== */

:root {
  --blue-300: #7070FF; --blue-400: #3333FF; --blue-500: #0000FF; --blue-700: #0000A3;
  --white: #FFFFFF; --chalk: #F7F7F4; --carbon: #0A0A0A;
  --neutral-100: #EDEDE8; --neutral-200: #DCDCD6; --neutral-300: #C4C4BE; --neutral-400: #9A9A94;
  --neutral-600: #55554F; --neutral-700: #3A3A36; --neutral-800: #222220; --neutral-900: #141414;

  color-scheme: light;
  --bg: var(--chalk);
  --surface: var(--white);
  --muted: var(--neutral-100);
  --inverse: var(--carbon);
  --accent: var(--blue-500);
  --text: var(--carbon);
  --text-2: var(--neutral-600);
  --text-inverse: var(--chalk);
  --on-accent: var(--white);
  --link: var(--blue-500);
  --line: var(--carbon);
  --line-subtle: var(--neutral-300);
  --ring: var(--blue-500);

  --font: 'Host Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 3.4vw, 48px);
  --header-h: 64px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --z-preview: 30;
  --z-menu: 39;
  --z-header: 40;
  --z-toast: 60;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--carbon); --surface: var(--neutral-900); --muted: var(--neutral-800); --inverse: var(--chalk);
  --text: var(--chalk); --text-2: var(--neutral-400); --text-inverse: var(--carbon);
  --link: var(--blue-300); --line: var(--chalk); --line-subtle: var(--neutral-700); --ring: var(--blue-300);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: var(--carbon); --surface: var(--neutral-900); --muted: var(--neutral-800); --inverse: var(--chalk);
    --text: var(--chalk); --text-2: var(--neutral-400); --text-inverse: var(--carbon);
    --link: var(--blue-300); --line: var(--chalk); --line-subtle: var(--neutral-700); --ring: var(--blue-300);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-weight: 500; font-size: 1rem; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-kerning: normal; overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, h4, b, strong, th, button { font-weight: 500; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--on-accent); }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }

.skip {
  position: fixed; left: 16px; top: 16px; z-index: var(--z-toast);
  padding: 12px 16px; background: var(--accent); color: var(--on-accent);
  transform: translateY(-200%); transition: transform 200ms var(--ease-out);
}
.skip:focus { transform: none; }
.noscript { padding: 48px var(--gutter); }
.wrap { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--gutter); }

/* Tipos */
.t-label { font-size: .8125rem; line-height: 1.4; letter-spacing: .005em; }
.t-small { font-size: .875rem; line-height: 1.45; }
.t-lead { font-size: clamp(1.125rem, 1.35vw, 1.3125rem); line-height: 1.45; letter-spacing: -0.005em; }
.t-h3 { font-size: clamp(1.25rem, 1.9vw, 1.75rem); line-height: 1.25; letter-spacing: -0.015em; }
.t-h2 { font-size: clamp(1.75rem, 3.3vw, 3rem); line-height: 1.08; letter-spacing: -0.025em; }
.t-display { font-size: clamp(2.75rem, 7vw, 6.5rem); line-height: .98; letter-spacing: -0.035em; }
.muted { color: var(--text-2); }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }

/* Link com sublinhado que corre da esquerda */
.u { background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 2px; transition: background-size 380ms var(--ease-out); padding-bottom: 2px; }
@media (hover: hover) and (pointer: fine) { .u:hover { background-position: 0 100%; background-size: 100% 2px; } }

.icon { width: 24px; height: 24px; flex: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; fill: none; }
.press { transition: transform 140ms var(--ease-out); }
.press:active { transform: scale(0.97); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--bg); border-bottom: 2px solid var(--line);
  transition: transform 320ms var(--ease-out);
  view-transition-name: site-header;
}
.header[data-hidden="true"] { transform: translateY(-100%); }
.header__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: flex-start; gap: 1px; font-size: 1.125rem; letter-spacing: -0.02em; white-space: nowrap; justify-self: start; }
.brand .ast { width: 13px; height: 13px; stroke: var(--link); stroke-width: 3; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .brand:hover .ast { transform: rotate(180deg); } }
.clock { font-variant-numeric: tabular-nums; color: var(--text-2); white-space: nowrap; }
.header__right { display: flex; align-items: center; gap: 28px; justify-self: end; }
.nav { display: flex; gap: 24px; }
.langs { display: flex; gap: 10px; color: var(--text-2); }
.langs button { padding: 4px 0; }
.langs button[aria-pressed="true"] { color: var(--text); background-size: 100% 2px; background-position: 0 100%; }
.theme-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-right: -8px; }
.theme-btn .icon { width: 20px; height: 20px; }
.theme-icon--sun { display: none; }
[data-theme-state="dark"] .theme-icon--sun { display: block; }
[data-theme-state="dark"] .theme-icon--moon { display: none; }
.menu-btn { display: none; width: 40px; height: 40px; place-items: center; margin-right: -8px; }

.menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: var(--z-menu); background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between; padding: 24px var(--gutter) 40px;
  clip-path: inset(0 0 100% 0); transition: clip-path 420ms var(--ease-in-out);
}
.menu[data-open="true"] { clip-path: inset(0 0 0 0); }
.menu__links a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 2px solid var(--line); font-size: clamp(2.5rem, 12vw, 4rem); line-height: 1; letter-spacing: -0.03em; }
.menu__links li { opacity: 0; transform: translateY(14px); transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out); }
.menu[data-open="true"] .menu__links li { opacity: 1; transform: none; transition-delay: calc(140ms + var(--i) * 50ms); }
.menu__foot { display: flex; justify-content: space-between; align-items: center; }

@media (max-width: 1023px) {
  .header__in { grid-template-columns: 1fr auto; }
  .clock, .header__right .nav { display: none; }
}
@media (max-width: 767px) {
  .header__right .langs, .header__right .theme-btn { display: none; }
  .menu-btn { display: inline-grid; }
}

/* ---------- Hero ---------- */
.hero { min-height: calc(100svh - var(--header-h) - 2px); display: flex; flex-direction: column; justify-content: space-between; gap: 64px; padding-block: clamp(32px, 5vw, 64px) clamp(4px, 1vw, 16px); }
.hero__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.hero__statement { grid-column: 1 / span 8; max-width: 24ch; }
.hero__aside { grid-column: 10 / span 3; display: grid; gap: 20px; padding-top: 10px; }
.hero__aside dt { color: var(--text-2); margin-bottom: 4px; }
.hero__cta { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.hero__cta .icon { width: 20px; height: 20px; transition: transform 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .hero__cta:hover .icon { transform: translateY(3px); } }

/* Nome: ocupa a largura exata da página (tamanho calculado no JS).
   Sem máscara em volta das letras: nada de corte em "g" ou acentos. */
.wordmark {
  font-size: var(--fit, 13.6vw); line-height: .86; letter-spacing: -0.035em; white-space: nowrap;
  display: flex; align-items: flex-start;
  margin-left: calc(var(--fit, 13.6vw) * -0.04);
  padding-bottom: calc(var(--fit, 13.6vw) * 0.22); /* espaço real para descendentes (g, j, p) */
}
.wordmark__text { display: inline-flex; align-items: flex-start; }
.wm-word { display: inline-flex; align-items: flex-start; }
.wm-space { display: inline-block; width: .24em; }
.wordmark .ch { display: inline-block; }
.wordmark .ast { width: .2em; height: .2em; stroke: var(--link); stroke-width: 2.2; margin: .07em 0 0 .03em; flex: none; }

/* ---------- Índice de trabalhos ---------- */
.index { padding-block: clamp(96px, 12vw, 176px) clamp(64px, 8vw, 120px); }
.index__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.index__head sup { font-size: .32em; vertical-align: top; margin-left: .25em; color: var(--text-2); letter-spacing: 0; }
.rows { border-bottom: 2px solid var(--line); }
.row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 260px) 40px; align-items: center; gap: 24px;
  padding-block: clamp(20px, 2.4vw, 32px); border-top: 2px solid var(--line);
}
.row__num { color: var(--text-2); font-variant-numeric: tabular-nums; }
.row__title { font-size: clamp(2rem, 5.2vw, 5rem); line-height: 1.02; letter-spacing: -0.032em; transition: transform 500ms var(--ease-out), opacity 300ms ease; }
.row__meta { color: var(--text-2); text-align: right; }
.row__meta b { display: block; color: var(--text); }
.row__arrow { justify-self: end; transition: transform 400ms var(--ease-out); }
.row__thumb { display: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; margin-left: 14px; padding: 5px 9px; vertical-align: middle; font-size: .75rem; line-height: 1; letter-spacing: 0; background: var(--accent); color: var(--on-accent); transform: translateY(-.3em); white-space: nowrap; }
.badge .icon { width: 11px; height: 11px; stroke-width: 3; }
.facts dd .ext { stroke: currentColor; width: 14px; height: 14px; margin: 0 0 0 4px; vertical-align: -2px; }
.badge--line { background: none; color: var(--text-2); box-shadow: inset 0 0 0 1.5px currentColor; }
@media (hover: hover) and (pointer: fine) {
  .rows:has(.row:hover) .row:not(:hover) .row__title { opacity: .22; }
  .row:hover .row__title { transform: translateX(16px); }
  .row:hover .row__arrow { transform: rotate(45deg); }
}

/* Prévia que segue o cursor */
.preview {
  position: fixed; left: 0; top: 0; z-index: var(--z-preview); pointer-events: none;
  width: clamp(260px, 24vw, 400px); aspect-ratio: 4 / 3;
  opacity: 0; transition: opacity 240ms var(--ease-out);
  overflow: hidden; background: var(--muted);
}
.preview[data-on="true"] { opacity: 1; }
.preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transition: clip-path 560ms var(--ease-in-out); }
.preview img[data-active="true"] { clip-path: inset(0 0 0 0); z-index: 1; }
@media (hover: none), (pointer: coarse) { .preview { display: none; } }

/* ---------- Faixa de clientes ---------- */
.marquee { border-block: 2px solid var(--line); overflow: hidden; padding-block: 18px; }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-size: clamp(1.25rem, 2vw, 1.75rem); letter-spacing: -0.015em; white-space: nowrap; }
.marquee__item .icon { width: .7em; height: .7em; stroke: var(--link); stroke-width: 2.5; }
@media (hover: hover) { .marquee:hover .marquee__track { animation-play-state: paused; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sobre (azul) ---------- */
.about { background: var(--accent); color: var(--on-accent); padding-block: clamp(96px, 12vw, 176px); }
.about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.about__label { grid-column: 1 / span 2; padding-top: .7em; }
.about__lead { grid-column: 3 / span 10; font-size: clamp(1.75rem, 3.4vw, 3.25rem); line-height: 1.12; letter-spacing: -0.025em; }
.about__more { grid-column: 3 / span 10; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 24px; margin-top: clamp(48px, 6vw, 96px); padding-top: 24px; border-top: 2px solid currentColor; }
.about__body { grid-column: 1 / span 5; max-width: 52ch; }
.about__skills { grid-column: 7 / span 4; }
.about__skills ul { margin-top: 12px; }
.about__skills li { padding-block: 6px; border-bottom: 1px solid rgba(255, 255, 255, .4); }

/* ---------- Experiência ---------- */
.exp { padding-block: clamp(96px, 12vw, 176px) clamp(64px, 8vw, 112px); }
.jobs { margin-top: clamp(32px, 4vw, 56px); border-bottom: 2px solid var(--line); }
.job { display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1fr) 200px; gap: 24px; align-items: baseline; padding-block: 22px; border-top: 2px solid var(--line); }
.job__period { color: var(--text-2); font-variant-numeric: tabular-nums; }
.job__note { color: var(--text-2); text-align: right; }
.lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(48px, 6vw, 80px); }
.lists li { padding-block: 3px; }
.lists h3 { color: var(--text-2); margin-bottom: 10px; }

/* ---------- Contato ---------- */
.contact { background: var(--inverse); color: var(--text-inverse); padding-block: clamp(96px, 12vw, 176px) 32px; }
.contact .muted { color: color-mix(in srgb, var(--text-inverse) 64%, transparent); }
.contact__mail { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: clamp(24px, 3vw, 40px); padding-bottom: clamp(32px, 4vw, 48px); border-bottom: 2px solid currentColor; }
.mail { font-size: clamp(1.875rem, 6.4vw, 6rem); line-height: 1.05; letter-spacing: -0.035em; overflow-wrap: anywhere; }
.copy-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 2px solid currentColor; transition: transform 140ms var(--ease-out), background-color 200ms ease, color 200ms ease; }
.copy-btn .icon { width: 20px; height: 20px; }
.copy-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .copy-btn:hover { background: var(--text-inverse); color: var(--inverse); } }
.contact__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.contact__links a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 10px; }
.contact__links a .icon { transition: transform 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .contact__links a:hover .icon { transform: translate(3px, -3px); } }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(80px, 10vw, 160px); }
.foot button { display: inline-flex; align-items: center; gap: 8px; }
.foot button .icon { width: 16px; height: 16px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: var(--z-toast);
  padding: 12px 18px; background: var(--accent); color: var(--on-accent);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  transition: transform 260ms var(--ease-out), opacity 200ms ease;
}
.toast[data-on="true"] { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Case ---------- */
.case__head { padding-block: clamp(24px, 3vw, 40px) clamp(40px, 5vw, 72px); }
.crumb { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); padding-block: 6px; }
.crumb .icon { width: 16px; height: 16px; transition: transform 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .crumb:hover { color: var(--text); } .crumb:hover .icon { transform: translateX(-4px); } }
.case__title { margin-top: clamp(40px, 6vw, 96px); max-width: 16ch; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(40px, 5vw, 72px); border-top: 2px solid var(--line); padding-top: 16px; }
.facts dt { color: var(--text-2); margin-bottom: 6px; }
.facts dd .icon { width: 14px; height: 14px; stroke: var(--link); stroke-width: 3; vertical-align: -1px; margin-right: 4px; }

.case__hero { position: relative; overflow: hidden; background: var(--muted); height: min(92svh, 56.25vw); }
.case__hero img { width: 100%; height: 100%; object-fit: cover; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .case__hero img { animation: drift linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    @keyframes drift { to { transform: translateY(12%) scale(1.06); } }
  }
}

.narr { padding-block: clamp(80px, 10vw, 160px); display: grid; gap: clamp(56px, 7vw, 104px); }
.narr__block { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.narr__label { grid-column: 1 / span 3; color: var(--text-2); position: sticky; top: calc(var(--header-h) + 24px); align-self: start; padding-top: .35em; }
.narr__text { grid-column: 4 / span 8; font-size: clamp(1.375rem, 2.4vw, 2.25rem); line-height: 1.22; letter-spacing: -0.02em; max-width: 30ch; }

.gallery { display: grid; gap: clamp(24px, 3vw, 40px); padding-bottom: clamp(96px, 12vw, 176px); }
.shot { display: grid; gap: 12px; }
.shot__img { overflow: hidden; background: var(--muted); }
.shot__img img { width: 100%; height: 100%; object-fit: cover; }
.shot--full .shot__img { aspect-ratio: 16 / 9; }
.duo { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 3vw, 40px); align-items: start; }
.duo .shot:nth-child(1) .shot__img { aspect-ratio: 4 / 3; }
.duo .shot:nth-child(2) { margin-top: clamp(64px, 14vw, 240px); }
.duo .shot:nth-child(2) .shot__img { aspect-ratio: 4 / 5; }
.shot figcaption { color: var(--text-2); }

/* Storyboard: película com rolagem lateral */
.film { padding-bottom: clamp(96px, 12vw, 176px); }
.film__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.film__ctrl { display: flex; align-items: center; gap: 12px; }
.film__ctrl button { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--line); transition: transform 140ms var(--ease-out), background-color 200ms ease, color 200ms ease, opacity 200ms ease; }
.film__ctrl button:active { transform: scale(0.95); }
.film__ctrl button:disabled { opacity: .3; cursor: default; }
@media (hover: hover) and (pointer: fine) { .film__ctrl button:not(:disabled):hover { background: var(--inverse); color: var(--text-inverse); } }
.film__count { font-variant-numeric: tabular-nums; min-width: 5ch; text-align: center; }
.film__track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain;
}
.film__track::-webkit-scrollbar { display: none; }
.film__track.is-drag { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
@media (pointer: fine) { .film__track { cursor: grab; } }
.frame { flex: none; width: min(78vw, 920px); scroll-snap-align: start; display: grid; gap: 14px; user-select: none; }
.frame__img { aspect-ratio: 1536 / 660; overflow: hidden; background: var(--muted); }
.frame__img img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.frame figcaption { display: grid; grid-template-columns: 40px 1fr; gap: 12px; max-width: 60ch; }

/* Próximo case */
.next { display: block; background: var(--inverse); color: var(--text-inverse); }
.next__in { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-block: clamp(80px, 10vw, 160px); }
.next__label { display: block; margin-bottom: 16px; color: color-mix(in srgb, var(--text-inverse) 64%, transparent); }
.next__title { display: block; transition: transform 500ms var(--ease-out); }
.next .icon { width: clamp(48px, 7vw, 104px); height: clamp(48px, 7vw, 104px); stroke-width: 1.5; transition: transform 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .next:hover .next__title { transform: translateX(16px); } .next:hover .icon { transform: translateX(12px); } }
.casefoot { background: var(--accent); color: var(--on-accent); }
.casefoot .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 20px; flex-wrap: wrap; }

/* ---------- Troca de idioma ---------- */
main { transition: opacity 160ms ease, filter 160ms ease; }
main.is-swapping { opacity: 0; filter: blur(4px); }

/* ---------- View Transitions ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 360ms; animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }
::view-transition-group(case-media) { animation-duration: 640ms; animation-timing-function: cubic-bezier(0.77, 0, 0.175, 1); z-index: 50; }
::view-transition-old(case-media), ::view-transition-new(case-media) { height: 100%; object-fit: cover; }
::view-transition-group(site-header) { animation: none; }
html.vt-theme::view-transition-old(root), html.vt-theme::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.vt-theme .header { view-transition-name: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1023px) {
  .hero__statement { grid-column: 1 / -1; }
  .hero__aside { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: end; }
  .row { grid-template-columns: 40px minmax(0, 1fr) 32px; }
  .row__meta { display: none; }
  .about__label { grid-column: 1 / -1; padding-top: 0; }
  .about__lead, .about__more { grid-column: 1 / -1; }
  .job { grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr); }
  .job__note { display: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .narr__label { grid-column: 1 / -1; position: static; }
  .narr__text { grid-column: 1 / -1; }
}
@media (hover: none), (pointer: coarse) {
  .row { grid-template-columns: 40px minmax(0, 1fr) 32px; row-gap: 16px; }
  .row__meta { display: none; }
  .row__thumb { display: block; grid-column: 1 / -1; aspect-ratio: 16 / 10; overflow: hidden; background: var(--muted); }
  .row__thumb img { width: 100%; height: 100%; object-fit: cover; }
}
@media (max-width: 767px) {
  .hero { min-height: 0; gap: 40px; padding-top: 24px; padding-bottom: 56px; }
  .wordmark { order: -1; line-height: .9; }
  .wordmark__text { flex-direction: column; }
  .wm-space { display: none; }
  .hero__aside { grid-template-columns: 1fr; gap: 16px; }
  .index__head { margin-bottom: 24px; }
  .row { grid-template-columns: 32px minmax(0, 1fr) 24px; gap: 12px; }
  .row__arrow.icon { width: 20px; height: 20px; }
  .badge { margin-left: 8px; }
  .about__more { grid-template-columns: 1fr; }
  .about__body, .about__skills { grid-column: 1 / -1; }
  .job { grid-template-columns: 1fr; gap: 2px; padding-block: 16px; }
  .lists { grid-template-columns: 1fr; }
  .contact__links { grid-template-columns: 1fr; gap: 0; }
  .contact__links a { border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent); padding-block: 16px; }
  .case__hero { height: 62svh; }
  .duo { grid-template-columns: 1fr; }
  .duo .shot:nth-child(2) { margin-top: 0; }
  .duo .shot .shot__img { aspect-ratio: 4 / 3 !important; }
  .frame { width: 86vw; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee__group + .marquee__group { display: none; }
  .row__title, .row__arrow, .next__title, .next .icon, .brand .ast, .preview img, .menu, .menu__links li, .header { transition: none !important; }
  .row:hover .row__title, .next:hover .next__title { transform: none; }
  .menu__links li { opacity: 1; transform: none; }
  .film__track { scroll-behavior: auto; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Preserve the original proportions of identity presentation boards. */
.gallery--natural .shot--full .shot__img { aspect-ratio: auto; }
.gallery--natural .shot__img img { height: auto; }
