/* ==========================================================
   VARIÁVEIS — brand manual joão.films
========================================================== */
:root {
    --ink:   #161513;
    --paper: #E8E1D4;
    --rust:  #A03828;
    --stone: #4A3E36;

    --f-display: 'Hubot Sans', 'Arial Narrow', Arial, sans-serif;
    --f-accent:  'Jost', Georgia, serif;
    --f-body:    'Jost', sans-serif;
    --f-mono:    'JetBrains Mono', monospace;

    --gap: 12px;
    --radius: 0px;

    --page-x: clamp(24px, 5vw, 80px);
}

/* ==========================================================
   RESET
========================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { cursor: pointer; }
ul, ol { list-style: none; }

/* ==========================================================
   BASE
========================================================== */
body {
    background: var(--ink);
    color: var(--paper);
    font-family: var(--f-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================
   SISTEMA DE LOGO (reutilizado em todo o site)
========================================================== */
.logo-joao {
    font-family: var(--f-display);
    font-weight: 700;
    font-stretch: condensed;
    letter-spacing: -0.05em;
}
.logo-sep  { color: var(--rust); }
.logo-films {
    font-family: var(--f-accent);
    font-style: italic;
    font-weight: 300;
    letter-spacing: -0.06em;
}

/* ==========================================================
   GRAIN OVERLAY — efeito película
========================================================== */
.grain {
    position: fixed;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 9000;
    animation: grain-shift 9s steps(12) infinite;
}
@keyframes grain-shift {
    0%,100% { transform: translate(0,0); }
    10%  { transform: translate(-6%,-10%); }
    20%  { transform: translate(-14%, 5%); }
    30%  { transform: translate( 7%,-25%); }
    40%  { transform: translate(-5%, 24%); }
    50%  { transform: translate(-16%, 9%); }
    60%  { transform: translate(16%,  0%); }
    70%  { transform: translate( 0%, 14%); }
    80%  { transform: translate( 3%, 34%); }
    90%  { transform: translate(-10%,10%); }
}

/* ==========================================================
   VIDEO MODAL
========================================================== */
.modal {
    position: fixed;
    inset: 0;
    background: oklch(10% 0.008 40);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .4s ease, visibility .4s;
}
.modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Área de projeção — o vídeo ocupa o espaço disponível acima da barra */
.modal-stage {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 4vh, 56px) clamp(24px, 4vw, 56px) 20px;
    overflow: hidden;
}

.modal-content {
    width: 100%;
    max-width: 1200px;
}
.modal-content iframe {
    width: 100%;
    display: block;
    border: none;
}
.modal-content.landscape iframe { aspect-ratio: 16/9; }
.modal-content.portrait {
    max-width: min(380px, calc((100svh - 64px - clamp(44px, 8vh, 76px)) * 9 / 16));
    margin: 0 auto;
}
.modal-content.portrait iframe { aspect-ratio: 9/16; }

/* Faixa cinematográfica — logo · título · duração · fechar */
.modal-bar {
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
    border-top: 1px solid oklch(85% 0.008 60 / .12);
}
.modal-bar-logo {
    display: flex;
    align-items: center;
    padding: 0 28px;
    border-right: 1px solid oklch(85% 0.008 60 / .08);
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}
.modal-bar-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    overflow: hidden;
}
.modal-bar-title {
    font-family: var(--f-display);
    font-weight: 700;
    font-stretch: condensed;
    font-size: 11px;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--paper);
    opacity: .75;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.modal-bar-dur {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 28px;
    border-left: 1px solid oklch(85% 0.008 60 / .08);
    flex-shrink: 0;
}
.modal-bar-dur-label {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .22em;
    color: var(--paper);
    opacity: .5;
}
.modal-bar-dur-value {
    font-family: var(--f-mono);
    font-size: 16px;
    letter-spacing: .08em;
    color: var(--paper);
    opacity: .8;
}
.modal-close {
    width: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-left: 1px solid oklch(85% 0.008 60 / .08);
    color: var(--paper);
    font-size: 26px;
    line-height: 1;
    opacity: .4;
    transition: opacity .2s, background .2s;
    font-family: var(--f-display);
    cursor: pointer;
}
.modal-close:hover {
    opacity: 1;
    background: oklch(85% 0.008 60 / .04);
}

