/* Vallech: tokens, base, sections. Dark-only by brand: the workshop world is black, red is the signal. */

@font-face { font-family: "Kycron"; src: url("../fonts/Kycron-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Kycron"; src: url("../fonts/Kycron-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Kycron"; src: url("../fonts/Kycron-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Kycron"; src: url("../fonts/Kycron-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #090909;
  --bg-2: #101010;
  --bg-3: #181818;
  --fg: #f2f0eb;
  --fg-2: #c9c6c0;
  --muted: #9d9a95;
  --line: rgb(242 240 235 / 0.14);
  --red: #e3202a;          /* do logo: sinal, nunca superfície */
  --red-fill: #c51f2b;     /* botões: 5.8:1 com texto branco */
  --red-deep: #8f141d;

  --f-display: "Kycron", "Archivo", system-ui, sans-serif;
  --f-text: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gx: clamp(16px, 4vw, 56px);
  --section: clamp(64px, 7.5vw, 120px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);

  --z-dock: 20;
  --z-top: 30;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-text);
  font-size: clamp(16px, 0.95rem + 0.2vw, 18px);
  line-height: 1.65;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
figure { margin: 0; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
address { font-style: normal; }
::selection { background: var(--red-fill); color: #fff; }

:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1680px; margin-inline: auto; padding-inline: var(--gx); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600; }

.ic { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Tipografia compartilhada ---------- */
.h2 {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.55rem, 0.8rem + 3.2vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.lead {
  color: var(--fg-2);
  max-width: 44ch;
  text-wrap: pretty;
}
figcaption, .rail p {
  margin-top: 12px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--muted);
  font-stretch: 88%;
  letter-spacing: 0.01em;
}

/* ---------- Botões ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-stretch: 92%;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.5s var(--ease);
}
.btn .ic { transition: transform 0.4s var(--ease); }
.btn:active { transform: scale(0.98); }
.btn-red { background: var(--red-fill); color: #fff; }
.btn-red::before { background: var(--red-deep); }
.btn-line { border: 1px solid rgb(227 32 42 / 0.75); color: var(--fg); min-height: 44px; padding: 0 20px; font-size: 0.875rem; }
.btn-line::before { background: var(--red-fill); }
@media (hover: hover) {
  .btn:hover::before { transform: scaleY(1); }
  .btn:hover .ic { transform: translate(2px, -2px); }
  .btn-line:hover { border-color: var(--red-fill); color: #fff; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 500;
  font-stretch: 92%;
  color: var(--fg);
  background: linear-gradient(var(--red), var(--red)) 0 calc(100% - 8px) / 0% 1px no-repeat,
              linear-gradient(var(--line), var(--line)) 0 calc(100% - 8px) / 100% 1px no-repeat;
  transition: background-size 0.5s var(--ease);
}
.link-arrow .ic { transition: transform 0.4s var(--ease); }
@media (hover: hover) {
  .link-arrow:hover { background-size: 100% 1px, 100% 1px; }
  .link-arrow:hover .ic { transform: translateX(3px); }
}

/* ---------- Header ---------- */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-top);
  transition: transform 0.6s var(--ease), background-color 0.4s linear, border-color 0.4s linear;
  border-bottom: 1px solid transparent;
}
.top.is-solid { background: rgb(9 9 9 / 0.92); border-bottom-color: var(--line); }
.top.is-hidden { transform: translateY(-100%); }
.top-in { height: 72px; display: flex; align-items: center; gap: 32px; }
.brand img { height: 38px; width: auto; }
.top-nav { margin-left: auto; }
.top-nav ul { display: flex; gap: clamp(20px, 2.4vw, 40px); }
.top-nav a {
  position: relative;
  display: inline-block;
  padding: 10px 0;
  font-size: 0.8125rem;
  font-weight: 500;
  font-stretch: 85%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
  transition: color 0.3s linear;
}
.top-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--ease);
}
.top-nav a:hover, .top-nav a.is-active { color: var(--fg); }
.top-nav a:hover::after, .top-nav a.is-active::after { transform: scaleX(1); }
.top-menu { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; margin-left: 4px; }
.top-menu .ic { width: 28px; height: 28px; }

/* ---------- 01 Abertura ---------- */
.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  background: var(--bg);
}
.hero-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* Três fotos em fade cruzado. A que está na tela se afasta devagar; a que sai continua o movimento enquanto some. */
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1); }
.hero-slide.is-on { opacity: 1; z-index: 1; }
.hero-slide picture, .hero-slide img { width: 100%; height: 100%; display: block; }
.hero-slide img {
  object-fit: cover;
  transform: scale(1.05); /* zoom curto: ampliar mais que isso borra a foto */
  transition: transform 8s cubic-bezier(0.2, 0, 0.3, 1);
}
.hero-slide.is-on img { transform: scale(1); }
.hero-slide:nth-child(1) img { object-position: 60% 58%; transform-origin: 62% 50%; }
.hero-slide:nth-child(2) img { object-position: 50% 52%; transform-origin: 50% 40%; }
.hero-slide:nth-child(3) img { object-position: 50% 50%; transform-origin: 40% 50%; }
.hero-dots { display: flex; gap: 8px; margin-bottom: 22px; }
.hero-dots span { position: relative; width: 28px; height: 2px; background: rgb(242 240 235 / 0.25); overflow: hidden; }
.hero-dots span::after { content: ""; position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; }
.hero-dots span.is-on::after { animation: dot-fill var(--slide-ms, 5600ms) linear forwards; }
@keyframes dot-fill { to { transform: scaleX(1); } }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgb(9 9 9 / 0.72) 0%, rgb(9 9 9 / 0) 22%),
    linear-gradient(to top, rgb(9 9 9 / 0.97) 0%, rgb(9 9 9 / 0.78) 24%, rgb(9 9 9 / 0) 56%),
    linear-gradient(to right, rgb(9 9 9 / 0.55) 0%, rgb(9 9 9 / 0) 48%);
}
.hero-body {
  position: relative;
  align-self: end;
  padding-top: 120px;
  padding-bottom: clamp(32px, 6vh, 72px);
}
.hero-title {
  font-family: var(--f-display);
  font-weight: 300;
  text-transform: uppercase;
  font-size: clamp(1.85rem, 0.55rem + 4.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
}
.hero-title .line { display: block; padding-bottom: 0.04em; }
.hero-title .line-in { display: block; }
.hero-title em, .hero-sub em { font-style: normal; color: var(--red); }
.hero-title .pt { font-family: var(--f-text); font-weight: 400; }
.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-top: clamp(20px, 3.4vh, 40px);
  padding-top: clamp(20px, 3.4vh, 32px);
  border-top: 1px solid var(--line);
}
.hero-sub { max-width: 38ch; color: var(--fg-2); }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* ---------- 02 Padrão ---------- */
.std { padding-block: var(--section); }
.std-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 48px;
}
.std-text { grid-column: 1 / span 5; grid-row: 1 / span 2; align-self: start; padding-top: clamp(8px, 4vw, 64px); }
.std-title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 1rem + 2.3vw, 3.3rem);
  line-height: 1.14;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.std-body { margin-top: 32px; max-width: 46ch; color: var(--fg-2); }
