/* ==========================================================================
   Wendel Laurindo — site pessoal
   Direção: bancada de corte a laser. Preto de máquina, MDF cru, feixe vermelho.
   ========================================================================== */

:root {
  --tinta: #0e0c0a;
  --tinta-2: #171310;
  --papel: #f1e8d8;
  --fosco: #a2978a;
  --linha: rgba(241, 232, 216, 0.14);
  --mdf: #d3a468;
  --mdf-claro: #e9dabd;
  --mdf-sombra: #cfb98f;
  --queima: #3a2213;
  --laser: #ff4a1c;

  --display: "Archivo", "Arial Narrow", sans-serif;
  --serifa: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --margem: clamp(1.15rem, 4vw, 3.75rem);
  --topo: 4.25rem;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--tinta);
}

body {
  margin: 0;
  background: var(--tinta);
  color: var(--papel);
  font-family: var(--serifa);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
::selection { background: var(--laser); color: var(--tinta); }

:focus-visible {
  outline: 2px solid var(--laser);
  outline-offset: 3px;
}

.pular {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--mono);
  font-size: 0.8rem;
}
.pular:focus { left: 0.5rem; }

/* --------------------------------------------------------------------------
   Topo
   -------------------------------------------------------------------------- */
.topo {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  height: var(--topo);
  padding: 0 var(--margem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fosco);
}

.marca svg {
  width: 2.75rem;
  height: 1.75rem;
  fill: none;
  stroke: var(--laser);
  stroke-width: 2.2;
  stroke-linejoin: miter;
  stroke-linecap: square;
}

.topo nav { display: flex; gap: clamp(1rem, 2.5vw, 2.25rem); }
.topo nav a { padding: 0.5rem 0; transition: color 0.2s; }
.topo nav a span { color: var(--laser); margin-right: 0.35em; }
.topo nav a:hover { color: var(--papel); }
.local { white-space: nowrap; }

/* --------------------------------------------------------------------------
   01 · Capa
   -------------------------------------------------------------------------- */
.capa {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--topo) + clamp(0.75rem, 2.5vh, 2rem)) var(--margem) clamp(2rem, 5vh, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: stretch;
  isolation: isolate;
}

/* mesa colmeia da máquina + brasa no canto */
.capa::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 34rem at 108% 104%, rgba(255, 74, 28, 0.13), transparent 62%),
    radial-gradient(48rem 30rem at -8% -10%, rgba(211, 164, 104, 0.09), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='72.75' viewBox='0 0 42 72.75'%3E%3Cpath d='M21 0v12.12L0 24.25v24.25l21 12.13 21-12.13V24.25L21 12.12M21 60.63v12.12' fill='none' stroke='%23f1e8d8' stroke-opacity='.05' stroke-width='1'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

.capa-texto {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding-top: clamp(0.5rem, 3vh, 2.25rem);
}

.sobrelinha {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mdf);
}
.sobrelinha i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--laser);
  box-shadow: 0 0 0 4px rgba(255, 74, 28, 0.18), 0 0 18px 2px rgba(255, 74, 28, 0.7);
  animation: brasa 2.4s ease-in-out infinite;
}

.nome {
  margin-top: clamp(0.9rem, 2.4vh, 1.75rem);
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(3.1rem, min(7.5vw, 17vh), 8.75rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.nome span {
  position: relative;
  display: block;
  width: fit-content;
  padding-right: 0.06em;
}
/* segunda linha: só o contorno, como um vetor de corte */
.nome .l2 {
  color: var(--tinta);
  -webkit-text-stroke: 0.045em var(--laser);
  paint-order: stroke fill;
  margin-top: 0.04em;
}

.chamada {
  margin-top: clamp(1rem, 2.6vh, 1.9rem);
  max-width: 31ch;
  font-size: clamp(1.2rem, 1.75vw, 1.7rem);
  font-weight: 300;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--papel);
}
.chamada em { color: var(--mdf); font-weight: 400; }

/* lista de empresas */
.empresas { margin-top: clamp(1.75rem, 4.5vh, 3.25rem); }

.empresas-titulo {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.7rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fosco);
}