/* Botão flutuante WhatsApp — aparece ao abrir um vídeo */
.whatsapp-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 10001;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,.45);
    opacity: 0;
    transform: scale(.65) translateY(20px);
    pointer-events: none;
    transition: opacity .4s ease, transform .4s cubic-bezier(0.22, 1, 0.36, 1), background .2s;
    text-decoration: none;
}
.whatsapp-fab.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}
.whatsapp-fab:hover { background: #1ebe5d; }
.whatsapp-fab svg {
    width: 28px;
    height: 28px;
    fill: oklch(98% 0.005 200);
}

/* ==========================================================
   NAV
========================================================== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px var(--page-x);
    transition: background .3s, padding .3s;
}
.nav.scrolled {
    background: rgba(22,21,19,.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 18px var(--page-x);
}

.nav-logo {
    font-size: 20px;
    text-decoration: none;
    line-height: 1;
    animation: nav-logo-in 0.5s ease-out 1.65s backwards;
}
@keyframes nav-logo-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.nav-logo .logo-joao {
    font-size: 20px;
    font-weight: 700;
}
.nav-logo .logo-films {
    font-size: 20px;
}

.nav-links {
    display: flex;
    gap: 44px;
}
.nav-links a {
    font-family: var(--f-accent);
    font-style: italic;
    font-weight: 300;
    font-size: 14px;
    letter-spacing: -.02em;
    text-decoration: none;
    opacity: .65;
    transition: opacity .2s;
}
.nav-links a:hover { opacity: 1; }

.nav-links a.nav-cta {
    color: var(--paper);
    background: var(--rust);
    opacity: 1;
    padding: 6px 14px;
    transition: background .2s, color .2s;
}
.nav-links a.nav-cta:hover {
    background: oklch(35% 0.12 28);
    color: var(--paper);
}

/* Hamburger — oculto por padrão, visível em ≤480px */
.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}
.nav-burger span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--paper);
    transition: transform .3s ease, opacity .3s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-burger:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }

/* Overlay mobile */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: var(--ink);
    z-index: 9500;
    display: flex;
    align-items: flex-end;
    padding: 0 28px 12vh;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .35s ease, visibility .35s;
}
.nav-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.nav-overlay-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nav-overlay-link {
    font-family: var(--f-display);
    font-weight: 700;
    font-stretch: condensed;
    font-size: clamp(64px, 18vw, 96px);
    letter-spacing: -.04em;
    color: var(--paper);
    text-decoration: none;
    line-height: .92;
    opacity: .55;
    transition: opacity .2s;
}
.nav-overlay-link:hover { opacity: 1; }
.nav-overlay-link:focus-visible { opacity: 1; outline: 2px solid var(--rust); outline-offset: 4px; }
.nav-overlay-link.nav-overlay-cta { color: var(--rust); opacity: 1; }