.std-facts {
  display: flex;
  gap: clamp(32px, 5vw, 80px);
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.std-facts dt {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(2rem, 1.2rem + 2.4vw, 3.4rem);
  line-height: 1;
  white-space: nowrap;
  color: var(--red);
}
.std-facts dd { margin-top: 10px; color: var(--muted); font-size: 0.9375rem; }
.std-portrait { display: none; }
.std-detail { grid-column: 7 / span 6; grid-row: 1 / span 2; align-self: center; margin: 0; }
.std-detail img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 42%; }

/* ---------- 03 Índice de serviços ---------- */
.idx { padding-block: var(--section) calc(var(--section) * 0.8); }
.idx-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  align-items: start;
}
.idx-title {
  grid-column: 1 / span 7;
  font-family: var(--f-text);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 28px;
}
.idx-list { grid-column: 1 / span 7; grid-row: 2; border-top: 1px solid var(--line); }
.idx-list li { border-bottom: 1px solid var(--line); }
.idx-list a {
  display: grid;
  grid-template-columns: 1fr minmax(0, 15rem) 32px;
  align-items: center;
  gap: 24px;
  padding-block: clamp(22px, 2.6vw, 36px);
  transition: opacity 0.4s var(--ease);
}
.idx-thumb { display: none; }
.idx-name {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.45rem, 0.9rem + 1.9vw, 2.75rem);
  line-height: 1.08;
  text-transform: uppercase;
  transition: transform 0.6s var(--ease);
}
.idx-note { color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }
.idx-arrow { width: 26px; height: 26px; color: var(--red); opacity: 0; transform: translateX(-10px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }
@media (hover: hover) {
  .idx-list:hover a:not(:hover) { opacity: 0.38; }
  .idx-list a:hover .idx-name { transform: translateX(14px); }
  .idx-list a:hover .idx-arrow { opacity: 1; transform: none; }
}
.idx-list a:focus-visible .idx-arrow { opacity: 1; transform: none; }
.idx-preview {
  grid-column: 9 / span 4;
  grid-row: 1 / span 2;
  position: sticky;
  top: 14vh;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-2);
}
.idx-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(20px);
  transform: scale(1.06);
  transition: opacity 0.85s var(--ease), filter 0.95s var(--ease), transform 1.2s var(--ease);
  will-change: opacity, filter, transform;
}
.idx-preview img.is-on { opacity: 1; filter: blur(0); transform: none; z-index: 1; }