.empresas ol { border-top: 1px solid var(--linha); }

.empresas a {
  position: relative;
  display: grid;
  grid-template-columns: 2.4rem minmax(9.5rem, 0.9fr) minmax(0, 1.3fr) 5.5rem 1.6rem;
  align-items: center;
  column-gap: clamp(0.6rem, 1.4vw, 1.5rem);
  padding: clamp(0.8rem, 1.75vh, 1.15rem) 0.85rem clamp(0.8rem, 1.75vh, 1.15rem) 0.35rem;
  border-bottom: 1px solid var(--linha);
  isolation: isolate;
  transition: color 0.28s var(--ease), padding 0.35s var(--ease);
}
/* chapa de MDF que desliza por trás */
.empresas a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--mdf);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.42s var(--ease);
}
/* linha do feixe */
.empresas a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--laser);
  box-shadow: 0 0 10px 1px rgba(255, 74, 28, 0.8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.empresas a:hover, .empresas a:focus-visible { color: var(--tinta); padding-left: 0.95rem; }
.empresas a:hover::before, .empresas a:focus-visible::before { transform: scaleX(1); }
.empresas a:hover::after, .empresas a:focus-visible::after { transform: scaleX(1); }

.empresas .n, .empresas .tg {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fosco);
  transition: color 0.28s;
}
.empresas .n { color: var(--laser); }
.empresas .nm {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: clamp(1.2rem, 1.7vw, 1.7rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.empresas .ds {
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--fosco);
  transition: color 0.28s;
}
.empresas .ar {
  justify-self: end;
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.35s var(--ease);
}
.empresas a:hover .n, .empresas a:hover .tg, .empresas a:hover .ds,
.empresas a:focus-visible .n, .empresas a:focus-visible .tg, .empresas a:focus-visible .ds { color: var(--queima); }
.empresas a:hover .ar, .empresas a:focus-visible .ar { transform: translate(3px, -3px) rotate(45deg); }

/* retrato */
.retrato {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.quadro {
  position: relative;
  flex: 1 1 auto;
  min-height: 24rem;
  background: var(--tinta-2);
}
.quadro picture, .quadro img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.quadro img {
  object-fit: cover;
  object-position: 50% 16%;
  filter: contrast(1.04) saturate(0.94);
}
/* escurece a base para o quadro assentar no fundo */
.quadro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(14, 12, 10, 0.55) 100%);
  pointer-events: none;
}

.tracado {
  position: absolute;
  inset: -0.6rem;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(255, 74, 28, 0.75));
  background:
    linear-gradient(var(--laser), var(--laser)) left top / 100% 1.5px no-repeat,
    linear-gradient(var(--laser), var(--laser)) right top / 1.5px 100% no-repeat,
    linear-gradient(var(--laser), var(--laser)) right bottom / 100% 1.5px no-repeat,
    linear-gradient(var(--laser), var(--laser)) left bottom / 1.5px 100% no-repeat;
}

.canto {
  position: absolute;
  z-index: 3;
  width: 1.1rem;
  height: 1.1rem;
  border: 0 solid var(--papel);
  pointer-events: none;
}
.c1 { top: -1.5rem; left: -1.5rem; border-right-width: 1px; border-bottom-width: 1px; }
.c2 { top: -1.5rem; right: -1.5rem; border-left-width: 1px; border-bottom-width: 1px; }
.c3 { bottom: -1.5rem; left: -1.5rem; border-right-width: 1px; border-top-width: 1px; }
.c4 { bottom: -1.5rem; right: -1.5rem; border-left-width: 1px; border-top-width: 1px; }