/* Stagger links in when overlay opens */
.nav-overlay.open .nav-overlay-link {
    animation: overlay-link-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.nav-overlay.open .nav-overlay-link:nth-child(1) { animation-delay: 0.06s; }
.nav-overlay.open .nav-overlay-link:nth-child(2) { animation-delay: 0.16s; }
.nav-overlay.open .nav-overlay-link:nth-child(3) { animation-delay: 0.26s; }

@keyframes overlay-link-in {
    from { opacity: 0; transform: translateY(28px); }
}

/* ==========================================================
   HERO — vinheta 4 atos: preto → logo → linha rust → flash
========================================================== */
.hero {
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding: clamp(80px, 12svh, 120px) var(--page-x) clamp(8svh, 10svh, 12svh);
    position: relative;
}

/* Ato 4: flash branco */
.hero-flash {
    position: absolute;
    inset: 0;
    background: var(--paper);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    animation: hero-flash 0.45s ease-out 1.2s forwards;
}

.hero-content {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-info {
    display: flex;
    flex-direction: column;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .12em;
    color: var(--paper);
    min-width: 280px;
    opacity: .55;
}

.hero-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(232, 225, 212, 0.2);
    gap: 24px;
    animation: hero-row-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.hero-info-row:nth-child(1) { animation-delay: 1.50s; }
.hero-info-row:nth-child(2) { animation-delay: 1.62s; }
.hero-info-row:nth-child(3) { animation-delay: 1.74s; }
.hero-info-row:nth-child(4) { animation-delay: 1.86s; }

.hero-info-row:first-child {
    border-top: 1px dashed rgba(232, 225, 212, 0.2);
}

.hero-info-label {
    opacity: .6;
    white-space: nowrap;
}

.hero-info-value {
    text-align: right;
    white-space: nowrap;
}

/* Ato 2: logo sobe do chão — sem opacity, sempre visível.
   Se a animação falhar: CSS tem transform: none → logo aparece no lugar certo */
.hero-logo {
    font-size: clamp(72px, 14vw, 220px);
    line-height: .92;
    user-select: none;
    animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s backwards;
}
.hero-logo .logo-joao { font-size: inherit; font-weight: 700; }
.hero-logo .logo-films { font-size: inherit; }

.hero-base {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

/* Ato 3: linha rust cresce.
   Se a animação falhar: CSS tem transform: none → linha aparece em largura total */
.hero-rule {
    width: 80px;
    height: 1px;
    background: var(--rust);
    transform-origin: left;
    flex-shrink: 0;
    animation: rule-grow 0.85s cubic-bezier(0.76, 0, 0.24, 1) 0.85s backwards;
}

/* opacity: .55 é o estado final E o fallback se a animação não rodar */
.hero-sub {
    font-family: var(--f-accent);
    font-style: italic;
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: .04em;
    opacity: .55;
    animation: hero-fade 0.7s ease-out 1.3s backwards;
}

@keyframes hero-rise {
    from { transform: translateY(24px); }
    to   { transform: translateY(0); }
}
@keyframes rule-grow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}
@keyframes hero-fade {
    from { opacity: 0; }
    to   { opacity: .55; }
}
@keyframes hero-flash {
    0%   { opacity: 0; }
    20%  { opacity: .12; }
    100% { opacity: 0; }
}
@keyframes hero-row-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

/* ==========================================================
   MARQUEE — carrossel de marcas
========================================================== */
.marquee-wrap {
    border-top: 1px solid rgba(232,225,212,.08);
    border-bottom: 1px solid rgba(232,225,212,.08);
    overflow: hidden;
    padding: 28px 0;
}
.marquee-track { overflow: hidden; }
.marquee-inner {
    display: inline-flex;
    align-items: center;
    gap: 72px;
    white-space: nowrap;
    animation: marquee-scroll 55s linear infinite;
}
.marquee-wrap:hover .marquee-inner {
    animation-play-state: paused;
}
@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.marquee-item img {
    height: 28px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .4;
    transition: opacity .3s;
}
.marquee-item img:hover { opacity: .85; }

/* ==========================================================
   WORKS / GALERIA
========================================================== */
.works {
    padding: clamp(64px, 8vh, 96px) var(--page-x);
}
.section-head {
    margin-bottom: 44px;
}
.section-tag {
    font-family: var(--f-display);
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--rust);
    font-weight: 700;
}

/* --- Grid 4 colunas: col 1 = 2 landscape empilhados, cols 2-4 = 3 portrait (5 vídeos) --- */
.gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    grid-template-rows: 260px 260px;
    gap: var(--gap);
}

.video-card:nth-child(1) { grid-column: 1; grid-row: 1; }
.video-card:nth-child(2) { grid-column: 2; grid-row: 1 / 3; }
.video-card:nth-child(3) { grid-column: 3; grid-row: 1 / 3; }
.video-card:nth-child(4) { grid-column: 4; grid-row: 1 / 3; }
.video-card:nth-child(5) { grid-column: 1; grid-row: 2; }

/* --- Card de vídeo --- */
.video-card {
    position: relative;
    overflow: hidden;
    background: var(--stone);
    cursor: pointer;
}
.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Concept 02: P&B que revela cor no hover */
    filter: grayscale(100%);
    transition: filter .45s ease, transform .45s ease;
    will-change: filter;
}
.video-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.04);
}

/* Overlay */
.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(22,21,19,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .35s;
}
.video-card:hover .card-overlay {
    background: rgba(22,21,19,.28);
}

/* Monograma de play */
.card-play {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 36px;
    color: var(--paper);
    letter-spacing: -.05em;
    font-stretch: condensed;
    opacity: 0;
    transform: scale(.85);
    transition: opacity .3s, transform .3s;
    line-height: 1;
}
.card-play .logo-sep { color: var(--rust); }
.video-card:hover .card-play {
    opacity: 1;
    transform: scale(1);
}