/* ---------- 04 Funilaria ---------- */
.body-shop { position: relative; z-index: 0; background: var(--bg-2); --p: 0; }
.bs-sticky {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: clamp(28px, 4vw, 48px);
  align-items: end;
  padding-block: var(--section);
}
.bs-text { grid-column: 1 / span 5; align-self: start; }
.bs-text .lead { margin-top: 28px; }
.bs-stage { grid-column: 6 / span 7; min-width: 0; }
.bs-frame {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 12px;
  align-items: end;
}
.bs-photo { width: 100%; aspect-ratio: 1500 / 1840; object-fit: cover; object-position: 50% 58%; }
.bs-caption {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.bs-wipe, .bs-meter-track { display: none; }
/* Sem movimento: chegada (menor) à esquerda, reparo pronto à direita, com os rótulos em cima */
.bs-before { order: -1; }
.bs-meter { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; max-width: 420px; }
.bs-meter .bs-meter-label { color: var(--fg); }

/* Com movimento: o GSAP trava a seção na tela. A troca só começa depois disso. */
.has-motion .bs-sticky {
  position: relative;
  height: 100svh;
  align-items: center;
  align-content: center;
  padding-top: 92px;
  padding-bottom: 28px;
}
.has-motion .bs-text { align-self: center; }
.has-motion .bs-stage {
  width: min(100%, calc((100svh - 210px) * 1500 / 1840));
  justify-self: end;
}
.has-motion .bs-frame {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1500 / 1840;
  overflow: hidden;
  background: #141414;
}
.has-motion .bs-photo {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
}
.has-motion .bs-after { z-index: 0; }
.has-motion .bs-before {
  z-index: 1;
  clip-path: inset(0 0 0 calc(var(--p) * 100%));
}
.has-motion .bs-wipe {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--p) * 100%);
  z-index: 2;
  width: 2px;
  background: var(--red);
  transform: translateX(-50%);
  pointer-events: none;
  opacity: clamp(0, min(var(--p), calc(1 - var(--p))) * 16, 1);
}
.has-motion .bs-caption {
  display: block;
  position: relative;
  min-height: 2.8em;
  margin-top: 14px;
}
.has-motion .bs-cap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}
.has-motion .bs-cap-before { opacity: 1; }
.has-motion .bs-cap-after { opacity: 0; }
.has-motion .bs-meter-label { color: var(--muted); }
.has-motion .bs-meter-label.is-on { color: var(--fg); }
.has-motion .bs-meter-track { display: block; }
.has-motion .bs-meter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  max-width: 420px;
}
.bs-meter-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.bs-meter-label.is-on { color: var(--fg); }
.bs-meter-track { position: relative; height: 1px; background: var(--line); }
.bs-meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  height: 100%;
  background: var(--red);
  transform: scaleX(var(--p));
  transform-origin: 0 50%;
}