/* mira que segue o cursor dentro da foto */
.mira {
  --x: 50%;
  --y: 50%;
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mira::before, .mira::after {
  content: "";
  position: absolute;
  background: var(--laser);
  box-shadow: 0 0 8px rgba(255, 74, 28, 0.9);
}
.mira::before { left: var(--x); top: 0; bottom: 0; width: 1px; }
.mira::after { top: var(--y); left: 0; right: 0; height: 1px; }
.quadro.ativo .mira { opacity: 0.85; }

.retrato figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.35rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fosco);
}
.coord { color: var(--laser); font-variant-numeric: tabular-nums; white-space: nowrap; }

.descer {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  z-index: 6;
  display: none;
}

/* animações de entrada */
@keyframes brasa {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}
@keyframes cortar { from { clip-path: inset(-10% 100% -10% 0); } to { clip-path: inset(-10% -2% -10% 0); } }
@keyframes feixe {
  0% { left: 0; opacity: 1; }
  92% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes tracar {
  0% { background-size: 0 1.5px, 1.5px 0, 0 1.5px, 1.5px 0; }
  22% { background-size: 100% 1.5px, 1.5px 0, 0 1.5px, 1.5px 0; }
  50% { background-size: 100% 1.5px, 1.5px 100%, 0 1.5px, 1.5px 0; }
  72% { background-size: 100% 1.5px, 1.5px 100%, 100% 1.5px, 1.5px 0; }
  100% { background-size: 100% 1.5px, 1.5px 100%, 100% 1.5px, 1.5px 100%; }
}
@keyframes subir { from { opacity: 0; transform: translateY(1.1rem); } to { opacity: 1; transform: none; } }
@keyframes revelar { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

@media (prefers-reduced-motion: no-preference) {
  .nome span { animation: cortar 1s var(--ease) both; }
  .nome .l2 { animation-delay: 0.22s; }
  .nome span::after {
    content: "";
    position: absolute;
    top: -4%;
    bottom: -4%;
    left: 0;
    width: 2px;
    background: #fff;
    box-shadow: 0 0 14px 3px var(--laser), 0 0 40px 8px rgba(255, 74, 28, 0.55);
    opacity: 0;
    animation: feixe 1s var(--ease) both;
    animation-delay: inherit;
  }
  .sobrelinha, .chamada, .empresas-titulo, .empresas li, .retrato figcaption, .topo {
    animation: subir 0.8s var(--ease) both;
  }
  .topo { animation-delay: 0.05s; }
  .sobrelinha { animation-delay: 0.1s; }
  .chamada { animation-delay: 0.55s; }
  .empresas-titulo { animation-delay: 0.75s; }
  .empresas li:nth-child(1) { animation-delay: 0.85s; }
  .empresas li:nth-child(2) { animation-delay: 0.95s; }
  .empresas li:nth-child(3) { animation-delay: 1.05s; }
  .empresas li:nth-child(4) { animation-delay: 1.15s; }
  .quadro picture { animation: revelar 1.25s var(--ease) 0.2s both; }
  .tracado { animation: tracar 2.4s linear 0.35s both; }
  .retrato figcaption { animation-delay: 1.3s; }
}

/* --------------------------------------------------------------------------
   02 · História (chapa de MDF)
   -------------------------------------------------------------------------- */
.historia {
  position: relative;
  background-color: var(--mdf-claro);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .23 0 0 0 0 .13 0 0 0 0 .07 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
  color: #1b140e;
  padding: clamp(4.5rem, 11vw, 9.5rem) var(--margem) clamp(4rem, 9vw, 8rem);
}
/* borda queimada do corte a laser */
.historia::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1.6rem;
  background: linear-gradient(180deg, #120a05 0, var(--queima) 18%, rgba(110, 66, 30, 0.55) 42%, transparent 100%);
  pointer-events: none;
}

.rotulo {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6d5334;
}
.rotulo span { color: #c5330c; margin-right: 0.6em; }

.historia-topo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3.2fr);
  gap: 1.5rem clamp(1.5rem, 4vw, 4.5rem);
  align-items: start;
}
.historia-topo .rotulo { padding-top: 0.9rem; }

.historia h2 {
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 800;
  font-size: clamp(2.1rem, 5.6vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-wrap: balance;
  max-width: 17ch;
}
.historia h2 em {
  display: block;
  margin-top: 0.22em;
  font-family: var(--serifa);
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-size: 0.82em;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: #b23210;
}

/* trilha de funções */
.trilha {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid rgba(58, 34, 19, 0.3);
}
.trilha::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  height: 1px;
  width: 100%;
  background: #d83a0d;
  box-shadow: 0 0 8px rgba(216, 58, 13, 0.7);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.9s cubic-bezier(0.6, 0, 0.2, 1) 0.2s;
}
.trilha.dentro::before { transform: scaleX(1); }

.trilha li {
  position: relative;
  padding: 1.15rem 1rem 0 0;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
  color: #4b3722;
  counter-increment: passo;
}
.trilha li::before {
  content: "";
  position: absolute;
  top: -0.3rem;
  left: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--mdf-claro);
  border: 1px solid var(--queima);
}
.trilha li span::before {
  content: "0" counter(passo);
  display: block;
  margin-bottom: 0.25rem;
  color: #a98a5e;
}
.trilha .fim { color: #1b140e; font-weight: 500; }
.trilha .fim::before { background: #d83a0d; border-color: #d83a0d; box-shadow: 0 0 0 4px rgba(216, 58, 13, 0.18); }

/* texto */
.texto {
  margin-top: clamp(3rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3.2fr);
  gap: clamp(1.5rem, 4vw, 4.5rem);
}
.texto > * { grid-column: 2; }

.abre {
  font-size: clamp(1.45rem, 2.7vw, 2.5rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 28ch;
  text-wrap: pretty;
}

.colunas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(2.25rem, 4.5vw, 4rem);
  padding-top: clamp(1.5rem, 2.5vw, 2.25rem);
  border-top: 1px solid rgba(58, 34, 19, 0.3);
}
.colunas h3 {
  margin-bottom: 0.9rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c5330c;
}
.colunas p { font-size: 1.09rem; line-height: 1.58; color: #2a2017; text-wrap: pretty; }
.colunas p + p { margin-top: 1em; }

/* faixa com a imagem */
.faixa {
  position: relative;
  margin: clamp(3.5rem, 8vw, 7rem) calc(var(--margem) * -1) 0;
  min-height: clamp(26rem, 62vw, 44rem);
  display: grid;
  align-items: end;
  background: #0b0806;
  color: var(--papel);
  overflow: hidden;
  isolation: isolate;
}
.faixa img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}
.faixa::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 8, 6, 0.93) 0%, rgba(11, 8, 6, 0.72) 42%, rgba(11, 8, 6, 0.12) 78%),
    linear-gradient(0deg, rgba(11, 8, 6, 0.7), transparent 45%);
}
.faixa blockquote {
  padding: clamp(2.5rem, 6vw, 5.5rem) var(--margem);
  max-width: 62rem;
}
.faixa p {
  font-size: clamp(1.6rem, 3.9vw, 3.6rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.faixa .ln { display: block; }
.faixa .ln:first-of-type { margin-top: 0.35em; }
.faixa em { font-weight: 400; color: var(--mdf); }
.faixa .ln:last-of-type em { color: var(--laser); }

/* família */
.familia {
  margin-top: clamp(3rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3.2fr);
  gap: 1rem clamp(1.5rem, 4vw, 4.5rem);
  align-items: baseline;
}
.familia p:last-child {
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 300;
  line-height: 1.28;
  letter-spacing: -0.015em;
  max-width: 34ch;
  text-wrap: pretty;
}
.familia strong { font-weight: 500; font-style: italic; color: #b23210; }

/* revelação no scroll (só com JS ativo) */
.js .rev { opacity: 0; transform: translateY(1.6rem); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .rev.dentro { opacity: 1; transform: none; }
.js .colunas .rev:nth-child(2) { transition-delay: 0.12s; }
.js .colunas .rev:nth-child(3) { transition-delay: 0.24s; }

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */
.rodape {
  padding: clamp(3rem, 7vw, 6rem) var(--margem) 2rem;
  background: var(--tinta);
  overflow: hidden;
}
.assina {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2.3rem, 6.15vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--tinta);
  -webkit-text-stroke: 0.03em rgba(241, 232, 216, 0.5);
  paint-order: stroke fill;
}
.rodape-linha {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--linha);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fosco);
}
.rodape ul { display: flex; flex-wrap: wrap; gap: 0.6rem clamp(1rem, 2.5vw, 2.25rem); }
.rodape a { transition: color 0.2s; }
.rodape a:hover { color: var(--laser); }

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .empresas a { grid-template-columns: 2.2rem minmax(0, 0.8fr) minmax(0, 1.3fr) 1.4rem; }
  .empresas .tg { display: none; }
  .colunas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --topo: 3.75rem; }
  .local { display: none; }
  .topo { grid-template-columns: 1fr auto; }

  .capa {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 0;
    padding-inline: 0;
    min-height: 0;
  }
  .retrato { order: -1; }
  .quadro { flex: none; aspect-ratio: 4 / 5; min-height: 0; max-height: 86svh; }
  .quadro img { object-position: 50% 12%; }
  .quadro::after {
    background:
      linear-gradient(180deg, rgba(14, 12, 10, 0.6) 0, transparent 20%),
      linear-gradient(180deg, transparent 46%, rgba(14, 12, 10, 0.86) 84%, var(--tinta) 100%);
  }
  .tracado, .canto, .mira, .retrato figcaption { display: none; }
  .capa-texto {
    position: relative;
    z-index: 2;
    margin-top: clamp(-9.5rem, -30vw, -6rem);
    padding: 0 var(--margem);
  }
  .nome { font-size: clamp(2.6rem, 13.2vw, 6.2rem); }
  .nome .l2 { color: transparent; -webkit-text-stroke: 0.03em var(--laser); paint-order: normal; }
  .chamada { max-width: 26ch; }

  .empresas a {
    grid-template-columns: 2rem minmax(0, 1fr) 1.4rem;
    row-gap: 0.3rem;
    padding: 1.05rem 0.5rem 1.1rem 0.15rem;
  }
  .empresas .n { align-self: start; padding-top: 0.45rem; }
  .empresas .nm { font-size: 1.45rem; }
  .empresas .ds { grid-column: 2 / -1; grid-row: 2; }
  .empresas .ar { grid-column: 3; grid-row: 1; }

  .historia-topo, .texto, .familia { grid-template-columns: minmax(0, 1fr); }
  .texto > * { grid-column: 1; }
  .historia-topo .rotulo { padding-top: 0; }
  .colunas { grid-template-columns: minmax(0, 1fr); }

  .trilha {
    grid-template-columns: minmax(0, 1fr);
    border-top: 0;
    border-left: 1px solid rgba(58, 34, 19, 0.3);
  }
  .trilha::before {
    top: 0;
    left: -1px;
    width: 1px;
    height: 100%;
    transform: scaleY(0);
    transform-origin: top;
  }
  .trilha.dentro::before { transform: scaleY(1); }
  .trilha li { padding: 0 0 1.15rem 1.35rem; }
  .trilha li:last-child { padding-bottom: 0; }
  .trilha li::before { top: 0.3rem; left: -0.3rem; }
  .trilha li span { display: flex; gap: 0.9rem; }
  .trilha li span::before { margin: 0; }

  .faixa img { object-position: 78% 50%; }
  .faixa::after {
    background: linear-gradient(0deg, rgba(11, 8, 6, 0.95) 0%, rgba(11, 8, 6, 0.7) 50%, rgba(11, 8, 6, 0.2) 100%);
  }
  .assina { white-space: normal; font-size: clamp(2.2rem, 11.6vw, 5.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sobrelinha i { animation: none; }
  .js .rev { opacity: 1; transform: none; transition: none; }
  .trilha::before { transition: none; }
}