/* Título do card */
.card-title {
    position: absolute;
    bottom: 14px;
    left: 16px;
    font-family: var(--f-accent);
    font-style: italic;
    font-weight: 300;
    font-size: 12px;
    letter-spacing: -.01em;
    color: var(--paper);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s, transform .3s;
}
.video-card:hover .card-title {
    opacity: .75;
    transform: translateY(0);
}

/* ==========================================================
   STATS
========================================================== */
.stats {
    padding: 24px 0;
    background: var(--paper);
    border-top: 1px solid rgba(232,225,212,.07);
    border-bottom: 1px solid rgba(232,225,212,.07);
}
.stats-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
}
.stat {
    flex: 1;
    padding: 14px clamp(40px, 6vw, 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
}
.stat-category {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--stone);
    opacity: .8;
    margin: 0;
    line-height: 1;
}
.stat-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rust);
    flex-shrink: 0;
}
.stat-value {
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.stat-num {
    font-family: var(--f-display);
    font-weight: 700;
    font-stretch: condensed;
    font-size: clamp(64px, 7vw, 104px);
    letter-spacing: -.04em;
    color: var(--ink);
    line-height: 1;
}
.stat-word {
    font-family: var(--f-accent);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(22px, 2.4vw, 36px);
    color: var(--rust);
    line-height: 1;
    letter-spacing: -.01em;
}
.stat-rule {
    width: 1px;
    background: rgba(232,225,212,.1);
    flex-shrink: 0;
    align-self: stretch;
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.stats.in .stat-rule { transform: scaleY(1); }
.stats.in .stats-inner > .stat-rule:nth-child(4) { transition-delay: 0.08s; }
.stats.in .stats-inner > .stat-rule:nth-child(6) { transition-delay: 0.16s; }

/* ==========================================================
   ABOUT / SOBRE
========================================================== */
.about {
    padding: clamp(80px, 11vh, 140px) var(--page-x);
}
.about-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}

.about-photo {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--stone);
}
.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Placeholder quando foto não existe */
.about-photo.photo-missing::after {
    content: 'j.';
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 80px;
    color: var(--stone);
    letter-spacing: -.05em;
}

.about-name {
    font-family: var(--f-display);
    font-weight: 700;
    font-stretch: condensed;
    font-size: clamp(36px, 4.5vw, 64px);
    letter-spacing: -.05em;
    color: var(--paper);
    line-height: 1;
}
.about-role {
    font-family: var(--f-accent);
    font-style: italic;
    font-weight: 300;
    font-size: 14px;
    letter-spacing: -.01em;
    opacity: .55;
    margin-top: 10px;
}
.about-rule {
    width: 44px;
    height: 1px;
    background: var(--rust);
    margin: 28px 0;
}
.about-quote {
    font-family: var(--f-accent);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(18px, 2.2vw, 26px);
    letter-spacing: -.025em;
    line-height: 1.45;
    color: var(--paper);
    border: none;
}
.about-quote em { color: var(--rust); font-style: italic; }
.about-bio {
    font-family: var(--f-body);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--paper);
    opacity: .65;
    margin-top: 24px;
}

/* ==========================================================
   DEPOIMENTOS
========================================================== */
.testimonials {
    padding: clamp(64px, 8vh, 96px) var(--page-x);
    border-top: 1px solid rgba(232,225,212,.07);
}
.testimonials-inner {
    max-width: 780px;
    margin: 0 auto;
}
.testimonials-inner .section-tag {
    display: block;
    margin-bottom: 52px;
}
.testimonials-soon {
    font-family: var(--f-accent);
    font-style: italic;
    font-weight: 300;
    font-size: 22px;
    letter-spacing: -.02em;
    color: var(--paper);
    opacity: .25;
}

/* Estrutura para depoimentos futuros */
.testimonial-item { padding: 52px 0; border-bottom: 1px solid rgba(232,225,212,.08); }
.testimonial-item:first-child { padding-top: 0; }
.testimonial-text {
    font-family: var(--f-accent);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(18px, 2.4vw, 28px);
    letter-spacing: -.025em;
    line-height: 1.5;
    color: var(--paper);
}
.testimonial-text::before { content: '\201C'; color: var(--rust); }
.testimonial-text::after  { content: '\201D'; color: var(--rust); }
.testimonial-author {
    font-family: var(--f-mono);
    font-weight: 400;
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--paper);
    opacity: .45;
    margin-top: 28px;
}
.testimonial-author::before { content: '— '; color: var(--rust); }