/* ---------- 05 Picapes ---------- */
.trucks { position: relative; z-index: 1; padding-block: clamp(56px, 8vw, 120px) var(--section); overflow: hidden; background: var(--bg); }
.trucks-band {
  position: relative;
  overflow: hidden;
  height: 1.02em;
  margin-bottom: clamp(40px, 6vw, 88px);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(3rem, 10.2vw, 11.5rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--fg);
}
.trucks-track {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
}
.trucks-track span { padding-right: 0.42em; }
.trucks-track.is-ghost {
  z-index: 0;
  color: transparent;
  -webkit-text-stroke: 1.5px rgb(242 240 235 / 0.42);
  top: 0.06em;
}
.trucks-track:not(.is-ghost) { z-index: 1; }
.tr-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 920px;
}
.tr-lead {
  max-width: none;
  margin-top: 22px;
}
.tr-lead span { display: block; }
.tr-copy .link-arrow { margin-top: 28px; }
.tr-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 22px);
  margin-top: clamp(40px, 5vw, 80px);
}
.tr-photos figure { margin: 0; min-width: 0; }
.tr-photos img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
}
.tr-photos figure:nth-child(1) img { object-position: 50% 58%; }
.tr-photos figure:nth-child(2) img { object-position: 58% 62%; }
.tr-photos figure:nth-child(3) img { object-position: 46% 58%; }

/* ---------- 06 Proteção ---------- */
.prot { padding-block: var(--section); background: var(--bg-2); }
.pr-head .lead { margin-top: 24px; }
.pr-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  margin-top: clamp(48px, 6vw, 96px);
}
.pr-stage {
  grid-column: 1 / span 7;
  position: sticky;
  top: 12vh;
  height: 76vh;
  overflow: hidden;
  background: var(--bg-3);
}
.pr-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(22px);
  transform: scale(1.05);
  transition: opacity 0.9s var(--ease), filter 1s var(--ease), transform 1.4s var(--ease);
  will-change: opacity, filter, transform;
}
.pr-stage img.is-on { opacity: 1; filter: blur(0); transform: scale(1); z-index: 1; }
.pr-list { grid-column: 9 / span 4; }
.pr-item {
  min-height: 64vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.32;
  transition: opacity 0.6s var(--ease);
}
.pr-item.is-on { opacity: 1; }
.pr-img { display: none; }
.pr-item h3 {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 1rem + 1.6vw, 2.6rem);
  line-height: 1.05;
}
.pr-item p { margin-top: 18px; color: var(--fg-2); max-width: 34ch; }

/* ---------- 07 Personalização ---------- */
.custom { padding-block: var(--section); }
.cu-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.cu-head .lead { margin-top: 24px; }
.cu-ctrl { display: flex; gap: 10px; }
.round {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.3s linear, background-color 0.3s linear, transform 0.25s var(--ease);
}
.round:active { transform: scale(0.96); }
@media (hover: hover) { .round:hover { border-color: var(--fg); } }
.round[disabled] { opacity: 0.3; cursor: default; }
.rail {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 2vw, 28px);
  margin-top: clamp(40px, 5vw, 72px);
  padding-inline: max(var(--gx), calc((100vw - 1680px) / 2 + var(--gx)));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gx), calc((100vw - 1680px) / 2 + var(--gx)));
  scroll-behavior: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.rail.is-running { scroll-snap-type: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-item { flex: none; width: clamp(220px, 24vw, 380px); scroll-snap-align: start; }
.rail-item img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: center; }

