/* =========================================================
   FONTES no próprio site (nov/2026): antes vinham do Google Fonts e travavam a abertura das páginas.
   Cortadas para latim (tools: fontTools), em WOFF2. O navegador só baixa a fonte que a página usa.
   ========================================================= */
@font-face { font-family: "Space Grotesk"; src: url("../assets/fonts/space-grotesk.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../assets/fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../assets/fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
/* fontes dos cases */
@font-face { font-family: "Raleway"; src: url("../assets/fonts/raleway.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("../assets/fonts/work-sans.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../assets/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../assets/fonts/barlow-100.woff2") format("woff2"); font-weight: 100; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../assets/fonts/barlow-200.woff2") format("woff2"); font-weight: 200; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../assets/fonts/barlow-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../assets/fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../assets/fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../assets/fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../assets/fonts/barlow-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../assets/fonts/barlow-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../assets/fonts/barlow-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }

/* =========================================================
   TOKENS
   ========================================================= */
:root {
  --bg: #0d0b14;
  --bg-raised: #16131f;
  --text: #f2f0f5;
  --text-muted: #b1acbd;
  --text-dim: #7d778c;
  --accent: #5e60cd;
  --accent-2: #56cfe0;
  --border: rgba(242, 240, 245, 0.1);
  --radius: 16px;
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --container: 2400px;               /* antes 1320px: o conteúdo agora acompanha a tela (trava só em ultrawide) */
  --gutter: clamp(20px, 4.5vw, 120px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

::selection { background: var(--accent); color: #fff; }

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

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(72px, 10vw, 140px) 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

/* cabeçalho de seção: índice (01) + título grande */
.section-head {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 3vw, 40px);
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head h2 { font-size: clamp(2.25rem, 5.5vw, 4.5rem); }

.section-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-2);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* entrada suave ao rolar (só quando o JS está ativo) */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  background: linear-gradient(to bottom, rgba(13, 11, 20, 0.85), rgba(13, 11, 20, 0));
  transition: background 0.3s ease, padding 0.3s ease;
}
/* depois de rolar: fundo desfocado pra não brigar com o conteúdo embaixo */
.site-header.scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  background: var(--header-bg, rgba(13, 11, 20, 0.88));
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.nav-links a { color: var(--text-muted); transition: color 0.2s ease; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(280px, 80vw);
    background: var(--bg-raised); flex-direction: column; justify-content: center;
    padding: 0 40px; font-size: 1.25rem; gap: 24px;
    transform: translateX(100%); transition: transform 0.4s var(--ease);
    border-radius: var(--radius) 0 0 var(--radius);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; z-index: 110; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px 0 clamp(72px, 10vh, 120px);
  position: relative;
}
.hero > .wrap { width: 100%; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(86, 207, 224, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(86, 207, 224, 0); }
  100% { box-shadow: 0 0 0 0 rgba(86, 207, 224, 0); }
}

.hero h1 {
  /* o nome ocupa a largura do conteúdo ("Bittencourt" ≈ 5.05em em Space Grotesk 600) */
  font-size: max(3.2rem, calc((min(100vw, var(--container)) - 2 * var(--gutter)) / 5.15));
  line-height: 0.88;
  font-weight: 600;
  letter-spacing: -0.045em;
  margin-left: -0.04em; /* compensa o espaço lateral da primeira letra */
}

@media (max-width: 720px) {
  .hero h1 { font-size: clamp(2.75rem, 15vw, 6rem); }
  
  
  
}

/* =========================================================
   PROJETOS
   ========================================================= */

.project-card {
  grid-column: span 6;
  position: relative;
  border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(340px, 38vw, 520px);
  overflow: hidden;
  isolation: isolate;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
}

.project-card.is-large { grid-column: span 7; }
.project-card.is-normal { grid-column: span 5; }
/* último card sozinho na linha ocupa a largura toda (não deixa buraco no grid) */
.project-card:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: clamp(300px, 32vw, 460px); }

.project-card::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--card-gradient);
  transition: transform 0.9s var(--ease);
}
.project-card[style*="background-image"]::before { display: none; }
.project-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(13, 11, 20, 0.85) 0%, rgba(13, 11, 20, 0.1) 55%, rgba(13, 11, 20, 0.25) 100%);
}
.project-card:hover::before { transform: scale(1.05); }

.card-top {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.75rem; color: rgba(255, 255, 255, 0.8);
}

.card-bottom .cat { font-family: var(--font-mono); font-size: 0.72rem; color: rgba(255, 255, 255, 0.8); }
.card-bottom h3 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); margin-top: 10px; color: #fff; }
.card-bottom .resumo { color: rgba(255, 255, 255, 0.78); margin: 10px 0 0; font-size: 0.95rem; max-width: 44ch; }

.card-link {
  display: inline-flex; gap: 8px; margin-top: 20px;
  font-family: var(--font-mono); font-size: 0.75rem; color: #fff;
}
.card-link span { transition: transform 0.3s var(--ease); }
.project-card:hover .card-link span { transform: translateX(6px); }

/* no desktop, o resumo aparece ao passar o mouse (mais limpo) */
@media (hover: hover) and (min-width: 721px) {
  .card-bottom .resumo, .card-link {
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  }
  .project-card:hover .resumo, .project-card:hover .card-link,
  .project-card:focus-visible .resumo, .project-card:focus-visible .card-link { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .project-card, .project-card.is-large, .project-card.is-normal { grid-column: 1 / -1; min-height: 360px; }
}

/* =========================================================
   SOBRE
   ========================================================= */
.about-statement {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 3.1rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-muted);
  max-width: 30ch;
}
.about-statement span { color: var(--text); }

/* =========================================================
   CONTATO / FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px var(--gutter);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim);
}

/* =========================================================
   PÁGINA DE CASE (projeto.html)
   ========================================================= */
.project-hero { padding-top: clamp(130px, 16vw, 180px); padding-bottom: clamp(32px, 4vw, 48px); }
.project-hero .cat { display: block; color: var(--accent-2); font-family: var(--font-mono); font-size: 0.8rem; }
.project-hero h1 {
  font-size: clamp(2.75rem, 9vw, 8rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.05em;
  margin-top: 16px;
}

.project-meta-bar {
  display: flex; gap: clamp(24px, 5vw, 64px); flex-wrap: wrap;
  margin-top: clamp(32px, 4vw, 48px); padding-top: 24px;
  border-top: 1px solid var(--border);
}
.project-meta-bar div { font-size: 0.95rem; }
.project-meta-bar span {
  display: block; font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--text-dim); margin-bottom: 6px;
}

.case-cover, .case-media {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--border);
}
.case-cover { aspect-ratio: 16 / 9; }

.case-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px;
  padding-top: clamp(56px, 8vw, 110px);
  padding-bottom: clamp(56px, 8vw, 110px);
}
.case-intro p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--text);
}

.case-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
}
.case-media { aspect-ratio: 4 / 5; }
.case-media.is-wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

.next-project {
  display: block;
  margin-top: clamp(72px, 10vw, 140px);
  padding: clamp(56px, 8vw, 110px) 0;
  border-top: 1px solid var(--border);
}
.next-title {
  display: block; margin-top: 16px;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.5rem, 8vw, 7rem);
  line-height: 0.95; letter-spacing: -0.05em;
  transition: color 0.3s ease;
}
.next-title span { display: inline-block; transition: transform 0.4s var(--ease); }
.next-project:hover .next-title { color: var(--accent-2); }
.next-project:hover .next-title span { transform: translateX(16px); }

.back-link {
  display: inline-block; margin-bottom: 32px;
  color: var(--text-muted); font-family: var(--font-mono); font-size: 0.8rem;
  transition: color 0.2s ease;
}
.back-link:hover { color: var(--accent-2); }

.not-found { padding-top: 200px; padding-bottom: 120px; }

@media (max-width: 720px) {
  .case-intro { grid-template-columns: 1fr; gap: 16px; }
  .case-gallery { grid-template-columns: 1fr; }
  .case-media { aspect-ratio: 4 / 3; }
}

/* =========================================================
   NAVEGAÇÃO: página atual + botão "Let's talk"
   ========================================================= */
.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta {
  font-size: 0.85rem; padding: 9px 18px; border-radius: 100px;
  border: 1px solid var(--border); background: rgba(242, 240, 245, 0.06);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.nav-cta:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
@media (max-width: 720px) {
  .site-nav { gap: 14px; }
  .nav-cta { padding: 7px 14px; font-size: 0.8rem; }
}

/* links "ver mais" */
.section-head .more-link { margin-left: auto; }
.more-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted);
  white-space: nowrap; transition: color 0.2s ease;
}
.more-link span { transition: transform 0.3s var(--ease); }
.more-link:hover { color: var(--text); }
.more-link:hover span { transform: translateX(5px); }

@media (max-width: 720px) {
  .section-head { flex-wrap: wrap; }
  .section-head .more-link { margin-left: 0; width: 100%; }
}

/* =========================================================
   TOPO DAS PÁGINAS INTERNAS
   ========================================================= */
.page-hero { padding-top: clamp(150px, 18vw, 230px); padding-bottom: clamp(48px, 6vw, 96px); }
.page-hero .section-index { display: block; }
.page-title {
  margin-top: 20px;
  font-size: clamp(3rem, 11vw, 10rem);
  font-weight: 600; line-height: 0.9; letter-spacing: -0.05em;
}
.page-intro {
  margin: clamp(24px, 3vw, 40px) 0 0; max-width: 46ch;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--text-muted);
}

/* =========================================================
   WORK
   ========================================================= */
.work-list { padding-top: 0; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 4vw, 48px); }
.filter-btn {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted);
  background: rgba(13, 11, 20, 0.35); border: 1px solid var(--border);
  border-radius: 100px; padding: 8px 16px; cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.filter-btn:hover { color: var(--text); }
.filter-btn.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* =========================================================
   ABOUT
   ========================================================= */
.about-page { padding-top: 0; }
.about-layout {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px); align-items: start;
}
.about-photo {
  margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  border: 1px dashed rgba(242, 240, 245, 0.22); background: rgba(22, 19, 31, 0.6);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim);
  position: sticky; top: 110px;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
 /* sem foto: o texto ocupa a coluna inteira */

.about-bio { margin-top: clamp(32px, 4vw, 56px); }
.about-bio p { margin: 0 0 1.2em; max-width: 56ch; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.7; color: var(--text-muted); }
.facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px;
  margin: clamp(40px, 5vw, 64px) 0; padding-top: 24px; border-top: 1px solid var(--border);
}
.facts dt { margin-bottom: 6px; font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-2); }
.facts dd { margin: 0; }
@media (max-width: 720px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 420px; }
}

/* =========================================================
   SERVICES
   ========================================================= */
.services-detail { padding-top: 0; }
.service-detail {
  display: grid; grid-template-columns: 64px minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(36px, 4.5vw, 64px) 0; border-bottom: 1px solid var(--border);
  scroll-margin-top: 90px;
}
.service-detail:first-child { border-top: 1px solid var(--border); }
.service-detail .num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-2); padding-top: 12px; }
.service-detail h2 { font-size: clamp(2rem, 4.5vw, 3.8rem); }
.service-detail p { margin: 16px 0 0; max-width: 44ch; color: var(--text-muted); line-height: 1.6; }
.deliv-title { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-2); }
.deliverables ul { list-style: none; margin: 12px 0 0; padding: 0; }
.deliverables li { padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }

.process-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px);
}
.process-step {
  display: flex; flex-direction: column; min-height: 300px;
  padding: clamp(22px, 2.4vw, 32px); border-radius: var(--radius);
  border: 1px solid var(--border); background: rgba(13, 11, 20, 0.45);
}
.step-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-2); }
.process-step h3 { margin-top: auto; font-size: clamp(1.4rem, 2vw, 1.8rem); }
.process-step p { margin: 12px 0 0; font-size: 0.95rem; line-height: 1.55; color: var(--text-muted); }
@media (max-width: 1000px) { .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .service-detail { grid-template-columns: 40px 1fr; }
  .service-detail .deliverables { grid-column: 2; }
  .process-steps { grid-template-columns: 1fr; }
  .process-step { min-height: 0; }
  .process-step h3 { margin-top: 28px; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-page { padding-top: 0; }
.contact-list { border-top: 1px solid var(--border); }
.contact-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap;
  padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--border);
}
.contact-label {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.8rem, 5vw, 4rem); letter-spacing: -0.04em; line-height: 1;
  transition: color 0.3s ease, transform 0.4s var(--ease);
}
.contact-value { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); }
.contact-row:hover .contact-label { color: var(--accent-2); transform: translateX(10px); }
.contact-note { margin-top: 32px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); }

/* =========================================================
   BLOCO DE CONTATO (fim de todas as páginas, exceto Contact)
   ========================================================= */
.cta-block { padding: clamp(96px, 12vw, 170px) 0; border-top: 1px solid var(--border); }
.cta-block .section-index { display: block; }
.cta-block h2 {
  margin-top: 20px; max-width: 12ch;
  font-size: clamp(2.75rem, 9vw, 8rem); font-weight: 600; line-height: 0.92; letter-spacing: -0.05em;
}
.cta-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 32px; margin-top: clamp(32px, 4vw, 48px); }
.cta-button {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  padding: 16px 30px; border-radius: 100px;
  background: var(--text); color: var(--bg);
  transition: background 0.3s ease, color 0.3s ease;
}
.cta-button:hover { background: var(--accent-2); }
.cta-button span { transition: transform 0.3s var(--ease); }
.cta-button:hover span { transform: translateX(6px); }
.cta-link { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); border-bottom: 1px solid transparent; transition: color 0.2s ease, border-color 0.2s ease; }
.cta-link:hover { color: var(--text); border-color: currentColor; }

/* links "ver mais" logo abaixo de grids/listas */

/* vídeo no lugar da capa do card */
.card-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }

/* vídeos (cases) */
video.case-cover, video.case-media { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =========================================================
   CASE EDITORIAL (projetos com "secoes" em js/projects.js)
   As cores vêm do "tema" de cada projeto (--c-*).
   ========================================================= */
.case {
  --c-bg: #16131f;
  --c-dark: #16131f;
  --c-fg: #f2f0f5;
  --c-accent: #4fd1e8;
  --c-light: #f2f0f5;
  --c-soft: color-mix(in srgb, var(--c-fg) 68%, transparent);
  --c-line: color-mix(in srgb, var(--c-fg) 16%, transparent);
  background: var(--c-bg);
  color: var(--c-fg);
}
.case .back-link { color: var(--c-soft); }
.case .back-link:hover { color: var(--c-accent); }

/* só vertical: a margem lateral vem do .wrap (não pode ser sobrescrita) */
.cs { padding-top: clamp(88px, 12vw, 180px); padding-bottom: clamp(88px, 12vw, 180px); }

/* título à esquerda, texto à direita */

/* espaços de imagem */

/* ---------- 06 TIPOGRAFIA ---------- */

/* alfabeto gigante (faixas que deslizam) */
.case { overflow-x: clip; } /* a faixa ocupa a largura toda sem criar rolagem lateral */

  /* preenchida, no Olive da marca */

/* ---------- 07 PALETA ---------- */
/* a largura das colunas é animada via JS (grid-template-columns), mais suave que "flex" */

/* =========================================================
   CASE "LINHA DO TEMPO" (estilo: "timeline") — orgânico, sem caixas
   ========================================================= */
.tl-case {
  --t-bg: #0b0b0b; --t-fg: #f2f1ee; --t-accent: #e0352b;
  --t-soft: color-mix(in srgb, var(--t-fg) 62%, transparent);
  --t-line: color-mix(in srgb, var(--t-fg) 14%, transparent);
  --t-serif: "Fraunces", Georgia, serif;
  --t-sans: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  position: relative; overflow-x: clip;
  background: var(--t-bg); color: var(--t-fg); font-family: var(--t-sans);
}
.tl-case .back-link { color: var(--t-soft); }
.tl-case .back-link:hover { color: var(--t-fg); }
 /* sem z-index: o fundo da seção (::before) fica abaixo da linha */

/* a linha do tempo e o ponto REC no fim */
 /* branca no preto, preta no branco */

@keyframes rec-blink { 50% { opacity: 0.2; } }

/* tipografia */

/* imagens: sem caixa — só a imagem, a legenda e (nos vazios) marcas de visor */

/* hero */

.tl-rec-live { display: inline-flex; gap: 8px; align-items: center; color: var(--t-fg); }
.tl-rec-live i { width: 9px; height: 9px; border-radius: 50%; background: var(--t-accent); animation: rec-blink 1.2s steps(1) infinite; }

 /* imagem de ponta a ponta: legenda alinhada ao conteúdo */

/* intro: texto deslocado + ficha em forma de "claquete" */

/* concept: título enorme, imagem sangrando pela direita, detalhe sobreposto */

/* linhas de imagens: sempre no grid de 12 colunas, sem sobreposição */

/* símbolo: texto baixo à esquerda, imagem grande à direita */

/* REC: momento tipográfico com o ponto */

/* tipografia: "Aa" enorme + amostra */

/* vídeo: tela cheia com HUD de câmera */

/* aplicações: campo livre, cada imagem num lugar e tamanho */

/* cena "gravando o nome" (tela trava enquanto o nome passa sob a agulha) */
.tl-scrub { position: relative; z-index: 2; height: 320vh; }
.sc-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; background: var(--t-bg);
}
.sc-hud {
  position: absolute; top: clamp(84px, 11vh, 120px); left: 0; right: 0;
  display: flex; justify-content: space-between; font-family: var(--font-mono);
  font-size: 0.76rem; letter-spacing: 0.1em; color: var(--t-soft);
}
.sc-state b { font-weight: 400; }
.sc-state.is-done i { animation: none; border-radius: 1px; }
.sc-stage { position: relative; }
.sc-strip {
  display: inline-flex; align-items: baseline; white-space: nowrap; will-change: transform;
  font-family: var(--t-serif); font-weight: 300; font-size: clamp(8rem, 26vw, 26rem); line-height: 1;
}
.sc-l {
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--t-fg) 50%, transparent);
  background-image: linear-gradient(90deg, var(--t-fg) 0%, transparent 0%);
  -webkit-background-clip: text; background-clip: text;
  font-variation-settings: "SOFT" 100, "opsz" 144;
}
.sc-l.is-rec { background-image: none; color: var(--t-fg); font-variation-settings: "SOFT" 0, "opsz" 144; }
.sc-space { width: 0.28em; }
.sc-playhead { position: absolute; top: -8%; bottom: -8%; left: 50%; width: 2px; margin-left: -1px; background: var(--t-accent); }
.sc-playhead span {
  position: absolute; top: -8px; left: -7px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--t-accent); box-shadow: 0 0 22px color-mix(in srgb, var(--t-accent) 70%, transparent);
}
.sc-ruler {
  height: 26px; margin-top: clamp(16px, 2.4vw, 28px);
  background:
    repeating-linear-gradient(90deg, var(--t-soft) 0 1px, transparent 1px 120px) left bottom / 100% 18px repeat-x,
    repeating-linear-gradient(90deg, var(--t-line) 0 1px, transparent 1px 24px) left bottom / 100% 9px repeat-x;
  border-bottom: 1px solid var(--t-line);
}
.sc-sub {
  margin: clamp(28px, 4vw, 56px) 0 0; text-align: center; font-family: var(--t-sans); font-weight: 500;
  font-size: clamp(0.78rem, 1.5vw, 1.15rem); letter-spacing: 0.45em; text-transform: uppercase;
}
.sc-sub span { opacity: 0.1; transition: opacity 0.3s ease; }
.sc-sub span.on { opacity: 1; }
.sc-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.sc-flash.go { animation: sc-flash 0.6s ease-out; }
@keyframes sc-flash { 0% { opacity: 0.85; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .tl-scrub { height: auto; }
  .sc-sticky { position: relative; height: auto; padding: 140px 0 100px; }
  .sc-strip { display: flex; flex-wrap: wrap; justify-content: center; width: 100%; font-size: 12vw; }
  .sc-playhead { display: none; }
}

/* cores: círculos, a mesma forma do ponto REC */

/* =========================================================
   FUNDO EM FLUIDO — canvas WebGL (js/fluid.js) + granulação
   ========================================================= */
.fog {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

.fog canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* granulação (film grain) por cima do fluido */
.fog::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.22;
  mix-blend-mode: overlay;
}

/* navegador sem WebGL2: gradiente estático no lugar */
.fog.no-webgl {
  background:
    radial-gradient(ellipse at 62% 38%, rgba(106, 48, 195, 0.28), transparent 60%),
    radial-gradient(ellipse at 32% 72%, rgba(73, 191, 227, 0.18), transparent 60%),
    var(--bg);
}
.fog.no-webgl canvas { display: none; }

/* =========================================================
   CASE "EXPEDIÇÃO" (estilo: "expedicao", ex: NOMAD)
   Mapa topográfico no fundo (canvas fixo), rota do visitante (SVG), HUD de campo,
   seções como waypoints e cena final com painel de instrumentos.
   ========================================================= */
.ex-case {
  --x-bg: #1e2023; --x-fg: #e9e5dc; --x-accent: #ff5b1f;
  --x-soft: color-mix(in srgb, var(--x-fg) 64%, transparent);
  --x-dim: color-mix(in srgb, var(--x-fg) 38%, transparent);
  --x-line: color-mix(in srgb, var(--x-fg) 16%, transparent);
  --x-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  position: relative; overflow-x: clip; color: var(--x-fg); font-family: var(--x-sans);
}
.ex-case.no-map { background: var(--x-bg); }

 /* cinza: presente sem roubar a atenção */

.ex-case > section { position: relative; z-index: 2; }
.ex-case .back-link { color: var(--x-soft); }

/* HUD de campo */

/* hero */

.ex-wp {
  font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase;
}

/* títulos "expandem" ao entrar: adaptabilidade */

/* seções e grade de 12 colunas */

.ex-wp { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 0 0 clamp(20px, 3vw, 36px); font-size: 0.72rem; color: var(--x-soft); }
.ex-wp-id { color: var(--x-bg); background: var(--x-accent); padding: 3px 7px; font-weight: 500; }
.ex-wp-name { color: var(--x-fg); }
.ex-wp-coord { color: var(--x-dim); }
.ex-text p { margin: 0 0 1em; font-size: clamp(1rem, 1.15vw, 1.1rem); line-height: 1.65; color: var(--x-soft); max-width: 58ch; }

.ex-h2 { margin: 0; font-size: clamp(2rem, 4.4vw, 4rem); line-height: 0.96; font-weight: 800; font-stretch: 110%; max-width: 14ch; }

/* imagens: folha de carta topográfica (cabeçalho, margem graduada, rodapé) */

/* margem graduada: marcas a cada 24px, e uma maior a cada 120px, nas quatro bordas */

/* espaço vazio: curvas de nível de um morro */

/* ficha: etiqueta de equipamento */

/* símbolo */

/* cores: etiquetas de material */

/* sistema: linhas de marcação */

/* equipamentos */

/* em campo */

/* ---------- cena final ---------- */
.ex-final { position: relative; z-index: 2; height: 470vh; padding: 0; }

 /* legível sobre o terreno acidentado */

/* carimbo final */

/* textura de carimbo só na borda, na palavra e no símbolo — o texto pequeno fica nítido */

/* celular e telas médias */

 /* no celular o HUD cobriria o texto */
@media (prefers-reduced-motion: reduce) {
  
  .ex-final { height: auto; }
  
  
  
}

/* sinalizador (NOMAD): laranja expandindo em círculo; o mapa invertido vem do shader */

 /* sem WebGL: laranja chapado no lugar do mapa invertido */
 /* 72px: espaço do cabeçalho */

/* fita de marcação com os princípios */

/* o sinalizador piscando antes do laranja tomar a tela */

/* =========================================================
   LYNDA: abertura "construção" (a curva do "a" vira a estrela) e fechamento com o logo
   ========================================================= */
.ly-build { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.ly-stage { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--c-light); }
.ly-build-svg { display: block; width: 100%; height: 100%; }
.ly-b-a, .ly-b-letras { fill: var(--ly-ink); opacity: 0; }
.ly-b-star { fill: var(--c-accent); opacity: 0; }
/* traço em unidades do desenho (sem espessura fixa de tela, que quebra o "desenhar" do traço no Chrome) */
.ly-b-arc0, .ly-b-arc { fill: none; stroke: var(--c-accent); stroke-width: 0.75; stroke-linecap: round; }
.ly-b-arc { opacity: 0; }

.ly-stage-ui { position: absolute; left: 20px; right: 20px; bottom: 16px; display: flex; align-items: center; gap: 16px; }
.ly-stage-bar { flex: 1; height: 1px; background: color-mix(in srgb, var(--ly-ink) 18%, transparent); overflow: hidden; }
.ly-stage-bar i { display: block; height: 100%; background: var(--ly-ink); transform: scaleX(0); transform-origin: left; }
.ly-replay {
  font: 500 0.72rem var(--font-mono); letter-spacing: 0.08em; color: var(--ly-ink); background: none; border: 1px solid color-mix(in srgb, var(--ly-ink) 35%, transparent);
  border-radius: 999px; padding: 6px 12px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.4s ease, background 0.2s ease;
}
.ly-build.is-done .ly-replay { opacity: 1; pointer-events: auto; }
.ly-replay:hover { background: color-mix(in srgb, var(--ly-ink) 10%, transparent); }
.ly-build-cap { margin: 14px 0 0; font-size: 0.85rem; color: color-mix(in srgb, var(--c-fg) 70%, transparent); }

@media (max-width: 720px) {
  .ly-stage { aspect-ratio: 4 / 3.4; }
  .ly-stage-ui { left: 14px; right: 14px; bottom: 10px; }
  .ly-replay { padding: 4px 10px; font-size: 0.64rem; }
}

/* =========================================================
   WILKER: ritmo preto e branco, animação da marca, The Mark e aplicações em timeline
   ========================================================= */
.tl-case { isolation: isolate; }
/* fundo de cada seção numa camada abaixo da linha do tempo */
.tl-case [data-tom] { position: relative; color: var(--t-fg); }
.tl-case [data-tom]::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--t-bg); }
.tl-case [data-tom="claro"] {
  --t-bg: #F2F1EE; --t-fg: #0B0B0B;
  --t-soft: color-mix(in srgb, #0B0B0B 64%, transparent); --t-line: color-mix(in srgb, #0B0B0B 14%, transparent);
}
.tl-case [data-tom="escuro"] {
  --t-bg: #0B0B0B; --t-fg: #F2F1EE;
  --t-soft: color-mix(in srgb, #F2F1EE 62%, transparent); --t-line: color-mix(in srgb, #F2F1EE 14%, transparent);
}

/* animação da marca */

/* régua de edição com a agulha andando */

/* The Mark: faixas sem caixas */

/* o W atravessa a divisão: inverte de cor de um lado para o outro */

/* aplicações: clipes numa timeline de edição */

 /* 72px: cabeçalho do site */

/* régua fixa com a agulha no centro; os clipes passam por baixo */

/* =========================================================
   NOMAD: a marca (estação de carimbo), patterns e etiquetas em knolling
   A forma do carimbo vem do SVG (máscara); a cor vem do CSS.
   ========================================================= */

/* estação de carimbo */
.ex-mark { position: relative; z-index: 2; height: calc(var(--n, 3) * 90vh + 100vh); padding: 0;
  --ink: #FF5B1F; --fld: #1E2023; --txt: #E9E5DC; }
.ex-mark-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.ex-mark-field { position: absolute; inset: 0; background: var(--fld); color: var(--ink); display: grid; place-items: center; transition: background 0.08s linear; }
.ex-mark-field.is-hit { animation: ex-hit 0.22s ease-out; }
@keyframes ex-hit { 20% { transform: translate(3px, -2px); } 45% { transform: translate(-2px, 2px); } 70% { transform: translate(1px, -1px); } }
.ex-mark-stamp, .ex-mark-ghost {
  position: absolute; left: 50%; top: 62%; width: min(74vw, 960px); aspect-ratio: 1035 / 260; margin-left: calc(min(74vw, 960px) / -2); translate: 0 -50%;
  -webkit-mask: var(--mk) center / contain no-repeat; mask: var(--mk) center / contain no-repeat; background: currentColor;
}
.ex-mark-ghost { opacity: 0.1; }
.ex-mark-stamp.is-press { animation: ex-press 0.42s cubic-bezier(.55, 0, .3, 1.35); }
@keyframes ex-press { 0% { scale: 1.5; opacity: 0; filter: blur(6px); } 55% { scale: 0.97; opacity: 1; filter: blur(0); } 100% { scale: 1; opacity: 1; } }
.ex-mark-ui { position: relative; padding-top: clamp(96px, 13vh, 140px); color: var(--txt); transition: color 0.1s linear; }
.ex-mark-ui .ex-h2 { max-width: 16ch; }
.ex-mark-ui .ex-text p { color: color-mix(in srgb, var(--txt) 72%, transparent); max-width: 44ch; }
.ex-mark .ex-wp { color: color-mix(in srgb, var(--txt) 70%, transparent); }
.ex-mark .ex-wp-id { background: var(--ink); color: var(--fld); }
.ex-mark .ex-wp-name { color: var(--txt); }
.ex-mark-ink {
  position: absolute; left: 0; right: 0; bottom: clamp(20px, 4vh, 40px); display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 28px; /* à direita: o HUD fica à esquerda */
  font: 500 0.72rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--txt);
}
.ex-mark-ink b { color: var(--ink); font-weight: 500; }

/* patterns */

 /* as fitas (pattern 03) em evidência */

/* etiquetas em knolling */
.ex-knoll {
  position: relative; margin-top: clamp(48px, 7vw, 96px); padding: clamp(28px, 4vw, 56px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(0, auto); gap: clamp(16px, 2.4vw, 32px); align-items: start;
  background:
    linear-gradient(color-mix(in srgb, var(--x-fg) 7%, transparent) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, color-mix(in srgb, var(--x-fg) 7%, transparent) 1px, transparent 1px) 0 0 / 40px 40px,
    color-mix(in srgb, var(--x-bg) 86%, #fff);
}
.ex-k { position: relative; font: 500 0.66rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.ex-k-cap { position: absolute; left: 0; bottom: -22px; color: var(--x-dim); font-size: 0.6rem; white-space: nowrap; }
.ex-k-mark { -webkit-mask: var(--mk) center / contain no-repeat; mask: var(--mk) center / contain no-repeat; background: currentColor; aspect-ratio: 1035 / 260; width: 100%; }
.ex-k-hang { grid-column: 1 / span 3; grid-row: span 2; background: var(--x-fg); color: var(--x-bg); padding: 46px 18px 22px; aspect-ratio: 9 / 16; display: flex; flex-direction: column; gap: 18px; clip-path: polygon(14% 0, 86% 0, 100% 6%, 100% 100%, 0 100%, 0 6%); }
.ex-k-hole { position: absolute; top: 16px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: color-mix(in srgb, var(--x-bg) 86%, #fff); }
.ex-k-hang .ex-k-mark { color: var(--x-accent); }
.ex-k-hang dl { margin: auto 0 0; display: grid; gap: 8px; }
.ex-k-hang dl div { display: grid; grid-template-columns: 4.5em 1fr; border-top: 1px solid color-mix(in srgb, var(--x-bg) 25%, transparent); padding-top: 6px; }
.ex-k-hang dt { opacity: 0.55; }
.ex-k-hang dd { margin: 0; }
.ex-k-bar { display: flex; gap: 2px; height: 34px; }
.ex-k-bar i { background: var(--x-bg); }
.ex-k-woven { grid-column: 4 / span 5; background: var(--x-bg); color: var(--x-fg); padding: 16px 22px; display: flex; align-items: center; gap: 18px; border: 1px solid color-mix(in srgb, var(--x-fg) 20%, transparent);
  background-image: repeating-linear-gradient(90deg, transparent 0 2px, color-mix(in srgb, var(--x-fg) 5%, transparent) 2px 3px); }
.ex-k-woven .ex-k-mark { width: 48%; color: var(--x-accent); flex: none; }
.ex-k-woven span:not(.ex-k-cap) { font-size: 0.6rem; opacity: 0.8; }
.ex-k-plate { grid-column: 9 / span 4; aspect-ratio: 16 / 9; padding: 22px; display: grid; align-content: center; gap: 6px; color: var(--x-bg);
  background: linear-gradient(135deg, #b9b6ae, #8f8c86 45%, #c9c6bf 60%, #8a8781); }
.ex-k-plate > i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #eee, #555); }
.ex-k-plate > i:nth-child(1) { top: 9px; left: 9px; } .ex-k-plate > i:nth-child(2) { top: 9px; right: 9px; }
.ex-k-plate > i:nth-child(3) { bottom: 9px; left: 9px; } .ex-k-plate > i:nth-child(4) { bottom: 9px; right: 9px; }
.ex-k-plate b { font: 800 clamp(1rem, 1.8vw, 1.5rem) var(--x-sans); font-stretch: 120%; letter-spacing: 0.02em; }
.ex-k-sticker { grid-column: 4 / span 3; aspect-ratio: 1; background: var(--x-accent); color: var(--x-bg); display: grid; place-items: center; padding: 14%; border-radius: 8px; transform: rotate(0deg); }
.ex-k-care { grid-column: 7 / span 3; background: var(--x-fg); color: var(--x-bg); padding: 16px; display: grid; gap: 6px; font-size: 0.58rem; }
.ex-k-care b { font-size: 0.72rem; }

/* carimbo final em vetor */

@media (max-width: 900px) {
  
  .ex-knoll { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 44px; }
  .ex-k-hang { grid-column: 1 / span 4; }
  .ex-k-hang dl div { grid-template-columns: 3.6em 1fr; }
  .ex-k-woven, .ex-k-plate { grid-column: 1 / -1; }
  .ex-k-sticker, .ex-k-care { grid-column: 4 / span 3; }
}
@media (max-width: 720px) {
  .ex-mark-stamp, .ex-mark-ghost { width: 90vw; margin-left: -45vw; top: 64%; }
  .ex-mark-ink { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .ex-mark-stamp.is-press, .ex-mark-field.is-hit { animation: none; }
}

/* =========================================================
   CASE "SERRA" (estilo: "serra") — brand book calmo: folha, sol, creme, musgo, torra
   Os recortes do board têm até ~800 px: as imagens ficam em tamanhos médios, nunca em tela cheia.
   ========================================================= */
.sr-case {
  --s-cream: #F2EADC; --s-leaf: #1E3B30; --s-moss: #55703F; --s-sun: #E3A93B; --s-roast: #2B1D16;
  --s-soft: color-mix(in srgb, var(--s-roast) 68%, transparent); --s-dim: color-mix(in srgb, var(--s-roast) 45%, transparent);
  --s-line: color-mix(in srgb, var(--s-roast) 14%, transparent);
  /* fontes da marca: Monomakh (títulos) e Fira Sans (texto e rótulos) */
  --s-serif: "Monomakh", Georgia, serif; --s-mono: "Fira Sans", "Helvetica Neue", Arial, sans-serif;
  position: relative; background: var(--s-cream); color: var(--s-roast); overflow-x: clip; font-family: "Fira Sans", "Helvetica Neue", Arial, sans-serif;
}
.sr-case svg { display: block; }

/* imagens */

/* linhas de altitude: fitas de espessura variável; desenham-se uma vez (máscara), devagar, quando a seção aparece */

.sr-rib { fill: var(--s-sun); }
.sr-draw { fill: none; stroke: #fff; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-drawn .sr-draw { stroke-dashoffset: 0; transition: stroke-dashoffset 3.4s cubic-bezier(.45, 0, .2, 1); transition-delay: calc(var(--k) * 0.16s); }
/* faixa de linhas: fica na base da seção, sem passar por trás do texto */

/* topo */

 /* o texto termina antes da faixa de linhas */

/* ficha */

/* o nome */

/* a marca */

/* cores */

/* pattern: o texto numa seção própria (sem linhas por trás) */

/* a paisagem do pattern, em tela cheia */
.sr-show { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; --p: 0.5;
  background: radial-gradient(60% 55% at 65% 30%, rgba(227, 169, 59, 0.16), transparent 70%), linear-gradient(180deg, #2B4A3C 0%, #456B57 48%, #2D4F40 100%); }
.sr-land { position: absolute; inset: 0; width: 100%; height: 100%; }
.sr-layer { transform: translateY(calc((0.5 - var(--p)) * var(--v) * 260px)); }
.sr-sun { transform: translateY(calc((0.62 - var(--p)) * 380px)); } /* nasce conforme a seção sobe */
/* tela em pé (celular): a paisagem é cortada nas laterais, então o sol vai para o centro (x 1040 -> 800) */
@media (max-aspect-ratio: 1/1) { .sr-sun { transform: translate(-240px, calc((0.62 - var(--p)) * 380px)); } }
.sr-ridge { opacity: 0; transition: opacity 1.6s ease; }
.is-drawn .sr-ridge { opacity: 1; }
.sr-show-tag { position: absolute; left: var(--gutter); bottom: 20px; font: 500 0.7rem var(--s-mono); letter-spacing: 0.16em; text-transform: uppercase; color: color-mix(in srgb, var(--s-cream) 65%, transparent); }

/* valores */

/* aplicações */

/* fecho */

@media (prefers-reduced-motion: reduce) { .sr-draw { stroke-dashoffset: 0 !important; transition: none !important; } .sr-ridge { opacity: 1; transition: none; } }

/* Lynda — tipografia: "Lynda" enorme em tom sobre tom (tamanho ajustado à tela pelo JS) */

.type-giant { margin: clamp(40px, 6vw, 90px) 0 clamp(30px, 4vw, 60px); padding: 0 2vw; white-space: nowrap; text-align: center; line-height: 0.85; font-size: 30vw; color: var(--tb-ink); letter-spacing: -0.01em; }

/* Serra — tipografia: Monomakh em destaque, escala de altitude e escala de torra */

/* escala de altitude: do pico ao pé da serra */

 /* a lista termina antes da faixa de linhas */

/* escala de torra: o peso da Fira Sans escurece como o grão */

/* =========================================================
   FORMULÁRIO DE CONTATO (contact.html -> contact.php)
   ========================================================= */
.contact-form-section { padding: 0 0 clamp(60px, 8vw, 110px); }
.cform { max-width: 60rem; }
.cform-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* opções em botões redondos */

/* bloco opcional, mais discreto */

.cform-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.cform-send { border: 0; cursor: pointer; font: inherit; }
.cform-send:disabled { opacity: 0.5; cursor: progress; }
.cform-status { margin: 0; font-size: 0.95rem; color: var(--text-muted); }
.cform-status[data-kind="error"] { color: #FF9A9A; }
.cform-status[data-kind="error"] a { color: inherit; text-decoration: underline; }
.cform-status[data-kind="ok"] { color: var(--text); }
/* enviado: some o formulário, fica a confirmação */
.cform.is-sent .cform-send { display: none; }
.cform.is-sent .cform-status { font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.3; }
.contact-alt { margin: 0 0 6px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }

/* =========================================================
   TELAS GRANDES — o site inteiro cresce junto com a tela
   A partir de 1600px a unidade rem aumenta aos poucos (1920 ≈ 18px, 2560 ≈ 23px),
   então títulos, textos e espaçamentos em rem acompanham a largura em vez de travar.
   ========================================================= */
@media (min-width: 1600px) {
  html { font-size: calc(16px + (100vw - 1600px) * 0.0075); }
}

/* =========================================================
   TEMA (out/2026) — papel + tinta + roxo da marca #7600E8
   O site fica claro; o roxo aparece pouco e com força (botões, detalhes, seção de serviços).
   O fluido (js/fluid.js) só aparece dentro das letras do nome gigante no rodapé.
   As páginas de case continuam escuras (tokens antigos em body[data-page="project"]).
   ========================================================= */
:root {
  --paper: #F4F2EE;
  --ink: #0E0C12;
  --purple: #7600E8;
  --purple-soft: #B98CFF;
  --bg: var(--paper);
  --bg-raised: #FFFFFF;
  --text: var(--ink);
  --text-muted: #57525E;
  --text-dim: #6B6671;
  --accent: var(--purple);
  --accent-2: var(--purple);
  --border: rgba(14, 12, 18, 0.12);
  --radius: clamp(10px, 0.75vw, 16px);
}
body[data-page="project"] {
  --bg: #0d0b14; --bg-raised: #16131f; --text: #f2f0f5; --text-muted: #b1acbd; --text-dim: #7d778c;
  --accent: #5e60cd; --accent-2: #56cfe0; --border: rgba(242, 240, 245, 0.1); --radius: 16px;
}
::selection { background: var(--purple); color: #fff; }
/* o conteúdo é opaco: o fundo em fluido (fixo, atrás de tudo) só aparece pelo recorte do rodapé */
#page { position: relative; z-index: 0; background: var(--bg); }
.fog { background: var(--purple); }
.fog::after { opacity: 0.16; }
.fog.no-webgl { background: radial-gradient(ellipse at 30% 40%, #B98CFF, transparent 60%), radial-gradient(ellipse at 75% 70%, #FF6BF2, transparent 55%), var(--purple); }

h1 i, h2 i, h3 i, .logo i, .ft-brand i { font-style: normal; color: var(--purple); }
body[data-page="project"] .logo i { color: inherit; }

/* header */
.site-header { background: transparent; }
.site-header.scrolled { background: var(--header-bg, rgba(244, 242, 238, 0.86)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
body[data-page="project"] .site-header { background: linear-gradient(to bottom, rgba(13, 11, 20, 0.85), rgba(13, 11, 20, 0)); }
body[data-page="project"] .site-header.scrolled { background: var(--header-bg, rgba(13, 11, 20, 0.88)); }
.nav-cta { background: var(--purple); color: #fff; border-color: var(--purple); font-weight: 500; }
.nav-cta:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
body[data-page="project"] .nav-cta:hover { background: #fff; color: var(--purple); border-color: #fff; }

/* botões */
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 0.95em 1.6em; border-radius: 100px;
  font-family: var(--font-display); font-weight: 500; font-size: 1rem; line-height: 1; border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn span { transition: transform 0.3s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--ink); }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-lg { font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
.cta-block .btn-primary:hover, .hp .btn-primary:hover { background: #fff; color: var(--purple); }

.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em; color: var(--text-muted); }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 0 rgba(118, 0, 232, 0.5); animation: pulse 2.4s infinite; }

/* cabeçalho das seções da home */
.hhead { display: flex; align-items: baseline; gap: clamp(16px, 2.5vw, 36px); flex-wrap: wrap; margin-bottom: clamp(48px, 6vw, 96px); }
.hhead h2 { font-size: clamp(2.6rem, 6vw, 6rem); font-weight: 600; letter-spacing: -0.045em; line-height: 0.95; }
.hhead .more-link { margin-left: auto; }
.hhead-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--purple); }
.hhead-note { margin: 0 0 0 auto; max-width: 32ch; color: var(--text-muted); }

/* ---------- abertura ---------- */
.hx { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: clamp(110px, 12vw, 150px) 0 clamp(48px, 6vw, 80px); }

.hx-title { margin: clamp(18px, 2vw, 28px) 0 0; font-size: clamp(2.8rem, 5.6vw, 6.2rem); font-weight: 600; line-height: 0.96; letter-spacing: -0.045em; max-width: 12ch; }
.hx-sub { margin: clamp(20px, 2.4vw, 32px) 0 0; max-width: 40ch; font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.55; color: var(--text-muted); }
.hx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3vw, 44px); }

.sx-stage { position: relative; aspect-ratio: 4 / 3; max-height: calc(100vh - 260px); width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.sx-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--sx); color: #fff; visibility: hidden; }
.sx-slide.is-on { visibility: visible; }
.sx-mark { width: 56%; max-height: 44%; object-fit: contain; transform: scale(0.96); transition: transform 1.2s var(--ease); -webkit-user-drag: none; user-select: none; }
.sx-slide.is-on .sx-mark { transform: none; }
.sx-cap { position: absolute; left: clamp(16px, 2vw, 28px); bottom: clamp(14px, 1.8vw, 24px); display: flex; flex-direction: column; gap: 2px; font-family: var(--font-mono); font-size: 0.75rem; opacity: 0.85; }
.sx-cap b { font-family: var(--font-display); font-size: 1rem; font-weight: 500; }
.sx-go { position: absolute; right: clamp(16px, 2vw, 28px); bottom: clamp(14px, 1.8vw, 24px); font-family: var(--font-mono); font-size: 0.75rem; padding: 8px 14px; border-radius: 100px; background: rgba(255, 255, 255, 0.16); opacity: 0; transform: translateY(6px); transition: opacity 0.3s ease, transform 0.3s var(--ease); }
.sx-slide:hover .sx-go, .sx-slide:focus-visible .sx-go { opacity: 1; transform: none; }
/* cortina roxa entre uma marca e outra */
.sx-wipe { position: absolute; inset: 0; background: var(--purple); clip-path: inset(0 100% 0 0); pointer-events: none; z-index: 2; }
.sx-wipe.run { animation: sxWipe 0.8s cubic-bezier(0.7, 0, 0.3, 1) both; }
@keyframes sxWipe { 0% { clip-path: inset(0 100% 0 0); } 46% { clip-path: inset(0 0 0 0); } 54% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 100%); } }
.sx-index { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sx-index button { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 0 8px; padding: 0 0 10px; background: none; border: 0; cursor: pointer; text-align: left; font: 500 0.95rem var(--font-display); color: var(--text-dim); position: relative; transition: color 0.25s ease; }
.sx-index button span { font: 0.72rem var(--font-mono); padding-top: 3px; }
.sx-index button.is-on, .sx-index button:hover { color: var(--text); }
.sx-index button i { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--border); }
.sx-index button b { position: absolute; inset: 0; background: var(--purple); transform: scaleX(0); transform-origin: left; }
.sx-index button.is-on b { transform: scaleX(1); }
/* Serra: marca provisória em HTML (sol + linhas + nome) */
.hm-serra { display: flex; flex-direction: column; align-items: center; color: #E3A93B; width: auto; max-height: none; }
.hm-serra svg { width: clamp(90px, 9vw, 170px); }
.hm-serra span { font-family: "Monomakh", Georgia, serif; font-size: clamp(2.6rem, 5vw, 5.4rem); line-height: 1; color: #F3E9D2; margin-top: 4px; }
.hm-serra small { margin-top: 8px; font: 500 0.7rem var(--font-mono); letter-spacing: 0.3em; text-transform: uppercase; color: #E3A93B; }

/* ---------- projetos ---------- */
.hw { padding-top: clamp(40px, 6vw, 90px); }
.hw-item { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 80px); padding: clamp(40px, 5vw, 72px) 0 clamp(72px, 9vw, 140px); border-top: 1px solid var(--border); }
.hw-info { position: sticky; top: clamp(90px, 9vw, 120px); align-self: start; }
.hw-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--purple); }
.hw-info h3 { margin-top: 10px; font-size: clamp(2.4rem, 4.4vw, 4.8rem); font-weight: 600; letter-spacing: -0.045em; line-height: 0.95; }
.hw-about { margin: clamp(16px, 1.8vw, 24px) 0 0; max-width: 40ch; font-size: clamp(1.02rem, 1.2vw, 1.15rem); line-height: 1.55; color: var(--text-muted); }
.hw-spec { margin: clamp(28px, 3vw, 44px) 0 clamp(28px, 3vw, 40px); }
.hw-spec div { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.hw-spec div:last-child { border-bottom: 1px solid var(--border); }
.hw-spec dt { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); padding-top: 3px; }
.hw-spec dd { margin: 0; font-size: 0.95rem; line-height: 1.5; }
.hw-spec div:last-child dd { font-family: var(--font-display); font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.35; }
.hw-media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.2vw, 20px); }
.hw-panel { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; background: #E4E1DB; }
.hw-panel.is-big { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.hw-panel img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hw-media:hover .hw-panel img { transform: scale(1.025); }
.hw-brand { display: flex; align-items: center; justify-content: center; }
.hw-mark { width: 62%; max-height: 50%; object-fit: contain; }
.hw-pattern { position: absolute; inset: 0; -webkit-mask-size: cover; mask-size: cover; -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }

/* ---------- processo (fundo tinta) ---------- */
.hp { background: var(--ink); color: var(--paper); }
.hp .hhead-note { color: rgba(244, 242, 238, 0.6); }
.hp .hhead-num { color: var(--purple-soft); }
.hp-track { position: relative; display: flex; flex-wrap: wrap; gap: 0 clamp(24px, 4vw, 72px); border-bottom: 1px solid rgba(244, 242, 238, 0.16); }
.hp-tab { display: flex; align-items: baseline; gap: 12px; padding: 0 0 18px; background: none; border: 0; cursor: pointer; font: 500 clamp(1.25rem, 2.2vw, 2.2rem) var(--font-display); letter-spacing: -0.02em; color: rgba(244, 242, 238, 0.38); transition: color 0.25s ease; }
.hp-tab span { font: 0.75rem var(--font-mono); color: var(--purple-soft); }
.hp-tab:hover, .hp-tab.is-on { color: var(--paper); }
.hp-bar { position: absolute; bottom: -2px; left: 0; width: 0; height: 3px; background: var(--purple); transition: left 0.5s var(--ease), width 0.5s var(--ease); }
.hp-panels { display: grid; margin-top: clamp(40px, 5vw, 80px); }
.hp-panel { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: clamp(24px, 4vw, 72px); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.45s ease, transform 0.6s var(--ease), visibility 0s 0.45s; }
.hp-panel.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.45s ease 0.1s, transform 0.6s var(--ease) 0.1s; }
.hp-panel h3 { font-size: clamp(2rem, 3.6vw, 3.8rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.hp-panel p { margin: 0; font-size: clamp(1rem, 1.2vw, 1.15rem); line-height: 1.65; color: rgba(244, 242, 238, 0.72); }
.hp-panel dl { margin: 0; padding-top: 14px; border-top: 2px solid var(--purple); }
.hp-panel dt { font: 0.72rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--purple-soft); }
.hp-panel dd { margin: 10px 0 0; font-family: var(--font-display); font-size: clamp(1.1rem, 1.4vw, 1.35rem); line-height: 1.35; }

/* ---------- serviços (fundo roxo) ---------- */
.hs { background: var(--purple); color: #fff; }
.hs .hhead-num, .hs .more-link { color: rgba(255, 255, 255, 0.75); }
.hs .hhead h2 i { color: var(--ink); }
.hs .more-link:hover { color: #fff; }
.hs-item { border-top: 1px solid rgba(255, 255, 255, 0.28); }
.hs-item:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.28); }
.hs-item summary { display: grid; grid-template-columns: clamp(40px, 6vw, 110px) 1fr auto; align-items: center; padding: clamp(18px, 2.4vw, 34px) 0; cursor: pointer; list-style: none; }
.hs-item summary::-webkit-details-marker { display: none; }
.hs-num { font: 0.8rem var(--font-mono); color: rgba(255, 255, 255, 0.7); }
.hs-item h3 { font-size: clamp(2.2rem, 5.6vw, 6rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; transition: transform 0.4s var(--ease); }
.hs-item summary:hover h3 { transform: translateX(10px); }
.hs-plus { position: relative; width: clamp(40px, 3.4vw, 58px); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.6); transition: transform 0.4s var(--ease), background 0.25s ease; }
.hs-plus::before, .hs-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 38%; height: 1.5px; background: #fff; transform: translate(-50%, -50%); }
.hs-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.hs-item[open] .hs-plus { transform: rotate(45deg); background: #fff; }
.hs-item[open] .hs-plus::before, .hs-item[open] .hs-plus::after { background: var(--purple); }
.hs-body { display: grid; grid-template-columns: clamp(40px, 6vw, 110px) minmax(0, 5fr) minmax(0, 6fr); gap: 0 clamp(24px, 4vw, 72px); padding: 0 0 clamp(28px, 3.4vw, 52px); }
.hs-body p { grid-column: 2; margin: 0; font-family: var(--font-display); font-size: clamp(1.15rem, 1.6vw, 1.6rem); line-height: 1.35; }
.hs-body ul { grid-column: 3; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.hs-body li { padding-left: 18px; position: relative; font-size: 1rem; }
.hs-body li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; background: #fff; border-radius: 50%; }

/* ---------- sobre ---------- */
.ha-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 96px); align-items: end; }
.ha-photo { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--purple); display: flex; align-items: flex-end; padding: clamp(16px, 2vw, 28px); }
.ha-photo span { font: 600 clamp(6rem, 11vw, 12rem)/0.8 var(--font-display); letter-spacing: -0.06em; color: #fff; }
.ha-photo i { font-style: normal; color: var(--ink); }
.ha-photo img { width: 100%; height: 100%; object-fit: cover; }
.ha-statement { margin: 18px 0 0; font: 500 clamp(1.7rem, 3vw, 3.2rem)/1.15 var(--font-display); letter-spacing: -0.03em; max-width: 26ch; }
.ha-statement em { font-style: normal; color: var(--purple); }
.ha-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: clamp(32px, 4vw, 56px) 0 clamp(24px, 3vw, 40px); padding-top: 18px; border-top: 1px solid var(--border); }
.ha-facts dt { font: 0.7rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 6px; }
.ha-facts dd { margin: 0; font-size: 0.95rem; }

/* ---------- chamada final + rodapé (fundo tinta, igual em todas as páginas) ---------- */
.cta-block { background: var(--ink); color: var(--paper); border-top: 0; padding-bottom: clamp(60px, 7vw, 110px); }
.cta-block .kicker { color: rgba(244, 242, 238, 0.6); }
.cta-block h2 { color: var(--paper); max-width: 14ch; }
.cta-block .cta-note { font-size: 0.95rem; color: rgba(244, 242, 238, 0.55); max-width: 30ch; }
.site-footer { display: block; padding: 0; border: 0; background: transparent; font-family: var(--font-body); font-size: 0.95rem; color: rgba(244, 242, 238, 0.6); }
.ft-cols { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr); gap: 24px; padding: clamp(32px, 4vw, 56px) var(--gutter) clamp(24px, 3vw, 40px); background: var(--ink); border-top: 1px solid rgba(244, 242, 238, 0.12); margin-bottom: -1px; }
.ft-brand { margin: 0; font: 600 1.25rem var(--font-display); color: var(--paper); letter-spacing: -0.02em; }
.ft-brand span { display: block; margin-top: 6px; font: 0.8rem var(--font-mono); letter-spacing: 0; color: rgba(244, 242, 238, 0.5); }
.ft-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ft-nav a { color: var(--paper); transition: color 0.2s ease; }
.ft-nav a:hover { color: var(--purple-soft); }
.ft-copy { margin: 0; font: 0.75rem/1.7 var(--font-mono); text-align: right; }
.sig { line-height: 0; }
.sig-svg { display: block; width: 100%; height: auto; overflow: visible; }
.sig-text { font-family: var(--font-display); font-weight: 700; font-size: 200px; letter-spacing: -0.05em; }
.sig-ink { fill: var(--ink); }
.site-footer::after { content: ""; display: block; height: clamp(16px, 2vw, 32px); background: var(--ink); margin-top: -1px; }

/* ---------- páginas internas no tema claro ---------- */
body:not([data-page="project"]) .about-photo { border-color: var(--border); background: #EAE6F2; }
body:not([data-page="project"]) .filter-btn:not(.is-active) { background: transparent; }
body:not([data-page="project"]) .process-step { background: #fff; }
body:not([data-page="project"]) .contact-row:hover .contact-label { color: var(--purple); }

body:not([data-page="project"]) .cform-send { background: var(--purple); color: #fff; }
body:not([data-page="project"]) .cform-send:hover { background: var(--ink); }
body:not([data-page="project"]) .cform-status[data-kind="error"] { color: #C0262D; }

/* ---------- responsivo ---------- */
@media (max-width: 1000px) {
  
  .hx { min-height: 0; }
  .sx-stage { max-height: none; }
  .hw-item { grid-template-columns: 1fr; }
  .hw-info { position: static; }
  .hp-panel { grid-template-columns: 1fr 1fr; }
  .hp-panel h3 { grid-column: 1 / -1; }
  .hs-body { grid-template-columns: 1fr; gap: 20px; }
  .hs-body p, .hs-body ul { grid-column: 1; }
  .ha-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .ha-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-cols { grid-template-columns: 1fr 1fr; }
  .ft-copy { text-align: left; }
}
@media (max-width: 720px) {
  .sx-index { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .hw-media { grid-template-columns: 1fr 1fr; }
  .hhead .more-link, .hhead-note { margin-left: 0; width: 100%; }
  .hp-track { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .hp-tab { white-space: nowrap; }
  .hp-panel { grid-template-columns: 1fr; }
  .hs-item summary { grid-template-columns: 36px 1fr auto; }
  .hs-body ul { grid-template-columns: 1fr 1fr; }
  .ha-grid { grid-template-columns: 1fr; }
  .ha-photo { max-width: 60%; }
}

/* home (out/2026, ajuste): abertura só com a apresentação; projetos com uma imagem principal */
.hx { align-items: flex-end; }
.hx-title { font-size: clamp(3rem, 8.4vw, 10.5rem); max-width: 13ch; line-height: 0.93; }
.hx-bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; margin-top: clamp(36px, 4.5vw, 72px); padding-top: clamp(20px, 2vw, 28px); border-top: 1px solid var(--border); }
.hx-bottom .hx-sub { margin: 0; }
.hx-bottom .hx-actions { margin: 0; }
.hw-item { align-items: center; }
.hw-info { position: static; }
.hw-media { grid-template-columns: 1fr; }
.hw-panel.is-big { aspect-ratio: 16 / 10; }
.hw-brand .hw-mark { transition: transform 1s var(--ease); }
.hw-media:hover .hw-mark { transform: scale(1.04); }
@media (max-width: 720px) { .hx-bottom { flex-direction: column; align-items: flex-start; } }
.hw-panel .hw-mark { width: 58%; height: auto; max-height: 52%; object-fit: contain; }
.hx-title { max-width: 17ch; }

/* =========================================================
   CASE PADRÃO (estilo: "padrao") — mesma estrutura para todos os projetos
   ========================================================= */
body[data-page="project"][data-case="padrao"] {
  --bg: var(--paper); --bg-raised: #fff; --text: var(--ink); --text-muted: #57525E; --text-dim: #6B6671;
  --accent: var(--purple); --accent-2: var(--purple); --border: rgba(14, 12, 18, 0.12); --radius: clamp(10px, 0.75vw, 16px);
}
body[data-page="project"][data-case="padrao"] .site-header { background: transparent; }
body[data-page="project"][data-case="padrao"] .site-header.scrolled { background: rgba(244, 242, 238, 0.86); border-bottom-color: transparent; }
body[data-page="project"][data-case="padrao"] .logo i { color: var(--purple); }
body[data-page="project"][data-case="padrao"] .nav-cta:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.pc { background: var(--paper); color: var(--ink); }
.pc .back-link { display: block; width: fit-content; margin-bottom: clamp(28px, 3vw, 44px); font: 0.8rem var(--font-mono); color: var(--text-muted); }
.pc .back-link:hover { color: var(--purple); }
.pc-hero { padding-top: clamp(130px, 13vw, 190px); padding-bottom: clamp(36px, 4vw, 64px); }
.pc-title { margin-top: 18px; font-size: clamp(3.4rem, 11vw, 12rem); font-weight: 600; letter-spacing: -0.055em; line-height: 0.88; }
.pc-sub { margin: clamp(16px, 2vw, 26px) 0 0; font-size: clamp(1.1rem, 1.6vw, 1.5rem); color: var(--text-muted); }
.pc-spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2fr); gap: 24px clamp(20px, 3vw, 48px); margin: clamp(40px, 5vw, 80px) 0 0; padding-top: 20px; border-top: 1px solid var(--border); }
.pc-spec dt { font: 0.7rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 8px; }
.pc-spec dd { margin: 0; font-size: 0.98rem; line-height: 1.5; }
.pc-spec .is-idea dd { font: 500 clamp(1.1rem, 1.45vw, 1.4rem)/1.35 var(--font-display); }
.pc-cover .hw-panel { aspect-ratio: 21 / 9; }
.pc-cover .hw-mark { width: 44%; max-height: 50%; height: auto; object-fit: contain; }

/* menu da página (fica preso abaixo do header) */
.pc-nav { position: sticky; z-index: 50; top: 64px; margin-top: clamp(48px, 6vw, 96px); background: rgba(244, 242, 238, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pc-nav-in { display: flex; align-items: center; gap: clamp(16px, 3vw, 48px); min-height: 52px; }
.pc-nav-in > b { font: 600 1rem var(--font-display); letter-spacing: -0.02em; white-space: nowrap; }
.pc-nav ol { display: flex; gap: clamp(14px, 2vw, 30px); list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.pc-nav ol::-webkit-scrollbar { display: none; }
.pc-nav a { display: flex; gap: 6px; align-items: baseline; padding: 16px 0; white-space: nowrap; font-size: 0.88rem; color: var(--text-dim); transition: color 0.2s ease; }
.pc-nav a span { font: 0.68rem var(--font-mono); }
.pc-nav a:hover, .pc-nav a.is-on { color: var(--ink); }
.pc-nav a.is-on span { color: var(--purple); }
.pc-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--purple); transform: scaleX(0); transform-origin: left; }

/* seções */
.pc-sec { padding: clamp(72px, 9vw, 150px) 0 0; scroll-margin-top: 120px; }
.pc-sec:last-of-type { padding-bottom: clamp(72px, 9vw, 150px); }
.pc-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 4vw, 80px); margin-bottom: clamp(36px, 4.5vw, 72px); }
.pc-label { margin: 0; padding-top: 0.6em; display: flex; gap: 12px; font: 0.78rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.pc-label span { color: var(--purple); }
.pc-lead { margin: 0; font: 500 clamp(1.7rem, 3.2vw, 3.4rem)/1.12 var(--font-display); letter-spacing: -0.03em; max-width: 24ch; }
.pc-h2 { font-size: clamp(2.2rem, 4.6vw, 5rem); font-weight: 600; letter-spacing: -0.045em; line-height: 0.98; max-width: 16ch; }
.pc-text { margin-top: clamp(20px, 2.4vw, 36px); columns: 2; column-gap: clamp(24px, 3vw, 56px); max-width: 64rem; }
.pc-text p { margin: 0 0 1em; break-inside: avoid; font-size: clamp(1rem, 1.15vw, 1.12rem); line-height: 1.65; color: var(--text-muted); }
.pc-text:has(p:only-child) { columns: 1; max-width: 40rem; }

/* galeria: g = largura toda, m = metade, p / v = um terço */
.pc-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(10px, 1.2vw, 20px); align-items: start; }
.wrap:has(> .pc-fonts) + .pc-grid { margin-top: clamp(10px, 1.2vw, 20px); }   /* imagem logo depois das fontes: mesmo respiro do grid */
.pc-fig { margin: 0; grid-column: span 3; }
.pc-g { grid-column: 1 / -1; }
.pc-p, .pc-v { grid-column: span 2; }
.pc-frame { position: relative; overflow: hidden; border-radius: var(--radius); background: #E4E1DB; }
.pc-frame img, .pc-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; font: 0.75rem var(--font-mono); color: var(--text-dim); }
.pc-fig figcaption { margin-top: 10px; font: 0.74rem var(--font-mono); color: var(--text-dim); }

/* cores do cliente */
.pc-colors { display: flex; height: clamp(260px, 32vw, 520px); border-radius: var(--radius); overflow: hidden; }
.pc-color { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: clamp(16px, 2vw, 28px); transition: flex-grow 0.6s var(--ease); }
.pc-color:hover { flex-grow: 1.8; }
.pc-color b { font: 600 clamp(1.3rem, 2vw, 2rem) var(--font-display); letter-spacing: -0.02em; }
.pc-color span { font: 0.78rem var(--font-mono); opacity: 0.8; }

/* fontes do cliente */
.pc-fonts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(10px, 1.2vw, 20px); }
.pc-font { background: #fff; border-radius: var(--radius); padding: clamp(22px, 2.6vw, 40px); display: flex; flex-direction: column; min-height: clamp(380px, 34vw, 560px); }
.pc-font-head { display: flex; justify-content: space-between; gap: 16px; font: 0.74rem var(--font-mono); color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.pc-font-head b { color: var(--ink); font-weight: 500; }
.pc-font-aa { margin-top: auto; font-size: clamp(7rem, 13vw, 14rem); line-height: 0.9; }
.pc-font-sample { margin: 18px 0 0; font-size: clamp(1.1rem, 1.7vw, 1.6rem); line-height: 1.3; }
.pc-font-glyphs { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: 0.95rem; line-height: 1.6; color: var(--text-muted); word-break: break-all; }

/* a cena exclusiva: faixa nas cores da marca */
.pc-moment { margin-top: 0; }
.pc-moment .ly-build { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); }

/* próximo case */
.pc-next { display: block; background: var(--paper); border-top: 1px solid var(--border); transition: background 0.3s ease; }
.pc-next-in { padding-top: clamp(56px, 7vw, 110px); padding-bottom: clamp(56px, 7vw, 110px); display: flex; flex-direction: column; gap: 14px; }
.pc-next-title { font: 600 clamp(2.6rem, 8vw, 8rem)/0.95 var(--font-display); letter-spacing: -0.05em; }
.pc-next-title span { display: inline-block; transition: transform 0.4s var(--ease); }
.pc-next:hover { background: #ECE8F6; }
.pc-next:hover .pc-next-title span { transform: translateX(14px); }

@media (max-width: 1000px) {
  .pc-spec { grid-template-columns: 1fr 1fr; }
  .pc-spec .is-idea { grid-column: 1 / -1; }
  .pc-head { grid-template-columns: 1fr; }
  .pc-nav-in > b { display: none; }
}
@media (max-width: 720px) {
  .pc-text { columns: 1; }
  /* celular: tudo um embaixo do outro, na largura toda (antes p/v ficavam 3 por linha e pequenos demais) */
  .pc-fig, .pc-g, .pc-p, .pc-v { grid-column: 1 / -1; }
  .pc-grid { row-gap: 14px; }
  .pc-fig figcaption { font-size: 0.66rem; }
  .pc-colors { flex-direction: column; height: auto; }
  .pc-color { min-height: 110px; }
  .pc-cover .hw-panel { aspect-ratio: 4 / 3; }
  .pc-cover .hw-mark { width: 66%; }
}
/* padrão: cenas exclusivas reaproveitadas dos cases antigos */
.pc-moment.tl-case .tl-scrub { height: 240vh; }
.pc-moment.ex-case { background: #1E2023; }
.pc-moment .ex-mark { height: calc(var(--n, 3) * 70vh + 100vh); }
.pc-moment .ex-mark-ui { visibility: hidden; }
.pc-moment.sr-case { background: #1E3B30; }
/* motivos (ex.: "Why Serra") */
.pc-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 56px) clamp(24px, 4vw, 80px); }
.pc-point { padding-top: 18px; border-top: 1px solid var(--border); }
.pc-point span { font: 0.75rem var(--font-mono); color: var(--purple); }
.pc-point h3 { margin-top: 12px; font-size: clamp(1.4rem, 2.2vw, 2.2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.pc-point p { margin: 14px 0 0; max-width: 52ch; font-size: clamp(1rem, 1.1vw, 1.08rem); line-height: 1.65; color: var(--text-muted); }
/* cores: notas abaixo e cor de detalhe mais estreita */
.pc-color.is-narrow { flex: 0.45; }
.pc-color.is-narrow:hover { flex-grow: 1; }
.pc-color[style*="#FFFFFF"], .pc-color[style*="#F2EADC"], .pc-color[style*="#E9E5DC"], .pc-color[style*="#E5D8C5"] { box-shadow: inset 0 0 0 1px var(--border); }
.pc-color-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; margin-top: 20px; }
.pc-color-notes p { margin: 0; font-size: 0.92rem; line-height: 1.5; color: var(--text-muted); }
.pc-color-notes b { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 500; }
/* marca em vetor e pattern dentro da galeria */
.pc-brand { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.pc-brand .hw-mark { width: 60%; max-height: 50%; height: auto; object-fit: contain; }
.pc-brand .hm-serra { transform: scale(0.9); }
.pc-frame .hw-pattern { -webkit-mask-size: cover; mask-size: cover; }
/* etiquetas da NOMAD */
.pc-knoll { margin-top: 8px; padding: clamp(28px, 4vw, 64px); border-radius: var(--radius); background: #2A2D31; overflow: hidden; }
@media (max-width: 720px) {
  .pc-points { grid-template-columns: 1fr; }
  .pc-color.is-narrow { flex: 1; }
}
/* KOMGROUP: cena "o O vira símbolo, pattern e logo" */
.pc-brand .hw-mark { width: var(--mk-w, 60%); }
.ko-moment { padding: clamp(8px, 1vw, 16px) 0 0; }
.ko-stage { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #FFFFFF; }
.ko-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 720px) { .ko-stage { aspect-ratio: 4 / 3.4; } }
.pc-frame .pc-brand .hw-mark { position: static; inset: auto; width: var(--mk-w, 60%); height: auto; max-height: 56%; object-fit: contain; }
/* (out/2026) nenhuma imagem passa de 900 px de altura nem da altura da tela: a largura se ajusta à proporção */

.pc-fig figcaption { display: none; }

.pc-moment .ly-stage-ui, .pc-moment .ly-build-cap { display: none; }
@media (max-width: 720px) { .pc-moment .ly-stage, .ko-stage { max-width: none; } }

/* (out/2026) cases: uma largura só para tudo (imagens, cenas, cores, fontes) = 1800 px no máximo,
   e nunca mais que 2× a altura da tela — assim a imagem 2:1 nunca passa de 900 px nem da tela */
.pc .wrap { max-width: calc(min(1800px, 176vh) + 2 * var(--gutter)); }
.pc-frame { width: 100%; }
.pc-moment .ly-stage, .ko-stage { aspect-ratio: 2 / 1; max-width: none; }
.pc-cover .hw-panel { aspect-ratio: 2 / 1; }
@media (max-width: 720px) { .pc-moment .ly-stage, .ko-stage, .pc-cover .hw-panel { aspect-ratio: 4 / 3; } }
/* capa da home e do case: imagem principal no tamanho G (2:1) */
.hw-panel.is-big, .pc-cover .hw-panel { aspect-ratio: 2 / 1; }
.pc-cover .hw-panel img:not(.hw-mark) { width: 100%; height: 100%; object-fit: cover; display: block; }   /* a marca em vetor (KOMGROUP) não estica */

/* KOMGROUP (out/2026): túnel de O's + letras saindo do O; diagrama de construção */
.ko-svg { overflow: visible; }
.ko-letters path, .ko-o path { fill: #001781; }   /* azul novo (nov/2026), só nesta animação */
.ko-back { fill: #FFFFFF; }
.kc-stage { position: relative; margin: 0; aspect-ratio: 2 / 1; border-radius: var(--radius); overflow: hidden; background: #FFFFFF; }
.kc-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.kc-grid line { stroke: #0005FF; stroke-opacity: 0.07; stroke-width: 0.5; }
.kc-logo path { fill: #001781; transition: opacity 0.6s ease, fill 0.6s ease; }
.kc-logo { transform-box: fill-box; transform-origin: center; transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1); }
.kc-stage[data-step="1"] .kc-logo path:not(.is-o) { opacity: 0.14; }
.kc-stage[data-step="3"] .kc-logo { transform: scale(0.45); }
.kc-s { opacity: 0; transition: opacity 0.6s ease; }
.kc-stage[data-step="0"] .kc-s0, .kc-stage[data-step="1"] .kc-s1, .kc-stage[data-step="2"] .kc-s2, .kc-stage[data-step="3"] .kc-s3 { opacity: 1; transition-delay: 0.25s; }
.kc-s line, .kc-br, .kc-lead, .kc-box, .kc-ruler { fill: none; stroke: #0005FF; stroke-width: 0.6; }
.kc-s0 line { stroke-dasharray: 3 3; stroke-opacity: 0.6; }
.kc-box { stroke-dasharray: 3 3; }
.kc-band { fill: #0005FF; fill-opacity: 0.08; }
.kc-core path { fill: #001781; fill-opacity: 0.55; }
.kc-s text { font: 500 7px var(--font-mono, monospace); fill: #0005FF; letter-spacing: 0.04em; }
.kc-tag { position: absolute; left: clamp(14px, 2vw, 28px); top: clamp(12px, 1.8vw, 24px); display: flex; gap: 0.7em; font: 500 0.78rem var(--font-mono, monospace); color: #0005FF; text-transform: uppercase; letter-spacing: 0.06em; }
.kc-n { opacity: 0.5; }
@media (max-width: 720px) { .kc-stage { aspect-ratio: 4 / 3; } .kc-s text { font-size: 12px; } }

/* HOME: ao passar o mouse, uma imagem de dentro do case aparece por cima (out/2026) */
.hw-alt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 0.6s var(--ease), transform 1.2s var(--ease); pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .hw-media:hover .hw-alt, .hw-media:focus-visible .hw-alt { opacity: 1; transform: none; }
}

/* Serviços agrupados (out/2026): cada grupo lista os serviços com uma linha de descrição */
.hs-body ul.hs-sub { grid-template-columns: 1fr; gap: 0; }
.hs-sub li { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.22); display: grid; grid-template-columns: minmax(0, 11rem) 1fr; gap: 16px; }
.hs-sub li:first-child { border-top: 0; padding-top: 0; }
.hs-sub li::before { display: none; }
.hs-sub b { font-weight: 600; }
.hs-sub span { opacity: 0.85; line-height: 1.45; }
.deliverables .hs-sub li { display: grid; grid-template-columns: minmax(0, 10rem) 1fr; gap: 16px; padding: 12px 0; }
.deliverables .hs-sub span { color: var(--text-muted); line-height: 1.45; }
@media (max-width: 720px) { .hs-sub li, .deliverables .hs-sub li { grid-template-columns: 1fr; gap: 4px; } }

/* Cantos (out/2026): o raio do tema passou de 6px para clamp(10px, 0.75vw, 16px) — imagens, cards, palcos e caixas usam var(--radius) */

/* Lista de trabalhos (out/2026): home e Work com o mesmo cartão; "Coming soon" no mesmo formato, sem link */
.soon-mini { display: inline-flex; align-items: center; gap: 7px; margin-left: 12px; font: 500 0.68rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); vertical-align: middle; }
.soon-mini::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--purple, #7600E8); animation: soon-pulse 2.4s ease-in-out infinite; }
@keyframes soon-pulse { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .soon-mini::before { animation: none; } }
.hw-item.is-soon .hw-media { cursor: default; }
.hw-panel.is-soon { position: relative; }

.hw-wordmark { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 5.4rem); letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; color: #fff; padding-left: 0.06em; }
.hw-all { display: flex; justify-content: center; padding: clamp(8px, 1vw, 16px) 0 0; }
/* Work: grade com os cartões da home */
.wk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 4vw, 64px) clamp(14px, 1.6vw, 28px); }
.wk-card { display: block; color: inherit; text-decoration: none; }
.wk-card .hw-panel { aspect-ratio: 2 / 1; }
.wk-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding-top: clamp(14px, 1.4vw, 20px); }
.wk-meta h2, .wk-meta h3 { margin: 0; font-size: clamp(1.5rem, 2.2vw, 2.2rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.wk-sector { color: var(--text-muted); font-size: 0.95rem; }
.wk-go { margin-left: auto; font-size: 0.9rem; font-weight: 500; }
.wk-card .soon-mini { margin-left: auto; }
.wk-card.is-soon { cursor: default; }
a.wk-card:hover .hw-panel img:not(.hw-alt) { transform: scale(1.025); }
@media (max-width: 720px) { .wk-grid { grid-template-columns: 1fr; } .hw-wordmark { font-size: clamp(2.2rem, 12vw, 4rem); } }

/* Foto do About na home (out/2026): a foto fica por cima do cartão roxo "D."; no hover ela some e o "D." aparece */
.ha-photo.has-photo { position: relative; }
.ha-photo.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: opacity 0.6s var(--ease), transform 0.9s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .ha-photo.has-photo:hover img { opacity: 0; transform: scale(1.03); }
}
.about-photo img { object-position: 50% 30%; }

/* Cartão roxo do About (out/2026): por baixo da foto; no hover aparece com informações rápidas + o "D."
   tamanhos em cqw (relativos à largura do cartão), para caber em qualquer tela */
.ha-photo.has-photo { container-type: inline-size; }
.ha-card { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 6cqw; color: #fff; }
.ha-card-role { margin: 0; font: 500 3.3cqw var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.ha-card-list { list-style: none; margin: 4cqw 0 0; padding: 0; }
.ha-card-list li { display: grid; gap: 0.4cqw; padding: 2.7cqw 0; border-top: 1px solid rgba(255, 255, 255, 0.22); font-size: 4cqw; line-height: 1.35; color: rgba(255, 255, 255, 0.8); }
.ha-card-list b { font-family: var(--font-display); font-weight: 600; font-size: 5.2cqw; color: #fff; }
.ha-photo .ha-card-d { margin-top: auto; font: 600 30cqw/0.8 var(--font-display); letter-spacing: -0.06em; }
.ha-card-d i { font-style: normal; color: var(--ink); }
.ha-photo.has-photo .ha-card > * { opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .ha-photo.has-photo:hover .ha-card > * { opacity: 1; transform: none; }
  .ha-photo.has-photo:hover .ha-card-list { transition-delay: 0.08s; }
  .ha-photo.has-photo:hover .ha-card-d { transition-delay: 0.14s; }
}

/* Formulário de contato (out/2026, no modelo enviado pelo Davi): texto à esquerda, campos em caixas cinza à direita */
.cform-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.cform-intro { position: sticky; top: clamp(90px, 9vw, 120px); }
.cform-intro h2 { margin: 0; font-size: clamp(1.8rem, 2.8vw, 2.8rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.cform-intro h2 i { font-style: normal; color: var(--purple); }
.cform-intro p { margin: clamp(14px, 1.4vw, 20px) 0 0; max-width: 36ch; color: var(--text-muted); line-height: 1.55; }
.cform-layout .cform { max-width: none; display: grid; gap: 12px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ff { position: relative; display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 14px 18px 12px; border: 1px solid transparent; border-radius: var(--radius); background: #EAE7E1; transition: background 0.2s ease, border-color 0.2s ease; cursor: text; min-width: 0; }
.ff:focus-within { background: #E3DFD8; border-color: rgba(14, 12, 18, 0.25); }
.ff > span, .ff > legend { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.ff i { font-style: normal; color: var(--purple); }
.ff input, .ff textarea, .ff select { width: 100%; border: 0; padding: 4px 0 2px; background: transparent; font: inherit; font-size: 1rem; color: var(--text); outline: none; }
.ff textarea { resize: vertical; min-height: 5.5em; line-height: 1.5; }
.ff-select { cursor: pointer; }
.ff-select select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px; min-height: 1.6em; }
.ff-select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%230E0C12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; pointer-events: none; }
.ff-group { cursor: default; padding-bottom: 16px; }
.ff-group > legend { float: left; width: 100%; padding: 0; }
.fchks { clear: both; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; padding-top: 12px; }
.fchk { position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.95rem; color: var(--text-muted); }
.fchk input, .fconsent input { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 0; border: 1.5px solid rgba(14, 12, 18, 0.4); border-radius: 5px; background: #fff; cursor: pointer; display: grid; place-content: center; }
.fchk input::after, .fconsent input::after { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--purple); transform: scale(0); transition: transform 0.15s ease; }
.fchk input:checked::after, .fconsent input:checked::after { transform: scale(1); }
.fchk input:checked { border-color: var(--purple); }
.fchk input:checked + span { color: var(--text); }
.fchk input:focus-visible, .fconsent input:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.ff.is-invalid, .ff-group.is-invalid { border-color: #E5484D; }
.cform-layout .cform-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 10px; }
.fconsent { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 0.9rem; font-weight: 500; max-width: 34rem; }
.fconsent input { margin-top: 1px; }
.fconsent small { display: block; margin-top: 4px; font-size: 0.78rem; font-weight: 400; color: var(--text-muted); }
.fconsent.is-invalid input { border-color: #E5484D; }
.cform-layout .cform.is-sent > :not(.cform-status) { display: none; }
@media (max-width: 900px) {
  .cform-layout { grid-template-columns: 1fr; }
  .cform-intro { position: static; }
  .fchks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .frow { grid-template-columns: 1fr; } }

/* Dropdowns e opções do formulário (out/2026) */
.ff-select { cursor: pointer; user-select: none; }
.fsel-native { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.fsel-btn { all: unset; display: block; padding: 4px 48px 2px 0; font-size: 1rem; color: var(--text); cursor: pointer; }
.fsel-btn.is-empty { color: var(--text-dim); }
.fsel-btn:focus-visible { outline: none; }
.ff-select:has(.fsel-btn:focus-visible) { border-color: rgba(14, 12, 18, 0.35); background: #E3DFD8; }
.ff-select::after { transition: transform 0.25s var(--ease); }
.ff-select.is-open { z-index: 20; background: #E3DFD8; border-color: rgba(14, 12, 18, 0.25); }
.ff-select.is-open::after { transform: rotate(180deg); }
.fsel-list { position: absolute; left: -1px; right: -1px; top: calc(100% + 6px); z-index: 30; margin: 0; padding: 6px; list-style: none; max-height: 290px; overflow: auto; background: #fff; border: 1px solid rgba(14, 12, 18, 0.1); border-radius: var(--radius); box-shadow: 0 18px 40px -16px rgba(14, 12, 18, 0.28); }
.fsel-list li { position: relative; padding: 12px 40px 12px 14px; border-radius: calc(var(--radius) - 4px); font-size: 0.98rem; color: var(--text); cursor: pointer; }
.fsel-list li.is-hl { background: #F1EEE8; }
.fsel-list li[aria-selected="true"] { color: var(--purple); font-weight: 500; }
.fsel-list li[aria-selected="true"]::after { content: ""; position: absolute; right: 14px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%237600E8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* entregas: pílulas que ficam roxas com um ✓ quando marcadas */
.fchks { display: flex; flex-wrap: wrap; gap: 8px; }
.fchk { gap: 0; }
.fchk input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.fchk span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid rgba(14, 12, 18, 0.16); border-radius: 999px; background: #fff; font-size: 0.93rem; color: var(--text); transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.fchk span::before { content: ""; width: 0; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: width 0.2s ease; margin-right: -8px; }
.fchk:hover span { border-color: rgba(14, 12, 18, 0.4); }
.fchk input:checked + span { background: var(--purple); border-color: var(--purple); color: #fff; }
.fchk input:checked + span::before { width: 14px; margin-right: 0; }
.fchk input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 2px; }
.ff-group.is-invalid .fchk span { border-color: rgba(229, 72, 77, 0.6); }
.fconsent input { width: 20px; height: 20px; border-radius: 6px; }
.fconsent input::after { width: 12px; height: 12px; border-radius: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.fconsent input:checked { background: var(--purple); border-color: var(--purple); }

/* ===== KOMGROUP: atributos do símbolo (extra "komgroup-atributos") ===== */
.ka-grid { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 20px); }
.ka-card { margin: 0; background: #001781; color: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.ka-svg { display: block; width: 100%; aspect-ratio: 4 / 3; }
.ka-card figcaption { padding: 0 clamp(16px, 1.6vw, 28px) clamp(18px, 1.8vw, 30px); display: grid; gap: 0.45em; }
.ka-card b { font: 600 0.78rem var(--font-mono, monospace); letter-spacing: 0.12em; text-transform: uppercase; color: #A9B6EC; }
.ka-card span { font-size: 0.98rem; line-height: 1.45; color: rgba(255, 255, 255, 0.86); }
.ka-svg rect, .ka-svg path, .ka-circle { fill: none; stroke: #fff; }
.ka-core, .ka-dot { fill: #fff !important; stroke: none !important; }
/* Human: impressão digital orgânica, as linhas se desenham de dentro para fora */
.ka-ridge { stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: ka-ridge 5.6s cubic-bezier(.6,0,.3,1) infinite; animation-delay: calc(var(--i) * 0.09s); }
@keyframes ka-ridge { 0% { stroke-dashoffset: 100; opacity: 1; } 45%, 82% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
/* Trust: os pontos se juntam e o círculo se fecha */
.ka-dot { animation: ka-gather 5s cubic-bezier(.65,0,.35,1) infinite; animation-delay: calc(var(--i) * 0.03s); }
@keyframes ka-gather { 0% { transform: translate(var(--dx), var(--dy)); opacity: 0; } 10% { opacity: 1; } 40%, 86% { transform: none; opacity: 1; } 100% { transform: none; opacity: 0; } }
.ka-circle { stroke-width: 5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: ka-close 5s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes ka-close { 0%, 38% { stroke-dashoffset: 100; opacity: 1; } 66%, 86% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
/* Digital: botão de liga/desliga */
.ka-track { stroke-width: 12; fill: rgba(255, 255, 255, 0) !important; }
.ka-botao .is-knob { animation: ka-knob 3.6s cubic-bezier(.65,0,.35,1) infinite; }
.ka-botao .ka-track { animation: ka-track 3.6s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes ka-knob { 0%, 15% { transform: translateX(-36px); } 45%, 70% { transform: translateX(36px); } 100% { transform: translateX(-36px); } }
@keyframes ka-track { 0%, 15% { fill: rgba(255,255,255,0); } 45%, 70% { fill: rgba(0,5,255,.55); } 100% { fill: rgba(255,255,255,0); } }
@media (max-width: 900px) { .ka-grid { grid-template-columns: 1fr; } .ka-svg { aspect-ratio: 2 / 1; } }
@media (prefers-reduced-motion: reduce) { .ka-svg * { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1 !important; transform: none !important; } }

/* ---------- WILKER: cena "capturando o momento" (out/2026) — linha branca, sem brilho, visor discreto ---------- */
.wk-moment { padding: clamp(8px, 1vw, 16px) 0 0; }
.wk-stage { position: relative; margin: 0; aspect-ratio: 2 / 1; border-radius: var(--radius); overflow: hidden; background: #212121; }
.wk-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wk-trail, .wk-name path { fill: #FFFFFF; }
.wk-name { opacity: 0; }
.wk-hud path { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: .8; }
.wk-tc { font-family: var(--font-mono, monospace); font-size: 7.5px; letter-spacing: .12em; fill: rgba(255, 255, 255, .55); }
.wk-flash { fill: #FFFFFF; opacity: 0; pointer-events: none; }
@media (max-width: 720px) { .wk-stage { aspect-ratio: 4 / 3; } .wk-tc { font-size: 10px; } }

/* ===== KOMGROUP: cor + tipografia (extra "komgroup-cor-tipo", nov/2026) — espécime em papel branco + faixas de cor ===== */
.kt { --kt-ink: #333333; --kt-line: rgba(51, 51, 51, 0.22); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: #FFFFFF; color: var(--kt-ink); border-radius: var(--radius); overflow: hidden; font-family: "Barlow", "Helvetica Neue", Arial, sans-serif; }
.kt-type { display: flex; flex-direction: column; min-width: 0; padding: clamp(20px, 2.4vw, 48px); }
.kt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.kt-head span, .kt-row span { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.02em; }
.kt-head b { font-size: clamp(1.1rem, 1.6vw, 1.6rem); font-weight: 400; color: #001781; }
.kt-big { margin: clamp(20px, 2.4vw, 48px) 0 clamp(20px, 2.4vw, 48px); font-size: clamp(2rem, 3.4vw, 4.4rem); line-height: 0.95; font-weight: 200; letter-spacing: -0.03em; color: #001781; max-width: 12ch; }
.kt-row { border-top: 1px solid var(--kt-line); padding: 10px 0 clamp(12px, 1.2vw, 20px); }
.kt-row:last-child { margin-top: auto; }
.kt-glyphs { margin: 6px 0 0; font-size: clamp(1rem, 1.5vw, 1.8rem); font-weight: 400; letter-spacing: 0.02em; line-height: 1.15; overflow-wrap: anywhere; }
.kt-split { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 56px); }
.kt-split > div { min-width: 0; }
.kt-weights { margin: 6px 0 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 6px; font-size: clamp(1rem, 1.5vw, 1.8rem); }
.kt-weights b { font-weight: inherit; }
.kt-colors { display: flex; flex-direction: column; min-width: 0; }
.kt-color { flex: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: clamp(14px, 1.8vw, 32px); }
.kt-color:first-child { flex: 1.5; }
.kt-color:nth-child(3) { border-bottom: 1px solid var(--kt-line); }
.kt-color b { font-size: clamp(1.1rem, 1.7vw, 1.8rem); font-weight: 600; letter-spacing: -0.01em; }
.kt-color dl { margin: 0; display: grid; gap: 2px; text-align: right; font-size: 0.78rem; line-height: 1.35; }
.kt-color dl div { display: flex; justify-content: flex-end; gap: 8px; }
.kt-color dt { opacity: 0.6; font-weight: 500; }
.kt-color dd { margin: 0; font-weight: 500; }
@media (max-width: 900px) {
  .kt { grid-template-columns: 1fr; }
  .kt-colors { min-height: 0; }
  .kt-color { min-height: 120px; }
  .kt-color:first-child { min-height: 220px; }
  .kt-split { grid-template-columns: 1fr; gap: 0; }
  .kt-glyphs { font-size: 4.4vw; letter-spacing: 0; }
  .kt-split > div + div { border-top: 1px solid var(--kt-line); margin-top: 16px; padding-top: 12px; }
}

/* (nov/2026) galeria na proporção real de cada imagem: a largura diminui só quando a imagem passaria de 900 px
   de altura (ou da altura da tela); aí ela fica centralizada */
.pc-fig .pc-frame { max-width: calc(min(900px, 88vh) * var(--r, 2)); margin-inline: auto; }
/* celular: imagens dos cases de ponta a ponta (sem a margem lateral), para não ficarem pequenas */
@media (max-width: 720px) {
  .pc-grid { padding-left: 0; padding-right: 0; }
  .pc-grid .pc-frame { border-radius: 0; max-width: none; }
}
/* KOMGROUP, atributos: digital e círculo estáticos (o Davi achou as animações estranhas); só o botão anima */
.ka-ridge, .ka-dot, .ka-circle { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1 !important; transform: none !important; }

/* =========================================================
   CASE ENXUTO (nov/2026) — estrutura inspirada no Estúdio Kimura
   margens leves e iguais · imagens na largura toda com espaço pequeno entre elas · poucos títulos
   ========================================================= */
.pc { --pc-g: clamp(16px, 2.2vw, 40px); --pc-gap: clamp(8px, 0.9vw, 16px); }
.pc .wrap { max-width: none; padding-left: var(--pc-g); padding-right: var(--pc-g); }
/* topo: nome, texto curto e ficha */
.pc-hero { padding-bottom: clamp(32px, 4vw, 64px); }
.pc-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 96px); align-items: start; margin-top: clamp(28px, 3.5vw, 56px); }
.pc-intro p { margin: 0 0 1em; max-width: 46rem; font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.55; color: var(--ink); }
.pc-intro p + p { color: var(--text-muted); }
.pc-top .pc-spec { grid-template-columns: 1fr; gap: 18px; margin: 0; padding-top: 0; border-top: 0; }
.pc-top .pc-spec div { padding-top: 12px; border-top: 1px solid var(--border); }
/* seções: o nome só aparece quando a seção começa; o resto continua o fluxo de imagens */
.pc-sec.is-new { padding-top: clamp(72px, 9vw, 150px); }
.pc-sec.is-cont { padding-top: var(--pc-gap); }
.pc-sec.is-cont:has(> .pc-head) { padding-top: clamp(48px, 6vw, 104px); }
.pc-sec:last-of-type { padding-bottom: clamp(72px, 9vw, 150px); }
.pc-head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-bottom: 0; }
.pc-sec > .pc-head + * { margin-top: clamp(28px, 3.5vw, 56px); }
.pc-sec > :not(.pc-head) + :not(.pc-head) { margin-top: var(--pc-gap); }
.wrap:has(> .pc-fonts) + .pc-grid { margin-top: var(--pc-gap); }
.pc-sname { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.6rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.pc-h3 { margin: 0 0 14px; font-size: clamp(1.15rem, 1.5vw, 1.45rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; max-width: 34ch; }
.pc-copy .pc-text { margin-top: 0; }
.pc-copy .pc-text p { color: var(--text-muted); }
/* galeria: espaço pequeno e igual; altura nunca passa da tela (a largura se ajusta, sem distorcer) */
.pc-grid { gap: var(--pc-gap); }
.pc-fig .pc-frame { max-width: calc((100vh - 2 * var(--pc-g)) * var(--r, 2)); }
.pc-moment .ly-stage, .ko-stage, .wk-stage, .pc-cover .hw-panel { max-width: calc((100vh - 2 * var(--pc-g)) * 2); margin-inline: auto; }
@media (max-width: 900px) {
  .pc-top { grid-template-columns: 1fr; }
  .pc-head { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 720px) {
  /* celular: margem leve dos lados (sem ponta a ponta); grandes e médias na largura toda, pequenas 2 por linha */
  .pc-grid { padding-left: var(--pc-g); padding-right: var(--pc-g); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-grid .pc-frame { border-radius: var(--radius); }
  .pc-fig, .pc-g, .pc-m { grid-column: 1 / -1; }
  .pc-p, .pc-v { grid-column: span 1; }
  .pc-grid > .is-solo { grid-column: 1 / -1; }
  .pc-grid { row-gap: var(--pc-gap); }
  .pc-cover .hw-panel { aspect-ratio: 4 / 3; }
}

/* (nov/2026) galeria em linhas justificadas: largura de cada imagem proporcional ao formato (--fd/--fm, calculadas em
   pcSolo) → todas as imagens de uma linha têm a mesma altura, sem cortar. 0.5px de folga evita quebra de linha por arredondamento. */
.pc-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--pc-gap); }
.pc-grid > .pc-fig { flex: none; width: calc((100% - (var(--nd, 1) - 1) * var(--pc-gap)) * var(--fd, 1) - 0.5px); }
.pc-grid > .pc-fig .pc-frame { max-width: none; }
.pc-grid > .pc-fig[style*="--nd:1;"] .pc-frame { max-width: calc((100vh - 2 * var(--pc-g)) * var(--r, 2)); }
@media (max-width: 720px) {
  .pc-grid > .pc-fig { width: calc((100% - (var(--nm, 1) - 1) * var(--pc-gap)) * var(--fm, 1) - 0.5px); }
  .pc-grid > .pc-fig .pc-frame { max-width: none; }
}

/* topo do case aparece na hora (sem esperar o JS): título, apresentação e capa são o que a pessoa vê primeiro */
.js .pc-hero .reveal, .js .pc-cover.reveal { opacity: 1; transform: none; transition: none; }