/* ==========================================================
   CONTATO
========================================================== */
.contact {
    padding: clamp(80px, 12vh, 120px) var(--page-x) clamp(80px, 14vh, 160px);
    border-top: 1px solid rgba(232,225,212,.07);
}
.contact-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.contact-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--rust);
    margin-bottom: 44px;
}
.contact-tag-line {
    display: inline-block;
    width: 36px;
    height: 1px;
    background: var(--rust);
    opacity: .5;
}

.contact-hl {
    font-size: clamp(64px, 9.5vw, 140px);
    line-height: .92;
    letter-spacing: -.04em;
    margin-bottom: 36px;
}
.contact-hl-plain {
    font-family: var(--f-display);
    font-weight: 700;
    font-stretch: condensed;
    color: var(--paper);
}
.contact-hl-italic {
    font-family: var(--f-accent);
    font-style: italic;
    font-weight: 400;
    color: var(--rust);
}

.contact-sub {
    font-family: var(--f-accent);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(16px, 2vw, 22px);
    color: var(--paper);
    opacity: .5;
    margin-bottom: clamp(40px, 6vh, 64px);
    letter-spacing: -.01em;
}

.contact-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.contact-btn {
    display: inline-block;
    padding: 18px 32px;
    border: 1px solid rgba(232,225,212,.22);
    font-family: var(--f-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--paper);
    text-decoration: none;
    transition: border-color .2s, color .2s;
    white-space: nowrap;
}
.contact-btn + .contact-btn { border-left: none; }
.contact-btn:hover {
    border-color: var(--rust);
    color: var(--rust);
}
.contact-btn--cta {
    background: var(--rust);
    border-color: var(--rust);
    color: var(--paper);
}
.contact-btn--cta:hover {
    background: oklch(35% 0.12 28);
    border-color: oklch(35% 0.12 28);
    color: var(--paper);
}