/* ---------- 08 Contato ---------- */
/* Faixa 2.4:1 com as duas lanternas inteiras, fechando a página como o hero abriu; o convite fica abaixo, sobre o preto */
.contact { padding-bottom: var(--section); }
.ct-media { position: relative; aspect-ratio: 2.4 / 1; overflow: hidden; background: #000; }
.ct-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.ct-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, rgb(9 9 9 / 0) 30%), linear-gradient(to bottom, var(--bg) 0%, rgb(9 9 9 / 0) 16%); }
.ct-shade { display: none; }
.ct-body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  padding-top: clamp(40px, 5vw, 80px);
}
.ct-title {
  grid-column: 1 / span 7;
  font-family: var(--f-display);
  font-weight: 300;
  text-transform: uppercase;
  font-size: clamp(2rem, 1rem + 3.4vw, 4.6rem);
  line-height: 1.04;
  text-wrap: balance;
}
.ct-side { grid-column: 9 / span 4; align-self: end; }
.ct-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 32px; margin-top: 32px; }
.ct-info { display: grid; gap: 20px; grid-column: 1 / -1; margin-top: clamp(48px, 6vw, 88px); padding-top: 28px; border-top: 1px solid var(--line); grid-template-columns: repeat(auto-fit, minmax(260px, max-content)); column-gap: 64px; }
.ct-info a { display: flex; gap: 14px; align-items: flex-start; padding-block: 10px; color: var(--fg-2); line-height: 1.5; transition: color 0.3s linear; }
.ct-info a:hover { color: var(--fg); }
.ct-info .ic { margin-top: 3px; color: var(--red); }

/* ---------- Rodapé ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 56px; font-size: 0.875rem; color: var(--muted); }
.foot-in { display: grid; grid-template-columns: auto 1fr auto; gap: 40px 64px; align-items: start; }
.foot-logo { height: 34px; width: auto; opacity: 0.9; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot-nav a, .foot-meta a { transition: color 0.3s linear; }
.foot-nav a:hover, .foot-meta a:hover { color: var(--fg); }
.foot-meta { display: grid; gap: 4px; text-align: right; max-width: 32ch; }
.foot-credit { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.75rem; letter-spacing: 0.02em; }
.foot-credit a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--muted); transition: color 0.3s linear; }
.foot-credit a:hover { color: var(--fg); }
.foot-credit .ic { width: 14px; height: 14px; color: var(--red); }
.foot-credit strong { font-weight: 600; color: var(--fg-2); }

/* ---------- Dock (celular) ---------- */
.dock {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: var(--z-dock);
  display: none;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgb(16 16 16 / 0.94);
  border: 1px solid var(--line);
  transform: translateX(-50%);
  transition: transform 0.5s var(--ease), opacity 0.4s linear;
}
.dock.is-hidden { transform: translate(-50%, 140%); opacity: 0; }
.dock a, .dock button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-stretch: 92%;
}
.dock-wa { background: var(--red-fill); color: #fff; }
.dock .ic { width: 20px; height: 20px; }

/* ---------- Menu (dialog) ---------- */
.menu {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--fg);
}
.menu::backdrop { background: rgb(0 0 0 / 0.6); }
.menu[open] { animation: menu-in 0.6s var(--ease); }
@keyframes menu-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
.menu-in { min-height: 100%; display: flex; flex-direction: column; padding: 0 var(--gx) calc(24px + env(safe-area-inset-bottom)); }
.menu-top { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.menu-top img { height: 34px; width: auto; }
.menu-close { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; font-weight: 500; }
.menu-close .ic { width: 24px; height: 24px; }
.menu-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.tile { position: relative; overflow: hidden; background: var(--bg-3); display: flex; align-items: flex-end; padding: 22px; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5); transition: transform 1s var(--ease), filter 0.6s var(--ease); }
.tile > span { position: relative; font-family: var(--f-display); text-transform: uppercase; font-size: clamp(1.05rem, 0.8rem + 0.8vw, 1.6rem); line-height: 1.1; max-width: 14ch; }
@media (hover: hover) { a.tile:hover img { transform: scale(1.05); filter: brightness(0.66); } }
.tile-a { grid-column: 1; grid-row: 1 / span 2; }
.tile-b { grid-column: 2; grid-row: 1; }
.tile-c { grid-column: 2; grid-row: 2; }
.tile-d { grid-column: 3; grid-row: 1; }
.tile-e { grid-column: 3; grid-row: 2; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 12px; }
.tile-e a:not(.btn) { color: var(--fg-2); min-height: 32px; display: inline-flex; align-items: center; transition: color 0.3s linear; }
.tile-e a:not(.btn):hover { color: var(--fg); }

