/* Layout: editorial single column on a dark "screening room" ground; viewfinder details (REC, timecode, crop marks) as the subject's own marks. */
:root {
  --bg: #0e0d0c;          /* warm black */
  --surface: #171614;     /* raised panels */
  --line: #2b2925;        /* hairlines */
  --text: #ece7df;        /* paper white */
  --muted: #9b958b;       /* secondary text */
  --accent: #e2a24a;      /* tungsten light */
  --rec: #e5484d;         /* record red, used tiny */

  --font-display: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "DM Sans", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.625rem;
  --step-3: clamp(2rem, 4.2vw, 3.25rem);
  --step-4: clamp(2.4rem, 5.6vw, 4.5rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1200px;
  --header-h: 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--bg); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.display { font-family: var(--font-display); font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
.site-header.is-solid { background: rgba(14, 13, 12, 0.92); border-bottom-color: var(--line); backdrop-filter: blur(8px); }
.header-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: 0.01em; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 3px rgba(229, 72, 77, .18); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: var(--step--1); letter-spacing: .04em; text-transform: uppercase; padding: 6px 0; position: relative; }
.nav a:hover { color: var(--text); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang {
  font-family: var(--font-mono); font-size: var(--step--1);
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; cursor: pointer; display: flex; gap: 6px; align-items: center;
  transition: border-color .2s ease, transform .15s ease;
}
.lang:hover { border-color: var(--muted); }
.lang:active { transform: scale(.97); }
.lang [data-lang].is-on { color: var(--text); }
.lang-sep { color: var(--line); }
.menu-btn { display: none; background: transparent; border: 1px solid var(--line); border-radius: 999px; width: 40px; height: 36px; cursor: pointer; position: relative; }
.menu-bars, .menu-bars::before, .menu-bars::after { position: absolute; left: 50%; width: 16px; height: 1.5px; background: var(--text); transform: translateX(-50%); content: ""; transition: transform .2s ease, opacity .2s ease; }
.menu-bars { top: 50%; }
.menu-bars::before { top: -5px; }
.menu-bars::after { top: 5px; }
.menu-btn[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-bars::before { transform: translate(-50%, 5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bars::after { transform: translate(-50%, -5px) rotate(-45deg); }

@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { font-size: var(--step-0); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .header-actions { margin-left: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 500; font-size: var(--step-0);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s cubic-bezier(.3,.7,.4,1.5), background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #1a1206; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: var(--step--1); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #ecb466; }
  .btn-ghost:hover { border-color: var(--muted); }
}
@media (prefers-reduced-motion: reduce) { .btn:active, .lang:active { transform: none; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.kicker { color: var(--accent); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 20px; }
.hero h1 { font-size: var(--step-4); }
.lede { color: var(--muted); font-size: var(--step-1); max-width: 60ch; margin: 28px 0 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-photo { margin: 0; }
.frame { position: relative; aspect-ratio: 4 / 5; background: var(--surface); border-radius: 4px; overflow: hidden; }
.photo-slot { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .1em;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px),
    radial-gradient(120% 80% at 30% 20%, #2a241c 0%, var(--surface) 60%);
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.frame::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, transparent 18%, transparent 82%, rgba(0,0,0,.35) 100%); }
.corner { position: absolute; width: 22px; height: 22px; border: 1.5px solid var(--text); opacity: .7; z-index: 2; }
.corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.frame-hud { position: absolute; left: 44px; right: 44px; top: 18px; display: flex; justify-content: space-between; font-size: 12px; color: var(--text); z-index: 2; font-variant-numeric: tabular-nums; }
.rec-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--rec); margin-right: 4px; vertical-align: 1px; animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 420px; }
}

/* ---------- Stats ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 auto; }
.stat { padding: 32px 24px 32px 0; display: flex; flex-direction: column-reverse; gap: 6px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat dd { margin: 0; font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat dd .suffix { color: var(--accent); font-size: .6em; margin-left: 2px; }
.stat dt { color: var(--muted); font-size: var(--step--1); max-width: 26ch; }
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0 0; }
.section-head { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; align-items: baseline; margin-bottom: 40px; }
.section-no { color: var(--accent); font-size: var(--step--1); }
.section-head h2 { font-size: var(--step-3); }
.section-intro { grid-column: 2; color: var(--muted); max-width: 60ch; margin: 14px 0 0; }
@media (max-width: 560px) { .section-head { grid-template-columns: 1fr; } .section-intro { grid-column: 1; } .section-no { margin-bottom: 6px; } }

/* ---------- Work grid ---------- */
.work-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
.card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: var(--surface); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.thumb-ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 16px 18px; }
.thumb-ph .ph-client { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; color: var(--text); max-width: 80%; }
.thumb-ph .ph-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.thumb::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.06); border-radius: 4px; pointer-events: none; }
.card-meta { display: flex; gap: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.card-meta .dot { color: var(--line); }
.card h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); line-height: 1.15; margin: 0; text-wrap: balance; }
.card .card-role { color: var(--muted); font-size: var(--step--1); margin: 0; }
.card .card-role strong { color: var(--text); font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  .card:hover .thumb img { transform: scale(1.03); }
  .card:hover h3 { color: var(--accent); }
}
@media (max-width: 720px) { .work-grid { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 5vw, 72px); }
.about-grid .section-head { grid-column: 1 / -1; }
.about-text p { margin: 0 0 1.1em; max-width: 62ch; color: var(--text); }
.about-text p:first-child { font-size: var(--step-1); }
.small-title { font-size: var(--step--1); color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; font-weight: 400; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 104px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .tl-period { font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.timeline .tl-place { margin: 0; font-weight: 500; }
.timeline .tl-role { margin: 2px 0 0; color: var(--muted); font-size: var(--step--1); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .timeline-block { margin-top: 24px; } }

/* ---------- Process ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 28px 24px 8px 0; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step-no { font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent); }
.step h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); margin: 10px 0 12px; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 960px) {
  .process { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Brands marquee (movido por JS: anda sozinho, pausa no hover, arrasta) ---------- */
.brands-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.brands-head .section-head { margin-bottom: 32px; }
.brands-actions { display: flex; align-items: center; gap: 16px; }
.brands-hint { margin: 0; font-size: 12px; color: var(--muted); }
.marquee {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee.is-dragging { cursor: grabbing; }
.marquee-track { list-style: none; margin: 0; padding: 36px 0; display: flex; align-items: center; width: max-content; will-change: transform; }
.marquee-track li { padding: 0 clamp(28px, 4vw, 56px); display: flex; align-items: center; }
.marquee-track img { height: clamp(26px, 3.2vw, 40px); width: auto; max-width: none; opacity: .6; transition: opacity .25s ease, transform .25s ease; pointer-events: none; -webkit-user-drag: none; }
.marquee-track li.is-tall img { height: clamp(36px, 4.4vw, 56px); }
@media (hover: hover) and (pointer: fine) { .marquee-track li:hover img { opacity: 1; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { cursor: default; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; row-gap: 24px; transform: none !important; }
  .marquee-track li[aria-hidden="true"] { display: none; }
  #marquee-toggle, .brands-hint { display: none; }
}

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(64px, 9vw, 120px); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-list li:nth-child(odd) { border-right: 1px solid var(--line); }
.contact-link { display: flex; flex-direction: column; gap: 6px; padding: 28px 24px 28px 0; text-decoration: none; }
.contact-list li:nth-child(even) .contact-link { padding-left: 24px; }
.contact-label { font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.contact-value { font-family: var(--font-display); font-size: clamp(1.4rem, 2.8vw, 2.1rem); line-height: 1.15; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .contact-link:hover .contact-value { color: var(--accent); } }
@media (max-width: 640px) {
  .contact-list { grid-template-columns: 1fr; }
  .contact-list li:nth-child(odd) { border-right: 0; }
  .contact-list li:nth-child(even) .contact-link { padding-left: 0; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 24px; padding-bottom: 32px; color: var(--muted); font-size: var(--step--1); }
.footer-inner p { margin: 0; }

/* ---------- Case page ---------- */
.case { padding: clamp(32px, 6vw, 72px) 0 clamp(64px, 9vw, 120px); }
.back { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); text-decoration: none; font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .06em; }
.back:hover { color: var(--text); }
.case-head { margin: 28px 0 32px; }
.case-head .kicker { margin-bottom: 14px; }
.case-head h1 { font-size: var(--step-4); max-width: 18ch; }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--surface); border-radius: 4px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .1em;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px), var(--surface); }
.case-body { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 5vw, 72px); margin-top: 48px; }
.sheet { margin: 0; align-self: start; border-top: 1px solid var(--line); }
.sheet div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.sheet dt { font-family: var(--font-mono); font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.sheet dd { margin: 4px 0 0; }
.story h2 { font-family: var(--font-mono); font-weight: 400; font-size: var(--step--1); color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px; }
.story p { margin: 0 0 36px; font-size: var(--step-1); max-width: 62ch; }
.story section:last-child p { margin-bottom: 0; }
.next { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 64px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; }
.next .next-label { font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.next .next-title { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.1; text-wrap: balance; }
.next .arrow { font-size: var(--step-3); color: var(--accent); transition: transform .2s ease; }
@media (hover: hover) and (pointer: fine) { .next:hover .arrow { transform: translateX(6px); } .next:hover .next-title { color: var(--accent); } }
@media (max-width: 860px) { .case-body { grid-template-columns: 1fr; } }

/* ---------- Fundo: grade técnica + grão + luz de set ---------- */
body { position: relative; }
.bg-grid, .bg-glow, .bg-grain { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.bg-grid {
  background-image:
    linear-gradient(rgba(236,231,223,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236,231,223,.035) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 20%, #000 30%, transparent 85%);
          mask-image: radial-gradient(120% 90% at 50% 20%, #000 30%, transparent 85%);
}
.bg-glow {
  background: radial-gradient(520px circle at var(--gx, 70%) var(--gy, 18%), rgba(226,162,74,.10), transparent 60%);
  transition: background-position .2s;
}
.bg-grain {
  opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); }
  60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } 100% { transform: translate(0,0); }
}
.site-header, main, .site-footer { position: relative; z-index: 1; }
.site-header { z-index: 50; }
@media (prefers-reduced-motion: reduce) { .bg-grain { animation: none; } }

/* Marcas de enquadramento nos títulos de seção */
.section-head { position: relative; }
.section .section-head::before, .section .section-head::after {
  content: ""; position: absolute; width: 14px; height: 14px; border-color: var(--line); border-style: solid; opacity: .9;
}
.section .section-head::before { top: -18px; left: -18px; border-width: 1px 0 0 1px; }
.section .section-head::after { top: -18px; right: 0; border-width: 1px 1px 0 0; }
@media (max-width: 560px) { .section .section-head::before { left: 0; } }

/* ---------- Barra de progresso (timeline) ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(236,231,223,.10) 0 1px, transparent 1px 40px); }
.progress-bar { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.progress-bar::after { content: ""; position: absolute; right: 0; top: -3px; width: 2px; height: 9px; background: var(--rec); }

/* ---------- Abertura: palavras entram em sequência ---------- */
.hero h1 .w { display: inline-block; animation: wordIn .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 45ms + 120ms); }
@keyframes wordIn { from { opacity: 0; transform: translateY(.35em); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .hero h1 .w { animation: none; } }

/* ---------- Revelar ao rolar ---------- */
.reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal-ready .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Cards com inclinação ---------- */
.card .thumb { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s ease; will-change: transform; }
.card .thumb::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.12), transparent 45%); }
@media (hover: hover) and (pointer: fine) { .card:hover .thumb::before { opacity: 1; } .card { cursor: none; } }
.thumb img { position: absolute; inset: 0; z-index: 1; }

/* ---------- Cursor "Ver" ---------- */
.cursor-tag { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none;
  padding: 8px 14px; border-radius: 999px; background: var(--accent); color: #1a1206; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  transform: translate(-50%, -50%) scale(.4); opacity: 0; transition: opacity .2s ease, transform .2s ease; white-space: nowrap; }
.cursor-tag.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor-tag .play { font-size: 10px; }
@media (hover: none), (pointer: coarse) { .cursor-tag { display: none; } }

/* ---------- Botões magnéticos ---------- */
.magnetic { transition: transform .25s cubic-bezier(.2,.7,.2,1), background-color .2s ease, border-color .2s ease, color .2s ease; }

/* ---------- Mais trabalhos ---------- */
.more-work { margin-top: 56px; }
.more-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.more-list a { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.more-list .ml-title { font-family: var(--font-display); font-size: var(--step-1); }
.more-list .ml-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
@media (hover: hover) and (pointer: fine) { .more-list a:hover .ml-title { color: var(--accent); } }

/* ---------- Foto interativa: tilt + parallax + quadro de foco (AF) ---------- */
.hero-photo { perspective: 1000px; }
.hero-photo .frame { transform: rotateX(var(--prx, 0deg)) rotateY(var(--pry, 0deg)); transition: transform .5s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; }
.photo-slot img { transform: translate(var(--ptx, 0px), var(--pty, 0px)) scale(var(--ps, 1.04)); transition: transform .6s cubic-bezier(.2,.7,.2,1); animation: kenburns 18s ease-in-out infinite alternate; }
.hero-photo.is-active .photo-slot img { animation-play-state: paused; }
@keyframes kenburns { from { scale: 1; } to { scale: 1.05; } }
.hero-photo .corner { transition: transform .4s cubic-bezier(.2,.7,.2,1), opacity .3s ease; }
.hero-photo.is-active .corner.tl { transform: translate(10px, 10px); }
.hero-photo.is-active .corner.tr { transform: translate(-10px, 10px); }
.hero-photo.is-active .corner.bl { transform: translate(10px, -10px); }
.hero-photo.is-active .corner.br { transform: translate(-10px, -10px); }
.af-box { position: absolute; z-index: 3; left: 0; top: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; pointer-events: none;
  border: 1.5px solid rgba(236,231,223,.85); opacity: 0; transform: translate(var(--afx, 50%), var(--afy, 40%)) scale(1.4);
  transition: opacity .25s ease, border-color .25s ease, transform .18s ease-out; }
.af-box::before, .af-box::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; }
.af-label { position: absolute; top: -18px; left: 0; font-size: 10px; letter-spacing: .1em; color: var(--text); }
.hero-photo.is-active .af-box { opacity: 1; transform: translate(var(--afx), var(--afy)) scale(1); }
.hero-photo.is-locked .af-box { border-color: var(--accent); }
.hero-photo.is-locked .af-label { color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .photo-slot img { animation: none; }
  .hero-photo .frame, .photo-slot img, .hero-photo .corner { transition: none; }
}