/* Sliding rust fill on hover for non-CTA buttons */
.contact-btn:not(.contact-btn--cta) {
    background: linear-gradient(to right, var(--rust) 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: right center;
    transition: border-color .2s, color .2s, background-position 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.contact-btn:not(.contact-btn--cta):hover {
    background-position: left center;
    border-color: var(--rust);
    color: var(--paper);
}

/* ==========================================================
   FOOTER
========================================================== */
.footer {
    padding: 36px var(--page-x);
    border-top: 1px solid rgba(232,225,212,.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-mono {
    font-family: var(--f-display);
    font-weight: 700;
    font-stretch: condensed;
    font-size: 28px;
    letter-spacing: -.05em;
    line-height: 1;
}
.footer-copy {
    font-family: var(--f-accent);
    font-style: italic;
    font-weight: 300;
    font-size: 12px;
    letter-spacing: -.01em;
    opacity: .55;
}

/* ==========================================================
   ANIMAÇÕES DE ENTRADA (IntersectionObserver)
========================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .75s ease, transform .75s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================
   FOCUS VISIBLE — acessibilidade por teclado
========================================================== */
.video-card:focus-visible {
    outline: 2px solid var(--rust);
    outline-offset: -2px;
}
.nav-logo:focus-visible,
.nav-links a:focus-visible,
.contact-btn:focus-visible {
    outline: 2px solid var(--rust);
    outline-offset: 4px;
    border-radius: 1px;
}
.btn-send:focus-visible,
.modal-close:focus-visible {
    outline: 2px solid var(--paper);
    outline-offset: 4px;
}
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
    border-color: var(--rust);
    outline: none;
}

/* ==========================================================
   PREFERS-REDUCED-MOTION — WCAG AA
========================================================== */
@media (prefers-reduced-motion: reduce) {
    .grain { animation: none; }

    .hero-flash    { animation: none; opacity: 0; }
    .hero-logo     { animation: none; }
    .hero-rule     { animation: none; }
    .hero-sub      { animation: none; }
    .hero-info-row { animation: none; }
    .nav-logo      { animation: none; opacity: 1; }

    .fade-up { opacity: 1; transform: none; transition: none; }
    .fade-up.visible { opacity: 1; transform: none; }

    .marquee-inner { animation: none; }

    .video-card img { transition: none; }
    .card-overlay   { transition: none; }
    .card-play      { transition: none; }
    .card-title     { transition: none; }

    .modal         { transition: none; }
    .whatsapp-fab  { transition: none; }
    .nav-overlay   { transition: none; }
    .nav-burger span { transition: none; }

    .nav-overlay.open .nav-overlay-link { animation: none; }

    .stat-rule { transform: scaleY(1); transition: none; }

    .contact-btn:not(.contact-btn--cta) {
        background: none;
        transition: border-color .2s, color .2s;
    }
}

/* ==========================================================
   RESPONSIVE — tablet
========================================================== */
@media (max-width: 1024px) {
    /* 4 colunas preservadas em tablet */
    .gallery {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        grid-template-rows: 200px 200px;
    }
    .video-card:nth-child(1) { grid-column: 1; grid-row: 1; }
    .video-card:nth-child(2) { grid-column: 2; grid-row: 1 / 3; }
    .video-card:nth-child(3) { grid-column: 3; grid-row: 1 / 3; }
    .video-card:nth-child(4) { grid-column: 4; grid-row: 1 / 3; }
    .video-card:nth-child(5) { grid-column: 1; grid-row: 2; }

    .about-inner {
        grid-template-columns: 1fr;
        max-width: 540px;
        gap: 52px;
    }
    .about-photo { aspect-ratio: 4/3; }
}

/* ==========================================================
   RESPONSIVE — mobile
========================================================== */
@media (max-width: 768px) {
    .nav { padding: 20px var(--page-x); }
    .nav.scrolled { padding: 14px var(--page-x); }
    .nav-links { gap: 28px; }

    .hero-content { flex-direction: column; align-items: flex-start; gap: 32px; }
    .hero-info { min-width: 100%; width: 100%; }

    .marquee-inner { gap: 52px; }

    /* landscape full width, 3 portrait lado a lado */
    .gallery {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto;
        gap: 8px;
    }
    .video-card:nth-child(1) { grid-column: 1 / 4; grid-row: auto; aspect-ratio: 16/9; }
    .video-card:nth-child(2) { grid-column: 1;     grid-row: auto; aspect-ratio: 9/16; }
    .video-card:nth-child(3) { grid-column: 2;     grid-row: auto; aspect-ratio: 9/16; }
    .video-card:nth-child(4) { grid-column: 3;     grid-row: auto; aspect-ratio: 9/16; }
    .video-card:nth-child(5) { grid-column: 1 / 4; grid-row: auto; aspect-ratio: 16/9; }

    .stats { padding: 20px 0; }
    .stat  { padding: 12px 28px; }

    .about-inner { max-width: 100%; }

    .contact-btns { flex-direction: column; }
    .contact-btn + .contact-btn { border-left: 1px solid rgba(232,225,212,.22); border-top: none; }

    .footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .modal-stage { padding: 20px 16px 12px; }
    .modal-bar { height: 52px; }
    .modal-bar-logo { display: none; }
    .modal-bar-dur { padding: 0 16px; }
    .modal-close { width: 52px; }
    .modal-content.portrait { max-width: min(72vw, calc((100svh - 52px - 32px) * 9 / 16)); }
}

@media (max-width: 480px) {
    .nav-links { display: none; }
    .nav-burger { display: flex; }

    /* landscape full width, 3 portrait lado a lado */
    .gallery {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto;
        gap: 8px;
    }
    .video-card:nth-child(1) { grid-column: 1 / 4; grid-row: auto; aspect-ratio: 16/9; }
    .video-card:nth-child(2) { grid-column: 1;     grid-row: auto; aspect-ratio: 9/16; }
    .video-card:nth-child(3) { grid-column: 2;     grid-row: auto; aspect-ratio: 9/16; }
    .video-card:nth-child(4) { grid-column: 3;     grid-row: auto; aspect-ratio: 9/16; }
    .video-card:nth-child(5) { grid-column: 1 / 4; grid-row: auto; aspect-ratio: 16/9; }

    .stats-inner { flex-wrap: wrap; }
    .stat { padding: 12px 18px; flex: 1 1 45%; }
    .stat-rule:nth-child(4) { display: none; }
}