.w { display: inline-block; vertical-align: top; }
.w-in { display: inline-block; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- Estado inicial do movimento (só com .motion; sem JS tudo aparece) ----------
   Os valores batem com o "from" do GSAP para a entrada não dar salto. Desfoque só com .fx (desktop com mouse). */
.motion .top { opacity: 0; }
.motion .hero-media { opacity: 0; }
.motion .hero-title .line-in { opacity: 0; transform: translateY(18px); }
.motion [data-hero-fade] { opacity: 0; transform: translateY(12px); }
.motion.fx .hero-title .line-in { filter: blur(10px); }

/* ---------- Responsivo ---------- */
@media (max-width: 1279px) {
  .idx-list a { grid-template-columns: 1fr 32px; }
  .idx-note { grid-column: 1; grid-row: 2; margin-top: -12px; }
  .idx-arrow { grid-column: 2; grid-row: 1 / span 2; }
}

@media (max-width: 1023px) {
  .top-nav { display: none; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .top-cta { margin-left: auto; }
  .top-menu { display: inline-flex; }

  .std-text { grid-column: 1 / -1; grid-row: 1; padding-top: 0; }
  .std-detail { grid-column: 4 / -1; grid-row: 2; align-self: start; }

  .idx-list { grid-column: 1 / -1; }
  .idx-title { grid-column: 1 / -1; }
  .idx-preview { display: none; }
  .idx-list a { grid-template-columns: 76px 1fr 28px; column-gap: 18px; padding-block: 18px; }
  .idx-thumb { display: block; grid-row: 1 / span 2; width: 76px; height: 76px; overflow: hidden; }
  .idx-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .idx-name { grid-column: 2; }
  .idx-note { grid-column: 2; grid-row: 2; margin-top: -10px; }
  .idx-arrow { grid-column: 3; grid-row: 1 / span 2; opacity: 1; transform: none; width: 22px; height: 22px; }

  .bs-text, .bs-stage { grid-column: 1 / -1; }
  /* Sem trava no toque (celular e tablet): seção na altura do conteúdo, foto grande, a varredura acompanha a rolagem */
  .has-motion .bs-sticky { height: auto; align-content: start; padding-block: var(--section); row-gap: 28px; }
  .has-motion .bs-text { align-self: start; }
  .has-motion .bs-stage { width: min(100%, 560px); justify-self: start; }

  .tr-lead span { white-space: normal; }

  .pr-stage { display: none; }
  .pr-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 24px; }
  .pr-item { min-height: 0; opacity: 1; justify-content: flex-start; }
  .pr-img { display: block; margin-bottom: 24px; }
  .pr-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

  .foot-in { grid-template-columns: 1fr; }
  .ct-title, .ct-side { grid-column: 1 / -1; }
  .ct-side { margin-top: 24px; }
  .foot-meta { text-align: left; }
}

@media (max-width: 767px) {
  :root { --section: 56px; }
  html { scroll-padding-top: 16px; }
  .top { position: absolute; }
  .top.is-solid { background: transparent; border-bottom-color: transparent; }
  .top-cta, .top-menu { display: none; }
  .brand img { height: 32px; }
  .dock { display: flex; }

  /* Celular: foto vertical em tela cheia, texto por cima no degradê. Nada de faixa solta. */
  .hero-slide img { transform: scale(1.04); }
  .hero-slide:nth-child(1) img { object-position: 68% 40%; transform-origin: 72% 35%; }
  .hero-slide:nth-child(2) img { object-position: 42% 50%; transform-origin: 45% 35%; }
  .hero-slide:nth-child(3) img { object-position: 56% 50%; transform-origin: 60% 30%; }
  .hero-shade {
    background:
      linear-gradient(to bottom, rgb(9 9 9 / 0.75) 0%, rgb(9 9 9 / 0) 18%),
      linear-gradient(to top, rgb(9 9 9 / 1) 0%, rgb(9 9 9 / 0.92) 26%, rgb(9 9 9 / 0.55) 44%, rgb(9 9 9 / 0) 62%);
  }
  .hero-dots { margin-bottom: 18px; }
  /* Só o espaço da barra flutuante, sem sobra: a próxima seção chega logo depois do "Ver serviços" */
  .hero-body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .std { padding-top: 40px; }
  .hero-foot { flex-direction: column; align-items: flex-start; border-top: 0; padding-top: 0; }
  .hero-actions .btn-red { display: none; } /* o dock já carrega o WhatsApp */

  .std-grid, .idx-grid, .bs-sticky, .pr-grid { column-gap: 12px; }
  .std-detail { grid-column: 1 / -1; }
  .std-facts { gap: 40px; }

  .idx-list a { grid-template-columns: 64px 1fr 22px; column-gap: 14px; }
  .idx-thumb { width: 64px; height: 64px; }
  .idx-note { font-size: 0.875rem; }

  .has-motion .bs-text .lead { margin-top: 18px; }
  .has-motion .bs-meter { margin-top: 24px; gap: 10px; max-width: none; }
  .bs-meter-label { letter-spacing: 0.08em; }

  .trucks { padding-top: 64px; }
  .trucks-band { font-size: clamp(2.7rem, 14vw, 5.5rem); margin-bottom: 36px; }
  .trucks-track.is-ghost { display: none; } /* o contorno duplicado vira borrão na tela pequena */
  .tr-lead { margin-top: 16px; }
  .tr-copy .link-arrow { margin-top: 18px; }
  .tr-photos { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 32px; }
  .tr-photos figure:first-child { grid-column: 1 / -1; }
  .tr-photos figure:first-child img { aspect-ratio: 4 / 3; object-position: 50% 62%; }

  .pr-list { grid-template-columns: 1fr; gap: 48px; }
  .pr-img { margin-bottom: 20px; }
  .pr-img img { aspect-ratio: 4 / 3; }

  .cu-head { flex-direction: column; align-items: flex-start; }
  .cu-ctrl { display: none; } /* no celular o trilho desliza com o dedo */
  .rail { margin-top: 32px; }
  .rail-item { width: 72vw; }

  /* Celular: a faixa larga mostrava só o teto. Aproxima na lanterna esquerda. */
  .ct-media { aspect-ratio: 2 / 1; }
  .ct-media img { position: absolute; max-width: none; width: 230%; height: auto; left: -24%; bottom: -4%; transform-origin: 35% 70%; }
  .contact { padding-bottom: 72px; }
  .ct-info { margin-top: 36px; padding-top: 16px; gap: 0; }

  /* Rodapé no celular: a faixa da Krivo centralizada, com folga acima e longe da barra flutuante */
  .foot { padding-bottom: calc(132px + env(safe-area-inset-bottom)); }
  .foot-credit { margin-top: 48px; padding-top: 32px; text-align: center; font-size: 0.8125rem; }
  .foot-credit a { gap: 8px; min-height: 44px; }
  .foot-credit .ic { width: 15px; height: 15px; }

  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: minmax(124px, 18vh); }
  .tile { padding: 16px; }
  .tile-a, .tile-d { grid-column: 1 / -1; grid-row: auto; }
  .tile-b, .tile-c { grid-column: auto; grid-row: auto; }
  .tile-e { grid-column: 1 / -1; grid-row: auto; justify-content: flex-start; gap: 14px; background: none; padding: 16px 0 0; }
}

@media (min-width: 768px) {
  .tr-lead span { white-space: nowrap; }
}

@media (max-width: 359px) {
  .idx-list a { grid-template-columns: 1fr 22px; }
  .idx-thumb { display: none; }
  .idx-name, .idx-note { grid-column: 1; }
  .idx-arrow { grid-column: 2; }
  .idx-name { font-size: 1.3rem; }
  .dock a, .dock button { padding: 0 16px; }
  .std-facts { flex-direction: column; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

